Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/clk/rockchip/
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 …]
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-6.1.9/drivers/clk/spear/
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()
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()
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()
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()
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()
Dclk.h127 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
/linux-6.1.9/drivers/clk/samsung/
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()
248 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate() argument
256 rate = samsung_get_pll_settings(pll, drate); in samsung_pll35xx_set_rate()
259 drate, clk_hw_get_name(hw)); in samsung_pll35xx_set_rate()
358 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate() argument
365 rate = samsung_get_pll_settings(pll, drate); in samsung_pll36xx_set_rate()
368 drate, clk_hw_get_name(hw)); in samsung_pll36xx_set_rate()
451 static int samsung_pll0822x_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll0822x_set_rate() argument
459 rate = samsung_get_pll_settings(pll, drate); in samsung_pll0822x_set_rate()
[all …]
Dclk-cpu.c106 unsigned long drate, unsigned long *prate) in exynos_cpuclk_round_rate() argument
109 *prate = clk_hw_round_rate(parent, drate); in exynos_cpuclk_round_rate()
/linux-6.1.9/drivers/clk/mmp/
Dclk-frac.c24 static long clk_factor_round_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_round_rate() argument
37 if (rate > drate) in clk_factor_round_rate()
43 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
92 if (rate > drate) in clk_factor_set_rate()
/linux-6.1.9/drivers/clk/imx/
Dclk-pll14xx.c284 static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1416x_set_rate() argument
292 rate = imx_get_pll_settings(pll, drate); in clk_pll1416x_set_rate()
294 pr_err("Invalid rate %lu for pll clk %s\n", drate, in clk_pll1416x_set_rate()
350 static int clk_pll1443x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1443x_set_rate() argument
358 imx_pll14xx_calc_settings(pll, drate, prate, &rate); in clk_pll1443x_set_rate()
Dclk-fracn-gppll.c184 static int clk_fracn_gppll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_fracn_gppll_set_rate() argument
192 rate = imx_get_pll_settings(pll, drate); in clk_fracn_gppll_set_rate()
/linux-6.1.9/arch/arm/mach-versatile/
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-6.1.9/drivers/clk/st/
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-6.1.9/drivers/video/fbdev/sis/
Dsis_main.c1222 unsigned int drate = 0, hrate = 0; in sisfb_do_set_var() local
1250 drate = 1000000000 / pixclock; in sisfb_do_set_var()
1251 hrate = (drate * 1000) / htotal; in sisfb_do_set_var()
1468 unsigned int drate = 0, hrate = 0, maxyres; in sisfb_check_var() local
1554 drate = 1000000000 / pixclock; in sisfb_check_var()
1555 hrate = (drate * 1000) / htotal; in sisfb_check_var()
1572 drate = 1000000000 / pixclock; in sisfb_check_var()
1573 hrate = (drate * 1000) / htotal; in sisfb_check_var()