dw_hdmi_qp_r...s_fmt_to_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dw_hdmi_qp_rockchip_bus_fmt_to_reg β€” NAME ✨

okay so bestie, this is dw_hdmi_qp_rockchip_bus_fmt_to_reg from the Kernel API Manual, and its whole personality is: converts a bus format to a GRF reg value πŸŽ€ like that's literally the job. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

int __pure dw_hdmi_qp_rockchip_bus_fmt_to_reg (u32 bus_fmt );

she's __pure too, meaning she only looks at her args and nothing else β€” main character energy fr πŸ’…


🌸 ARGUMENTS 🌸

  • bus_fmt β€” one of the MEDIA_BUS_FMT_s allowed by this driver's atomic_check 🫢 that's the vibe check she runs your format against, iykyk.

πŸ”₯ RETURN πŸ”₯

on success you get an unshifted value to be written to the COLOR_FORMAT GRF register ⭐ β€” unshifted, meaning no bit-shifting shenanigans, you take it exactly as she hands it to you, periodt.

but if the bus format isn't supported? -EINVAL 😭 she's not mad, she's just disappointed. (jk she's absolutely returning an error, respect it.)

heads up bestie β€” that -EINVAL is a negative return, so don't go writing it into a register and acting surprised πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c β€” the whole squad lives here 🧚
  • dw_hdmi_qp_rockchip_get_vop_format(9) β€” her bestie, the reverse-ish vibe πŸ’œ

✨ and that's the whole page, you ate that ✨

kisses from ./drivers/gpu/drm/rockchip πŸ’– October 2026 edition, dw_hdmi_qp_r...s_fmt_to_reg(9) β€” go forth and shift nothing πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from