/linux-6.3-rc2/drivers/clk/rockchip/ |
A D | clk-pll.c | 73 if (drate >= rate_table[i].rate) in rockchip_pll_round_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() 316 drate); in rockchip_rk3036_pll_init() 496 drate, clk_hw_get_name(hw)); in rockchip_rk3066_pll_set_rate() 536 unsigned long drate; in rockchip_rk3066_pll_init() local 541 drate = clk_hw_get_rate(hw); in rockchip_rk3066_pll_init() 785 unsigned long drate; in rockchip_rk3399_pll_init() local 790 drate = clk_hw_get_rate(hw); in rockchip_rk3399_pll_init() [all …]
|
A D | clk-ddr.c | 29 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.3-rc2/drivers/clk/spear/ |
A D | clk-vco-pll.c | 81 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()
|
A D | clk-frac-synth.c | 55 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()
|
A D | clk-gpt-synth.c | 42 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()
|
A D | clk.c | 13 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()
|
A D | clk-aux-synth.c | 52 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()
|
A D | clk.h | 127 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
|
/linux-6.3-rc2/drivers/clk/samsung/ |
A D | clk-pll.c | 53 unsigned long drate, unsigned long *prate) in samsung_pll_round_rate() argument 61 if (drate >= rate_table[i].rate) in samsung_pll_round_rate() 259 drate, clk_hw_get_name(hw)); in samsung_pll35xx_set_rate() 368 drate, clk_hw_get_name(hw)); in samsung_pll36xx_set_rate() 462 drate, clk_hw_get_name(hw)); in samsung_pll0822x_set_rate() 551 drate, clk_hw_get_name(hw)); in samsung_pll0831x_set_rate() 661 drate, clk_hw_get_name(hw)); in samsung_pll45xx_set_rate() 798 drate, clk_hw_get_name(hw)); in samsung_pll46xx_set_rate() 1036 drate, clk_hw_get_name(hw)); in samsung_pll2550xx_set_rate() 1131 drate, clk_hw_get_name(hw)); in samsung_pll2650x_set_rate() [all …]
|
A D | clk-cpu.c | 106 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.3-rc2/drivers/clk/mmp/ |
A D | clk-frac.c | 24 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.3-rc2/drivers/clk/imx/ |
A D | clk-pll14xx.c | 286 static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1416x_set_rate() argument 294 rate = imx_get_pll_settings(pll, drate); in clk_pll1416x_set_rate() 296 pr_err("Invalid rate %lu for pll clk %s\n", drate, in clk_pll1416x_set_rate() 352 static int clk_pll1443x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1443x_set_rate() argument 360 imx_pll14xx_calc_settings(pll, drate, prate, &rate); in clk_pll1443x_set_rate()
|
A D | clk-fracn-gppll.c | 184 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.3-rc2/arch/arm/mach-versatile/ |
A D | spc.c | 500 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.3-rc2/drivers/clk/st/ |
A D | clkgen-fsyn.c | 775 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.3-rc2/drivers/video/fbdev/sis/ |
A D | sis_main.c | 1222 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()
|