/kernel/linux/linux-5.10/drivers/clk/at91/ |
H A D | clk-programmable.c | 37 unsigned long rate; in clk_programmable_recalc_rate() local 42 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_recalc_rate() 44 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_recalc_rate() 46 return rate; in clk_programmable_recalc_rate() 70 if (tmp_rate <= req->rate) in clk_programmable_determine_rate() 76 if (tmp_rate <= req->rate) in clk_programmable_determine_rate() 81 if (tmp_rate > req->rate) in clk_programmable_determine_rate() 85 (req->rate - tmp_rate) < (req->rate - best_rate)) { in clk_programmable_determine_rate() 98 req->rate in clk_programmable_determine_rate() 147 clk_programmable_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_programmable_set_rate() argument [all...] |
/kernel/linux/linux-5.10/sound/firewire/motu/ |
H A D | motu.h | 128 int amdtp_motu_set_parameters(struct amdtp_stream *s, unsigned int rate, 147 int snd_motu_stream_reserve_duplex(struct snd_motu *motu, unsigned int rate, 164 unsigned int *rate); 166 unsigned int rate); 174 unsigned int *rate); 176 unsigned int rate); 184 unsigned int *rate) in snd_motu_protocol_get_clock_rate() 187 return snd_motu_protocol_v2_get_clock_rate(motu, rate); in snd_motu_protocol_get_clock_rate() 189 return snd_motu_protocol_v3_get_clock_rate(motu, rate); in snd_motu_protocol_get_clock_rate() 195 unsigned int rate) in snd_motu_protocol_set_clock_rate() 183 snd_motu_protocol_get_clock_rate(struct snd_motu *motu, unsigned int *rate) snd_motu_protocol_get_clock_rate() argument 194 snd_motu_protocol_set_clock_rate(struct snd_motu *motu, unsigned int rate) snd_motu_protocol_set_clock_rate() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun4i_hdmi_tmds_clk.c | 27 static unsigned long sun4i_tmds_calc_divider(unsigned long rate, in sun4i_tmds_calc_divider() argument 45 if (tmp_rate > rate) in sun4i_tmds_calc_divider() 49 (rate - tmp_rate) < (rate - best_rate)) { in sun4i_tmds_calc_divider() 72 unsigned long rate = req->rate; in sun4i_tmds_determine_rate() local 78 * clocked from it, and to have the same rate than our HDMI in sun4i_tmds_determine_rate() 90 unsigned long ideal = rate * i * j; in sun4i_tmds_determine_rate() 103 abs(rate - rounded / i / j) < in sun4i_tmds_determine_rate() 104 abs(rate in sun4i_tmds_determine_rate() 143 sun4i_tmds_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) sun4i_tmds_set_rate() argument [all...] |
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-stm32-lp.c | 109 unsigned long *rate) in stm32_clkevent_lp_set_prescaler() 114 if (DIV_ROUND_CLOSEST(*rate, 1 << i) < STM32_TARGET_CLKRATE) in stm32_clkevent_lp_set_prescaler() 120 /* Adjust rate and period given the prescaler value */ in stm32_clkevent_lp_set_prescaler() 121 *rate = DIV_ROUND_CLOSEST(*rate, (1 << i)); in stm32_clkevent_lp_set_prescaler() 122 priv->period = DIV_ROUND_UP(*rate, HZ); in stm32_clkevent_lp_set_prescaler() 126 struct device_node *np, unsigned long rate) in stm32_clkevent_lp_init() 138 clockevents_config_and_register(&priv->clkevt, rate, 0x1, in stm32_clkevent_lp_init() 146 unsigned long rate; in stm32_clkevent_lp_probe() local 158 rate in stm32_clkevent_lp_probe() 108 stm32_clkevent_lp_set_prescaler(struct stm32_lp_private *priv, unsigned long *rate) stm32_clkevent_lp_set_prescaler() argument 125 stm32_clkevent_lp_init(struct stm32_lp_private *priv, struct device_node *np, unsigned long rate) stm32_clkevent_lp_init() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun4i_hdmi_tmds_clk.c | 27 static unsigned long sun4i_tmds_calc_divider(unsigned long rate, in sun4i_tmds_calc_divider() argument 45 if (tmp_rate > rate) in sun4i_tmds_calc_divider() 49 (rate - tmp_rate) < (rate - best_rate)) { in sun4i_tmds_calc_divider() 72 unsigned long rate = req->rate; in sun4i_tmds_determine_rate() local 78 * clocked from it, and to have the same rate than our HDMI in sun4i_tmds_determine_rate() 90 unsigned long ideal = rate * i * j; in sun4i_tmds_determine_rate() 103 abs(rate - rounded / i / j) < in sun4i_tmds_determine_rate() 104 abs(rate in sun4i_tmds_determine_rate() 143 sun4i_tmds_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) sun4i_tmds_set_rate() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/ |
H A D | soc-utils-test.c | 13 u32 rate; member 21 /* rate fmt channels tdm_width tdm_slots slot_multiple bclk */ 119 unsigned int rate, snd_pcm_format_t fmt, in test_tdm_params_to_bclk_one() 130 hw_param_interval(¶ms, SNDRV_PCM_HW_PARAM_RATE)->min = rate; in test_tdm_params_to_bclk_one() 131 hw_param_interval(¶ms, SNDRV_PCM_HW_PARAM_RATE)->max = rate; in test_tdm_params_to_bclk_one() 139 rate, params_width(¶ms), channels, tdm_width, tdm_slots, slot_multiple, in test_tdm_params_to_bclk_one() 150 tdm_params_to_bclk_cases[i].rate, in test_tdm_params_to_bclk() 163 tdm_params_to_bclk_cases[i].rate, in test_tdm_params_to_bclk() 174 unsigned int rate, snd_pcm_format_t fmt, in test_snd_soc_params_to_bclk_one() 183 hw_param_interval(¶ms, SNDRV_PCM_HW_PARAM_RATE)->min = rate; in test_snd_soc_params_to_bclk_one() 118 test_tdm_params_to_bclk_one(struct kunit *test, unsigned int rate, snd_pcm_format_t fmt, unsigned int channels, unsigned int tdm_width, unsigned int tdm_slots, unsigned int slot_multiple, unsigned int expected_bclk) test_tdm_params_to_bclk_one() argument 173 test_snd_soc_params_to_bclk_one(struct kunit *test, unsigned int rate, snd_pcm_format_t fmt, unsigned int channels, unsigned int expected_bclk) test_snd_soc_params_to_bclk_one() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/ |
H A D | main.h | 73 int b43legacy_is_cck_rate(int rate) in b43legacy_is_cck_rate() argument 75 return (rate == B43legacy_CCK_RATE_1MB || in b43legacy_is_cck_rate() 76 rate == B43legacy_CCK_RATE_2MB || in b43legacy_is_cck_rate() 77 rate == B43legacy_CCK_RATE_5MB || in b43legacy_is_cck_rate() 78 rate == B43legacy_CCK_RATE_11MB); in b43legacy_is_cck_rate() 82 int b43legacy_is_ofdm_rate(int rate) in b43legacy_is_ofdm_rate() argument 84 return !b43legacy_is_cck_rate(rate); in b43legacy_is_ofdm_rate()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
H A D | main.h | 48 static inline int b43_is_cck_rate(int rate) in b43_is_cck_rate() argument 50 return (rate == B43_CCK_RATE_1MB || in b43_is_cck_rate() 51 rate == B43_CCK_RATE_2MB || in b43_is_cck_rate() 52 rate == B43_CCK_RATE_5MB || rate == B43_CCK_RATE_11MB); in b43_is_cck_rate() 55 static inline int b43_is_ofdm_rate(int rate) in b43_is_ofdm_rate() argument 57 return !b43_is_cck_rate(rate); in b43_is_ofdm_rate()
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
H A D | main.h | 48 static inline int b43_is_cck_rate(int rate) in b43_is_cck_rate() argument 50 return (rate == B43_CCK_RATE_1MB || in b43_is_cck_rate() 51 rate == B43_CCK_RATE_2MB || in b43_is_cck_rate() 52 rate == B43_CCK_RATE_5MB || rate == B43_CCK_RATE_11MB); in b43_is_cck_rate() 55 static inline int b43_is_ofdm_rate(int rate) in b43_is_ofdm_rate() argument 57 return !b43_is_cck_rate(rate); in b43_is_ofdm_rate()
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43legacy/ |
H A D | main.h | 73 int b43legacy_is_cck_rate(int rate) in b43legacy_is_cck_rate() argument 75 return (rate == B43legacy_CCK_RATE_1MB || in b43legacy_is_cck_rate() 76 rate == B43legacy_CCK_RATE_2MB || in b43legacy_is_cck_rate() 77 rate == B43legacy_CCK_RATE_5MB || in b43legacy_is_cck_rate() 78 rate == B43legacy_CCK_RATE_11MB); in b43legacy_is_cck_rate() 82 int b43legacy_is_ofdm_rate(int rate) in b43legacy_is_ofdm_rate() argument 84 return !b43legacy_is_cck_rate(rate); in b43legacy_is_ofdm_rate()
|
/kernel/linux/linux-5.10/net/wireless/ |
H A D | util.c | 1122 static u32 cfg80211_calculate_bitrate_ht(struct rate_info *rate) in cfg80211_calculate_bitrate_ht() argument 1127 if (WARN_ON_ONCE(rate->mcs >= 32)) in cfg80211_calculate_bitrate_ht() 1130 modulation = rate->mcs & 7; in cfg80211_calculate_bitrate_ht() 1131 streams = (rate->mcs >> 3) + 1; in cfg80211_calculate_bitrate_ht() 1133 bitrate = (rate->bw == RATE_INFO_BW_40) ? 13500000 : 6500000; in cfg80211_calculate_bitrate_ht() 1144 if (rate->flags & RATE_INFO_FLAGS_SHORT_GI) in cfg80211_calculate_bitrate_ht() 1151 static u32 cfg80211_calculate_bitrate_dmg(struct rate_info *rate) in cfg80211_calculate_bitrate_dmg() argument 1192 if (WARN_ON_ONCE(rate->mcs >= ARRAY_SIZE(__mcs2bitrate))) in cfg80211_calculate_bitrate_dmg() 1195 return __mcs2bitrate[rate->mcs]; in cfg80211_calculate_bitrate_dmg() 1198 static u32 cfg80211_calculate_bitrate_edmg(struct rate_info *rate) in cfg80211_calculate_bitrate_edmg() argument 1232 cfg80211_calculate_bitrate_vht(struct rate_info *rate) cfg80211_calculate_bitrate_vht() argument 1319 cfg80211_calculate_bitrate_he(struct rate_info *rate) cfg80211_calculate_bitrate_he() argument 1402 cfg80211_calculate_bitrate(struct rate_info *rate) cfg80211_calculate_bitrate() argument 1966 int rate = (rates[i] & 0x7f) * 5; ieee80211_get_ratemask() local [all...] |
/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | timer-sp804.c | 62 long rate; in sp804_get_clock_rate() local 87 rate = clk_get_rate(clk); in sp804_get_clock_rate() 88 if (rate < 0) { in sp804_get_clock_rate() 89 pr_err("sp804: clock failed to get rate: %ld\n", rate); in sp804_get_clock_rate() 95 return rate; in sp804_get_clock_rate() 125 long rate; in sp804_clocksource_and_sched_clock_init() local 128 rate = sp804_get_clock_rate(clk, name); in sp804_clocksource_and_sched_clock_init() 129 if (rate < 0) in sp804_clocksource_and_sched_clock_init() 145 rate, 20 in sp804_clocksource_and_sched_clock_init() 223 long rate; sp804_clockevents_init() local [all...] |
/kernel/linux/linux-5.10/drivers/clk/ |
H A D | clk-highbank.c | 110 static void clk_pll_calc(unsigned long rate, unsigned long ref_freq, in clk_pll_calc() argument 116 if (rate < HB_PLL_MIN_FREQ) in clk_pll_calc() 117 rate = HB_PLL_MIN_FREQ; in clk_pll_calc() 118 if (rate > HB_PLL_MAX_FREQ) in clk_pll_calc() 119 rate = HB_PLL_MAX_FREQ; in clk_pll_calc() 122 if ((rate * (1 << divq)) >= HB_PLL_VCO_MIN_FREQ) in clk_pll_calc() 126 vco_freq = rate * (1 << divq); in clk_pll_calc() 134 static long clk_pll_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_round_rate() argument 140 clk_pll_calc(rate, ref_freq, &divq, &divf); in clk_pll_round_rate() 145 static int clk_pll_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_set_rate() argument 231 clk_periclk_round_rate(struct clk_hw *hwclk, unsigned long rate, unsigned long *parent_rate) clk_periclk_round_rate() argument 243 clk_periclk_set_rate(struct clk_hw *hwclk, unsigned long rate, unsigned long parent_rate) clk_periclk_set_rate() argument [all...] |
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/ |
H A D | clock.c | 50 } rate[0]; member 142 u64 *rate = NULL; in scmi_clock_describe_rates_get() local 179 clk->range.min_rate = RATE_TO_U64(rlist->rate[0]); in scmi_clock_describe_rates_get() 180 clk->range.max_rate = RATE_TO_U64(rlist->rate[1]); in scmi_clock_describe_rates_get() 181 clk->range.step_size = RATE_TO_U64(rlist->rate[2]); in scmi_clock_describe_rates_get() 188 rate = &clk->list.rates[tot_rate_cnt]; in scmi_clock_describe_rates_get() 189 for (cnt = 0; cnt < num_returned; cnt++, rate++) { in scmi_clock_describe_rates_get() 190 *rate = RATE_TO_U64(rlist->rate[cnt]); in scmi_clock_describe_rates_get() 191 dev_dbg(handle->dev, "Rate %llu Hz\n", *rate); in scmi_clock_describe_rates_get() 237 scmi_clock_rate_set(const struct scmi_handle *handle, u32 clk_id, u64 rate) scmi_clock_rate_set() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_policer.sh | 144 devlink trap policer set $DEVLINK_DEV policer 1 rate 0 &> /dev/null 145 check_fail $? "Policer rate was changed to rate lower than limit" 147 rate 2000000001 &> /dev/null 148 check_fail $? "Policer rate was changed to rate higher than limit" 150 devlink trap policer set $DEVLINK_DEV policer 1 rate 1 151 check_err $? "Failed to set policer rate to minimum" 152 devlink trap policer set $DEVLINK_DEV policer 1 rate 2000000000 153 check_err $? "Failed to set policer rate t [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | rl.c | 108 /* Finds an entry where we can register the given rate 109 * If the rate already exists, return the entry where it is registered, 158 bool mlx5_rl_is_in_range(struct mlx5_core_dev *dev, u32 rate) in mlx5_rl_is_in_range() argument 162 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range() 169 return ((rl_0->rate == rl_1->rate) && in mlx5_rl_are_equal() 181 u32 rate; in mlx5_rl_add_rate_raw() local 183 rate = MLX5_GET(set_pp_rate_limit_context, rl_in, rate_limit); in mlx5_rl_add_rate_raw() 186 if (!rate || !mlx5_rl_is_in_rang in mlx5_rl_add_rate_raw() [all...] |
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | sp805_wdt.c | 62 * @rate: (optional) clock rate when provided via properties 72 u64 rate; member 95 u64 load, rate; in wdt_setload() local 97 rate = wdt->rate; in wdt_setload() 105 load = div_u64(rate, 2) * timeout - 1; in wdt_setload() 113 wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate); in wdt_setload() 133 return div_u64(load, wdt->rate); in wdt_timeleft() 235 u64 rate = 0; sp805_wdt_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/clk/ |
H A D | clk-highbank.c | 110 static void clk_pll_calc(unsigned long rate, unsigned long ref_freq, in clk_pll_calc() argument 116 if (rate < HB_PLL_MIN_FREQ) in clk_pll_calc() 117 rate = HB_PLL_MIN_FREQ; in clk_pll_calc() 118 if (rate > HB_PLL_MAX_FREQ) in clk_pll_calc() 119 rate = HB_PLL_MAX_FREQ; in clk_pll_calc() 122 if ((rate * (1 << divq)) >= HB_PLL_VCO_MIN_FREQ) in clk_pll_calc() 126 vco_freq = rate * (1 << divq); in clk_pll_calc() 134 static long clk_pll_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_round_rate() argument 140 clk_pll_calc(rate, ref_freq, &divq, &divf); in clk_pll_round_rate() 145 static int clk_pll_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_set_rate() argument 231 clk_periclk_round_rate(struct clk_hw *hwclk, unsigned long rate, unsigned long *parent_rate) clk_periclk_round_rate() argument 243 clk_periclk_set_rate(struct clk_hw *hwclk, unsigned long rate, unsigned long parent_rate) clk_periclk_set_rate() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_policer.sh | 144 devlink trap policer set $DEVLINK_DEV policer 1 rate 0 &> /dev/null 145 check_fail $? "Policer rate was changed to rate lower than limit" 147 rate 2000000001 &> /dev/null 148 check_fail $? "Policer rate was changed to rate higher than limit" 150 devlink trap policer set $DEVLINK_DEV policer 1 rate 1 151 check_err $? "Failed to set policer rate to minimum" 152 devlink trap policer set $DEVLINK_DEV policer 1 rate 2000000000 153 check_err $? "Failed to set policer rate t [all...] |
/kernel/linux/linux-5.10/sound/firewire/dice/ |
H A D | dice-pcm.c | 27 unsigned int i, rate; in dice_rate_constraint() local 35 rate = snd_dice_rates[i]; in dice_rate_constraint() 36 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in dice_rate_constraint() 42 rates.min = min(rates.min, rate); in dice_rate_constraint() 43 rates.max = max(rates.max, rate); in dice_rate_constraint() 65 unsigned int i, rate; in dice_channels_constraint() local 73 rate = snd_dice_rates[i]; in dice_channels_constraint() 74 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in dice_channels_constraint() 77 if (!snd_interval_test(r, rate)) in dice_channels_constraint() 106 unsigned int rate, channel in limit_channels_and_rates() local 208 unsigned int rate; pcm_open() local 270 unsigned int rate = params_rate(hw_params); pcm_hw_params() local [all...] |
/kernel/linux/linux-6.6/sound/usb/ |
H A D | clock.c | 3 * Clock domain and sample rate management functions 166 * single sample rate, the terminal is connected directly to it in uac_clock_source_is_valid_quirk() 180 * Sample rate changes takes more than 2 seconds for this device. Clock in uac_clock_source_is_valid_quirk() 382 * For all kinds of sample rate settings and other device queries, 384 * clock multipliers and sample rate converters may be specified as 409 const struct audioformat *fmt, int rate) in set_sample_rate_v1() 415 /* if endpoint doesn't have sampling rate control, bail out */ in set_sample_rate_v1() 419 data[0] = rate; in set_sample_rate_v1() 420 data[1] = rate >> 8; in set_sample_rate_v1() 421 data[2] = rate >> 1 in set_sample_rate_v1() 408 set_sample_rate_v1(struct snd_usb_audio *chip, const struct audioformat *fmt, int rate) set_sample_rate_v1() argument 496 snd_usb_set_sample_rate_v2v3(struct snd_usb_audio *chip, const struct audioformat *fmt, int clock, int rate) snd_usb_set_sample_rate_v2v3() argument 533 set_sample_rate_v2v3(struct snd_usb_audio *chip, const struct audioformat *fmt, int rate) set_sample_rate_v2v3() argument 601 snd_usb_init_sample_rate(struct snd_usb_audio *chip, const struct audioformat *fmt, int rate) snd_usb_init_sample_rate() argument [all...] |
/kernel/linux/linux-6.6/sound/firewire/dice/ |
H A D | dice-pcm.c | 27 unsigned int i, rate; in dice_rate_constraint() local 35 rate = snd_dice_rates[i]; in dice_rate_constraint() 36 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in dice_rate_constraint() 42 rates.min = min(rates.min, rate); in dice_rate_constraint() 43 rates.max = max(rates.max, rate); in dice_rate_constraint() 65 unsigned int i, rate; in dice_channels_constraint() local 73 rate = snd_dice_rates[i]; in dice_channels_constraint() 74 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in dice_channels_constraint() 77 if (!snd_interval_test(r, rate)) in dice_channels_constraint() 106 unsigned int rate, channel in limit_channels_and_rates() local 208 unsigned int rate; pcm_open() local 270 unsigned int rate = params_rate(hw_params); pcm_hw_params() local [all...] |
/kernel/linux/linux-6.6/sound/firewire/tascam/ |
H A D | tascam-stream.c | 44 static int set_clock(struct snd_tscm *tscm, unsigned int rate, in set_clock() argument 56 if (rate > 0) { in set_clock() 58 /* Base rate. */ in set_clock() 59 if ((rate % 44100) == 0) { in set_clock() 62 if (rate / 44100 == 2) in set_clock() 64 } else if ((rate % 48000) == 0) { in set_clock() 67 if (rate / 48000 == 2) in set_clock() 97 int snd_tscm_stream_get_rate(struct snd_tscm *tscm, unsigned int *rate) in snd_tscm_stream_get_rate() argument 108 /* Check base rate. */ in snd_tscm_stream_get_rate() 110 *rate in snd_tscm_stream_get_rate() 177 set_stream_formats(struct snd_tscm *tscm, unsigned int rate) set_stream_formats() argument 281 keep_resources(struct snd_tscm *tscm, unsigned int rate, struct amdtp_stream *stream) keep_resources() argument 386 snd_tscm_stream_reserve_duplex(struct snd_tscm *tscm, unsigned int rate, unsigned int frames_per_period, unsigned int frames_per_buffer) snd_tscm_stream_reserve_duplex() argument 433 snd_tscm_stream_start_duplex(struct snd_tscm *tscm, unsigned int rate) snd_tscm_stream_start_duplex() argument [all...] |
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
H A D | clk-rcg.c | 319 * Calculate m/n:d rate 322 * rate = ----------- x --- 326 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 pre_div) in calc_rate() argument 329 rate /= pre_div + 1; in calc_rate() 332 u64 tmp = rate; in calc_rate() 335 rate = tmp; in calc_rate() 338 return rate; in calc_rate() 403 unsigned long clk_flags, rate = req->rate; in _freq_tbl_determine_rate() local 407 f = qcom_find_freq(f, rate); in _freq_tbl_determine_rate() 516 clk_rcg_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_rcg_set_rate() argument 529 clk_rcg_bypass_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_rcg_bypass_set_rate() argument 549 clk_rcg_bypass2_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_rcg_bypass2_set_rate() argument 574 clk_rcg_bypass2_set_rate_and_parent(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate, u8 index) clk_rcg_bypass2_set_rate_and_parent() argument 617 clk_rcg_pixel_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_rcg_pixel_set_rate() argument 661 clk_rcg_pixel_set_rate_and_parent(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate, u8 index) clk_rcg_pixel_set_rate_and_parent() argument 691 clk_rcg_esc_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_rcg_esc_set_rate() argument 727 clk_rcg_esc_set_rate_and_parent(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate, u8 index) clk_rcg_esc_set_rate_and_parent() argument 744 clk_rcg_lcc_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_rcg_lcc_set_rate() argument 784 __clk_dyn_rcg_set_rate(struct clk_hw *hw, unsigned long rate) __clk_dyn_rcg_set_rate() argument 796 clk_dyn_rcg_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_dyn_rcg_set_rate() argument 802 clk_dyn_rcg_set_rate_and_parent(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate, u8 index) clk_dyn_rcg_set_rate_and_parent() argument [all...] |
/kernel/linux/linux-6.6/drivers/clk/qcom/ |
H A D | clk-alpha-pll.c | 572 alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a, in alpha_pll_round_rate() argument 578 quotient = rate; in alpha_pll_round_rate() 584 return rate; in alpha_pll_round_rate() 600 alpha_pll_find_vco(const struct clk_alpha_pll *pll, unsigned long rate) in alpha_pll_find_vco() argument 606 if (rate >= v->min_freq && rate <= v->max_freq) in alpha_pll_find_vco() 694 static int __clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, in __clk_alpha_pll_set_rate() argument 703 rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in __clk_alpha_pll_set_rate() 704 vco = alpha_pll_find_vco(pll, rate); in __clk_alpha_pll_set_rate() 733 clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_set_rate() argument 740 clk_alpha_pll_hwfsm_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_hwfsm_set_rate() argument 747 clk_alpha_pll_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_round_rate() argument 779 alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u32 *a) alpha_huayra_pll_round_rate() argument 815 u64 rate = parent_rate, tmp; alpha_pll_huayra_recalc_rate() local 866 alpha_pll_huayra_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_huayra_set_rate() argument 909 alpha_pll_huayra_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) alpha_pll_huayra_round_rate() argument 1098 clk_alpha_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_round_rate() argument 1114 clk_alpha_pll_postdiv_round_ro_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_round_ro_rate() argument 1132 clk_alpha_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_alpha_pll_postdiv_set_rate() argument 1299 alpha_pll_check_rate_margin(struct clk_hw *hw, unsigned long rrate, unsigned long rate) alpha_pll_check_rate_margin() argument 1313 alpha_pll_fabia_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_fabia_set_rate() argument 1456 clk_trion_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_trion_pll_postdiv_round_rate() argument 1466 clk_trion_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_trion_pll_postdiv_set_rate() argument 1493 clk_alpha_pll_postdiv_fabia_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_fabia_round_rate() argument 1502 clk_alpha_pll_postdiv_fabia_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_alpha_pll_postdiv_fabia_set_rate() argument 1627 __alpha_pll_trion_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate, u32 latch_bit, u32 latch_ack) __alpha_pll_trion_set_rate() argument 1674 alpha_pll_trion_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_trion_set_rate() argument 1727 clk_alpha_pll_agera_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_agera_set_rate() argument 1862 alpha_pll_lucid_5lpe_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_lucid_5lpe_set_rate() argument 1870 __clk_lucid_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate, unsigned long enable_vote_run) __clk_lucid_pll_postdiv_set_rate() argument 1909 clk_lucid_5lpe_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_lucid_5lpe_pll_postdiv_set_rate() argument 2047 clk_zonda_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_zonda_pll_set_rate() argument 2269 clk_lucid_evo_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_lucid_evo_pll_postdiv_set_rate() argument 2344 clk_rivian_evo_pll_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_rivian_evo_pll_round_rate() argument 2437 clk_alpha_pll_stromer_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_stromer_set_rate() argument 2483 clk_alpha_pll_stromer_plus_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_stromer_plus_set_rate() argument [all...] |