drm_dp_dsc_b...x_line_width(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_dp_dsc_branch_max_line_width ✨

okay so bestie, welcome to the Kernel API Manual page for drm_dp_dsc_branch_max_line_width(9) β€” yes the header up top is literally rendered as drm_dp_dsc_b...x_line_width(9) because terminals are dramatic and truncate things, but we know her full name and we're gonna say it with our whole chest πŸ’…


🌸 NAME 🌸

drm_dp_dsc_branch_max_line_width β€” the branch device's max DSC line width, that's the whole vibe 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int drm_dp_dsc_branch_max_line_width (const u8
dsc_branch_dpcd[DP_DSC_BRANCH_CAP_SIZE] );

literally that's it. one function, one array, zero drama ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dsc_branch_dpcd β€” the DSC branch capabilities straight out of DPCD, bestie πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so what does she do? she returns the branch device's maximum overall DSC line width, and she figures it out based on the device's own dsc_branch_dpcd capabilities. it's giving "read the flex, report the flex" πŸ˜­πŸ‘‘

no cap, that's the entire description. she's a one-job icon and she ate.


πŸ‘‘ RETURN πŸ‘‘

bestie the return values are a whole personality test, look:

  • 0 β€” the max line width is not indicated by the device separately, so it has to be determined from the maximum slice count and slice-width supported by the device. iykyk, you gotta derive it yourself 🧚
  • -EINVAL β€” the device is being messy and indicates an invalid maximum line width (< 5120 pixels). invalid. not the vibe. πŸ™ˆ
  • >= 5120 β€” slay, that's the max line width in pixels ⭐🌈
lowkey important: 0 is not an error, it's a "go do the math with slice count and slice-width" situation. don't be out here treating it like a failure fr fr πŸ’€

πŸ’œ SEE ALSO πŸ’œ

this list is long long, so buckle up bestie. all of these are from the kernel file ./drivers/gpu/drm/display/drm_dp_helper.c β€” the dp helpers zone β€” and here's the full squad in order:

like I said. the whole squad. she knows everyone πŸ˜­πŸ’–


and that's the page bestie!! πŸŽ€ source is ./drivers/gpu/drm/display, version October 2026, Kernel API Manual β€” mwah, go read some DPCD, ily, bye πŸ¦‹πŸ’…βœ¨

πŸ“¦ where this page comes from