Home
last modified time | relevance | path

Searched refs:rate (Results 776 - 800 of 3928) sorted by relevance

1...<<31323334353637383940>>...158

/kernel/linux/linux-5.10/drivers/clk/qcom/
H A Dclk-smd-rpm.c38 .rate = INT_MAX, \
53 .rate = INT_MAX, \
72 .rate = (r), \
88 .rate = (r), \
131 unsigned long rate; member
178 unsigned long rate) in clk_smd_rpm_set_rate_active()
183 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */ in clk_smd_rpm_set_rate_active()
192 unsigned long rate) in clk_smd_rpm_set_rate_sleep()
197 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */ in clk_smd_rpm_set_rate_sleep()
205 static void to_active_sleep(struct clk_smd_rpm *r, unsigned long rate, in to_active_sleep() argument
177 clk_smd_rpm_set_rate_active(struct clk_smd_rpm *r, unsigned long rate) clk_smd_rpm_set_rate_active() argument
191 clk_smd_rpm_set_rate_sleep(struct clk_smd_rpm *r, unsigned long rate) clk_smd_rpm_set_rate_sleep() argument
303 clk_smd_rpm_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_smd_rpm_set_rate() argument
343 clk_smd_rpm_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) clk_smd_rpm_round_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/phy/rockchip/
H A Dphy-rockchip-inno-hdmi.c407 unsigned long rate) in inno_hdmi_phy_get_tmdsclk()
418 return (u64)rate * bus_width / 8; in inno_hdmi_phy_get_tmdsclk()
420 return rate; in inno_hdmi_phy_get_tmdsclk()
525 unsigned long rate) in inno_hdmi_phy_get_pre_pll_cfg()
528 unsigned long tmdsclock = inno_hdmi_phy_get_tmdsclk(inno, rate); in inno_hdmi_phy_get_pre_pll_cfg()
531 if (cfg->pixclock == rate && cfg->tmdsclock == tmdsclock) in inno_hdmi_phy_get_pre_pll_cfg()
595 dev_dbg(inno->dev, "%s rate %lu\n", __func__, inno->pixclock); in inno_hdmi_phy_rk3228_clk_recalc_rate()
601 unsigned long rate, in inno_hdmi_phy_rk3228_clk_round_rate()
606 rate = (rate / 100 in inno_hdmi_phy_rk3228_clk_round_rate()
406 inno_hdmi_phy_get_tmdsclk(struct inno_hdmi_phy *inno, unsigned long rate) inno_hdmi_phy_get_tmdsclk() argument
524 inno_hdmi_phy_get_pre_pll_cfg(struct inno_hdmi_phy *inno, unsigned long rate) inno_hdmi_phy_get_pre_pll_cfg() argument
600 inno_hdmi_phy_rk3228_clk_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) inno_hdmi_phy_rk3228_clk_round_rate() argument
618 inno_hdmi_phy_rk3228_clk_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) inno_hdmi_phy_rk3228_clk_set_rate() argument
756 inno_hdmi_phy_rk3328_clk_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) inno_hdmi_phy_rk3328_clk_round_rate() argument
774 inno_hdmi_phy_rk3328_clk_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) inno_hdmi_phy_rk3328_clk_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-versaclock5.c307 static long vc5_dbl_round_rate(struct clk_hw *hw, unsigned long rate, in vc5_dbl_round_rate() argument
310 if ((*parent_rate == rate) || ((*parent_rate * 2) == rate)) in vc5_dbl_round_rate()
311 return rate; in vc5_dbl_round_rate()
316 static int vc5_dbl_set_rate(struct clk_hw *hw, unsigned long rate, in vc5_dbl_set_rate() argument
323 if ((parent_rate * 2) == rate) in vc5_dbl_set_rate()
366 static long vc5_pfd_round_rate(struct clk_hw *hw, unsigned long rate, in vc5_pfd_round_rate() argument
372 if (rate > 50000000) in vc5_pfd_round_rate()
379 idiv = DIV_ROUND_UP(*parent_rate, rate); in vc5_pfd_round_rate()
386 static int vc5_pfd_set_rate(struct clk_hw *hw, unsigned long rate, in vc5_pfd_set_rate() argument
447 vc5_pll_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) vc5_pll_round_rate() argument
473 vc5_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) vc5_pll_set_rate() argument
523 vc5_fod_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) vc5_fod_round_rate() argument
555 vc5_fod_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) vc5_fod_set_rate() argument
[all...]
H A Dclk-versaclock7.c755 pr_debug("%s - refin_div: %llu, apll rate: %llu\n", in vc7_get_apll_rate()
761 static void vc7_calc_iod_divider(unsigned long rate, unsigned long parent_rate, in vc7_calc_iod_divider() argument
764 *divider = DIV_ROUND_UP(parent_rate, rate); in vc7_calc_iod_divider()
771 static void vc7_calc_fod_1st_stage(unsigned long rate, unsigned long parent_rate, in vc7_calc_fod_1st_stage() argument
776 *div_int = (u32)div64_u64_rem(parent_rate, rate, &rem); in vc7_calc_fod_1st_stage()
777 *div_frac = div64_u64(rem << VC7_FOD_DENOMINATOR_BITS, rate); in vc7_calc_fod_1st_stage()
815 static void vc7_calc_fod_divider(unsigned long rate, unsigned long parent_rate, in vc7_calc_fod_divider() argument
821 vc7_calc_fod_1st_stage(rate, parent_rate, fod_1st_int, fod_frac); in vc7_calc_fod_divider()
841 vc7_calc_fod_1st_stage(parent_rate, rate * 2 * i, fod_1st_int, fod_frac); in vc7_calc_fod_divider()
898 pr_debug("%s - %s rate in vc7_fod_recalc_rate()
903 vc7_fod_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) vc7_fod_round_rate() argument
924 vc7_fod_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) vc7_fod_set_rate() argument
981 vc7_iod_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) vc7_iod_round_rate() argument
998 vc7_iod_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) vc7_iod_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/qcom/
H A Dclk-smd-rpm.c28 .rate = INT_MAX, \
45 .rate = (ao_rate), \
72 .rate = (r), \
90 .rate = (r), \
170 unsigned long rate; member
213 unsigned long rate) in clk_smd_rpm_set_rate_active()
218 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */ in clk_smd_rpm_set_rate_active()
227 unsigned long rate) in clk_smd_rpm_set_rate_sleep()
232 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */ in clk_smd_rpm_set_rate_sleep()
240 static void to_active_sleep(struct clk_smd_rpm *r, unsigned long rate, in to_active_sleep() argument
212 clk_smd_rpm_set_rate_active(struct clk_smd_rpm *r, unsigned long rate) clk_smd_rpm_set_rate_active() argument
226 clk_smd_rpm_set_rate_sleep(struct clk_smd_rpm *r, unsigned long rate) clk_smd_rpm_set_rate_sleep() argument
338 clk_smd_rpm_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) clk_smd_rpm_set_rate() argument
378 clk_smd_rpm_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate) clk_smd_rpm_round_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-imx.c140 unsigned long rate; in imx_dwmac_fix_speed() local
152 rate = 125000000; in imx_dwmac_fix_speed()
155 rate = 25000000; in imx_dwmac_fix_speed()
158 rate = 2500000; in imx_dwmac_fix_speed()
165 err = clk_set_rate(dwmac->clk_tx, rate); in imx_dwmac_fix_speed()
167 dev_err(dwmac->dev, "failed to set tx rate %lu\n", rate); in imx_dwmac_fix_speed()
/kernel/linux/linux-5.10/sound/firewire/bebob/
H A Dbebob.h64 int (*get)(struct snd_bebob *bebob, unsigned int *rate);
65 int (*set)(struct snd_bebob *bebob, unsigned int rate);
74 const struct snd_bebob_rate_spec *rate; member
214 int snd_bebob_stream_get_rate(struct snd_bebob *bebob, unsigned int *rate);
215 int snd_bebob_stream_set_rate(struct snd_bebob *bebob, unsigned int rate);
220 int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate,
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Des7134.c39 unsigned int rate) in es7134_check_mclk()
41 unsigned int mfs = priv->mclk / rate; in es7134_check_mclk()
47 if (rate < mode->rate_min || rate > mode->rate_max) in es7134_check_mclk()
55 dev_err(dai->dev, "unsupported mclk_fs %u for rate %u\n", in es7134_check_mclk()
56 mfs, rate); in es7134_check_mclk()
61 dev_err(dai->dev, "unsupported rate: %u\n", rate); in es7134_check_mclk()
37 es7134_check_mclk(struct snd_soc_dai *dai, struct es7134_data *priv, unsigned int rate) es7134_check_mclk() argument
/kernel/linux/linux-5.10/sound/soc/samsung/
H A Ds3c24xx_uda134x.c37 sampling rate in the range -/+ 5% will be chosen. If this in not
127 unsigned long rate = params_rate(params); in s3c24xx_uda134x_hw_params() local
135 cerr = rates[i] - rate; in s3c24xx_uda134x_hw_params()
155 dev_dbg(rtd->dev, "%s desired rate %lu, %d\n", __func__, rate, bi); in s3c24xx_uda134x_hw_params()
157 clk = (fs_mode == S3C2410_IISMOD_384FS ? 384 : 256) * rate; in s3c24xx_uda134x_hw_params()
164 if ((err * 100 / rate) > 5) { in s3c24xx_uda134x_hw_params()
166 "from desired (%ld%%)\n", err * 100 / rate); in s3c24xx_uda134x_hw_params()
/kernel/linux/linux-5.10/drivers/watchdog/
H A Dstm32_iwdg.c74 unsigned int rate; member
98 presc = DIV_ROUND_UP(tout * wdt->rate, RLR_MAX + 1); in stm32_iwdg_start()
103 iwdg_rlr = ((tout * wdt->rate) / presc) - 1; in stm32_iwdg_start()
200 wdt->rate = clk_get_rate(wdt->clk_lsi); in stm32_iwdg_clk_init()
257 wdd->min_timeout = DIV_ROUND_UP((RLR_MIN + 1) * PR_MIN, wdt->rate); in stm32_iwdg_probe()
259 1000) / wdt->rate; in stm32_iwdg_probe()
/kernel/linux/linux-5.10/drivers/staging/greybus/
H A Daudio_gb.c108 u32 *format, u32 *rate, u8 *channels, in gb_audio_gb_get_pcm()
123 *rate = le32_to_cpu(resp.rate); in gb_audio_gb_get_pcm()
132 u32 format, u32 rate, u8 channels, in gb_audio_gb_set_pcm()
139 req.rate = cpu_to_le32(rate); in gb_audio_gb_set_pcm()
107 gb_audio_gb_get_pcm(struct gb_connection *connection, u16 data_cport, u32 *format, u32 *rate, u8 *channels, u8 *sig_bits) gb_audio_gb_get_pcm() argument
131 gb_audio_gb_set_pcm(struct gb_connection *connection, u16 data_cport, u32 format, u32 rate, u8 channels, u8 sig_bits) gb_audio_gb_set_pcm() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dethtool.c178 static inline int mlx5_ptys_rate_enum_to_int(enum mlx5_ptys_rate rate) in mlx5_ptys_rate_enum_to_int() argument
180 switch (rate) { in mlx5_ptys_rate_enum_to_int()
196 int rate, width; in mlx5i_get_speed_settings() local
198 rate = mlx5_ptys_rate_enum_to_int(ib_proto_oper); in mlx5i_get_speed_settings()
199 if (rate < 0) in mlx5i_get_speed_settings()
205 return rate * width; in mlx5i_get_speed_settings()
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_police.c13 u32 rate; member
25 pol->rate = DIV_ROUND_UP(pol->rate * 3, 100); in lan966x_police_add()
31 if (pol->rate > GENMASK(15, 0) || in lan966x_police_add()
45 lan_wr(ANA_POL_PIR_CFG_PIR_RATE_SET(pol->rate) | in lan966x_police_add()
152 pol.rate = div_u64(act->police.rate_bytes_ps, 1000) * 8; in lan966x_police_port_add()
/kernel/linux/linux-6.6/drivers/watchdog/
H A Dstm32_iwdg.c75 unsigned int rate; member
99 presc = DIV_ROUND_UP(tout * wdt->rate, RLR_MAX + 1); in stm32_iwdg_start()
104 iwdg_rlr = ((tout * wdt->rate) / presc) - 1; in stm32_iwdg_start()
198 wdt->rate = clk_get_rate(wdt->clk_lsi); in stm32_iwdg_clk_init()
254 wdd->min_timeout = DIV_ROUND_UP((RLR_MIN + 1) * PR_MIN, wdt->rate); in stm32_iwdg_probe()
256 1000) / wdt->rate; in stm32_iwdg_probe()
/kernel/linux/linux-6.6/drivers/staging/greybus/
H A Daudio_gb.c108 u32 *format, u32 *rate, u8 *channels, in gb_audio_gb_get_pcm()
123 *rate = le32_to_cpu(resp.rate); in gb_audio_gb_get_pcm()
132 u32 format, u32 rate, u8 channels, in gb_audio_gb_set_pcm()
139 req.rate = cpu_to_le32(rate); in gb_audio_gb_set_pcm()
107 gb_audio_gb_get_pcm(struct gb_connection *connection, u16 data_cport, u32 *format, u32 *rate, u8 *channels, u8 *sig_bits) gb_audio_gb_get_pcm() argument
131 gb_audio_gb_set_pcm(struct gb_connection *connection, u16 data_cport, u32 format, u32 rate, u8 channels, u8 sig_bits) gb_audio_gb_set_pcm() argument
/kernel/linux/linux-6.6/sound/firewire/bebob/
H A Dbebob.h64 int (*get)(struct snd_bebob *bebob, unsigned int *rate);
65 int (*set)(struct snd_bebob *bebob, unsigned int rate);
74 const struct snd_bebob_rate_spec *rate; member
215 int snd_bebob_stream_get_rate(struct snd_bebob *bebob, unsigned int *rate);
216 int snd_bebob_stream_set_rate(struct snd_bebob *bebob, unsigned int rate);
221 int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate,
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Des7134.c39 unsigned int rate) in es7134_check_mclk()
41 unsigned int mfs = priv->mclk / rate; in es7134_check_mclk()
47 if (rate < mode->rate_min || rate > mode->rate_max) in es7134_check_mclk()
55 dev_err(dai->dev, "unsupported mclk_fs %u for rate %u\n", in es7134_check_mclk()
56 mfs, rate); in es7134_check_mclk()
61 dev_err(dai->dev, "unsupported rate: %u\n", rate); in es7134_check_mclk()
37 es7134_check_mclk(struct snd_soc_dai *dai, struct es7134_data *priv, unsigned int rate) es7134_check_mclk() argument
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2a/
H A Dclock-sh7269.c27 .rate = 32768,
31 * Default rate for the root input clock, reset this with clk_set_rate()
35 .rate = 13340000,
40 return clk->parent->rate * PLL_RATE; in pll_recalc()
55 return clk->parent->rate / 8; in peripheral0_recalc()
70 return clk->parent->rate / 4; in peripheral1_recalc()
H A Dclock-sh7264.c30 .rate = 32768,
34 * Default rate for the root input clock, reset this with clk_set_rate()
38 .rate = 18000000,
43 unsigned long rate = clk->parent->rate / pll1_div; in pll_recalc() local
44 return rate * pll1rate[(__raw_readw(FRQCR) >> 8) & 1]; in pll_recalc()
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dscpi-cpufreq.c42 unsigned long rate = clk_get_rate(priv->clk); in scpi_cpufreq_get_rate() local
44 return rate / 1000; in scpi_cpufreq_get_rate()
50 u64 rate = policy->freq_table[index].frequency * 1000; in scpi_cpufreq_set_target() local
54 ret = clk_set_rate(priv->clk, rate); in scpi_cpufreq_set_target()
59 if (clk_get_rate(priv->clk) != rate) in scpi_cpufreq_set_target()
/kernel/linux/linux-5.10/drivers/clocksource/
H A Dh8300_timer8.c42 unsigned int rate; member
121 timer8_clock_event_start(p, (p->rate + HZ/2) / HZ); in timer8_clock_event_periodic()
188 timer8_priv.rate = clk_get_rate(clk) / SCALE; in h8300_8timer_init()
189 if (!timer8_priv.rate) { in h8300_8timer_init()
190 pr_err("Failed to get rate for the clocksource\n"); in h8300_8timer_init()
201 timer8_priv.rate, 1, 0x0000ffff); in h8300_8timer_init()
H A Dingenic-ost.c73 unsigned long rate; in ingenic_ost_probe() local
113 rate = clk_get_rate(ost->clk); in ingenic_ost_probe()
129 err = clocksource_register_hz(cs, rate); in ingenic_ost_probe()
137 sched_clock_register(ingenic_ost_read_cntl, 32, rate); in ingenic_ost_probe()
139 sched_clock_register(ingenic_ost_read_cnth, 32, rate); in ingenic_ost_probe()
H A Dtimer-keystone.c146 unsigned long rate; in keystone_timer_init() local
175 rate = clk_get_rate(clk); in keystone_timer_init()
192 timer.hz_period = DIV_ROUND_UP(rate, HZ); in keystone_timer_init()
215 clockevents_config_and_register(event_dev, rate, 1, ULONG_MAX); in keystone_timer_init()
217 pr_info("keystone timer clock @%lu Hz\n", rate); in keystone_timer_init()
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh2a/
H A Dclock-sh7269.c27 .rate = 32768,
31 * Default rate for the root input clock, reset this with clk_set_rate()
35 .rate = 13340000,
40 return clk->parent->rate * PLL_RATE; in pll_recalc()
55 return clk->parent->rate / 8; in peripheral0_recalc()
70 return clk->parent->rate / 4; in peripheral1_recalc()
H A Dclock-sh7264.c30 .rate = 32768,
34 * Default rate for the root input clock, reset this with clk_set_rate()
38 .rate = 18000000,
43 unsigned long rate = clk->parent->rate / pll1_div; in pll_recalc() local
44 return rate * pll1rate[(__raw_readw(FRQCR) >> 8) & 1]; in pll_recalc()

Completed in 15 milliseconds

1...<<31323334353637383940>>...158