Lines Matching refs:calcm
290 u8 div, calcp, calcm = 1; in sun6i_get_ahb1_factors() local
312 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun6i_get_ahb1_factors()
318 req->rate = (req->parent_rate / calcm) >> calcp; in sun6i_get_ahb1_factors()
320 req->m = calcm - 1; in sun6i_get_ahb1_factors()
347 u8 calcm, calcp; in sun4i_get_apb1_factors() local
368 calcm = (div >> calcp) - 1; in sun4i_get_apb1_factors()
370 req->rate = (req->parent_rate >> calcp) / (calcm + 1); in sun4i_get_apb1_factors()
371 req->m = calcm; in sun4i_get_apb1_factors()
386 u8 div, calcm, calcp; in sun7i_a20_get_out_factors() local
404 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun7i_a20_get_out_factors()
406 req->rate = (req->parent_rate >> calcp) / calcm; in sun7i_a20_get_out_factors()
407 req->m = calcm - 1; in sun7i_a20_get_out_factors()