Lines Matching refs:prate
153 unsigned long *prate) in lgm_clk_divider_round_rate() argument
157 return divider_round_rate(hw, rate, prate, divider->table, in lgm_clk_divider_round_rate()
163 unsigned long prate) in lgm_clk_divider_set_rate() argument
169 value = divider_get_val(rate, prate, divider->table, in lgm_clk_divider_set_rate()
423 u64 prate; in lgm_clk_ddiv_recalc_rate() local
431 prate = (u64)parent_rate; in lgm_clk_ddiv_recalc_rate()
432 do_div(prate, div0); in lgm_clk_ddiv_recalc_rate()
433 do_div(prate, div1); in lgm_clk_ddiv_recalc_rate()
436 do_div(prate, ddiv->div); in lgm_clk_ddiv_recalc_rate()
437 prate *= ddiv->mult; in lgm_clk_ddiv_recalc_rate()
440 return prate; in lgm_clk_ddiv_recalc_rate()
496 unsigned long prate) in lgm_clk_ddiv_set_rate() argument
502 div = DIV_ROUND_CLOSEST_ULL((u64)prate, rate); in lgm_clk_ddiv_set_rate()
532 unsigned long *prate) in lgm_clk_ddiv_round_rate() argument
539 div = DIV_ROUND_CLOSEST_ULL((u64)*prate, rate); in lgm_clk_ddiv_round_rate()
550 return *prate; in lgm_clk_ddiv_round_rate()
556 rate64 = *prate; in lgm_clk_ddiv_round_rate()