dvfsrc_calc_dram_bw_v4(9)
π dvfsrc_calc_dram_bw_v4(9) β like, the Kernel API Manual era π
okay so bestie, welcome to dvfsrc_calc_dram_bw_v4, straight out of the Kernel API Manual β¨ this one's a little function that takes your bandwidth in kbps and hands you back the glow-up version β the actual hardware register value. no cap, it's a converter π
β¨ NAME β¨
dvfsrc_calc_dram_bw_v4 β convert kbps to hardware register bandwidth value π¦
like literally, that's the whole job. kbps in, register value out. periodt π
π SYNOPSIS π
u32 dvfsrc_calc_dram_bw_v4 (struct mtk_dvfsrc *dvfsrc , enum
mtk_dvfsrc_bw_type type , u64 bw );
so it gives you back a u32, and it needs three things from you β the driver instance, the bandwidth type, and the bandwidth itself. main character function energy honestly π
πΈ ARGUMENTS πΈ
dvfsrcβ pointer to thestruct mtk_dvfsrcof this driver instance. like, this specific driver's business, not somebody else's πtypeβ one ofDVFSRC_BW_AVG,DVFSRC_BW_PEAK, orDVFSRC_BW_HRT. pick your fighter, bestie β those are the only three on the menu πbwβ the bandwidth in kilobits per second. it's au64, so go big or go home ngl π
π₯ DESCRIPTION π₯
Returns the hardware register value appropriate for expressing bw, clamped to hardware limits.
that's the tea β β you hand it your bandwidth, it hands back the register value that actually means that bandwidth in hardware-speak. and the clamped to hardware limits part? that's real β if your number's too extra, it gets pulled back to what the hardware can actually do. the hardware said "know your limits" and honestly? fair π β¨
π SEE ALSO π
- Kernel file
./drivers/soc/mediatek/mtk-dvfsrc.cβ go read the source, iykyk ππ
and that's the whole page bestie, no notes π«Ά this icon of a manpage comes to you from ./drivers/soc/mediatek, dated October 2026 β mwah, slay, bye ππ§πΈ
π¦ 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