Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/clk/qcom/
H A Dclk-hfpll.c133 unsigned long rrate; in clk_hfpll_round_rate() local
137 rrate = DIV_ROUND_UP(rate, *parent_rate) * *parent_rate; in clk_hfpll_round_rate()
138 if (rrate > hd->max_rate) in clk_hfpll_round_rate()
139 rrate -= *parent_rate; in clk_hfpll_round_rate()
141 return rrate; in clk_hfpll_round_rate()
H A Dclk-alpha-pll.c1154 unsigned long rrate, max = rate + PLL_RATE_MARGIN; in alpha_pll_fabia_set_rate() local
1156 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in alpha_pll_fabia_set_rate()
1162 if (rrate > (rate + PLL_RATE_MARGIN) || rrate < rate) { in alpha_pll_fabia_set_rate()
1164 clk_hw_get_name(hw), rrate, rate, max); in alpha_pll_fabia_set_rate()
1179 unsigned long cal_freq, rrate; in alpha_pll_fabia_prepare() local
1207 rrate = alpha_pll_round_rate(cal_freq, clk_hw_get_rate(parent_hw), in alpha_pll_fabia_prepare()
1213 if (rrate > (cal_freq + PLL_RATE_MARGIN) || rrate < cal_freq) in alpha_pll_fabia_prepare()
1486 unsigned long rrate; in alpha_pll_trion_set_rate() local
1491 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in alpha_pll_trion_set_rate()
1497 if (rrate > (rate + PLL_RATE_MARGIN) || rrate < rate) { in alpha_pll_trion_set_rate()