amdgpu_pll_get_fb_ref_div(9)
β¨ 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β nominatordenβ denominatorpost_divβ post dividerfb_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 π₯
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c amdgpu_pll_reduce_ratio(9)amdgpu_pll_compute(9)amdgpu_pll_get_use_mask(9)amdgpu_pll_get_shared_dp_ppll(9)amdgpu_pll_get_shared_nondp_ppll(9)
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
- 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