Searched refs:scaled_rate (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/clk/bcm/ |
H A D | clk-kona.c | 709 u64 scaled_rate; in clk_recalc_rate() local 711 scaled_rate = scale_rate(pre_div, parent_rate); in clk_recalc_rate() 712 scaled_rate = scale_rate(div, scaled_rate); in clk_recalc_rate() 714 scaled_parent_rate = DIV_ROUND_CLOSEST_ULL(scaled_rate, in clk_recalc_rate() 767 u64 scaled_rate; in round_rate() local 770 scaled_rate = scale_rate(pre_div, parent_rate); in round_rate() 771 scaled_rate = scale_rate(div, scaled_rate); in round_rate() 773 scaled_parent_rate = DIV_ROUND_CLOSEST_ULL(scaled_rate, in round_rate()
|
/openbmc/linux/drivers/iio/imu/ |
H A D | adis16475.c | 312 unsigned long scaled_rate = lcm(st->clk_freq, freq); in adis16475_set_freq() local 320 if (scaled_rate > 2100000) in adis16475_set_freq() 321 scaled_rate = 2100000 / st->clk_freq * st->clk_freq; in adis16475_set_freq() 323 scaled_rate = 2100000 / scaled_rate * scaled_rate; in adis16475_set_freq() 335 if (scaled_rate < 1900000 && !low_rate_allow) in adis16475_set_freq() 336 scaled_rate = roundup(1900000, st->clk_freq); in adis16475_set_freq() 338 sync_scale = scaled_rate / st->clk_freq; in adis16475_set_freq() 343 sample_rate = scaled_rate; in adis16475_set_freq()
|
H A D | adis16480.c | 355 unsigned long scaled_rate = lcm(st->clk_freq, t); in adis16480_set_freq() local 363 if (scaled_rate > st->chip_info->int_clk) in adis16480_set_freq() 364 scaled_rate = st->chip_info->int_clk / st->clk_freq * st->clk_freq; in adis16480_set_freq() 366 scaled_rate = st->chip_info->int_clk / scaled_rate * scaled_rate; in adis16480_set_freq() 378 if (scaled_rate < 4000000 && !low_rate_allow) in adis16480_set_freq() 379 scaled_rate = roundup(4000000, st->clk_freq); in adis16480_set_freq() 381 sync_scale = scaled_rate / st->clk_freq; in adis16480_set_freq() 386 sample_rate = scaled_rate; in adis16480_set_freq()
|