_dpu_plane_calc_clk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _dpu_plane_calc_clk(9) πŸ’…

ok so this is a page from the Kernel API Manual, section 9 β€” yes bestie, section 9, we're in the Big Kid driver zone 🫢 and this one is all about figuring out how much clock a plane needs. literally calculating clocks. main character math energy. ✨


🌸 NAME 🌸

_dpu_plane_calc_clk β€” calculate the clock required for a plane πŸ’–

like, that's the whole vibe. it takes a plane and figures out the clock it needs. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

u64 _dpu_plane_calc_clk (const struct drm_display_mode *mode , struct
       dpu_sw_pipe_cfg *pipe_cfg );

it returns a u64, it takes two pointers, and it does not want to hear your opinions. periodt. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • mode β€” a pointer to the drm_display_mode. that's the display mode, babe. the whole timing situation. she's the blueprint πŸ’…
  • pipe_cfg β€” a pointer to the pipe configuration. this is our pipe setup bestie 🧚
ok and this part is important so listen up 🫢 β€” Result: it updates the calculated clock in the plane state. it doesn't just hand you a number and walk away, it sets it in the state. iykyk.

and here's the equation it's working with, iconically:

dst_w * v_total * fps * (src_h / dst_h)
that's the clock equation, exactly as written, don't come for me 😭 that's how the page gives it. dst_w times v_total times fps times (src_h / dst_h). eat your heart out, algebra. πŸ”₯

⭐ SEE ALSO ⭐

ok so the whole squad shows up here β€” first the crib, then the friends:

like, that's the entire group chat right there 🀝 go read them too, they're all linked in ./drivers/gpu/drm/msm/disp/dpu1 and honestly? iconic. ✨


πŸ’œ anyway bestie that's the whole page β€” clock math, a display mode, a pipe config, and a state update. slay.

and that's a wrap!! 🎬 this one came at you from ./drivers/gpu/drm/msm/disp/dpu1, dated October 2026 β€” so like, very much a future vibe, we love that for us πŸ¦‹πŸ’« mwah!! 🌈

πŸ“¦ where this page comes from