| /drivers/clk/rockchip/ |
| A D | clk-pll.c | 73 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate() 263 drate, __clk_get_name(hw->clk)); in rockchip_rk3036_pll_set_rate() 303 unsigned long drate; in rockchip_rk3036_pll_init() local 308 drate = clk_hw_get_rate(hw); in rockchip_rk3036_pll_init() 318 drate); in rockchip_rk3036_pll_init() 498 drate, clk_hw_get_name(hw)); in rockchip_rk3066_pll_set_rate() 538 unsigned long drate; in rockchip_rk3066_pll_init() local 543 drate = clk_hw_get_rate(hw); in rockchip_rk3066_pll_init() 787 unsigned long drate; in rockchip_rk3399_pll_init() local 792 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()
|
| /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-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.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.h | 127 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
|
| /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() 260 drate, clk_hw_get_name(hw)); in samsung_pll35xx_set_rate() 373 drate, clk_hw_get_name(hw)); in samsung_pll36xx_set_rate() 488 drate, clk_hw_get_name(hw)); in samsung_pll0822x_set_rate() 577 drate, clk_hw_get_name(hw)); in samsung_pll0831x_set_rate() 687 drate, clk_hw_get_name(hw)); in samsung_pll45xx_set_rate() 824 drate, clk_hw_get_name(hw)); in samsung_pll46xx_set_rate() 1062 drate, clk_hw_get_name(hw)); in samsung_pll2550xx_set_rate() 1157 drate, clk_hw_get_name(hw)); in samsung_pll2650x_set_rate() [all …]
|
| A D | clk-cpu.c | 570 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()
|
| /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 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()
|
| /drivers/clk/imx/ |
| A D | clk-pll14xx.c | 293 static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1416x_set_rate() argument 301 rate = imx_get_pll_settings(pll, drate); in clk_pll1416x_set_rate() 303 pr_err("Invalid rate %lu for pll clk %s\n", drate, in clk_pll1416x_set_rate() 359 static int clk_pll1443x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1443x_set_rate() argument 367 imx_pll14xx_calc_settings(pll, drate, prate, &rate); in clk_pll1443x_set_rate()
|
| A D | clk-fracn-gppll.c | 231 static int clk_fracn_gppll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_fracn_gppll_set_rate() argument 239 rate = imx_get_pll_settings(pll, drate); in clk_fracn_gppll_set_rate()
|
| /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()
|
| /drivers/video/fbdev/sis/ |
| A D | sis_main.c | 1191 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()
|