| /linux/drivers/clk/rockchip/ |
| H A D | clk-pll.c | 256 static int rockchip_rk3036_pll_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_rk3036_pll_set_rate() argument 263 __func__, __clk_get_name(hw->clk), drate, prate); in rockchip_rk3036_pll_set_rate() 266 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3036_pll_set_rate() 269 drate, __clk_get_name(hw->clk)); in rockchip_rk3036_pll_set_rate() 309 unsigned long drate; in rockchip_rk3036_pll_init() local 314 drate = clk_hw_get_rate(hw); in rockchip_rk3036_pll_init() 315 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3036_pll_init() 324 drate); in rockchip_rk3036_pll_init() 491 static int rockchip_rk3066_pll_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_rk3066_pll_set_rate() argument 498 __func__, clk_hw_get_name(hw), drate, prate); in rockchip_rk3066_pll_set_rate() [all …]
|
| H 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/drivers/clk/samsung/ |
| H A D | clk-pll.c | 244 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate() argument 258 rate = samsung_get_pll_settings(pll, drate); in samsung_pll35xx_set_rate() 261 drate, clk_hw_get_name(hw)); in samsung_pll35xx_set_rate() 364 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate() argument 371 rate = samsung_get_pll_settings(pll, drate); in samsung_pll36xx_set_rate() 374 drate, clk_hw_get_name(hw)); in samsung_pll36xx_set_rate() 473 static int samsung_pll0822x_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll0822x_set_rate() argument 486 rate = samsung_get_pll_settings(pll, drate); in samsung_pll0822x_set_rate() 489 drate, clk_hw_get_name(hw)); in samsung_pll0822x_set_rate() 567 static int samsung_pll0831x_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll0831x_set_rate() argument [all …]
|
| /linux/drivers/clk/spear/ |
| H 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()
|
| H A D | clk-frac-synth.c | 94 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_set_rate() argument 102 clk_round_rate_index(hw, drate, prate, frac_calc_rate, frac->rtbl_cnt, in clk_frac_set_rate()
|
| H A D | clk-gpt-synth.c | 79 static int clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_set_rate() argument 87 clk_round_rate_index(hw, drate, prate, gpt_calc_rate, gpt->rtbl_cnt, in clk_gpt_set_rate()
|
| H A D | clk-aux-synth.c | 98 static int clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_set_rate() argument 106 clk_round_rate_index(hw, drate, prate, aux_calc_rate, aux->rtbl_cnt, in clk_aux_set_rate()
|
| H A D | clk.h | 127 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
|
| /linux/drivers/iio/adc/ |
| H A D | ti-ads1018.c | 251 u32 drate = ads1018->chip_info->data_rate_mode_to_hz[max_drate_mode]; in ads1018_single_shot() local 258 .value = ads1018_calc_delay(drate), in ads1018_single_shot() 489 unsigned int pga, drate, addr; in ads1018_buffer_preenable() local 495 drate = ads1018->chan_data[addr].data_rate_mode; in ads1018_buffer_preenable() 501 cfg |= FIELD_PREP(ADS1018_CFG_DRATE_MASK, drate); in ads1018_buffer_preenable()
|
| /linux/drivers/clk/imx/ |
| H A D | clk-pll14xx.c | 303 static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1416x_set_rate() argument 311 rate = imx_get_pll_settings(pll, drate); in clk_pll1416x_set_rate() 313 pr_err("Invalid rate %lu for pll clk %s\n", drate, in clk_pll1416x_set_rate() 369 static int clk_pll1443x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1443x_set_rate() argument 378 imx_pll14xx_calc_settings(pll, drate, prate, &rate); in clk_pll1443x_set_rate()
|
| /linux/drivers/clk/mmp/ |
| H A D | clk-frac.c | 78 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_set_rate() argument 94 if (rate > drate) in clk_factor_set_rate()
|
| /linux/drivers/clk/st/ |
| H A D | clkgen-fsyn.c | 774 static long quadfs_find_best_rate(struct clk_hw *hw, unsigned long drate, in quadfs_find_best_rate() argument 786 if (!clk_fs_get_params(prate, drate, params)) in quadfs_find_best_rate()
|