msm_dsc_get_bytes_per_line(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… msm_dsc_get_bytes_per_line(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, that Kernel API Manual, the one and only ✨ this page is all about msm_dsc_get_bytes_per_line, and it's literally the glow-up your DSC math has been waiting for 🫢


🌸 NAME 🌸

msm_dsc_get_bytes_per_line β€” calculate bytes per line πŸ’– (that's it, that's the whole job, and she does it flawlessly)


πŸŽ€ SYNOPSIS πŸŽ€

u32 msm_dsc_get_bytes_per_line (const struct drm_dsc_config *dsc );

no cap, that's the exact signature β€” u32 in, u32 out, main character energy only πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dsc β€” pointer to the drm dsc config struct 🧚 that's your whole vibe check right there: hand her the config, she reads it, she ships you a number.

🌈 RETURN 🌈

An integer value representing bytes per line πŸ’« slay.

but listen β€” this is not the final form, okay? DSI and DP need to perform further calculations to turn this into pclk_per_intf πŸ”₯ like, dividing by different values depending on if widebus is enabled. so yeah, this is the appetizer, not the entrΓ©e πŸ“ don't @ me.

lowkey important: the divide-by value changes with widebus. don't skip that step or the math will not be giving what it's supposed to give 😭

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/gpu/drm/msm/msm_dsc_helper.h β€” go read the source, iykyk πŸ“–βœ¨

and that's the page, bestie!! this iconic little function lives in the kernel source tree at ./drivers/gpu/drm/msm, dated October 2026 β€” periodt, go forth and compute your bytes per line πŸ’…πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from