dw_hdmi_qp_r...s_fmt_to_reg(9)
π 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 theMEDIA_BUS_FMT_sallowed by this driver'satomic_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms