Home
last modified time | relevance | path

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

/drivers/clk/spear/
Dclk-vco-pll.c84 static long clk_pll_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate_index() argument
102 if (drate < rate) { in clk_pll_round_rate_index()
116 static long clk_pll_round_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate() argument
121 return clk_pll_round_rate_index(hw, drate, prate, &unused); in clk_pll_round_rate()
144 static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_set_rate() argument
152 clk_pll_round_rate_index(hw, drate, NULL, &i); in clk_pll_set_rate()
182 static long clk_vco_round_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_round_rate() argument
188 return clk_round_rate_index(hw, drate, *prate, vco_calc_rate, in clk_vco_round_rate()
230 static int clk_vco_set_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_set_rate() argument
238 clk_round_rate_index(hw, drate, prate, vco_calc_rate, vco->rtbl_cnt, in clk_vco_set_rate()
Dclk-frac-synth.c58 static long clk_frac_round_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_round_rate() argument
64 return clk_round_rate_index(hw, drate, *prate, frac_calc_rate, in clk_frac_round_rate()
95 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_set_rate() argument
103 clk_round_rate_index(hw, drate, prate, frac_calc_rate, frac->rtbl_cnt, in clk_frac_set_rate()
Dclk-gpt-synth.c45 static long clk_gpt_round_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_round_rate() argument
51 return clk_round_rate_index(hw, drate, *prate, gpt_calc_rate, in clk_gpt_round_rate()
80 static int clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_set_rate() argument
88 clk_round_rate_index(hw, drate, prate, gpt_calc_rate, gpt->rtbl_cnt, in clk_gpt_set_rate()
Dclk-aux-synth.c55 static long clk_aux_round_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_round_rate() argument
61 return clk_round_rate_index(hw, drate, *prate, aux_calc_rate, in clk_aux_round_rate()
99 static int clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_set_rate() argument
107 clk_round_rate_index(hw, drate, prate, aux_calc_rate, aux->rtbl_cnt, in clk_aux_set_rate()
Dclk.c16 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_round_rate_index() argument
25 if (drate < rate) { in clk_round_rate_index()
Dclk.h130 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
/drivers/clk/rockchip/
Dclk-pll.c66 unsigned long drate, unsigned long *prate) in rockchip_pll_round_rate() argument
74 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate()
232 static int rockchip_rk3066_pll_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_rk3066_pll_set_rate() argument
247 __func__, clk_hw_get_name(hw), old_rate, drate, prate); in rockchip_rk3066_pll_set_rate()
250 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3066_pll_set_rate()
253 drate, clk_hw_get_name(hw)); in rockchip_rk3066_pll_set_rate()
292 unsigned long drate; in rockchip_rk3066_pll_init() local
297 drate = clk_hw_get_rate(hw); in rockchip_rk3066_pll_init()
298 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3066_pll_init()
307 __func__, clk_hw_get_name(hw), drate, rate->nr, cur.nr, in rockchip_rk3066_pll_init()
/drivers/clk/samsung/
Dclk-pll.c48 unsigned long drate, unsigned long *prate) in samsung_pll_round_rate() argument
56 if (drate >= rate_table[i].rate) in samsung_pll_round_rate()
174 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate() argument
182 rate = samsung_get_pll_settings(pll, drate); in samsung_pll35xx_set_rate()
185 drate, clk_hw_get_name(hw)); in samsung_pll35xx_set_rate()
283 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate() argument
290 rate = samsung_get_pll_settings(pll, drate); in samsung_pll36xx_set_rate()
293 drate, clk_hw_get_name(hw)); in samsung_pll36xx_set_rate()
396 static int samsung_pll45xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll45xx_set_rate() argument
405 rate = samsung_get_pll_settings(pll, drate); in samsung_pll45xx_set_rate()
[all …]
Dclk-cpu.c101 unsigned long drate, unsigned long *prate) in exynos_cpuclk_round_rate() argument
104 *prate = clk_hw_round_rate(parent, drate); in exynos_cpuclk_round_rate()
/drivers/clk/mmp/
Dclk-frac.c27 static long clk_factor_round_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_round_rate() argument
38 if (rate > drate) in clk_factor_round_rate()
44 if ((drate - prev_rate) > (rate - drate)) in clk_factor_round_rate()
74 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_set_rate() argument
88 if (rate > drate) in clk_factor_set_rate()
/drivers/staging/xgifb/
DXGI_main_26.c933 unsigned int drate = 0, hrate = 0; in XGIfb_do_set_var() local
953 drate = 1000000000 / var->pixclock; in XGIfb_do_set_var()
954 hrate = (drate * 1000) / htotal; in XGIfb_do_set_var()
1231 unsigned int drate = 0, hrate = 0; in XGIfb_check_var() local
1256 drate = 1000000000 / var->pixclock; in XGIfb_check_var()
1257 hrate = (drate * 1000) / htotal; in XGIfb_check_var()
1264 __func__, drate, hrate, xgifb_info->refresh_rate); in XGIfb_check_var()
/drivers/clk/st/
Dclkgen-fsyn.c892 static long quadfs_find_best_rate(struct clk_hw *hw, unsigned long drate, in quadfs_find_best_rate() argument
913 diff_rate = abs(drate - rate); in quadfs_find_best_rate()
923 if (drate == rate) in quadfs_find_best_rate()
/drivers/video/fbdev/sis/
Dsis_main.c1184 unsigned int drate = 0, hrate = 0; in sisfb_do_set_var() local
1212 drate = 1000000000 / pixclock; in sisfb_do_set_var()
1213 hrate = (drate * 1000) / htotal; in sisfb_do_set_var()
1430 unsigned int drate = 0, hrate = 0, maxyres; in sisfb_check_var() local
1516 drate = 1000000000 / pixclock; in sisfb_check_var()
1517 hrate = (drate * 1000) / htotal; in sisfb_check_var()
1534 drate = 1000000000 / pixclock; in sisfb_check_var()
1535 hrate = (drate * 1000) / htotal; in sisfb_check_var()