Lines Matching refs:bestdiv
116 u32 *bestdiv) in zynqmp_get_divider2_val() argument
138 *bestdiv = 1; in zynqmp_get_divider2_val()
144 *bestdiv = div2; in zynqmp_get_divider2_val()
175 u32 bestdiv; in zynqmp_clk_divider_round_rate() local
180 ret = zynqmp_pm_clock_getdivider(clk_id, &bestdiv); in zynqmp_clk_divider_round_rate()
186 bestdiv = bestdiv & 0xFFFF; in zynqmp_clk_divider_round_rate()
188 bestdiv = bestdiv >> 16; in zynqmp_clk_divider_round_rate()
191 bestdiv = 1 << bestdiv; in zynqmp_clk_divider_round_rate()
193 return DIV_ROUND_UP_ULL((u64)*prate, bestdiv); in zynqmp_clk_divider_round_rate()
196 bestdiv = zynqmp_divider_get_val(*prate, rate, divider->flags); in zynqmp_clk_divider_round_rate()
205 zynqmp_get_divider2_val(hw, rate, divider, &bestdiv); in zynqmp_clk_divider_round_rate()
209 bestdiv = rate % *prate ? 1 : bestdiv; in zynqmp_clk_divider_round_rate()
211 bestdiv = min_t(u32, bestdiv, divider->max_div); in zynqmp_clk_divider_round_rate()
212 *prate = rate * bestdiv; in zynqmp_clk_divider_round_rate()