amdgpu_pll_get_fb_ref_div(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ amdgpu_pll_get_fb_ref_div ✨

okay so bestie, welcome to the kernel API manual for amdgpu_pll_get_fb_ref_div(9) β€” yes that's the whole vibe, it's a function about dividers, and honestly? we're gonna make it cute πŸ’…


🌸 NAME 🌸

amdgpu_pll_get_fb_ref_div β€” feedback and ref divider calculation πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

void amdgpu_pll_get_fb_ref_div (struct amdgpu_device *adev , unsigned
int nom , unsigned int den , unsigned int post_div , unsigned int
fb_div_max , unsigned int ref_div_max , unsigned int *fb_div , unsigned
int *ref_div );

like, it returns void β€” so it doesn't hand you anything back directly, it writes into the pointers you give it. classic. 🫢

πŸ’– ARGUMENTS πŸ’–

  • adev β€” amdgpu_device pointer. it's the device, the whole main character basically πŸ‘‘
  • nom β€” nominator
  • den β€” denominator
  • post_div β€” post divider
  • fb_div_max β€” feedback divider maximum, as in: don't go past this, fr fr πŸ™ˆ
  • ref_div_max β€” reference divider maximum, same energy, this is the ceiling ⭐
  • fb_div β€” resulting feedback divider (this is where the answer goes ✨)
  • ref_div β€” resulting reference divider (and here's the other answer πŸŽ€)

🌈 DESCRIPTION 🌈

Calculate feedback and reference divider for a given post divider. and then β€” key detail, don't miss it β€” it makes sure we stay within the limits βœ…

so like, you pass in what you want, and it does the math and keeps everything inside the maximums you gave it. lowkey the responsible friend of the group. no cap. πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, honestly β€” go read them too, iykyk 🧚


okay that's the whole page bestie!! this one lives in ./drivers/gpu/drm/amd/amdgpu, it's dated October 2026, and it's the amdgpu_pll_get_fb_ref_div(9) Kernel API Manual entry. slay, go compute some dividers πŸ’…πŸ’–πŸŒΈ

πŸ“¦ where this page comes from