Home
last modified time | relevance | path

Searched refs:rate (Results 526 - 550 of 4561) sorted by relevance

1...<<21222324252627282930>>...183

/kernel/linux/linux-6.6/drivers/clk/actions/
H A Dowl-composite.h30 union owl_rate rate; member
42 .rate.div_hw = _div, \
56 .rate.div_hw = _div, \
71 .rate.factor_hw = _factor, \
85 .rate.fix_fact_hw.mult = _mul, \
86 .rate.fix_fact_hw.div = _div, \
/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk-pfd.c65 static long clk_pfd_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pfd_round_rate() argument
71 tmp = tmp * 18 + rate / 2; in clk_pfd_round_rate()
72 do_div(tmp, rate); in clk_pfd_round_rate()
85 static int clk_pfd_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pfd_set_rate() argument
92 tmp = tmp * 18 + rate / 2; in clk_pfd_set_rate()
93 do_div(tmp, rate); in clk_pfd_set_rate()
H A Dclk-pllv1.c60 unsigned long rate; in clk_pllv1_recalc_rate() local
65 * Get the resulting clock rate from a PLL register value and the input in clk_pllv1_recalc_rate()
95 rate = parent_rate * 2; in clk_pllv1_recalc_rate()
96 rate /= pd + 1; in clk_pllv1_recalc_rate()
98 ull = (unsigned long long)rate * mfn_abs; in clk_pllv1_recalc_rate()
103 ull = (rate * mfi) - ull; in clk_pllv1_recalc_rate()
105 ull = (rate * mfi) + ull; in clk_pllv1_recalc_rate()
/kernel/linux/linux-6.6/drivers/clk/qcom/
H A Dclk-regmap-divider.c18 static long div_round_ro_rate(struct clk_hw *hw, unsigned long rate, in div_round_ro_rate() argument
29 return divider_ro_round_rate(hw, rate, prate, NULL, divider->width, in div_round_ro_rate()
33 static long div_round_rate(struct clk_hw *hw, unsigned long rate, in div_round_rate() argument
38 return divider_round_rate(hw, rate, prate, NULL, divider->width, in div_round_rate()
42 static int div_set_rate(struct clk_hw *hw, unsigned long rate, in div_set_rate() argument
49 div = divider_get_val(rate, parent_rate, NULL, divider->width, in div_set_rate()
/kernel/linux/linux-6.6/drivers/clk/mxs/
H A Dclk-ref.c20 * clock has a gate control and a fractional * divider. The rate is calculated
21 * as pll rate * (18 / FRAC), where FRAC = 18 ~ 35.
60 static long clk_ref_round_rate(struct clk_hw *hw, unsigned long rate, in clk_ref_round_rate() argument
67 tmp = tmp * 18 + rate / 2; in clk_ref_round_rate()
68 do_div(tmp, rate); in clk_ref_round_rate()
83 static int clk_ref_set_rate(struct clk_hw *hw, unsigned long rate, in clk_ref_set_rate() argument
92 tmp = tmp * 18 + rate / 2; in clk_ref_set_rate()
93 do_div(tmp, rate); in clk_ref_set_rate()
H A Dclk-frac.c47 static long clk_frac_round_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_round_rate() argument
55 if (rate > parent_rate) in clk_frac_round_rate()
58 tmp = rate; in clk_frac_round_rate()
73 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_set_rate() argument
81 if (rate > parent_rate) in clk_frac_set_rate()
84 tmp = rate; in clk_frac_set_rate()
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/
H A Dccu_gate.c82 unsigned long rate = parent_rate; in ccu_gate_recalc_rate() local
85 rate /= cg->common.prediv; in ccu_gate_recalc_rate()
87 return rate; in ccu_gate_recalc_rate()
90 static long ccu_gate_round_rate(struct clk_hw *hw, unsigned long rate, in ccu_gate_round_rate() argument
100 unsigned long best_parent = rate; in ccu_gate_round_rate()
110 static int ccu_gate_set_rate(struct clk_hw *hw, unsigned long rate, in ccu_gate_set_rate() argument
H A Dccu_frac.c57 unsigned long rate) in ccu_frac_helper_has_rate()
62 return (cf->rates[0] == rate) || (cf->rates[1] == rate); in ccu_frac_helper_has_rate()
90 unsigned long rate, u32 lock) in ccu_frac_helper_set_rate()
98 if (cf->rates[0] == rate) in ccu_frac_helper_set_rate()
100 else if (cf->rates[1] == rate) in ccu_frac_helper_set_rate()
55 ccu_frac_helper_has_rate(struct ccu_common *common, struct ccu_frac_internal *cf, unsigned long rate) ccu_frac_helper_has_rate() argument
88 ccu_frac_helper_set_rate(struct ccu_common *common, struct ccu_frac_internal *cf, unsigned long rate, u32 lock) ccu_frac_helper_set_rate() argument
/kernel/linux/linux-6.6/drivers/clk/samsung/
H A Dclk-pll.h50 .rate = PLL_VALID_RATE(_fin, _rate, \
59 .rate = PLL_VALID_RATE(_fin, _rate, \
69 .rate = PLL_VALID_RATE(_fin, _rate, \
79 .rate = PLL_VALID_RATE(_fin, _rate, \
90 .rate = PLL_VALID_RATE(_fin, _rate, \
104 unsigned int rate; member
/third_party/pulseaudio/src/pulsecore/resampler/
H A Dsoxr.c74 ratio = (double)r->i_ss.rate / (double)r->o_ss.rate; in resampler_soxr_reset()
101 ratio = (double)r->i_ss.rate / (double)r->o_ss.rate; in resampler_soxr_update_rates()
157 ratio = (double)r->i_ss.rate / (double)r->o_ss.rate; in pa_resampler_soxr_init()
/third_party/pulseaudio/src/modules/echo-cancel/
H A Dadrian.c62 int rate, have_vector = 0; in pa_adrian_ec_init() local
79 rate = out_ss->rate; in pa_adrian_ec_init()
80 *nframes = (rate * frame_size_ms) / 1000; in pa_adrian_ec_init()
83 pa_log_debug ("Using nframes %d, blocksize %u, channels %d, rate %d", *nframes, ec->params.adrian.blocksize, out_ss->channels, out_ss->rate); in pa_adrian_ec_init()
89 ec->params.adrian.aec = AEC_init(rate, have_vector); in pa_adrian_ec_init()
/third_party/pulseaudio/sonic/
H A Dmain.c22 float rate, in runSonic()
35 sonicSetRate(stream, rate); in runSonic()
65 " -r rate -- Set playback rate. 2.0 means 2X faster, and 2X pitch.\n" in usage()
79 float rate = 1.0f; in main() local
102 rate = atof(argv[xArg]); in main()
103 printf("Setting rate to %0.2fX\n", rate); in main()
134 runSonic(inFile, outFile, speed, pitch, rate, volume, emulateChordPitch, quality, in main()
17 runSonic( waveFile inFile, waveFile outFile, float speed, float pitch, float rate, float volume, int emulateChordPitch, int quality, int sampleRate, int numChannels) runSonic() argument
/kernel/linux/linux-6.6/drivers/clk/ti/
H A Ddpll3xxx.c176 * bypass mode, the DPLL's rate is set equal to its parent clock's
177 * rate. Waits for the DPLL to report readiness before returning.
493 * omap3_dpll_recalc - recalculate DPLL rate
495 * @parent_rate: clock rate of the DPLL parent
497 * Recalculate and propagate the DPLL rate.
513 * The choice of modes depends on the DPLL's programmed rate: if it is
573 /* Non-CORE DPLL rate set code */
576 * omap3_noncore_dpll_determine_rate - determine rate for a DPLL
577 * @hw: pointer to the clock to determine rate for
578 * @req: target rate reques
647 omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) omap3_noncore_dpll_set_rate() argument
695 omap3_noncore_dpll_set_rate_and_parent(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate, u8 index) omap3_noncore_dpll_set_rate_and_parent() argument
844 unsigned long rate; omap3_clkoutx2_recalc() local
1010 omap3_dpll4_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) omap3_dpll4_set_rate() argument
1038 omap3_dpll4_set_rate_and_parent(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate, u8 index) omap3_dpll4_set_rate_and_parent() argument
1055 unsigned int rate, m, n; omap3_dpll5_apply_errata() member
1106 omap3_dpll5_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) omap3_dpll5_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/
H A Dtx.c67 tx_desc->w4 = le32_encode_bits(pkt_info->rate, RTW_TX_DESC_W4_DATARATE); in rtw_tx_fill_tx_desc()
110 u8 rate; in get_highest_ht_tx_rate() local
113 rate = DESC_RATEMCS15; in get_highest_ht_tx_rate()
115 rate = DESC_RATEMCS7; in get_highest_ht_tx_rate()
117 return rate; in get_highest_ht_tx_rate()
124 u8 rate; in get_highest_vht_tx_rate() local
131 rate = DESC_RATEVHT1SS_MCS7; in get_highest_vht_tx_rate()
134 rate = DESC_RATEVHT1SS_MCS8; in get_highest_vht_tx_rate()
138 rate = DESC_RATEVHT1SS_MCS9; in get_highest_vht_tx_rate()
144 rate in get_highest_vht_tx_rate()
340 u8 rate = DESC_RATE6M; rtw_tx_data_pkt_info_update() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/
H A Dhyper_graphic_manager_test.cpp262 uint32_t rate = 120; in HWTEST_F() local
274 auto addScreenProfile = instance8.AddScreenInfo(screenId, width, height, rate, mode); in HWTEST_F()
309 uint32_t rate = 120; in HWTEST_F() local
320 auto addScreenProfile = instance.AddScreenInfo(screenId, width, height, rate, mode); in HWTEST_F()
346 uint32_t rate = 120; in HWTEST_F() local
354 instance.AddScreenInfo(screenId2, width, height, rate, mode); in HWTEST_F()
355 EXPECT_EQ(instance.AddScreenInfo(screenId2, width, height, rate, mode), HgmErrCode::HGM_SCREEN_PARAM_ERROR); in HWTEST_F()
365 EXPECT_EQ(screen2->SetRateAndResolution(screenId2, rate, width, height), mode); in HWTEST_F()
372 EXPECT_EQ(screen2->SetRateAndResolution(screenId2, rate, width2, height2), -1); in HWTEST_F()
373 EXPECT_EQ(screen2->SetRateAndResolution(screenId2, rate, widt in HWTEST_F()
443 uint32_t rate = 120; HWTEST_F() local
505 uint32_t rate = 120; HWTEST_F() local
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dadau1977.c246 * depending on the rate.
248 static int adau1977_lookup_fs(unsigned int rate) in adau1977_lookup_fs() argument
250 if (rate >= 8000 && rate <= 12000) in adau1977_lookup_fs()
252 else if (rate >= 16000 && rate <= 24000) in adau1977_lookup_fs()
254 else if (rate >= 32000 && rate <= 48000) in adau1977_lookup_fs()
256 else if (rate >= 64000 && rate < in adau1977_lookup_fs()
264 adau1977_lookup_mcs(struct adau1977 *adau1977, unsigned int rate, unsigned int fs) adau1977_lookup_mcs() argument
298 unsigned int rate = params_rate(params); adau1977_hw_params() local
[all...]
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dadau1977.c245 * depending on the rate.
247 static int adau1977_lookup_fs(unsigned int rate) in adau1977_lookup_fs() argument
249 if (rate >= 8000 && rate <= 12000) in adau1977_lookup_fs()
251 else if (rate >= 16000 && rate <= 24000) in adau1977_lookup_fs()
253 else if (rate >= 32000 && rate <= 48000) in adau1977_lookup_fs()
255 else if (rate >= 64000 && rate < in adau1977_lookup_fs()
263 adau1977_lookup_mcs(struct adau1977 *adau1977, unsigned int rate, unsigned int fs) adau1977_lookup_mcs() argument
297 unsigned int rate = params_rate(params); adau1977_hw_params() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/hgm_screen_manager/
H A Dhgm_core.h69 void SetPendingScreenRefreshRate(uint32_t rate) in SetPendingScreenRefreshRate() argument
71 pendingScreenRefreshRate_.store(rate); in SetPendingScreenRefreshRate()
81 // the rate takes effect at the latest hardware timing
82 void SetScreenRefreshRateImme(uint32_t rate) in SetScreenRefreshRateImme() argument
84 screenRefreshRateImme_.store(rate); in SetScreenRefreshRateImme()
184 int32_t SetScreenRefreshRate(ScreenId id, int32_t sceneId, int32_t rate);
185 static int32_t SetRateAndResolution(ScreenId id, int32_t sceneId, int32_t rate, int32_t width, int32_t height);
193 int32_t AddScreenInfo(ScreenId id, int32_t width, int32_t height, uint32_t rate, int32_t mode);
209 int64_t GetIdealPeriod(uint32_t rate);
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-plldig.c145 req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_determine_rate()
146 div = plldig_calc_target_div(data->vco_freq, req->rate); in plldig_determine_rate()
147 req->rate = DIV_ROUND_UP(data->vco_freq, div); in plldig_determine_rate()
152 static int plldig_set_rate(struct clk_hw *hw, unsigned long rate, in plldig_set_rate() argument
159 rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_set_rate()
160 rfdphi1 = plldig_calc_target_div(data->vco_freq, rate); in plldig_set_rate()
/kernel/linux/linux-5.10/drivers/clk/hisilicon/
H A Dclk-hi6220-stub.c119 u32 rate = 0; in hi6220_stub_clk_recalc_rate() local
124 rate = hi6220_acpu_get_freq(stub_clk); in hi6220_stub_clk_recalc_rate()
127 rate *= 1000; in hi6220_stub_clk_recalc_rate()
136 return rate; in hi6220_stub_clk_recalc_rate()
139 static int hi6220_stub_clk_set_rate(struct clk_hw *hw, unsigned long rate, in hi6220_stub_clk_set_rate() argument
143 unsigned long new_rate = rate / 1000; /* kHz */ in hi6220_stub_clk_set_rate()
160 pr_debug("%s: set rate=%ldkHz\n", __func__, new_rate); in hi6220_stub_clk_set_rate()
164 static long hi6220_stub_clk_round_rate(struct clk_hw *hw, unsigned long rate, in hi6220_stub_clk_round_rate() argument
168 unsigned long new_rate = rate / 1000; /* kHz */ in hi6220_stub_clk_round_rate()
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/
H A Dccu_mult.c17 static void ccu_mult_find_best(unsigned long parent, unsigned long rate, in ccu_mult_find_best() argument
22 _mult = rate / parent; in ccu_mult_find_best()
35 unsigned long rate, in ccu_mult_round_rate()
48 ccu_mult_find_best(*parent_rate, rate, &_cm); in ccu_mult_round_rate()
103 static int ccu_mult_set_rate(struct clk_hw *hw, unsigned long rate, in ccu_mult_set_rate() argument
111 if (ccu_frac_helper_has_rate(&cm->common, &cm->frac, rate)) { in ccu_mult_set_rate()
115 rate, cm->lock); in ccu_mult_set_rate()
130 ccu_mult_find_best(parent_rate, rate, &_cm); in ccu_mult_set_rate()
32 ccu_mult_round_rate(struct ccu_mux_internal *mux, struct clk_hw *parent, unsigned long *parent_rate, unsigned long rate, void *data) ccu_mult_round_rate() argument
/kernel/linux/linux-5.10/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-5.10/drivers/ide/
H A Dide-xfer-mode.c241 * ide_set_xfer_rate - set transfer rate
243 * @rate: speed to attempt to set
250 int ide_set_xfer_rate(ide_drive_t *drive, u8 rate) in ide_set_xfer_rate() argument
259 rate = ide_rate_filter(drive, rate); in ide_set_xfer_rate()
261 BUG_ON(rate < XFER_PIO_0); in ide_set_xfer_rate()
263 if (rate >= XFER_PIO_0 && rate <= XFER_PIO_6) in ide_set_xfer_rate()
264 return ide_set_pio_mode(drive, rate); in ide_set_xfer_rate()
266 return ide_set_dma_mode(drive, rate); in ide_set_xfer_rate()
[all...]
/kernel/linux/linux-5.10/sound/firewire/bebob/
H A Dbebob_focusrite.c142 saffirepro_both_clk_freq_get(struct snd_bebob *bebob, unsigned int *rate) in saffirepro_both_clk_freq_get() argument
153 *rate = rates[id]; in saffirepro_both_clk_freq_get()
158 saffirepro_both_clk_freq_set(struct snd_bebob *bebob, unsigned int rate) in saffirepro_both_clk_freq_set() argument
163 if (rates[id] == rate) in saffirepro_both_clk_freq_set()
277 .rate = &saffirepro_both_rate_spec,
288 .rate = &saffirepro_both_rate_spec,
309 .rate = &saffire_both_rate_spec,
320 .rate = &saffire_both_rate_spec,
/kernel/linux/linux-5.10/sound/firewire/fireface/
H A Dff-stream.c109 int snd_ff_stream_reserve_duplex(struct snd_ff *ff, unsigned int rate, in snd_ff_stream_reserve_duplex() argument
121 if (ff->substreams_counter == 0 || curr_rate != rate) { in snd_ff_stream_reserve_duplex()
132 if (amdtp_rate_table[i] == rate) in snd_ff_stream_reserve_duplex()
142 err = amdtp_ff_set_parameters(&ff->tx_stream, rate, in snd_ff_stream_reserve_duplex()
147 err = amdtp_ff_set_parameters(&ff->rx_stream, rate, in snd_ff_stream_reserve_duplex()
152 err = ff->spec->protocol->allocate_resources(ff, rate); in snd_ff_stream_reserve_duplex()
168 int snd_ff_stream_start_duplex(struct snd_ff *ff, unsigned int rate) in snd_ff_stream_start_duplex() argument
188 err = ff->spec->protocol->begin_session(ff, rate); in snd_ff_stream_start_duplex()

Completed in 14 milliseconds

1...<<21222324252627282930>>...183