Lines Matching refs:bestdiv
39 unsigned int i, bestdiv = 0; in clk_half_divider_bestdiv() local
50 bestdiv = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), rate); in clk_half_divider_bestdiv()
51 if (bestdiv < 3) in clk_half_divider_bestdiv()
52 bestdiv = 0; in clk_half_divider_bestdiv()
54 bestdiv = (bestdiv - 3) / 2; in clk_half_divider_bestdiv()
55 bestdiv = bestdiv > maxdiv ? maxdiv : bestdiv; in clk_half_divider_bestdiv()
56 return bestdiv; in clk_half_divider_bestdiv()
81 bestdiv = i; in clk_half_divider_bestdiv()
87 if (!bestdiv) { in clk_half_divider_bestdiv()
88 bestdiv = div_mask(width); in clk_half_divider_bestdiv()
92 return bestdiv; in clk_half_divider_bestdiv()