Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/microchip/
H A Dclk-core.c125 unsigned long div, div_up; in calc_best_divided_rate() local
133 div_up = clamp_val(div + 1, divider_min, divider_max); in calc_best_divided_rate()
136 divided_rate_down = parent_rate / div_up; in calc_best_divided_rate()
/openbmc/linux/sound/core/
H A Dpcm_lib.c557 static inline unsigned int div_up(unsigned int a, unsigned int b) in div_up() function
831 den = div_up(num, q); in snd_interval_ratnum()
897 t.max = div_up(best_num, best_den); in snd_interval_ratnum()
1000 t.max = div_up(best_num, best_den); in snd_interval_ratden()