Home
last modified time | relevance | path

Searched refs:rate (Results 376 - 400 of 4561) sorted by relevance

1...<<11121314151617181920>>...183

/kernel/linux/linux-6.6/drivers/clocksource/
H A Dmps2-timer.c103 u32 rate; in mps2_clockevent_init() local
107 ret = of_property_read_u32(np, "clock-frequency", &rate); in mps2_clockevent_init()
122 rate = clk_get_rate(clk); in mps2_clockevent_init()
146 ce->clock_count_per_tick = DIV_ROUND_CLOSEST(rate, HZ); in mps2_clockevent_init()
166 clockevents_config_and_register(&ce->clkevt, rate, 0xf, 0xffffffff); in mps2_clockevent_init()
187 u32 rate; in mps2_clocksource_init() local
191 ret = of_property_read_u32(np, "clock-frequency", &rate); in mps2_clocksource_init()
206 rate = clk_get_rate(clk); in mps2_clocksource_init()
226 rate, 200, 32, in mps2_clocksource_init()
234 sched_clock_register(mps2_sched_read, 32, rate); in mps2_clocksource_init()
[all...]
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-cdce706.c185 static long cdce706_pll_round_rate(struct clk_hw *hw, unsigned long rate, in cdce706_pll_round_rate() argument
193 "%s, rate: %lu, parent_rate: %lu\n", in cdce706_pll_round_rate()
194 __func__, rate, *parent_rate); in cdce706_pll_round_rate()
196 rational_best_approximation(rate, *parent_rate, in cdce706_pll_round_rate()
211 static int cdce706_pll_set_rate(struct clk_hw *hw, unsigned long rate, in cdce706_pll_set_rate() argument
246 rate > CDCE706_PLL_FREQ_HI ? in cdce706_pll_set_rate()
290 static long cdce706_divider_round_rate(struct clk_hw *hw, unsigned long rate, in cdce706_divider_round_rate() argument
298 "%s, rate: %lu, parent_rate: %lu\n", in cdce706_divider_round_rate()
299 __func__, rate, *parent_rate); in cdce706_divider_round_rate()
301 rational_best_approximation(rate, *parent_rat in cdce706_divider_round_rate()
358 cdce706_divider_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) cdce706_divider_set_rate() argument
423 cdce706_clkout_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) cdce706_clkout_round_rate() argument
430 cdce706_clkout_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) cdce706_clkout_set_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-synquacer.c22 #define WAIT_PCLK(n, rate) \
23 ndelay(DIV_ROUND_UP(DIV_ROUND_UP(1000000000, rate), n) + 10)
66 #define SYNQUACER_I2C_BUS_CLK_FR(rate) (((rate) / 20000000) + 1)
69 #define SYNQUACER_I2C_CLK_MASTER_STD(rate) \
70 DIV_ROUND_UP(DIV_ROUND_UP((rate), I2C_MAX_STANDARD_MODE_FREQ) - 2, 2)
72 #define SYNQUACER_I2C_CLK_MASTER_FAST(rate) \
73 DIV_ROUND_UP((DIV_ROUND_UP((rate), I2C_MAX_FAST_MODE_FREQ) - 2) * 2, 3)
77 #define SYNQUACER_I2C_CCR_CS_STD_MAX_18M(rate) \
78 ((SYNQUACER_I2C_CLK_MASTER_STD(rate)
[all...]
/kernel/linux/linux-5.10/drivers/staging/wfx/
H A Ddata_tx.c21 const struct ieee80211_tx_rate *rate) in wfx_get_hw_rate()
25 if (rate->idx < 0) in wfx_get_hw_rate()
27 if (rate->flags & IEEE80211_TX_RC_MCS) { in wfx_get_hw_rate()
28 if (rate->idx > 7) { in wfx_get_hw_rate()
29 WARN(1, "wrong rate->idx value: %d", rate->idx); in wfx_get_hw_rate()
32 return rate->idx + 14; in wfx_get_hw_rate()
37 if (rate->idx >= band->n_bitrates) { in wfx_get_hw_rate()
38 WARN(1, "wrong rate->idx value: %d", rate in wfx_get_hw_rate()
20 wfx_get_hw_rate(struct wfx_dev *wdev, const struct ieee80211_tx_rate *rate) wfx_get_hw_rate() argument
455 struct ieee80211_tx_rate *rate; wfx_tx_fill_rates() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-cdce706.c186 static long cdce706_pll_round_rate(struct clk_hw *hw, unsigned long rate, in cdce706_pll_round_rate() argument
194 "%s, rate: %lu, parent_rate: %lu\n", in cdce706_pll_round_rate()
195 __func__, rate, *parent_rate); in cdce706_pll_round_rate()
197 rational_best_approximation(rate, *parent_rate, in cdce706_pll_round_rate()
212 static int cdce706_pll_set_rate(struct clk_hw *hw, unsigned long rate, in cdce706_pll_set_rate() argument
247 rate > CDCE706_PLL_FREQ_HI ? in cdce706_pll_set_rate()
296 unsigned long rate = req->rate; in cdce706_divider_determine_rate() local
300 "%s, rate: %lu, parent_rate: %lu\n", in cdce706_divider_determine_rate()
301 __func__, rate, re in cdce706_divider_determine_rate()
361 cdce706_divider_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) cdce706_divider_set_rate() argument
434 cdce706_clkout_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) cdce706_clkout_set_rate() argument
[all...]
H A Dclk.c67 unsigned long rate; member
487 return core->rate; in clk_core_get_rate_nolock()
491 * known yet. Best to return 0 as the rate of this clk until we can in clk_core_get_rate_nolock()
492 * properly recalc the rate based on the parent's rate. in clk_core_get_rate_nolock()
544 static bool mux_is_better_rate(unsigned long rate, unsigned long now, in mux_is_better_rate() argument
548 return abs(now - rate) < abs(best - rate); in mux_is_better_rate()
550 return now <= rate && now > best; in mux_is_better_rate()
555 unsigned long rate);
1468 long rate; clk_core_determine_round_nolock() local
1513 clk_core_init_rate_req(struct clk_core * const core, struct clk_rate_request *req, unsigned long rate) clk_core_init_rate_req() argument
1551 clk_hw_init_rate_request(const struct clk_hw *hw, struct clk_rate_request *req, unsigned long rate) clk_hw_init_rate_request() argument
1664 clk_hw_round_rate(struct clk_hw *hw, unsigned long rate) clk_hw_round_rate() argument
1692 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
1826 unsigned long rate = parent_rate; clk_recalc() local
1896 unsigned long rate; clk_get_rate() local
2175 clk_calc_new_rates(struct clk_core *core, unsigned long rate) clk_calc_new_rates() argument
2423 unsigned long rate; clk_core_set_rate_nolock() local
2489 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
2532 clk_set_rate_exclusive(struct clk *clk, unsigned long rate) clk_set_rate_exclusive() argument
2565 unsigned long old_min, old_max, rate; clk_set_rate_range_nolock() local
2663 clk_set_min_rate(struct clk *clk, unsigned long rate) clk_set_min_rate() argument
2681 clk_set_max_rate(struct clk *clk, unsigned long rate) clk_set_max_rate() argument
3744 unsigned long rate; __clk_core_init() local
4338 clk_nodrv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_nodrv_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/silabs/wfx/
H A Ddata_tx.c20 static int wfx_get_hw_rate(struct wfx_dev *wdev, const struct ieee80211_tx_rate *rate) in wfx_get_hw_rate() argument
24 if (rate->idx < 0) in wfx_get_hw_rate()
26 if (rate->flags & IEEE80211_TX_RC_MCS) { in wfx_get_hw_rate()
27 if (rate->idx > 7) { in wfx_get_hw_rate()
28 WARN(1, "wrong rate->idx value: %d", rate->idx); in wfx_get_hw_rate()
31 return rate->idx + 14; in wfx_get_hw_rate()
37 if (rate->idx >= band->n_bitrates) { in wfx_get_hw_rate()
38 WARN(1, "wrong rate->idx value: %d", rate in wfx_get_hw_rate()
425 struct ieee80211_tx_rate *rate; wfx_tx_fill_rates() local
[all...]
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-synquacer.c22 #define WAIT_PCLK(n, rate) \
23 ndelay(DIV_ROUND_UP(DIV_ROUND_UP(1000000000, rate), n) + 10)
66 #define SYNQUACER_I2C_BUS_CLK_FR(rate) (((rate) / 20000000) + 1)
69 #define SYNQUACER_I2C_CLK_MASTER_STD(rate) \
70 DIV_ROUND_UP(DIV_ROUND_UP((rate), I2C_MAX_STANDARD_MODE_FREQ) - 2, 2)
72 #define SYNQUACER_I2C_CLK_MASTER_FAST(rate) \
73 DIV_ROUND_UP((DIV_ROUND_UP((rate), I2C_MAX_FAST_MODE_FREQ) - 2) * 2, 3)
77 #define SYNQUACER_I2C_CCR_CS_STD_MAX_18M(rate) \
78 ((SYNQUACER_I2C_CLK_MASTER_STD(rate)
[all...]
/kernel/linux/linux-6.6/sound/firewire/fireface/
H A Dff-protocol-former.c15 static int parse_clock_bits(u32 data, unsigned int *rate, in parse_clock_bits() argument
19 unsigned int rate; in parse_clock_bits() member
47 *rate = rate_entry->rate; in parse_clock_bits()
71 static int former_get_clock(struct snd_ff *ff, unsigned int *rate, in former_get_clock() argument
84 return parse_clock_bits(data, rate, src); in former_get_clock()
125 unsigned int rate; in dump_clock_config() local
149 err = parse_clock_bits(data, &rate, &src); in dump_clock_config()
156 snd_iprintf(buffer, "Clock configuration: %d %s\n", rate, label); in dump_clock_config()
182 unsigned int rate; in dump_sync_status() member
230 unsigned int rate; dump_sync_status() local
335 ff800_allocate_resources(struct snd_ff *ff, unsigned int rate) ff800_allocate_resources() argument
373 ff800_begin_session(struct snd_ff *ff, unsigned int rate) ff800_begin_session() argument
439 ff400_allocate_resources(struct snd_ff *ff, unsigned int rate) ff400_allocate_resources() argument
486 ff400_begin_session(struct snd_ff *ff, unsigned int rate) ff400_begin_session() argument
[all...]
/kernel/linux/linux-5.10/samples/bpf/
H A Dhbm_out_kern.c15 * occur at the actual qdisc (which is not used for rate limiting).
103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); in _hbm_out_cg()
114 // Check if we should update rate in _hbm_out_cg()
115 if (qsp != NULL && (qsp->rate * 128) != qdp->rate) { in _hbm_out_cg()
116 qdp->rate = qsp->rate * 128; in _hbm_out_cg()
117 bpf_printk("Updating rate: %d (1sec:%llu bits)\n", in _hbm_out_cg()
118 (int)qdp->rate, in _hbm_out_cg()
119 CREDIT_PER_NS(1000000000, qdp->rate) * in _hbm_out_cg()
[all...]
/kernel/linux/linux-5.10/sound/soc/samsung/
H A Dh1940_uda1380.c72 unsigned int rate = params_rate(params); in h1940_hw_params() local
74 switch (rate) { in h1940_hw_params()
78 div = s3c24xx_i2s_get_clockrate() / (384 * rate); in h1940_hw_params()
79 if (s3c24xx_i2s_get_clockrate() % (384 * rate) > (192 * rate)) in h1940_hw_params()
83 dev_err(rtd->dev, "%s: rate %d is not supported\n", in h1940_hw_params()
84 __func__, rate); in h1940_hw_params()
89 ret = snd_soc_dai_set_sysclk(cpu_dai, S3C24XX_CLKSRC_PCLK, rate, in h1940_hw_params()
94 /* set MCLK division for sample rate */ in h1940_hw_params()
100 /* set BCLK division for sample rate */ in h1940_hw_params()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-starfive.c30 unsigned long rate; in starfive_dwmac_fix_mac_speed() local
33 rate = clk_get_rate(dwmac->clk_tx); in starfive_dwmac_fix_mac_speed()
37 rate = 125000000; in starfive_dwmac_fix_mac_speed()
40 rate = 25000000; in starfive_dwmac_fix_mac_speed()
43 rate = 2500000; in starfive_dwmac_fix_mac_speed()
50 err = clk_set_rate(dwmac->clk_tx, rate); in starfive_dwmac_fix_mac_speed()
52 dev_err(dwmac->dev, "failed to set tx rate %lu\n", rate); in starfive_dwmac_fix_mac_speed()
/kernel/linux/linux-6.6/samples/bpf/
H A Dhbm_out_kern.c15 * occur at the actual qdisc (which is not used for rate limiting).
103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); in _hbm_out_cg()
114 // Check if we should update rate in _hbm_out_cg()
115 if (qsp != NULL && (qsp->rate * 128) != qdp->rate) { in _hbm_out_cg()
116 qdp->rate = qsp->rate * 128; in _hbm_out_cg()
117 bpf_printk("Updating rate: %d (1sec:%llu bits)\n", in _hbm_out_cg()
118 (int)qdp->rate, in _hbm_out_cg()
119 CREDIT_PER_NS(1000000000, qdp->rate) * in _hbm_out_cg()
[all...]
/kernel/linux/linux-5.10/drivers/clk/qcom/
H A Dclk-alpha-pll.c415 alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a, in alpha_pll_round_rate() argument
421 quotient = rate; in alpha_pll_round_rate()
427 return rate; in alpha_pll_round_rate()
443 alpha_pll_find_vco(const struct clk_alpha_pll *pll, unsigned long rate) in alpha_pll_find_vco() argument
449 if (rate >= v->min_freq && rate <= v->max_freq) in alpha_pll_find_vco()
537 static int __clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, in __clk_alpha_pll_set_rate() argument
546 rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in __clk_alpha_pll_set_rate()
547 vco = alpha_pll_find_vco(pll, rate); in __clk_alpha_pll_set_rate()
576 clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_set_rate() argument
583 clk_alpha_pll_hwfsm_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_hwfsm_set_rate() argument
590 clk_alpha_pll_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_round_rate() argument
622 alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u32 *a) alpha_huayra_pll_round_rate() argument
658 u64 rate = parent_rate, tmp; alpha_pll_huayra_recalc_rate() local
709 alpha_pll_huayra_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_huayra_set_rate() argument
752 alpha_pll_huayra_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) alpha_pll_huayra_round_rate() argument
941 clk_alpha_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_round_rate() argument
957 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
975 clk_alpha_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_alpha_pll_postdiv_set_rate() argument
1148 alpha_pll_fabia_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_fabia_set_rate() argument
1298 clk_trion_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_trion_pll_postdiv_round_rate() argument
1308 clk_trion_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_trion_pll_postdiv_set_rate() argument
1335 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
1344 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
1482 alpha_pll_trion_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_trion_set_rate() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/frame_rate_vote/
H A Drs_frame_rate_vote.cpp60 [this](uint64_t id, uint32_t rate) { this->SurfaceVideoVote(id, rate); }); in VideoFrameRateVote()
90 void RSFrameRateVote::SurfaceVideoVote(uint64_t surfaceNodeId, uint32_t rate) in SurfaceVideoVote() argument
93 if (rate == 0) { in SurfaceVideoVote()
99 surfaceVideoRate_[surfaceNodeId] = rate; in SurfaceVideoVote()
120 void RSFrameRateVote::VoteRate(pid_t pid, std::string eventName, uint32_t rate) in VoteRate() argument
126 .minRefreshRate = rate, in VoteRate()
127 .maxRefreshRate = rate, in VoteRate()
148 RS_LOGI("video vote pid:%{public}d rate(%{public}u, %{public}u)", in NotifyRefreshRateEvent()
/kernel/linux/linux-5.10/drivers/clk/meson/
H A Dclk-mpll.c81 long rate; in mpll_recalc_rate() local
86 rate = rate_from_params(parent_rate, sdm, n2); in mpll_recalc_rate()
87 return rate < 0 ? 0 : rate; in mpll_recalc_rate()
91 unsigned long rate, in mpll_round_rate()
98 params_from_rate(rate, *parent_rate, &sdm, &n2, mpll->flags); in mpll_round_rate()
103 unsigned long rate, in mpll_set_rate()
111 params_from_rate(rate, parent_rate, &sdm, &n2, mpll->flags); in mpll_set_rate()
90 mpll_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) mpll_round_rate() argument
102 mpll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) mpll_set_rate() argument
/kernel/linux/linux-5.10/drivers/watchdog/
H A Dbcm7038_wdt.c31 u32 rate; member
42 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg()
93 return time_left / wdt->rate; in bcm7038_wdt_get_timeleft()
142 wdt->rate = clk_get_rate(wdt->clk); in bcm7038_wdt_probe()
144 if (!wdt->rate) in bcm7038_wdt_probe()
145 wdt->rate = WDT_DEFAULT_RATE; in bcm7038_wdt_probe()
147 wdt->rate = WDT_DEFAULT_RATE; in bcm7038_wdt_probe()
155 wdt->wdd.max_timeout = 0xffffffff / wdt->rate; in bcm7038_wdt_probe()
/kernel/linux/linux-6.6/drivers/clk/mstar/
H A Dclk-msc313-cpupll.c126 static u32 msc313_cpupll_regforfrequecy(unsigned long rate, unsigned long parent_rate) in msc313_cpupll_regforfrequecy() argument
130 if (prescaled == 0 || rate == 0) in msc313_cpupll_regforfrequecy()
132 return DIV_ROUND_UP_ULL(prescaled, rate); in msc313_cpupll_regforfrequecy()
143 static long msc313_cpupll_round_rate(struct clk_hw *hw, unsigned long rate, in msc313_cpupll_round_rate() argument
146 u32 reg = msc313_cpupll_regforfrequecy(rate, *parent_rate); in msc313_cpupll_round_rate()
151 * rate doesn't overshoot the requested rate. in msc313_cpupll_round_rate()
153 for (; rounded >= rate && reg > 0; reg--) in msc313_cpupll_round_rate()
159 static int msc313_cpupll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) in msc313_cpupll_set_rate() argument
162 u32 reg = msc313_cpupll_regforfrequecy(rate, parent_rat in msc313_cpupll_set_rate()
[all...]
/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk-scu.c56 u32 rate; member
76 * struct imx_sc_msg_req_set_clock_rate - clock set rate protocol
78 * @rate: rate to set
79 * @resource: clock resource to set rate
82 * This structure describes the SCU protocol of clock rate set
86 __le32 rate; member
97 __le32 rate; member
101 * struct imx_sc_msg_get_clock_rate - clock get rate protocol
103 * @req: get rate reques
278 clk_scu_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) clk_scu_round_rate() argument
288 clk_scu_atf_set_cpu_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_scu_atf_set_cpu_rate() argument
318 clk_scu_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_scu_set_rate() argument
742 unsigned long rate = 0; clk_gpr_div_scu_recalc_rate() local
754 clk_gpr_div_scu_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_gpr_div_scu_round_rate() argument
765 clk_gpr_div_scu_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_gpr_div_scu_set_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Draspberrypi-cpufreq.c23 unsigned long rate; in raspberrypi_cpufreq_probe() local
47 for (rate = min; rate <= max; rate += RASPBERRYPI_FREQ_INTERVAL) { in raspberrypi_cpufreq_probe()
48 ret = dev_pm_opp_add(cpu_dev, rate, 0); in raspberrypi_cpufreq_probe()
/kernel/linux/linux-5.10/sound/firewire/digi00x/
H A Ddigi00x-proc.c40 unsigned int rate; in proc_read_clock() local
46 if (snd_dg00x_stream_get_local_rate(dg00x, &rate) < 0) in proc_read_clock()
52 snd_iprintf(buf, "Sampling Rate: %d\n", rate); in proc_read_clock()
64 if (snd_dg00x_stream_get_external_rate(dg00x, &rate) >= 0) in proc_read_clock()
65 snd_iprintf(buf, "External sampling rate: %d\n", rate); in proc_read_clock()
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Draspberrypi-cpufreq.c23 unsigned long rate; in raspberrypi_cpufreq_probe() local
47 for (rate = min; rate <= max; rate += RASPBERRYPI_FREQ_INTERVAL) { in raspberrypi_cpufreq_probe()
48 ret = dev_pm_opp_add(cpu_dev, rate, 0); in raspberrypi_cpufreq_probe()
/kernel/linux/linux-6.6/sound/firewire/digi00x/
H A Ddigi00x-proc.c40 unsigned int rate; in proc_read_clock() local
46 if (snd_dg00x_stream_get_local_rate(dg00x, &rate) < 0) in proc_read_clock()
52 snd_iprintf(buf, "Sampling Rate: %d\n", rate); in proc_read_clock()
64 if (snd_dg00x_stream_get_external_rate(dg00x, &rate) >= 0) in proc_read_clock()
65 snd_iprintf(buf, "External sampling rate: %d\n", rate); in proc_read_clock()
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/
H A Dtoken_bucket.h28 int rate; // The rate of token generation per millisecond. Now, we use the TPS instead. member
31 int used; // The used buckets. When the rate is TPS, the value is used * TOKEN_PRE_MSG.
39 inline static void TB_InitBucket(TokenBucket *bucket, int rate, int burst) in TB_InitBucket() argument
42 bucket->rate = rate; in TB_InitBucket()
/kernel/linux/linux-5.10/drivers/clk/at91/
H A Dclk-peripheral.c249 unsigned long tmp_diff = abs(req->rate - tmp_rate); in clk_sam9x5_peripheral_best_diff()
284 if (!best_diff || best_rate <= req->rate) in clk_sam9x5_peripheral_determine_rate()
291 /* Step two: try to request rate from parent. */ in clk_sam9x5_peripheral_determine_rate()
297 req_parent.rate = req->rate << shift; in clk_sam9x5_peripheral_determine_rate()
302 clk_sam9x5_peripheral_best_diff(req, parent, req_parent.rate, in clk_sam9x5_peripheral_determine_rate()
318 req->rate = best_rate; in clk_sam9x5_peripheral_determine_rate()
324 unsigned long rate, in clk_sam9x5_peripheral_round_rate()
345 if (rate >= cur_rate) in clk_sam9x5_peripheral_round_rate()
348 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
323 clk_sam9x5_peripheral_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) clk_sam9x5_peripheral_round_rate() argument
369 clk_sam9x5_peripheral_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_sam9x5_peripheral_set_rate() argument
[all...]

Completed in 17 milliseconds

1...<<11121314151617181920>>...183