Home
last modified time | relevance | path

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

/linux/drivers/clk/rockchip/
H A Dclk-pll.c65 unsigned long drate, unsigned long *prate) in rockchip_pll_round_rate() argument
73 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate()
248 static int rockchip_rk3036_pll_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_rk3036_pll_set_rate() argument
255 __func__, __clk_get_name(hw->clk), drate, prate); in rockchip_rk3036_pll_set_rate()
258 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3036_pll_set_rate()
261 drate, __clk_get_name(hw->clk)); in rockchip_rk3036_pll_set_rate()
301 unsigned long drate; in rockchip_rk3036_pll_init() local
306 drate = clk_hw_get_rate(hw); in rockchip_rk3036_pll_init()
307 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3036_pll_init()
316 drate); in rockchip_rk3036_pll_init()
[all …]
H A Dclk-ddr.c29 static int rockchip_ddrclk_sip_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_ddrclk_sip_set_rate() argument
37 arm_smccc_smc(ROCKCHIP_SIP_DRAM_FREQ, drate, 0, in rockchip_ddrclk_sip_set_rate()
/linux/drivers/clk/spear/
H A Dclk-vco-pll.c81 static long clk_pll_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate_index() argument
99 if (drate < rate) { in clk_pll_round_rate_index()
113 static long clk_pll_round_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate() argument
118 return clk_pll_round_rate_index(hw, drate, prate, &unused); in clk_pll_round_rate()
141 static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_set_rate() argument
149 clk_pll_round_rate_index(hw, drate, NULL, &i); in clk_pll_set_rate()
179 static long clk_vco_round_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_round_rate() argument
185 return clk_round_rate_index(hw, drate, *prate, vco_calc_rate, in clk_vco_round_rate()
227 static int clk_vco_set_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_set_rate() argument
235 clk_round_rate_index(hw, drate, prate, vco_calc_rate, vco->rtbl_cnt, in clk_vco_set_rate()
H A Dclk-gpt-synth.c42 static long clk_gpt_round_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_round_rate() argument
48 return clk_round_rate_index(hw, drate, *prate, gpt_calc_rate, in clk_gpt_round_rate()
77 static int clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_set_rate() argument
85 clk_round_rate_index(hw, drate, prate, gpt_calc_rate, gpt->rtbl_cnt, in clk_gpt_set_rate()
H A Dclk-frac-synth.c55 static long clk_frac_round_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_round_rate() argument
61 return clk_round_rate_index(hw, drate, *prate, frac_calc_rate, in clk_frac_round_rate()
92 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_set_rate() argument
100 clk_round_rate_index(hw, drate, prate, frac_calc_rate, frac->rtbl_cnt, in clk_frac_set_rate()
H A Dclk.c13 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_round_rate_index() argument
22 if (drate < rate) { in clk_round_rate_index()
H A Dclk-aux-synth.c52 static long clk_aux_round_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_round_rate() argument
58 return clk_round_rate_index(hw, drate, *prate, aux_calc_rate, in clk_aux_round_rate()
96 static int clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_set_rate() argument
104 clk_round_rate_index(hw, drate, prate, aux_calc_rate, aux->rtbl_cnt, in clk_aux_set_rate()
H A Dclk.h127 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
/linux/drivers/clk/samsung/
H A Dclk-pll.c53 unsigned long drate, unsigned long *prate) in samsung_pll_round_rate() argument
61 if (drate >= rate_table[i].rate) in samsung_pll_round_rate()
249 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate() argument
257 rate = samsung_get_pll_settings(pll, drate); in samsung_pll35xx_set_rate()
260 drate, clk_hw_get_name(hw)); in samsung_pll35xx_set_rate()
363 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate() argument
370 rate = samsung_get_pll_settings(pll, drate); in samsung_pll36xx_set_rate()
373 drate, clk_hw_get_name(hw)); in samsung_pll36xx_set_rate()
472 static int samsung_pll0822x_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll0822x_set_rate() argument
485 rate = samsung_get_pll_settings(pll, drate); in samsung_pll0822x_set_rate()
[all …]
H A Dclk-cpu.c570 static long exynos_cpuclk_round_rate(struct clk_hw *hw, unsigned long drate, in exynos_cpuclk_round_rate() argument
574 *prate = clk_hw_round_rate(parent, drate); in exynos_cpuclk_round_rate()
/linux/drivers/clk/mmp/
H A Dclk-frac.c24 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()
77 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_set_rate() argument
93 if (rate > drate) in clk_factor_set_rate()
/linux/drivers/clk/imx/
H A Dclk-fracn-gppll.c226 static int clk_fracn_gppll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_fracn_gppll_set_rate() argument
234 rate = imx_get_pll_settings(pll, drate); in clk_fracn_gppll_set_rate()
/linux/arch/arm/mach-versatile/
H A Dspc.c500 static long spc_round_rate(struct clk_hw *hw, unsigned long drate, in spc_round_rate() argument
505 return ve_spc_round_performance(spc->cluster, drate); in spc_round_rate()
/linux/drivers/clk/st/
H A Dclkgen-fsyn.c775 static long quadfs_find_best_rate(struct clk_hw *hw, unsigned long drate, in quadfs_find_best_rate() argument
787 if (!clk_fs_get_params(prate, drate, params)) in quadfs_find_best_rate()
/linux/drivers/video/fbdev/sis/
H A Dsis_main.c1191 unsigned int drate = 0, hrate = 0; in sisfb_do_set_var() local
1219 drate = 1000000000 / pixclock; in sisfb_do_set_var()
1220 hrate = (drate * 1000) / htotal; in sisfb_do_set_var()
1437 unsigned int drate = 0, hrate = 0, maxyres; in sisfb_check_var() local
1525 drate = 1000000000 / pixclock; in sisfb_check_var()
1526 hrate = (drate * 1000) / htotal; in sisfb_check_var()
1543 drate = 1000000000 / pixclock; in sisfb_check_var()
1544 hrate = (drate * 1000) / htotal; in sisfb_check_var()