Lines Matching refs:divider
380 unsigned long divider; in cdce925_calc_divider() local
387 divider = DIV_ROUND_CLOSEST(parent_rate, rate); in cdce925_calc_divider()
388 if (divider > 0x7F) in cdce925_calc_divider()
389 divider = 0x7F; in cdce925_calc_divider()
391 return (u16)divider; in cdce925_calc_divider()
441 u16 divider = cdce925_calc_divider(rate, l_parent_rate); in cdce925_clk_round_rate() local
443 if (l_parent_rate / divider != rate) { in cdce925_clk_round_rate()
445 divider = cdce925_calc_divider(rate, l_parent_rate); in cdce925_clk_round_rate()
449 if (divider) in cdce925_clk_round_rate()
450 return (long)(l_parent_rate / divider); in cdce925_clk_round_rate()
476 unsigned long divider; in cdce925_y1_calc_divider() local
483 divider = DIV_ROUND_CLOSEST(parent_rate, rate); in cdce925_y1_calc_divider()
484 if (divider > 0x3FF) /* Y1 has 10-bit divider */ in cdce925_y1_calc_divider()
485 divider = 0x3FF; in cdce925_y1_calc_divider()
487 return (u16)divider; in cdce925_y1_calc_divider()
494 u16 divider = cdce925_y1_calc_divider(rate, l_parent_rate); in cdce925_clk_y1_round_rate() local
496 if (divider) in cdce925_clk_y1_round_rate()
497 return (long)(l_parent_rate / divider); in cdce925_clk_y1_round_rate()