Home
last modified time | relevance | path

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

/linux/drivers/clk/rockchip/
H A Dclk-pll.c256 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 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/drivers/clk/samsung/
H A Dclk-pll.c244 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 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()
H A Dclk-frac-synth.c94 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 Dclk-gpt-synth.c79 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 Dclk-aux-synth.c98 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 Dclk.h127 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
/linux/drivers/iio/adc/
H A Dti-ads1018.c251 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 Dclk-pll14xx.c303 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 Dclk-frac.c78 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 Dclkgen-fsyn.c774 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()