Home
last modified time | relevance | path

Searched refs:rate (Results 801 - 825 of 4690) sorted by relevance

1...<<31323334353637383940>>...188

/kernel/linux/linux-6.6/drivers/clk/hisilicon/
H A Dclk-hi3559a.c353 u32 *fbdiv_val, u32 *refdiv_val, u64 rate) in hi3559av100_calc_pll()
360 rate = rate * ((*postdiv1_val) * (*postdiv2_val)); in hi3559av100_calc_pll()
363 rem = do_div(rate, 1000000); in hi3559av100_calc_pll()
364 rem = do_div(rate, PLL_MASK_WIDTH); in hi3559av100_calc_pll()
365 *fbdiv_val = rate; in hi3559av100_calc_pll()
373 unsigned long rate, in clk_pll_set_rate()
383 &fbdiv_val, &refdiv_val, (u64)rate); in clk_pll_set_rate()
413 u64 tmp, rate; in clk_pll_recalc_rate() local
440 /* rate in clk_pll_recalc_rate()
351 hi3559av100_calc_pll(u32 *frac_val, u32 *postdiv1_val, u32 *postdiv2_val, u32 *fbdiv_val, u32 *refdiv_val, u64 rate) hi3559av100_calc_pll() argument
372 clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_pll_set_rate() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/mediatek/mt8186/
H A Dmt8186-dai-adda.c87 unsigned int rate) in adda_dl_rate_transform()
89 switch (rate) { in adda_dl_rate_transform()
113 dev_dbg(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform()
114 __func__, rate); in adda_dl_rate_transform()
121 unsigned int rate) in adda_ul_rate_transform()
123 switch (rate) { in adda_ul_rate_transform()
137 dev_dbg(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_ul_rate_transform()
138 __func__, rate); in adda_ul_rate_transform()
647 unsigned int rate = params_rate(params); in mtk_dai_adda_hw_params() local
651 dev_dbg(afe->dev, "%s(), id %d, stream %d, rate in mtk_dai_adda_hw_params()
86 adda_dl_rate_transform(struct mtk_base_afe *afe, unsigned int rate) adda_dl_rate_transform() argument
120 adda_ul_rate_transform(struct mtk_base_afe *afe, unsigned int rate) adda_ul_rate_transform() argument
[all...]
/third_party/pulseaudio/sonic/
H A DSonic.java25 private float rate; field in Sonic
122 // Get the rate of the stream.
125 return rate; in getRate()
128 // Set the playback rate of the stream. This scales pitch and speed at the same time.
130 float rate) in setRate()
132 this.rate = rate; in setRate()
207 rate = 1.0f; in Sonic()
214 // Get the sample rate of the stream.
220 // Set the sample rate o
129 setRate( float rate) setRate() argument
762 adjustRate( float rate, int originalNumOutputSamples) adjustRate() argument
946 changeFloatSpeed( float samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) changeFloatSpeed() argument
972 sonicChangeShortSpeed( short samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) sonicChangeShortSpeed() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dscan.c1970 int rate = 0; in wpa_scan_get_max_rate() local
1976 if ((ie[i + 2] & 0x7f) > rate) in wpa_scan_get_max_rate()
1977 rate = ie[i + 2] & 0x7f; in wpa_scan_get_max_rate()
1982 if ((ie[i + 2] & 0x7f) > rate) in wpa_scan_get_max_rate()
1983 rate = ie[i + 2] & 0x7f; in wpa_scan_get_max_rate()
1986 return rate; in wpa_scan_get_max_rate()
2174 /* If SNR is close, decide by max rate or frequency band. For cases in wpa_scan_result_compar()
2574 const u8 *ies, size_t ies_len, int rate, in wpas_get_est_tpt()
2582 if (rate > 1 * 2 && snr < 1) in wpas_get_est_tpt()
2583 rate in wpas_get_est_tpt()
2573 wpas_get_est_tpt(const struct wpa_supplicant *wpa_s, const u8 *ies, size_t ies_len, int rate, int snr, int freq) wpas_get_est_tpt() argument
2750 int rate; /* max legacy rate in 500 kb/s units */ scan_est_throughput() local
[all...]
/device/soc/rockchip/common/vendor/drivers/clk/
H A Dclk-pvtm.c46 unsigned long rate; member
137 /* set pvtm_div to get rate */ in rockchip_clock_pvtm_init_freq()
138 div = DIV_ROUND_UP(0x3e8 * pvtm_cnt, pvtm->rate); in rockchip_clock_pvtm_init_freq()
144 pr_debug("set div %d, rate %luKHZ\n", div, pvtm->rate); in rockchip_clock_pvtm_init_freq()
223 u32 rate; in rockchip_clock_pvtm_probe() local
249 if (!of_property_read_u32(np, "pvtm-rate", &rate)) { in rockchip_clock_pvtm_probe()
250 pvtm->rate = rate; in rockchip_clock_pvtm_probe()
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/clk/rockchip/
H A Dclk-pvtm.c47 unsigned long rate; member
138 /* set pvtm_div to get rate */ in rockchip_clock_pvtm_init_freq()
139 div = DIV_ROUND_UP(1000 * pvtm_cnt, pvtm->rate); in rockchip_clock_pvtm_init_freq()
145 pr_debug("set div %d, rate %luKHZ\n", div, pvtm->rate); in rockchip_clock_pvtm_init_freq()
227 u32 rate; in rockchip_clock_pvtm_probe() local
248 if (!of_property_read_u32(np, "pvtm-rate", &rate)) in rockchip_clock_pvtm_probe()
249 pvtm->rate = rate; in rockchip_clock_pvtm_probe()
[all...]
/kernel/linux/linux-5.10/drivers/clk/renesas/
H A Dclk-div6.c93 static unsigned int cpg_div6_clock_calc_div(unsigned long rate, in cpg_div6_clock_calc_div() argument
98 if (!rate) in cpg_div6_clock_calc_div()
99 rate = 1; in cpg_div6_clock_calc_div()
101 div = DIV_ROUND_CLOSEST(parent_rate, rate); in cpg_div6_clock_calc_div()
105 static long cpg_div6_clock_round_rate(struct clk_hw *hw, unsigned long rate, in cpg_div6_clock_round_rate() argument
108 unsigned int div = cpg_div6_clock_calc_div(rate, *parent_rate); in cpg_div6_clock_round_rate()
113 static int cpg_div6_clock_set_rate(struct clk_hw *hw, unsigned long rate, in cpg_div6_clock_set_rate() argument
117 unsigned int div = cpg_div6_clock_calc_div(rate, parent_rate); in cpg_div6_clock_set_rate()
/kernel/linux/linux-5.10/drivers/clk/qcom/
H A Dcommon.c27 struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, unsigned long rate) in qcom_find_freq() argument
36 if (rate <= f->freq) in qcom_find_freq()
39 /* Default to our fastest rate */ in qcom_find_freq()
45 unsigned long rate) in qcom_find_freq_floor()
50 if (rate >= f->freq) in qcom_find_freq_floor()
129 * clk as a fixed rate clock if it isn't present.
132 const char *name, unsigned long rate, in _qcom_cc_register_board_clk()
153 fixed->fixed_rate = rate; in _qcom_cc_register_board_clk()
188 const char *name, unsigned long rate) in qcom_cc_register_board_clk()
198 return _qcom_cc_register_board_clk(dev, path, name, rate, add_facto in qcom_cc_register_board_clk()
44 qcom_find_freq_floor(const struct freq_tbl *f, unsigned long rate) qcom_find_freq_floor() argument
131 _qcom_cc_register_board_clk(struct device *dev, const char *path, const char *name, unsigned long rate, bool add_factor) _qcom_cc_register_board_clk() argument
187 qcom_cc_register_board_clk(struct device *dev, const char *path, const char *name, unsigned long rate) qcom_cc_register_board_clk() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
H A Dtx.c46 * As a work-around encode the desired rate in PKT_ID of TX descriptor
47 * and based on that guess the retries (every rate is tried once).
55 static u8 mt7601u_tx_pktid_enc(struct mt7601u_dev *dev, u8 rate, bool is_probe) in mt7601u_tx_pktid_enc() argument
57 u8 encoded = (rate + 1) + is_probe * 8; in mt7601u_tx_pktid_enc()
64 if (is_probe && rate == 7) in mt7601u_tx_pktid_enc()
74 u8 eff_rate = stat->rate & 0x7; in mt7601u_tx_pktid_dec()
135 struct ieee80211_tx_rate *rate = &info->control.rates[0]; in mt7601u_push_txwi() local
151 if (rate->idx < 0 || !rate->count) in mt7601u_push_txwi()
154 rate_ctl = mt76_mac_tx_rate_val(dev, rate, in mt7601u_push_txwi()
[all...]
/kernel/linux/linux-5.10/net/sched/
H A Dact_sample.c44 u32 psample_group_num, rate, index; in tcf_sample_init() local
84 NL_SET_ERR_MSG(extack, "sample rate and group are required"); in tcf_sample_init()
93 rate = nla_get_u32(tb[TCA_SAMPLE_RATE]); in tcf_sample_init()
94 if (!rate) { in tcf_sample_init()
95 NL_SET_ERR_MSG(extack, "invalid sample rate"); in tcf_sample_init()
110 s->rate = rate; in tcf_sample_init()
179 /* randomly sample packets according to rate */ in tcf_sample_act()
180 if (psample_group && (prandom_u32() % s->rate == 0)) { in tcf_sample_act()
195 s->rate); in tcf_sample_act()
[all...]
/kernel/linux/linux-5.10/sound/firewire/tascam/
H A Dtascam-pcm.c65 // transmission of PCM frames, the available sampling rate is limited in pcm_open()
70 unsigned int rate; in pcm_open() local
72 err = snd_tscm_stream_get_rate(tscm, &rate); in pcm_open()
77 substream->runtime->hw.rate_min = rate; in pcm_open()
78 substream->runtime->hw.rate_max = rate; in pcm_open()
123 unsigned int rate = params_rate(hw_params); in pcm_hw_params() local
128 err = snd_tscm_stream_reserve_duplex(tscm, rate, in pcm_hw_params()
162 err = snd_tscm_stream_start_duplex(tscm, runtime->rate); in pcm_capture_prepare()
179 err = snd_tscm_stream_start_duplex(tscm, runtime->rate); in pcm_playback_prepare()
/kernel/linux/linux-5.10/drivers/watchdog/
H A Dqcom-wdt.c49 unsigned long rate; member
81 writel(bark * wdt->rate, wdt_addr(wdt, WDT_BARK_TIME)); in qcom_wdt_start()
82 writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BITE_TIME)); in qcom_wdt_start()
127 timeout = 128 * wdt->rate / 1000; in qcom_wdt_restart()
238 * We use the clock rate to calculate the max timeout, so ensure it's in qcom_wdt_probe()
245 wdt->rate = clk_get_rate(clk); in qcom_wdt_probe()
246 if (wdt->rate == 0 || in qcom_wdt_probe()
247 wdt->rate > 0x10000000U) { in qcom_wdt_probe()
248 dev_err(dev, "invalid clock rate\n"); in qcom_wdt_probe()
271 wdt->wdd.max_timeout = 0x10000000U / wdt->rate; in qcom_wdt_probe()
[all...]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
H A Dv4l2-clk.c196 int v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate) in v4l2_clk_set_rate() argument
201 long r = clk_round_rate(clk->clk, rate); in v4l2_clk_set_rate()
216 ret = clk->ops->set_rate(clk, rate); in v4l2_clk_set_rate()
285 unsigned long rate; member
292 return priv->rate; in fixed_get_rate()
296 unsigned long rate, struct module *owner) in __v4l2_clk_register_fixed()
304 priv->rate = rate; in __v4l2_clk_register_fixed()
295 __v4l2_clk_register_fixed(const char *dev_id, unsigned long rate, struct module *owner) __v4l2_clk_register_fixed() argument
/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-tegra.c18 * achieved is (max rate of source clock) / 256.
19 * e.g. if source clock rate is 408 MHz, maximum output frequency can be:
100 unsigned long rate, required_clk_rate; in tegra_pwm_config() local
122 * cycles at the PWM clock rate will take period_ns nanoseconds. in tegra_pwm_config()
130 * nums_channels == 1 then only the clock rate can be modified in tegra_pwm_config()
136 * with the maximum possible rate that the controller can in tegra_pwm_config()
140 * required_clk_rate is a reference rate for source clock and in tegra_pwm_config()
142 * source clock rate as required_clk_rate, PWM controller will in tegra_pwm_config()
152 /* Store the new rate for further references */ in tegra_pwm_config()
156 rate in tegra_pwm_config()
[all...]
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-brcmstb-waketimer.c33 u32 rate; member
56 writel_relaxed(timer->rate, timer->base + BRCMSTB_WKTMR_PRESCALER); in brcmstb_waketmr_set_alarm()
83 } while (tmp >= timer->rate); in wktmr_read()
85 t->pre = timer->rate - tmp; in wktmr_read()
236 timer->rate = clk_get_rate(timer->clk); in brcmstb_waketmr_probe()
237 if (!timer->rate) in brcmstb_waketmr_probe()
238 timer->rate = BRCMSTB_WKTMR_DEFAULT_FREQ; in brcmstb_waketmr_probe()
240 timer->rate = BRCMSTB_WKTMR_DEFAULT_FREQ; in brcmstb_waketmr_probe()
/kernel/linux/linux-6.6/drivers/watchdog/
H A Dqcom-wdt.c48 unsigned long rate; member
80 writel(bark * wdt->rate, wdt_addr(wdt, WDT_BARK_TIME)); in qcom_wdt_start()
81 writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BITE_TIME)); in qcom_wdt_start()
126 timeout = 128 * wdt->rate / 1000; in qcom_wdt_restart()
230 * We use the clock rate to calculate the max timeout, so ensure it's in qcom_wdt_probe()
237 wdt->rate = clk_get_rate(clk); in qcom_wdt_probe()
238 if (wdt->rate == 0 || in qcom_wdt_probe()
239 wdt->rate > 0x10000000U) { in qcom_wdt_probe()
240 dev_err(dev, "invalid clock rate\n"); in qcom_wdt_probe()
263 wdt->wdd.max_timeout = 0x10000000U / wdt->rate; in qcom_wdt_probe()
[all...]
/kernel/linux/linux-6.6/drivers/clk/bcm/
H A Dclk-raspberrypi.c81 * Since the rate can get quite large, and we need to
93 * initialization and leave it with a rate of 0,
105 * resolution output on each. Since the rate can get
203 static int raspberrypi_fw_set_rate(struct clk_hw *hw, unsigned long rate, in raspberrypi_fw_set_rate() argument
209 u32 _rate = rate; in raspberrypi_fw_set_rate()
234 req->rate = clamp(req->rate, req->min_rate, req->max_rate); in raspberrypi_fw_dumb_determine_rate()
237 * We want to aggressively reduce the clock rate here, so let's in raspberrypi_fw_dumb_determine_rate()
238 * just ignore the requested rate and return the bare minimum in raspberrypi_fw_dumb_determine_rate()
239 * rate w in raspberrypi_fw_dumb_determine_rate()
313 unsigned long rate; raspberrypi_clk_register() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk-composite-8m.c50 static int imx8m_clk_composite_compute_dividers(unsigned long rate, in imx8m_clk_composite_compute_dividers() argument
63 int new_error = ((parent_rate / div1) / div2) - rate; in imx8m_clk_composite_compute_dividers()
77 unsigned long rate, in imx8m_clk_composite_divider_round_rate()
83 imx8m_clk_composite_compute_dividers(rate, *prate, in imx8m_clk_composite_divider_round_rate()
85 rate = DIV_ROUND_UP(*prate, prediv_value); in imx8m_clk_composite_divider_round_rate()
87 return DIV_ROUND_UP(rate, div_value); in imx8m_clk_composite_divider_round_rate()
92 unsigned long rate, in imx8m_clk_composite_divider_set_rate()
102 ret = imx8m_clk_composite_compute_dividers(rate, parent_rate, in imx8m_clk_composite_divider_set_rate()
76 imx8m_clk_composite_divider_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) imx8m_clk_composite_divider_round_rate() argument
91 imx8m_clk_composite_divider_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) imx8m_clk_composite_divider_set_rate() argument
/kernel/linux/linux-6.6/drivers/clk/qcom/
H A Dcommon.c27 struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, unsigned long rate) in qcom_find_freq() argument
36 if (rate <= f->freq) in qcom_find_freq()
39 /* Default to our fastest rate */ in qcom_find_freq()
45 unsigned long rate) in qcom_find_freq_floor()
50 if (rate >= f->freq) in qcom_find_freq_floor()
127 * clk as a fixed rate clock if it isn't present.
130 const char *name, unsigned long rate, in _qcom_cc_register_board_clk()
151 fixed->fixed_rate = rate; in _qcom_cc_register_board_clk()
186 const char *name, unsigned long rate) in qcom_cc_register_board_clk()
196 return _qcom_cc_register_board_clk(dev, path, name, rate, add_facto in qcom_cc_register_board_clk()
44 qcom_find_freq_floor(const struct freq_tbl *f, unsigned long rate) qcom_find_freq_floor() argument
129 _qcom_cc_register_board_clk(struct device *dev, const char *path, const char *name, unsigned long rate, bool add_factor) _qcom_cc_register_board_clk() argument
185 qcom_cc_register_board_clk(struct device *dev, const char *path, const char *name, unsigned long rate) qcom_cc_register_board_clk() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/nuvoton/
H A Dclk-ma35d1-pll.c123 static int ma35d1_pll_find_closest(struct ma35d1_clk_pll *pll, unsigned long rate, in ma35d1_pll_find_closest() argument
132 if (rate < PLL_FCLKO_MIN_FREQ || rate > PLL_FCLKO_MAX_FREQ) in ma35d1_pll_find_closest()
167 diff = abs(rate - fout); in ma35d1_pll_find_closest()
185 static int ma35d1_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, in ma35d1_clk_pll_set_rate() argument
196 ret = ma35d1_pll_find_closest(pll, rate, parent_rate, reg_ctl, &pll_freq); in ma35d1_clk_pll_set_rate()
247 static long ma35d1_clk_pll_round_rate(struct clk_hw *hw, unsigned long rate, in ma35d1_clk_pll_round_rate() argument
258 ret = ma35d1_pll_find_closest(pll, rate, *parent_rate, reg_ctl, &pll_freq); in ma35d1_clk_pll_round_rate()
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt7601u/
H A Dtx.c46 * As a work-around encode the desired rate in PKT_ID of TX descriptor
47 * and based on that guess the retries (every rate is tried once).
55 static u8 mt7601u_tx_pktid_enc(struct mt7601u_dev *dev, u8 rate, bool is_probe) in mt7601u_tx_pktid_enc() argument
57 u8 encoded = (rate + 1) + is_probe * 8; in mt7601u_tx_pktid_enc()
64 if (is_probe && rate == 7) in mt7601u_tx_pktid_enc()
74 u8 eff_rate = stat->rate & 0x7; in mt7601u_tx_pktid_dec()
135 struct ieee80211_tx_rate *rate = &info->control.rates[0]; in mt7601u_push_txwi() local
151 if (rate->idx < 0 || !rate->count) in mt7601u_push_txwi()
154 rate_ctl = mt76_mac_tx_rate_val(dev, rate, in mt7601u_push_txwi()
[all...]
/kernel/linux/linux-6.6/sound/mips/
H A Dsnd-n64.c212 u32 rate; in n64audio_pcm_prepare() local
214 rate = ((2 * AI_NTSC_DACRATE / runtime->rate) + 1) / 2 - 1; in n64audio_pcm_prepare()
216 n64audio_write_reg(priv, AI_RATE_REG, rate); in n64audio_pcm_prepare()
218 rate /= 66; in n64audio_pcm_prepare()
219 if (rate > 16) in n64audio_pcm_prepare()
220 rate = 16; in n64audio_pcm_prepare()
221 n64audio_write_reg(priv, AI_BITCLOCK_REG, rate - 1); in n64audio_pcm_prepare()
/kernel/linux/linux-6.6/sound/soc/intel/avs/boards/
H A Dnau8825.c120 struct snd_interval *rate, *channels; in avs_nau8825_be_fixup() local
123 rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in avs_nau8825_be_fixup()
127 /* The ADSP will convert the FE rate to 48k, stereo */ in avs_nau8825_be_fixup()
128 rate->min = rate->max = 48000; in avs_nau8825_be_fixup()
153 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, runtime->rate, runtime->rate * 256); in avs_nau8825_trigger()
159 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, runtime->rate, runtime->rate * 256); in avs_nau8825_trigger()
/third_party/ffmpeg/libavformat/
H A Dsiff.c49 int rate; member
85 ast->codecpar->sample_rate = c->rate; in create_audio_stream()
86 avpriv_set_pts_info(ast, 16, 1, c->rate); in create_audio_stream()
117 c->rate = avio_rl16(pb); in siff_parse_vbv1()
118 c->block_align = c->rate * (c->bits >> 3); in siff_parse_vbv1()
137 c->has_audio = !!c->rate; in siff_parse_vbv1()
155 c->rate = avio_rl16(pb); in siff_parse_soun()
157 c->block_align = c->rate * (c->bits >> 3); in siff_parse_soun()
H A Dau.c152 unsigned int id, channels, rate; in au_read_header() local
170 rate = avio_rb32(pb); in au_read_header()
207 if (rate == 0 || rate > INT_MAX) { in au_read_header()
208 av_log(s, AV_LOG_ERROR, "Invalid sample rate: %u\n", rate); in au_read_header()
219 st->codecpar->sample_rate = rate; in au_read_header()
221 st->codecpar->bit_rate = channels * rate * bps; in au_read_header()
227 avpriv_set_pts_info(st, 64, 1, rate); in au_read_header()

Completed in 19 milliseconds

1...<<31323334353637383940>>...188