Lines Matching refs:calcm
86 u8 div, calcp, calcm = 1; in sun6i_ahb1_clk_round() local
108 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun6i_ahb1_clk_round()
117 *pre_divp = calcm - 1; in sun6i_ahb1_clk_round()
120 return (parent_rate / calcm) >> calcp; in sun6i_ahb1_clk_round()
533 u8 calcm, calcp; in sun4i_get_apb1_factors() local
553 calcm = (parent_rate >> calcp) - 1; in sun4i_get_apb1_factors()
555 *freq = (parent_rate >> calcp) / (calcm + 1); in sun4i_get_apb1_factors()
561 *m = calcm; in sun4i_get_apb1_factors()
577 u8 div, calcm, calcp; in sun7i_a20_get_out_factors() local
595 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun7i_a20_get_out_factors()
597 *freq = (parent_rate >> calcp) / calcm; in sun7i_a20_get_out_factors()
603 *m = calcm - 1; in sun7i_a20_get_out_factors()