/openbmc/linux/arch/arm/mach-omap1/ |
H A D | clock.c | 138 static int calc_dsor_exp(unsigned long rate, unsigned long realrate) in calc_dsor_exp() 230 int omap1_select_table_rate(struct omap1_clk *clk, unsigned long rate, unsigned long p_rate) in omap1_select_table_rate() 285 long omap1_clk_round_rate_ckctl_arm(struct omap1_clk *clk, unsigned long rate, in omap1_clk_round_rate_ckctl_arm() 352 static unsigned calc_ext_dsor(unsigned long rate) in calc_ext_dsor() 375 long omap1_round_uart_rate(struct omap1_clk *clk, unsigned long rate, unsigned long *p_rate) in omap1_round_uart_rate() 380 int omap1_set_uart_rate(struct omap1_clk *clk, unsigned long rate, unsigned long p_rate) in omap1_set_uart_rate() 406 int omap1_set_ext_clk_rate(struct omap1_clk *clk, unsigned long rate, unsigned long p_rate) in omap1_set_ext_clk_rate() 430 static int calc_div_sossi(unsigned long rate, unsigned long p_rate) in calc_div_sossi() 440 long omap1_round_sossi_rate(struct omap1_clk *clk, unsigned long rate, unsigned long *p_rate) in omap1_round_sossi_rate() 453 int omap1_set_sossi_rate(struct omap1_clk *clk, unsigned long rate, unsigned long p_rate) in omap1_set_sossi_rate() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-synquacer.c | 22 #define WAIT_PCLK(n, rate) \ 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 104 #define SYNQUACER_I2C_CCR_CS_FAST_MIN_18M(rate) \ argument [all …]
|
/openbmc/linux/drivers/clk/actions/ |
H A D | owl-factor.c | 44 unsigned long rate, unsigned long parent_rate) in _get_table_val() 67 struct clk_hw *hw, unsigned long rate, in owl_clk_val_best() 121 unsigned long rate, in owl_factor_helper_round_rate() 133 static long owl_factor_round_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_round_rate() 148 unsigned long long int rate; in owl_factor_helper_recalc_rate() local 185 unsigned long rate, in owl_factor_helper_set_rate() 205 static int owl_factor_set_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_set_rate()
|
H A D | owl-composite.c | 60 long rate; in owl_comp_div_determine_rate() local 80 static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_set_rate() 93 long rate; in owl_comp_fact_determine_rate() local 115 static int owl_comp_fact_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fact_set_rate() 125 static long owl_comp_fix_fact_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fix_fact_round_rate() 144 static int owl_comp_fix_fact_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fix_fact_set_rate()
|
H A 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()
|
/openbmc/linux/drivers/clk/ |
H A D | clk_test.c | 19 unsigned long rate; member 220 unsigned long rate; in clk_test_get_rate() local 241 unsigned long rate; in clk_test_set_get_rate() local 266 unsigned long rate; in clk_test_set_set_get_rate() local 362 unsigned long rate; in clk_test_uncached_get_rate() local 878 long rate; in clk_test_orphan_transparent_multiple_parent_mux_set_range_round_rate() local 1117 long rate; in clk_test_single_parent_mux_set_range_round_rate_parent_only() local 1147 long rate; in clk_test_single_parent_mux_set_range_round_rate_child_smaller() local 1185 long rate; in clk_test_single_parent_mux_set_range_round_rate_parent_smaller() local 1534 long rate; in clk_range_test_set_range_round_rate_lower() local [all …]
|
H A 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()
|
/openbmc/linux/sound/firewire/motu/ |
H A D | motu-protocol-v1.c | 125 static void parse_clock_rate_828(u32 data, unsigned int *rate) in parse_clock_rate_828() 133 static int get_clock_rate_828(struct snd_motu *motu, unsigned int *rate) in get_clock_rate_828() 146 static int parse_clock_rate_896(u32 data, unsigned int *rate) in parse_clock_rate_896() 168 static int get_clock_rate_896(struct snd_motu *motu, unsigned int *rate) in get_clock_rate_896() 179 int snd_motu_protocol_v1_get_clock_rate(struct snd_motu *motu, unsigned int *rate) in snd_motu_protocol_v1_get_clock_rate() 189 static int set_clock_rate_828(struct snd_motu *motu, unsigned int rate) in set_clock_rate_828() 208 static int set_clock_rate_896(struct snd_motu *motu, unsigned int rate) in set_clock_rate_896() 244 int snd_motu_protocol_v1_set_clock_rate(struct snd_motu *motu, unsigned int rate) in snd_motu_protocol_v1_set_clock_rate()
|
/openbmc/linux/drivers/clk/meson/ |
H A D | clk-pll.c | 59 u64 rate = (u64)parent_rate * m; in __pll_params_to_rate() local 97 static unsigned int __pll_params_with_frac(unsigned long rate, in __pll_params_with_frac() 120 static bool meson_clk_pll_is_better(unsigned long rate, in meson_clk_pll_is_better() 152 static unsigned int meson_clk_get_pll_range_m(unsigned long rate, in meson_clk_get_pll_range_m() 165 static int meson_clk_get_pll_range_index(unsigned long rate, in meson_clk_get_pll_range_index() 198 static int meson_clk_get_pll_get_index(unsigned long rate, in meson_clk_get_pll_get_index() 214 static int meson_clk_get_pll_settings(unsigned long rate, in meson_clk_get_pll_settings() 403 static int meson_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, in meson_clk_pll_set_rate()
|
/openbmc/u-boot/arch/arm/mach-imx/mx7ulp/ |
H A D | scg.c | 54 u32 reg, val, rate; in scg_sircdiv_get_rate() local 92 u32 reg, val, rate; in scg_fircdiv_get_rate() local 130 u32 reg, val, rate; in scg_soscdiv_get_rate() local 168 u32 reg, val, rate; in scg_apll_pfd_get_rate() local 218 u32 reg, val, rate; in scg_spll_pfd_get_rate() local 268 u32 reg, val, rate; in scg_apll_get_rate() local 296 u32 reg, val, rate; in scg_spll_get_rate() local 331 u32 reg, val, rate, div; in scg_ddr_get_rate() local 355 u32 reg, val, rate; in scg_nic_get_rate() local 428 u32 reg, val, rate; in scg_sys_get_rate() local
|
/openbmc/linux/drivers/clk/sunxi-ng/ |
H A D | ccu_mp.c | 13 static unsigned long ccu_mp_find_best(unsigned long parent, unsigned long rate, in ccu_mp_find_best() 44 unsigned long rate, in ccu_mp_find_best_with_parent_adj() 100 unsigned long rate, in ccu_mp_round_rate() 151 unsigned long rate; in ccu_mp_recalc_rate() local 186 static int ccu_mp_set_rate(struct clk_hw *hw, unsigned long rate, in ccu_mp_set_rate() 271 unsigned long rate = ccu_mp_recalc_rate(hw, parent_rate); in ccu_mp_mmc_recalc_rate() local 306 static int ccu_mp_mmc_set_rate(struct clk_hw *hw, unsigned long rate, in ccu_mp_mmc_set_rate()
|
H A D | ccu_nm.c | 22 u64 rate = parent; in ccu_nm_calc_rate() local 31 unsigned long rate, struct _ccu_nm *nm) in ccu_nm_find_best() 81 unsigned long rate; in ccu_nm_recalc_rate() local 119 static long ccu_nm_round_rate(struct clk_hw *hw, unsigned long rate, in ccu_nm_round_rate() 167 static int ccu_nm_set_rate(struct clk_hw *hw, unsigned long rate, in ccu_nm_set_rate()
|
/openbmc/linux/drivers/clk/qcom/ |
H A D | clk-rcg2.c | 159 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 hid_div) in calc_rate() 210 unsigned long clk_flags, rate = req->rate; in _freq_tbl_determine_rate() local 374 static int clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg2_set_rate() 387 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg2_set_rate_and_parent() 393 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg2_set_floor_rate_and_parent() 582 unsigned long rate, unsigned long parent_rate, u8 index) in clk_edp_pixel_set_rate_and_parent() 683 unsigned long rate, unsigned long parent_rate, u8 index) in clk_byte_set_rate_and_parent() 707 unsigned long rate = req->rate; in clk_byte2_determine_rate() local 753 unsigned long rate, unsigned long parent_rate, u8 index) in clk_byte2_set_rate_and_parent() 1045 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg2_shared_set_rate_and_parent() [all …]
|
H A D | clk-alpha-pll.c | 599 alpha_pll_find_vco(const struct clk_alpha_pll *pll, unsigned long rate) in alpha_pll_find_vco() 732 static int clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, in clk_alpha_pll_set_rate() 778 alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate, in alpha_huayra_pll_round_rate() 814 u64 rate = parent_rate, tmp; in alpha_pll_huayra_recalc_rate() local 1097 clk_alpha_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, in clk_alpha_pll_postdiv_round_rate() 1299 unsigned long rrate, unsigned long rate) in alpha_pll_check_rate_margin() 1455 clk_trion_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, in clk_trion_pll_postdiv_round_rate() 1465 clk_trion_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, in clk_trion_pll_postdiv_set_rate() 1493 unsigned long rate, unsigned long *prate) in clk_alpha_pll_postdiv_fabia_round_rate() 1502 unsigned long rate, unsigned long parent_rate) in clk_alpha_pll_postdiv_fabia_set_rate() [all …]
|
H A D | clk-rcg.c | 326 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 pre_div) in calc_rate() 403 unsigned long clk_flags, rate = req->rate; in _freq_tbl_determine_rate() local 516 static int clk_rcg_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_set_rate() 529 static int clk_rcg_set_floor_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_set_floor_rate() 588 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg_bypass2_set_rate_and_parent() 675 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg_pixel_set_rate_and_parent() 704 static int clk_rcg_esc_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_esc_set_rate() 741 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg_esc_set_rate_and_parent() 757 static int clk_rcg_lcc_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_lcc_set_rate() 809 static int clk_dyn_rcg_set_rate(struct clk_hw *hw, unsigned long rate, in clk_dyn_rcg_set_rate() [all …]
|
/openbmc/linux/drivers/clk/tegra/ |
H A D | clk-divider.c | 21 static int get_div(struct tegra_clk_frac_div *divider, unsigned long rate, in get_div() 41 u64 rate = parent_rate; in clk_frac_div_recalc_rate() local 61 static long clk_frac_div_round_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_div_round_rate() 80 static int clk_frac_div_set_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_div_set_rate() 121 unsigned long rate = clk_hw_get_rate(hw); in clk_divider_restore_context() local
|
/openbmc/linux/drivers/clk/rockchip/ |
H A D | clk-cpu.c | 68 struct rockchip_cpuclk *cpuclk, unsigned long rate) in rockchip_get_cpuclk_settings() 99 const struct rockchip_cpuclk_rate_table *rate) in rockchip_cpuclk_set_dividers() 117 const struct rockchip_cpuclk_rate_table *rate) in rockchip_cpuclk_set_pre_muxs() 135 const struct rockchip_cpuclk_rate_table *rate) in rockchip_cpuclk_set_post_muxs() 156 const struct rockchip_cpuclk_rate_table *rate; in rockchip_cpuclk_pre_rate_change() local 227 const struct rockchip_cpuclk_rate_table *rate; in rockchip_cpuclk_post_rate_change() local
|
H A D | clk-pll.c | 140 struct rockchip_pll_rate_table *rate) in rockchip_rk3036_pll_get_params() 190 const struct rockchip_pll_rate_table *rate) in rockchip_rk3036_pll_set_params() 252 const struct rockchip_pll_rate_table *rate; in rockchip_rk3036_pll_set_rate() local 299 const struct rockchip_pll_rate_table *rate; in rockchip_rk3036_pll_init() local 381 struct rockchip_pll_rate_table *rate) in rockchip_rk3066_pll_get_params() 487 const struct rockchip_pll_rate_table *rate; in rockchip_rk3066_pll_set_rate() local 534 const struct rockchip_pll_rate_table *rate; in rockchip_rk3066_pll_init() local 620 struct rockchip_pll_rate_table *rate) in rockchip_rk3399_pll_get_params() 736 const struct rockchip_pll_rate_table *rate; in rockchip_rk3399_pll_set_rate() local 783 const struct rockchip_pll_rate_table *rate; in rockchip_rk3399_pll_init() local [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | rs.h | 179 #define is_legacy(rate) is_type_legacy((rate)->type) argument 180 #define is_ht_siso(rate) is_type_ht_siso((rate)->type) argument 184 #define is_siso(rate) is_type_siso((rate)->type) argument 185 #define is_mimo2(rate) is_type_mimo2((rate)->type) argument 186 #define is_mimo(rate) is_type_mimo((rate)->type) argument 187 #define is_ht(rate) is_type_ht((rate)->type) argument 188 #define is_vht(rate) is_type_vht((rate)->type) argument 189 #define is_he(rate) is_type_he((rate)->type) argument 190 #define is_a_band(rate) is_type_a_band((rate)->type) argument 191 #define is_g_band(rate) is_type_g_band((rate)->type) argument [all …]
|
/openbmc/linux/sound/firewire/tascam/ |
H A D | tascam-stream.c | 44 static int set_clock(struct snd_tscm *tscm, unsigned int rate, in set_clock() 97 int snd_tscm_stream_get_rate(struct snd_tscm *tscm, unsigned int *rate) in snd_tscm_stream_get_rate() 177 static int set_stream_formats(struct snd_tscm *tscm, unsigned int rate) in set_stream_formats() 281 static int keep_resources(struct snd_tscm *tscm, unsigned int rate, in keep_resources() 386 int snd_tscm_stream_reserve_duplex(struct snd_tscm *tscm, unsigned int rate, in snd_tscm_stream_reserve_duplex() 433 int snd_tscm_stream_start_duplex(struct snd_tscm *tscm, unsigned int rate) in snd_tscm_stream_start_duplex()
|
/openbmc/linux/drivers/memory/tegra/ |
H A D | tegra186-emc.c | 18 unsigned long rate; member 64 unsigned long rate) in tegra186_emc_validate_rate() 93 static int tegra186_emc_debug_min_rate_get(void *data, u64 *rate) in tegra186_emc_debug_min_rate_get() 102 static int tegra186_emc_debug_min_rate_set(void *data, u64 rate) in tegra186_emc_debug_min_rate_set() 123 static int tegra186_emc_debug_max_rate_get(void *data, u64 *rate) in tegra186_emc_debug_max_rate_get() 132 static int tegra186_emc_debug_max_rate_set(void *data, u64 rate) in tegra186_emc_debug_max_rate_set()
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | ppr.c | 28 u8 *rate; in b43_ppr_add() local 38 u8 *rate; in b43_ppr_apply_max() local 48 u8 *rate; in b43_ppr_apply_min() local 59 u8 *rate; in b43_ppr_get_max() local
|
/openbmc/linux/sound/firewire/dice/ |
H A D | dice-stream.c | 32 int snd_dice_stream_get_rate_mode(struct snd_dice *dice, unsigned int rate, in snd_dice_stream_get_rate_mode() 60 static int select_clock(struct snd_dice *dice, unsigned int rate) in select_clock() 156 struct fw_iso_resources *resources, unsigned int rate, in keep_resources() 197 static int keep_dual_resources(struct snd_dice *dice, unsigned int rate, in keep_dual_resources() 265 int snd_dice_stream_reserve_duplex(struct snd_dice *dice, unsigned int rate, in snd_dice_stream_reserve_duplex() 327 unsigned int rate, struct reg_params *params) in start_streams() 387 unsigned int rate; in snd_dice_stream_start_duplex() local 611 unsigned int rate; in snd_dice_stream_detect_current_formats() local
|
/openbmc/linux/sound/soc/mediatek/mt8192/ |
H A D | mt8192-afe-control.c | 45 unsigned int rate) in mt8192_general_rate_transform() 89 unsigned int rate) in dai_memif_rate_transform() 109 unsigned int rate) in pcm_rate_transform() 129 unsigned int rate, int aud_blk) in mt8192_rate_transform()
|
/openbmc/linux/sound/firewire/fireface/ |
H A D | ff-protocol-former.c | 15 static int parse_clock_bits(u32 data, unsigned int *rate, in parse_clock_bits() 19 unsigned int rate; in parse_clock_bits() member 71 static int former_get_clock(struct snd_ff *ff, unsigned int *rate, in former_get_clock() 125 unsigned int rate; in dump_clock_config() local 182 unsigned int rate; in dump_sync_status() member 230 unsigned int rate; in dump_sync_status() local 335 static int ff800_allocate_resources(struct snd_ff *ff, unsigned int rate) in ff800_allocate_resources() 373 static int ff800_begin_session(struct snd_ff *ff, unsigned int rate) in ff800_begin_session() 439 static int ff400_allocate_resources(struct snd_ff *ff, unsigned int rate) in ff400_allocate_resources() 486 static int ff400_begin_session(struct snd_ff *ff, unsigned int rate) in ff400_begin_session()
|