| /kernel/linux/linux-4.19/drivers/clk/qcom/ |
| D | clk-rcg2.c | 133 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 hid_div) in calc_rate() 181 unsigned long clk_flags, rate = req->rate; in _freq_tbl_determine_rate() local 299 static int __clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate, in __clk_rcg2_set_rate() 322 static int clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg2_set_rate() 328 static int clk_rcg2_set_floor_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg2_set_floor_rate() 335 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg2_set_rate_and_parent() 341 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg2_set_floor_rate_and_parent() 395 static int clk_edp_pixel_set_rate(struct clk_hw *hw, unsigned long rate, in clk_edp_pixel_set_rate() 435 unsigned long rate, unsigned long parent_rate, u8 index) in clk_edp_pixel_set_rate_and_parent() 519 static int clk_byte_set_rate(struct clk_hw *hw, unsigned long rate, in clk_byte_set_rate() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
| D | clock.c | 132 static int calc_dsor_exp(struct clk *clk, unsigned long rate) in calc_dsor_exp() 191 int omap1_select_table_rate(struct clk *clk, unsigned long rate) in omap1_select_table_rate() 226 int omap1_clk_set_rate_dsp_domain(struct clk *clk, unsigned long rate) in omap1_clk_set_rate_dsp_domain() 246 long omap1_clk_round_rate_ckctl_arm(struct clk *clk, unsigned long rate) in omap1_clk_round_rate_ckctl_arm() 256 int omap1_clk_set_rate_ckctl_arm(struct clk *clk, unsigned long rate) in omap1_clk_set_rate_ckctl_arm() 276 long omap1_round_to_table_rate(struct clk *clk, unsigned long rate) in omap1_round_to_table_rate() 304 static unsigned calc_ext_dsor(unsigned long rate) in calc_ext_dsor() 327 int omap1_set_uart_rate(struct clk *clk, unsigned long rate) in omap1_set_uart_rate() 345 int omap1_set_ext_clk_rate(struct clk *clk, unsigned long rate) in omap1_set_ext_clk_rate() 363 int omap1_set_sossi_rate(struct clk *clk, unsigned long rate) in omap1_set_sossi_rate() [all …]
|
| /kernel/linux/linux-4.19/drivers/i2c/busses/ |
| D | i2c-synquacer.c | 22 #define WAIT_PCLK(n, rate) \ argument 66 #define SYNQUACER_I2C_BUS_CLK_FR(rate) (((rate) / 20000000) + 1) argument 69 #define SYNQUACER_I2C_CLK_MASTER_STD(rate) \ argument 72 #define SYNQUACER_I2C_CLK_MASTER_FAST(rate) \ argument 77 #define SYNQUACER_I2C_CCR_CS_STD_MAX_18M(rate) \ argument 82 #define SYNQUACER_I2C_CSR_CS_STD_MAX_18M(rate) 0x00 argument 85 #define SYNQUACER_I2C_CCR_CS_FAST_MAX_18M(rate) \ argument 90 #define SYNQUACER_I2C_CSR_CS_FAST_MAX_18M(rate) 0x00 argument 94 #define SYNQUACER_I2C_CCR_CS_STD_MIN_18M(rate) \ argument 99 #define SYNQUACER_I2C_CSR_CS_STD_MIN_18M(rate) \ argument [all …]
|
| /kernel/linux/linux-5.10/drivers/i2c/busses/ |
| D | i2c-synquacer.c | 22 #define WAIT_PCLK(n, rate) \ argument 66 #define SYNQUACER_I2C_BUS_CLK_FR(rate) (((rate) / 20000000) + 1) argument 69 #define SYNQUACER_I2C_CLK_MASTER_STD(rate) \ argument 72 #define SYNQUACER_I2C_CLK_MASTER_FAST(rate) \ argument 77 #define SYNQUACER_I2C_CCR_CS_STD_MAX_18M(rate) \ argument 82 #define SYNQUACER_I2C_CSR_CS_STD_MAX_18M(rate) 0x00 argument 85 #define SYNQUACER_I2C_CCR_CS_FAST_MAX_18M(rate) \ argument 90 #define SYNQUACER_I2C_CSR_CS_FAST_MAX_18M(rate) 0x00 argument 94 #define SYNQUACER_I2C_CCR_CS_STD_MIN_18M(rate) \ argument 99 #define SYNQUACER_I2C_CSR_CS_STD_MIN_18M(rate) \ argument [all …]
|
| /kernel/linux/linux-4.19/drivers/clk/actions/ |
| D | owl-factor.c | 45 unsigned long rate, unsigned long parent_rate) in _get_table_val() 68 struct clk_hw *hw, unsigned long rate, in owl_clk_val_best() 122 unsigned long rate, in owl_factor_helper_round_rate() 134 static long owl_factor_round_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_round_rate() 149 unsigned long long int rate; in owl_factor_helper_recalc_rate() local 186 unsigned long rate, in owl_factor_helper_set_rate() 206 static int owl_factor_set_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_set_rate()
|
| D | owl-composite.c | 56 static long owl_comp_div_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_round_rate() 74 static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_set_rate() 83 static long owl_comp_fact_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fact_round_rate() 103 static int owl_comp_fact_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fact_set_rate() 113 static long owl_comp_fix_fact_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fix_fact_round_rate() 132 static int owl_comp_fix_fact_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fix_fact_set_rate()
|
| D | owl-divider.c | 18 unsigned long rate, in owl_divider_helper_round_rate() 26 static long owl_divider_round_rate(struct clk_hw *hw, unsigned long rate, in owl_divider_round_rate() 63 unsigned long rate, in owl_divider_helper_set_rate() 81 static int owl_divider_set_rate(struct clk_hw *hw, unsigned long rate, in owl_divider_set_rate()
|
| /kernel/linux/linux-5.10/drivers/clk/actions/ |
| D | owl-factor.c | 45 unsigned long rate, unsigned long parent_rate) in _get_table_val() 68 struct clk_hw *hw, unsigned long rate, in owl_clk_val_best() 122 unsigned long rate, in owl_factor_helper_round_rate() 134 static long owl_factor_round_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_round_rate() 149 unsigned long long int rate; in owl_factor_helper_recalc_rate() local 186 unsigned long rate, in owl_factor_helper_set_rate() 206 static int owl_factor_set_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_set_rate()
|
| D | owl-composite.c | 56 static long owl_comp_div_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_round_rate() 74 static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_set_rate() 83 static long owl_comp_fact_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fact_round_rate() 103 static int owl_comp_fact_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fact_set_rate() 113 static long owl_comp_fix_fact_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fix_fact_round_rate() 132 static int owl_comp_fix_fact_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fix_fact_set_rate()
|
| D | owl-divider.c | 18 unsigned long rate, in owl_divider_helper_round_rate() 26 static long owl_divider_round_rate(struct clk_hw *hw, unsigned long rate, in owl_divider_round_rate() 63 unsigned long rate, in owl_divider_helper_set_rate() 81 static int owl_divider_set_rate(struct clk_hw *hw, unsigned long rate, in owl_divider_set_rate()
|
| /kernel/linux/linux-4.19/arch/mips/ralink/ |
| D | clk.c | 22 unsigned long rate; member 25 void ralink_clk_add(const char *dev, unsigned long rate) in ralink_clk_add() 63 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 69 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
|
| /kernel/linux/linux-5.10/arch/mips/ralink/ |
| D | clk.c | 20 unsigned long rate; member 23 void ralink_clk_add(const char *dev, unsigned long rate) in ralink_clk_add() 61 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 67 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
|
| /kernel/linux/linux-4.19/drivers/clk/ |
| D | clk-multiplier.c | 18 unsigned long rate, in __get_mult() 42 static bool __is_best_rate(unsigned long rate, unsigned long new, in __is_best_rate() 51 static unsigned long __bestmult(struct clk_hw *hw, unsigned long rate, in __bestmult() 101 static long clk_multiplier_round_rate(struct clk_hw *hw, unsigned long rate, in clk_multiplier_round_rate() 111 static int clk_multiplier_set_rate(struct clk_hw *hw, unsigned long rate, in clk_multiplier_set_rate()
|
| /kernel/linux/linux-4.19/arch/arm/mach-ep93xx/ |
| D | clock.c | 32 unsigned long rate; member 315 unsigned long rate = clk_get_rate(clk->parent); in get_uart_rate() local 334 static int set_keytchclk_rate(struct clk *clk, unsigned long rate) in set_keytchclk_rate() 362 static int calc_clk_div(struct clk *clk, unsigned long rate, in calc_clk_div() 418 static int set_div_rate(struct clk *clk, unsigned long rate) in set_div_rate() 439 static int set_i2s_sclk_rate(struct clk *clk, unsigned long rate) in set_i2s_sclk_rate() 456 static int set_i2s_lrclk_rate(struct clk *clk, unsigned long rate) in set_i2s_lrclk_rate() 477 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 486 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 516 unsigned long long rate; in calc_pll_rate() local
|
| /kernel/linux/linux-5.10/arch/arm/mach-ep93xx/ |
| D | clock.c | 29 unsigned long rate; member 312 unsigned long rate = clk_get_rate(clk->parent); in get_uart_rate() local 331 static int set_keytchclk_rate(struct clk *clk, unsigned long rate) in set_keytchclk_rate() 359 static int calc_clk_div(struct clk *clk, unsigned long rate, in calc_clk_div() 415 static int set_div_rate(struct clk *clk, unsigned long rate) in set_div_rate() 436 static int set_i2s_sclk_rate(struct clk *clk, unsigned long rate) in set_i2s_sclk_rate() 453 static int set_i2s_lrclk_rate(struct clk *clk, unsigned long rate) in set_i2s_lrclk_rate() 474 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 483 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 513 unsigned long long rate; in calc_pll_rate() local
|
| /kernel/linux/linux-5.10/drivers/clk/meson/ |
| D | clk-pll.c | 60 u64 rate = (u64)parent_rate * m; in __pll_params_to_rate() local 98 static unsigned int __pll_params_with_frac(unsigned long rate, in __pll_params_with_frac() 121 static bool meson_clk_pll_is_better(unsigned long rate, in meson_clk_pll_is_better() 153 static unsigned int meson_clk_get_pll_range_m(unsigned long rate, in meson_clk_get_pll_range_m() 166 static int meson_clk_get_pll_range_index(unsigned long rate, in meson_clk_get_pll_range_index() 199 static int meson_clk_get_pll_get_index(unsigned long rate, in meson_clk_get_pll_get_index() 215 static int meson_clk_get_pll_settings(unsigned long rate, in meson_clk_get_pll_settings() 245 static long meson_clk_pll_round_rate(struct clk_hw *hw, unsigned long rate, in meson_clk_pll_round_rate() 363 static int meson_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, in meson_clk_pll_set_rate()
|
| /kernel/linux/linux-4.19/arch/arm/mach-omap1/ |
| D | clock.c | 135 static int calc_dsor_exp(struct clk *clk, unsigned long rate) in calc_dsor_exp() 194 int omap1_select_table_rate(struct clk *clk, unsigned long rate) in omap1_select_table_rate() 229 int omap1_clk_set_rate_dsp_domain(struct clk *clk, unsigned long rate) in omap1_clk_set_rate_dsp_domain() 249 long omap1_clk_round_rate_ckctl_arm(struct clk *clk, unsigned long rate) in omap1_clk_round_rate_ckctl_arm() 259 int omap1_clk_set_rate_ckctl_arm(struct clk *clk, unsigned long rate) in omap1_clk_set_rate_ckctl_arm() 279 long omap1_round_to_table_rate(struct clk *clk, unsigned long rate) in omap1_round_to_table_rate() 307 static unsigned calc_ext_dsor(unsigned long rate) in calc_ext_dsor() 330 int omap1_set_uart_rate(struct clk *clk, unsigned long rate) in omap1_set_uart_rate() 348 int omap1_set_ext_clk_rate(struct clk *clk, unsigned long rate) in omap1_set_ext_clk_rate() 366 int omap1_set_sossi_rate(struct clk *clk, unsigned long rate) in omap1_set_sossi_rate() [all …]
|
| /kernel/linux/linux-4.19/drivers/clk/zte/ |
| D | clk.c | 28 static int rate_to_idx(struct clk_zx_pll *zx_pll, unsigned long rate) in rate_to_idx() 81 static long zx_pll_round_rate(struct clk_hw *hw, unsigned long rate, in zx_pll_round_rate() 92 static int zx_pll_set_rate(struct clk_hw *hw, unsigned long rate, in zx_pll_set_rate() 192 static u32 calc_reg(u32 parent_rate, u32 rate) in calc_reg() 244 static long zx_audio_round_rate(struct clk_hw *hw, unsigned long rate, in zx_audio_round_rate() 256 static int zx_audio_set_rate(struct clk_hw *hw, unsigned long rate, in zx_audio_set_rate() 337 unsigned long rate; member 348 unsigned long rate, m, n; in audio_calc_rate() local 361 unsigned long rate, unsigned long parent_rate) in audio_calc_reg() 407 static long zx_audio_div_round_rate(struct clk_hw *hw, unsigned long rate, in zx_audio_div_round_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/zte/ |
| D | clk.c | 25 static int rate_to_idx(struct clk_zx_pll *zx_pll, unsigned long rate) in rate_to_idx() 78 static long zx_pll_round_rate(struct clk_hw *hw, unsigned long rate, in zx_pll_round_rate() 89 static int zx_pll_set_rate(struct clk_hw *hw, unsigned long rate, in zx_pll_set_rate() 189 static u32 calc_reg(u32 parent_rate, u32 rate) in calc_reg() 241 static long zx_audio_round_rate(struct clk_hw *hw, unsigned long rate, in zx_audio_round_rate() 253 static int zx_audio_set_rate(struct clk_hw *hw, unsigned long rate, in zx_audio_set_rate() 334 unsigned long rate; member 345 unsigned long rate, m, n; in audio_calc_rate() local 358 unsigned long rate, unsigned long parent_rate) in audio_calc_reg() 404 static long zx_audio_div_round_rate(struct clk_hw *hw, unsigned long rate, in zx_audio_div_round_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/ |
| D | clk-multiplier.c | 32 unsigned long rate, in __get_mult() 56 static bool __is_best_rate(unsigned long rate, unsigned long new, in __is_best_rate() 65 static unsigned long __bestmult(struct clk_hw *hw, unsigned long rate, in __bestmult() 115 static long clk_multiplier_round_rate(struct clk_hw *hw, unsigned long rate, in clk_multiplier_round_rate() 125 static int clk_multiplier_set_rate(struct clk_hw *hw, unsigned long rate, in clk_multiplier_set_rate()
|
| /kernel/linux/linux-5.10/drivers/memory/tegra/ |
| D | tegra186-emc.c | 16 unsigned long rate; member 60 unsigned long rate) in tegra186_emc_validate_rate() 102 static int tegra186_emc_debug_min_rate_get(void *data, u64 *rate) in tegra186_emc_debug_min_rate_get() 111 static int tegra186_emc_debug_min_rate_set(void *data, u64 rate) in tegra186_emc_debug_min_rate_set() 132 static int tegra186_emc_debug_max_rate_get(void *data, u64 *rate) in tegra186_emc_debug_max_rate_get() 141 static int tegra186_emc_debug_max_rate_set(void *data, u64 rate) in tegra186_emc_debug_max_rate_set()
|
| /kernel/linux/linux-5.10/drivers/clk/sprd/ |
| D | div.c | 14 unsigned long rate, in sprd_div_helper_round_rate() 22 static long sprd_div_round_rate(struct clk_hw *hw, unsigned long rate, in sprd_div_round_rate() 57 unsigned long rate, in sprd_div_helper_set_rate() 77 static int sprd_div_set_rate(struct clk_hw *hw, unsigned long rate, in sprd_div_set_rate()
|
| /kernel/linux/linux-4.19/drivers/clk/sprd/ |
| D | div.c | 14 unsigned long rate, in sprd_div_helper_round_rate() 22 static long sprd_div_round_rate(struct clk_hw *hw, unsigned long rate, in sprd_div_round_rate() 57 unsigned long rate, in sprd_div_helper_set_rate() 77 static int sprd_div_set_rate(struct clk_hw *hw, unsigned long rate, in sprd_div_set_rate()
|
| /kernel/linux/linux-5.10/drivers/clk/qcom/ |
| D | clk-rcg2.c | 148 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 hid_div) in calc_rate() 196 unsigned long clk_flags, rate = req->rate; in _freq_tbl_determine_rate() local 313 static int __clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate, in __clk_rcg2_set_rate() 336 static int clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg2_set_rate() 342 static int clk_rcg2_set_floor_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg2_set_floor_rate() 349 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg2_set_rate_and_parent() 355 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg2_set_floor_rate_and_parent() 409 static int clk_edp_pixel_set_rate(struct clk_hw *hw, unsigned long rate, in clk_edp_pixel_set_rate() 449 unsigned long rate, unsigned long parent_rate, u8 index) in clk_edp_pixel_set_rate_and_parent() 533 static int clk_byte_set_rate(struct clk_hw *hw, unsigned long rate, in clk_byte_set_rate() [all …]
|
| /kernel/linux/linux-5.10/sound/firewire/fireface/ |
| D | ff-protocol-former.c | 17 static int parse_clock_bits(u32 data, unsigned int *rate, in parse_clock_bits() 21 unsigned int rate; in parse_clock_bits() member 73 static int former_get_clock(struct snd_ff *ff, unsigned int *rate, in former_get_clock() 127 unsigned int rate; in dump_clock_config() local 184 unsigned int rate; in dump_sync_status() member 232 unsigned int rate; in dump_sync_status() local 337 static int ff800_allocate_resources(struct snd_ff *ff, unsigned int rate) in ff800_allocate_resources() 375 static int ff800_begin_session(struct snd_ff *ff, unsigned int rate) in ff800_begin_session() 441 static int ff400_allocate_resources(struct snd_ff *ff, unsigned int rate) in ff400_allocate_resources() 488 static int ff400_begin_session(struct snd_ff *ff, unsigned int rate) in ff400_begin_session()
|