Searched refs:calcp (Results 1 – 2 of 2) sorted by relevance
290 u8 div, calcp, calcm = 1; in sun6i_get_ahb1_factors() local304 calcp = 0; in sun6i_get_ahb1_factors()306 calcp = 1; in sun6i_get_ahb1_factors()308 calcp = 2; in sun6i_get_ahb1_factors()310 calcp = 3; in sun6i_get_ahb1_factors()312 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun6i_get_ahb1_factors()314 calcp = __roundup_pow_of_two(div); in sun6i_get_ahb1_factors()315 calcp = calcp > 3 ? 3 : calcp; in sun6i_get_ahb1_factors()318 req->rate = (req->parent_rate / calcm) >> calcp; in sun6i_get_ahb1_factors()319 req->p = calcp; in sun6i_get_ahb1_factors()[all …]
25 u8 div, calcm, calcp; in sun4i_a10_get_mod0_factors() local35 calcp = 0; in sun4i_a10_get_mod0_factors()37 calcp = 1; in sun4i_a10_get_mod0_factors()39 calcp = 2; in sun4i_a10_get_mod0_factors()41 calcp = 3; in sun4i_a10_get_mod0_factors()43 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun4i_a10_get_mod0_factors()45 req->rate = (req->parent_rate >> calcp) / calcm; in sun4i_a10_get_mod0_factors()47 req->p = calcp; in sun4i_a10_get_mod0_factors()