Home
last modified time | relevance | path

Searched refs:rate_table (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.1.9/drivers/clk/visconti/
Dpll.c24 const struct visconti_pll_rate_table *rate_table; member
57 struct visconti_pll_rate_table *rate_table) in visconti_pll_get_params() argument
63 rate_table->dacen = FIELD_GET(PLL0_FRACMODE_DACEN, val); in visconti_pll_get_params()
64 rate_table->dsmen = FIELD_GET(PLL0_FRACMODE_DSMEN, val); in visconti_pll_get_params()
66 rate_table->fracin = readl(pll->pll_base + PLL_FRACIN_REG) & PLL_FRACIN_MASK; in visconti_pll_get_params()
67 rate_table->intin = readl(pll->pll_base + PLL_INTIN_REG) & PLL_INTIN_MASK; in visconti_pll_get_params()
68 rate_table->refdiv = readl(pll->pll_base + PLL_REFDIV_REG) & PLL_REFDIV_MASK; in visconti_pll_get_params()
71 rate_table->postdiv1 = postdiv & PLL_POSTDIV_MASK; in visconti_pll_get_params()
72 rate_table->postdiv2 = (postdiv >> 4) & PLL_POSTDIV_MASK; in visconti_pll_get_params()
78 const struct visconti_pll_rate_table *rate_table = pll->rate_table; in visconti_get_pll_settings() local
[all …]
Dpll.h52 const struct visconti_pll_rate_table *rate_table; member
/linux-6.1.9/drivers/clk/imx/
Dclk-fracn-gppll.c58 const struct imx_fracn_gppll_rate_table *rate_table; member
78 .rate_table = fracn_tbl,
91 const struct imx_fracn_gppll_rate_table *rate_table = pll->rate_table; in imx_get_pll_settings() local
95 if (rate == rate_table[i].rate) in imx_get_pll_settings()
96 return &rate_table[i]; in imx_get_pll_settings()
105 const struct imx_fracn_gppll_rate_table *rate_table = pll->rate_table; in clk_fracn_gppll_round_rate() local
110 if (rate >= rate_table[i].rate) in clk_fracn_gppll_round_rate()
111 return rate_table[i].rate; in clk_fracn_gppll_round_rate()
114 return rate_table[pll->rate_count - 1].rate; in clk_fracn_gppll_round_rate()
120 const struct imx_fracn_gppll_rate_table *rate_table = pll->rate_table; in clk_fracn_gppll_recalc_rate() local
[all …]
Dclk-pll14xx.c41 const struct imx_pll14xx_rate_table *rate_table; member
71 .rate_table = imx_pll1443x_tbl,
78 .rate_table = imx_pll1443x_tbl,
86 .rate_table = imx_pll1416x_tbl,
94 const struct imx_pll14xx_rate_table *rate_table = pll->rate_table; in imx_get_pll_settings() local
98 if (rate == rate_table[i].rate) in imx_get_pll_settings()
99 return &rate_table[i]; in imx_get_pll_settings()
221 const struct imx_pll14xx_rate_table *rate_table = pll->rate_table; in clk_pll1416x_round_rate() local
226 if (rate >= rate_table[i].rate) in clk_pll1416x_round_rate()
227 return rate_table[i].rate; in clk_pll1416x_round_rate()
[all …]
/linux-6.1.9/sound/usb/
Dformat.c157 kfree(fp->rate_table); in set_fixed_rate()
158 fp->rate_table = kmalloc(sizeof(int), GFP_KERNEL); in set_fixed_rate()
159 if (!fp->rate_table) in set_fixed_rate()
165 fp->rate_table[0] = rate; in set_fixed_rate()
179 rate = fp->rate_table[i]; in set_rate_table_min_max()
214 fp->rate_table = kmalloc_array(nr_rates, sizeof(int), in parse_audio_format_rates_v1()
216 if (fp->rate_table == NULL) in parse_audio_format_rates_v1()
240 fp->rate_table[fp->nr_rates++] = rate; in parse_audio_format_rates_v1()
387 if (fp->rate_table) in parse_uac2_sample_rate_range()
388 fp->rate_table[nr_rates] = rate; in parse_uac2_sample_rate_range()
[all …]
Dquirks-table.h114 .rate_table = (unsigned int[]) { 48000 },
1581 .rate_table = (unsigned int[]) { 44100 }
1599 .rate_table = (unsigned int[]) { 44100 }
1648 .rate_table = (unsigned int[]) { 44100 }
1666 .rate_table = (unsigned int[]) { 44100 }
2090 .rate_table = (unsigned int[]) {
2116 .rate_table = (unsigned int[]) {
2161 .rate_table = (unsigned int[]) {
2187 .rate_table = (unsigned int[]) {
2231 .rate_table = (unsigned int[]) {
[all …]
Dquirks.c156 unsigned *rate_table = NULL; in create_fixed_stream_quirk() local
169 rate_table = kmemdup(fp->rate_table, in create_fixed_stream_quirk()
171 if (!rate_table) { in create_fixed_stream_quirk()
175 fp->rate_table = rate_table; in create_fixed_stream_quirk()
211 kfree(rate_table); in create_fixed_stream_quirk()
Dcard.h37 unsigned int *rate_table; /* rate table */ member
/linux-6.1.9/sound/pci/ac97/
Dac97_pcm.c154 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
307 static unsigned short get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *… in get_pslots() argument
339 *rate_table = 0; in get_pslots()
352 *rate_table = 1; in get_pslots()
358 *rate_table = 2; in get_pslots()
377 *rate_table = 0; in get_pslots()
439 unsigned char rate_table[2][4]; in snd_ac97_pcm_assign() local
449 memset(rate_table, 0, sizeof(rate_table)); in snd_ac97_pcm_assign()
455 avail_slots[0][i] = get_pslots(codec, &rate_table[0][i], &spdif_slots[i]); in snd_ac97_pcm_assign()
502 rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; in snd_ac97_pcm_assign()
[all …]
/linux-6.1.9/drivers/clk/rockchip/
Dclk-cpu.c58 struct rockchip_cpuclk_rate_table *rate_table; member
70 const struct rockchip_cpuclk_rate_table *rate_table = in rockchip_get_cpuclk_settings() local
71 cpuclk->rate_table; in rockchip_get_cpuclk_settings()
75 if (rate == rate_table[i].prate) in rockchip_get_cpuclk_settings()
76 return &rate_table[i]; in rockchip_get_cpuclk_settings()
319 cpuclk->rate_table = kmemdup(rates, in rockchip_clk_register_cpuclk()
322 if (!cpuclk->rate_table) { in rockchip_clk_register_cpuclk()
338 kfree(cpuclk->rate_table); in rockchip_clk_register_cpuclk()
Dclk-pll.c39 const struct rockchip_pll_rate_table *rate_table; member
53 const struct rockchip_pll_rate_table *rate_table = pll->rate_table; in rockchip_get_pll_settings() local
57 if (rate == rate_table[i].rate) in rockchip_get_pll_settings()
58 return &rate_table[i]; in rockchip_get_pll_settings()
68 const struct rockchip_pll_rate_table *rate_table = pll->rate_table; in rockchip_pll_round_rate() local
73 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate()
74 return rate_table[i].rate; in rockchip_pll_round_rate()
78 return rate_table[i - 1].rate; in rockchip_pll_round_rate()
854 struct rockchip_pll_rate_table *rate_table, in rockchip_clk_register_pll() argument
923 if (rate_table) { in rockchip_clk_register_pll()
[all …]
/linux-6.1.9/drivers/clk/samsung/
Dclk-pll.c33 const struct samsung_pll_rate_table *rate_table; member
41 const struct samsung_pll_rate_table *rate_table = pll->rate_table; in samsung_get_pll_settings() local
45 if (rate == rate_table[i].rate) in samsung_get_pll_settings()
46 return &rate_table[i]; in samsung_get_pll_settings()
56 const struct samsung_pll_rate_table *rate_table = pll->rate_table; in samsung_pll_round_rate() local
61 if (drate >= rate_table[i].rate) in samsung_pll_round_rate()
62 return rate_table[i].rate; in samsung_pll_round_rate()
66 return rate_table[i - 1].rate; in samsung_pll_round_rate()
1444 if (pll_clk->rate_table) { in _samsung_clk_register_pll()
1446 for (len = 0; pll_clk->rate_table[len].rate != 0; ) in _samsung_clk_register_pll()
[all …]
Dclk-s3c2410.c344 s3c2410_plls[mpll].rate_table = pll_s3c2410_12mhz_tbl; in s3c2410_common_clk_init()
345 s3c2410_plls[upll].rate_table = pll_s3c2410_12mhz_tbl; in s3c2410_common_clk_init()
358 s3c244x_common_plls[mpll].rate_table = in s3c2410_common_clk_init()
360 s3c244x_common_plls[upll].rate_table = in s3c2410_common_clk_init()
Dclk.h255 const struct samsung_pll_rate_table *rate_table; member
267 .rate_table = _rtable, \
Dclk-exynos4.c1268 exynos4210_plls[apll].rate_table = in exynos4_clk_init()
1270 exynos4210_plls[epll].rate_table = in exynos4_clk_init()
1275 exynos4210_plls[vpll].rate_table = in exynos4_clk_init()
1282 exynos4x12_plls[apll].rate_table = in exynos4_clk_init()
1284 exynos4x12_plls[epll].rate_table = in exynos4_clk_init()
1286 exynos4x12_plls[vpll].rate_table = in exynos4_clk_init()
Dclk-exynos5420.c1598 exynos5x_plls[apll].rate_table = exynos5420_pll2550x_24mhz_tbl; in exynos5x_clk_init()
1599 exynos5x_plls[epll].rate_table = exynos5420_epll_24mhz_tbl; in exynos5x_clk_init()
1600 exynos5x_plls[kpll].rate_table = exynos5420_pll2550x_24mhz_tbl; in exynos5x_clk_init()
1601 exynos5x_plls[vpll].rate_table = exynos5420_vpll_24mhz_tbl; in exynos5x_clk_init()
1605 exynos5x_plls[bpll].rate_table = exynos5420_pll2550x_24mhz_tbl; in exynos5x_clk_init()
1607 exynos5x_plls[bpll].rate_table = exynos5422_bpll_rate_table; in exynos5x_clk_init()
/linux-6.1.9/arch/arm/mach-omap2/
Dclkt2xxx_virt_prcm_set.c43 const struct prcm_config *rate_table; variable
79 for (ptr = rate_table; ptr->mpu_speed; ptr++) { in omap2_round_to_table_rate()
103 for (prcm = rate_table; prcm->mpu_speed; prcm++) { in omap2_select_table_rate()
176 for (prcm = rate_table; prcm->mpu_speed; prcm++) { in omap2xxx_clkt_vps_check_bootloader_rates()
Dio.c439 rate_table = omap2420_rate_table; in omap2420_init_early()
463 rate_table = omap2430_rate_table; in omap2430_init_early()
/linux-6.1.9/sound/soc/codecs/
Dmax98925.c209 } rate_table[] = { variable
263 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in max98925_rate_value()
264 if (rate_table[i].rate >= rate) { in max98925_rate_value()
265 *value = rate_table[i].sr; in max98925_rate_value()
266 *n = rate_table[i].divisors[clock][0]; in max98925_rate_value()
267 *m = rate_table[i].divisors[clock][1]; in max98925_rate_value()
Dmax98926.c250 } rate_table[] = { variable
432 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in max98926_dai_hw_params()
433 if (rate_table[i].rate >= rate) { in max98926_dai_hw_params()
434 dai_sr = rate_table[i].sr; in max98926_dai_hw_params()
Dmax98927.c245 static const int rate_table[] = { variable
277 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in max98927_set_clock()
278 if (rate_table[i] >= max98927->sysclk) in max98927_set_clock()
281 if (i == ARRAY_SIZE(rate_table)) { in max98927_set_clock()
Dmax98390.c256 static int rate_table[] = { in max98390_set_clock() local
269 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in max98390_set_clock()
270 if (rate_table[i] >= max98390->sysclk) in max98390_set_clock()
273 if (i == ARRAY_SIZE(rate_table)) { in max98390_set_clock()
Dmax98088.c938 } rate_table[] = { variable
955 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in rate_value()
956 if (rate_table[i].rate >= rate) { in rate_value()
957 *value = rate_table[i].sr; in rate_value()
961 *value = rate_table[0].sr; in rate_value()
/linux-6.1.9/drivers/tty/serial/8250/
D8250_bcm7271.c212 const u32 *rate_table; member
661 if (priv->rate_table[x] == 0) { in init_real_clk_rates()
665 rc = clk_set_rate(priv->baud_mux_clk, priv->rate_table[x]); in init_real_clk_rates()
668 priv->rate_table[x]); in init_real_clk_rates()
669 priv->real_rates[x] = priv->rate_table[x]; in init_real_clk_rates()
965 priv->rate_table = brcmstb_rate_table; in brcmuart_probe()
967 priv->rate_table = of_id->data; in brcmuart_probe()
/linux-6.1.9/drivers/net/wireless/mediatek/mt7601u/
Dphy.c812 struct power_per_rate *rate_table; in mt7601u_tssi_params_get() local
825 rate_table = dev->ee->power_rate_table.cck; in mt7601u_tssi_params_get()
830 rate_table = dev->ee->power_rate_table.ofdm; in mt7601u_tssi_params_get()
836 rate_table = dev->ee->power_rate_table.ht; in mt7601u_tssi_params_get()
841 p.trgt_power += rate_table[tx_rate / 2].bw20; in mt7601u_tssi_params_get()
843 p.trgt_power += rate_table[tx_rate / 2].bw40; in mt7601u_tssi_params_get()

12