/drivers/clk/rockchip/ |
D | clk-pll.c | 65 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 …]
|
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/ |
D | clk-vco-pll.c | 84 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()
|
D | clk-gpt-synth.c | 45 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()
|
D | clk-frac-synth.c | 58 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()
|
D | clk-aux-synth.c | 55 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()
|
D | clk.c | 16 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()
|
D | clk.h | 130 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
|
/drivers/clk/samsung/ |
D | clk-pll.c | 50 unsigned long drate, unsigned long *prate) in samsung_pll_round_rate() argument 58 if (drate >= rate_table[i].rate) in samsung_pll_round_rate() 204 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate() argument 212 rate = samsung_get_pll_settings(pll, drate); in samsung_pll35xx_set_rate() 215 drate, clk_hw_get_name(hw)); in samsung_pll35xx_set_rate() 317 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate() argument 324 rate = samsung_get_pll_settings(pll, drate); in samsung_pll36xx_set_rate() 327 drate, clk_hw_get_name(hw)); in samsung_pll36xx_set_rate() 434 static int samsung_pll45xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll45xx_set_rate() argument 443 rate = samsung_get_pll_settings(pll, drate); in samsung_pll45xx_set_rate() [all …]
|
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()
|
/drivers/clk/mmp/ |
D | clk-frac.c | 27 static long clk_factor_round_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_round_rate() argument 40 if (rate > drate) in clk_factor_round_rate() 46 if ((drate - prev_rate) > (rate - drate)) in clk_factor_round_rate() 80 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_set_rate() argument 95 if (rate > drate) in clk_factor_set_rate()
|
/drivers/clk/imx/ |
D | clk-pll14xx.c | 179 static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1416x_set_rate() argument 187 rate = imx_get_pll_settings(pll, drate); in clk_pll1416x_set_rate() 190 drate, clk_hw_get_name(hw)); in clk_pll1416x_set_rate() 245 static int clk_pll1443x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1443x_set_rate() argument 253 rate = imx_get_pll_settings(pll, drate); in clk_pll1443x_set_rate() 256 drate, clk_hw_get_name(hw)); in clk_pll1443x_set_rate()
|
/drivers/clk/st/ |
D | clkgen-fsyn.c | 713 static long quadfs_find_best_rate(struct clk_hw *hw, unsigned long drate, in quadfs_find_best_rate() argument 725 if (!clk_fs_get_params(prate, drate, params)) in quadfs_find_best_rate()
|
/drivers/video/fbdev/sis/ |
D | sis_main.c | 1221 unsigned int drate = 0, hrate = 0; in sisfb_do_set_var() local 1249 drate = 1000000000 / pixclock; in sisfb_do_set_var() 1250 hrate = (drate * 1000) / htotal; in sisfb_do_set_var() 1467 unsigned int drate = 0, hrate = 0, maxyres; in sisfb_check_var() local 1555 drate = 1000000000 / pixclock; in sisfb_check_var() 1556 hrate = (drate * 1000) / htotal; in sisfb_check_var() 1573 drate = 1000000000 / pixclock; in sisfb_check_var() 1574 hrate = (drate * 1000) / htotal; in sisfb_check_var()
|