Home
last modified time | relevance | path

Searched refs:scaled_rate (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/clk/bcm/
H A Dclk-kona.c709 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 Dadis16475.c312 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 Dadis16480.c355 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()