dvfsrc_calc_dram_bw_v4(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the struct mtk_dvfsrc of this driver instance. like, this specific driver's business, not somebody else's πŸ™ˆ
  • type β€” one of DVFSRC_BW_AVG, DVFSRC_BW_PEAK, or DVFSRC_BW_HRT. pick your fighter, bestie β€” those are the only three on the menu πŸ“
  • bw β€” the bandwidth in kilobits per second. it's a u64, 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