Home
last modified time | relevance | path

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

/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()
/linux/drivers/iio/imu/
H A Dadis16480.c352 unsigned long scaled_rate = lcm(st->clk_freq, t); in adis16480_set_freq() local
360 if (scaled_rate > st->chip_info->int_clk) in adis16480_set_freq()
361 scaled_rate = st->chip_info->int_clk / st->clk_freq * st->clk_freq; in adis16480_set_freq()
363 scaled_rate = st->chip_info->int_clk / scaled_rate * scaled_rate; in adis16480_set_freq()
375 if (scaled_rate < 4000000 && !low_rate_allow) in adis16480_set_freq()
376 scaled_rate = roundup(4000000, st->clk_freq); in adis16480_set_freq()
378 sync_scale = scaled_rate / st->clk_freq; in adis16480_set_freq()
383 sample_rate = scaled_rate; in adis16480_set_freq()
H A Dadis16475.c350 unsigned long scaled_rate = lcm(st->clk_freq, freq); in adis16475_set_freq() local
358 if (scaled_rate > max_sample_rate) in adis16475_set_freq()
359 scaled_rate = max_sample_rate / st->clk_freq * st->clk_freq; in adis16475_set_freq()
361 scaled_rate = max_sample_rate / scaled_rate * scaled_rate; in adis16475_set_freq()
374 if (scaled_rate < min_sample_rate && !low_rate_allow) in adis16475_set_freq()
375 scaled_rate = roundup(min_sample_rate, st->clk_freq); in adis16475_set_freq()
377 sync_scale = scaled_rate / st->clk_freq; in adis16475_set_freq()
382 sample_rate = scaled_rate; in adis16475_set_freq()