Home
last modified time | relevance | path

Searched refs:calcp (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/clk/sunxi/
H A Dclk-sunxi.c304 calcp = 0; in sun6i_get_ahb1_factors()
306 calcp = 1; in sun6i_get_ahb1_factors()
315 calcp = calcp > 3 ? 3 : calcp; in sun6i_get_ahb1_factors()
360 calcp = 0; in sun4i_get_apb1_factors()
362 calcp = 1; in sun4i_get_apb1_factors()
364 calcp = 2; in sun4i_get_apb1_factors()
366 calcp = 3; in sun4i_get_apb1_factors()
396 calcp = 0; in sun7i_a20_get_out_factors()
398 calcp = 1; in sun7i_a20_get_out_factors()
400 calcp = 2; in sun7i_a20_get_out_factors()
[all …]
H A Dclk-mod0.c25 u8 div, calcm, calcp; in sun4i_a10_get_mod0_factors() local
35 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()