Home
last modified time | relevance | path

Searched refs:div_frc (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/clk/
Dclk-versaclock5.c152 u32 div_frc; member
413 u32 div_int, div_frc; in vc5_pll_recalc_rate() local
419 div_frc = (fb[2] << 16) | (fb[3] << 8) | fb[4]; in vc5_pll_recalc_rate()
422 return (parent_rate * div_int) + ((parent_rate * div_frc) >> 24); in vc5_pll_recalc_rate()
430 u64 div_frc; in vc5_pll_round_rate() local
443 div_frc = rate % *parent_rate; in vc5_pll_round_rate()
444 div_frc *= BIT(24) - 1; in vc5_pll_round_rate()
445 do_div(div_frc, *parent_rate); in vc5_pll_round_rate()
448 hwdata->div_frc = (u32)div_frc; in vc5_pll_round_rate()
450 return (*parent_rate * div_int) + ((*parent_rate * div_frc) >> 24); in vc5_pll_round_rate()
[all …]