Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/bcm/
H A Dclk-kona.c748 u64 best_scaled_div; in round_rate() local
785 best_scaled_div = DIV_ROUND_CLOSEST_ULL(scaled_parent_rate, in round_rate()
789 if (best_scaled_div > max_scaled_div) in round_rate()
790 best_scaled_div = max_scaled_div; in round_rate()
791 else if (best_scaled_div < min_scaled_div) in round_rate()
792 best_scaled_div = min_scaled_div; in round_rate()
794 best_scaled_div = divider_read_scaled(ccu, div); in round_rate()
798 result = DIV_ROUND_CLOSEST_ULL(scaled_parent_rate, best_scaled_div); in round_rate()
801 *scaled_div = best_scaled_div; in round_rate()