Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/microchip/
H A Dclk-core.c295 u32 rodiv, u32 rotrim) in roclk_calc_rate() argument
305 rodiv = (rodiv << 9) + rotrim; in roclk_calc_rate()
308 do_div(rate64, rodiv); in roclk_calc_rate()
309 } else if (rodiv) { in roclk_calc_rate()
321 u32 div, rotrim, rodiv; in roclk_calc_div_trim() local
338 rodiv = 0; in roclk_calc_div_trim()
352 *rodiv_p = rodiv; in roclk_calc_div_trim()
362 u32 v, rodiv, rotrim; in roclk_recalc_rate() local
378 u32 rotrim, rodiv; in roclk_round_rate() local
482 u32 trim, rodiv, v; in roclk_set_rate_and_parent() local
[all …]
/openbmc/u-boot/drivers/clk/
H A Dclk_pic32.c231 u32 rodiv, rotrim, rosel, v, parent_rate; in pic32_get_refclk() local
242 rodiv = (v >> REFO_DIV_SHIFT) & REFO_DIV_MASK; in pic32_get_refclk()
248 if (!rodiv) in pic32_get_refclk()
268 rodiv <<= 9; in pic32_get_refclk()
269 rodiv += rotrim; in pic32_get_refclk()
272 do_div(rate64, rodiv); in pic32_get_refclk()
275 v = parent_rate / (rodiv << 1); in pic32_get_refclk()