Home
last modified time | relevance | path

Searched refs:calcm (Results 1 – 3 of 3) sorted by relevance

/drivers/clk/sunxi/
Dclk-sunxi.c86 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()
[all …]
Dclk-sun9i-core.c269 u8 calcm, calcp; in sun9i_a80_get_apb1_factors() local
281 calcm = (parent_rate >> calcp) - 1; in sun9i_a80_get_apb1_factors()
282 *freq = (parent_rate >> calcp) / (calcm + 1); in sun9i_a80_get_apb1_factors()
288 *m = calcm; in sun9i_a80_get_apb1_factors()
Dclk-mod0.c34 u8 div, calcm, calcp; in sun4i_a10_get_mod0_factors() local
52 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun4i_a10_get_mod0_factors()
54 *freq = (parent_rate >> calcp) / calcm; in sun4i_a10_get_mod0_factors()
60 *m = calcm - 1; in sun4i_a10_get_mod0_factors()