Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/clk/rockchip/
Dclk-cpu.c65 struct rockchip_cpuclk_rate_table *rate_table; member
77 const struct rockchip_cpuclk_rate_table *rate_table = in rockchip_get_cpuclk_settings() local
78 cpuclk->rate_table; in rockchip_get_cpuclk_settings()
82 if (rate == rate_table[i].prate) in rockchip_get_cpuclk_settings()
83 return &rate_table[i]; in rockchip_get_cpuclk_settings()
321 cpuclk->rate_table = kmemdup(rates, in rockchip_clk_register_cpuclk()
324 if (!cpuclk->rate_table) { in rockchip_clk_register_cpuclk()
340 kfree(cpuclk->rate_table); in rockchip_clk_register_cpuclk()
Dclk-pll.c47 const struct rockchip_pll_rate_table *rate_table; member
61 const struct rockchip_pll_rate_table *rate_table = pll->rate_table; in rockchip_get_pll_settings() local
65 if (rate == rate_table[i].rate) in rockchip_get_pll_settings()
66 return &rate_table[i]; in rockchip_get_pll_settings()
76 const struct rockchip_pll_rate_table *rate_table = pll->rate_table; in rockchip_pll_round_rate() local
81 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate()
82 return rate_table[i].rate; in rockchip_pll_round_rate()
86 return rate_table[i - 1].rate; in rockchip_pll_round_rate()
845 struct rockchip_pll_rate_table *rate_table, in rockchip_clk_register_pll() argument
914 if (rate_table) { in rockchip_clk_register_pll()
[all …]
Dclk.h286 struct rockchip_pll_rate_table *rate_table; member
305 .rate_table = _rtable, \
313 struct rockchip_pll_rate_table *rate_table,
/Linux-v4.19/sound/pci/ac97/
Dac97_pcm.c169 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
322 static unsigned short get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *… in get_pslots() argument
354 *rate_table = 0; in get_pslots()
367 *rate_table = 1; in get_pslots()
373 *rate_table = 2; in get_pslots()
392 *rate_table = 0; in get_pslots()
454 unsigned char rate_table[2][4]; in snd_ac97_pcm_assign() local
464 memset(rate_table, 0, sizeof(rate_table)); in snd_ac97_pcm_assign()
470 avail_slots[0][i] = get_pslots(codec, &rate_table[0][i], &spdif_slots[i]); in snd_ac97_pcm_assign()
517 rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; in snd_ac97_pcm_assign()
[all …]
/Linux-v4.19/drivers/clk/samsung/
Dclk-pll.c32 const struct samsung_pll_rate_table *rate_table; member
40 const struct samsung_pll_rate_table *rate_table = pll->rate_table; in samsung_get_pll_settings() local
44 if (rate == rate_table[i].rate) in samsung_get_pll_settings()
45 return &rate_table[i]; in samsung_get_pll_settings()
55 const struct samsung_pll_rate_table *rate_table = pll->rate_table; in samsung_pll_round_rate() local
60 if (drate >= rate_table[i].rate) in samsung_pll_round_rate()
61 return rate_table[i].rate; in samsung_pll_round_rate()
65 return rate_table[i - 1].rate; in samsung_pll_round_rate()
1271 if (pll_clk->rate_table) { in _samsung_clk_register_pll()
1273 for (len = 0; pll_clk->rate_table[len].rate != 0; ) in _samsung_clk_register_pll()
[all …]
Dclk-s3c2410.c384 s3c2410_plls[mpll].rate_table = pll_s3c2410_12mhz_tbl; in s3c2410_common_clk_init()
385 s3c2410_plls[upll].rate_table = pll_s3c2410_12mhz_tbl; in s3c2410_common_clk_init()
398 s3c244x_common_plls[mpll].rate_table = in s3c2410_common_clk_init()
400 s3c244x_common_plls[upll].rate_table = in s3c2410_common_clk_init()
Dclk.h258 const struct samsung_pll_rate_table *rate_table; member
270 .rate_table = _rtable, \
Dclk-exynos4.c1453 exynos4210_plls[apll].rate_table = in exynos4_clk_init()
1455 exynos4210_plls[epll].rate_table = in exynos4_clk_init()
1460 exynos4210_plls[vpll].rate_table = in exynos4_clk_init()
1467 exynos4x12_plls[apll].rate_table = in exynos4_clk_init()
1469 exynos4x12_plls[epll].rate_table = in exynos4_clk_init()
1471 exynos4x12_plls[vpll].rate_table = in exynos4_clk_init()
Dclk-exynos5250.c840 exynos5250_plls[epll].rate_table = epll_24mhz_tbl; in exynos5250_clk_init()
841 exynos5250_plls[apll].rate_table = apll_24mhz_tbl; in exynos5250_clk_init()
845 exynos5250_plls[vpll].rate_table = vpll_24mhz_tbl; in exynos5250_clk_init()
/Linux-v4.19/sound/usb/
Dformat.c194 fp->rate_table = kmalloc_array(nr_rates, sizeof(int), in parse_audio_format_rates_v1()
196 if (fp->rate_table == NULL) in parse_audio_format_rates_v1()
219 fp->rate_table[fp->nr_rates] = rate; in parse_audio_format_rates_v1()
276 if (fp->rate_table) in parse_uac2_sample_rate_range()
277 fp->rate_table[nr_rates] = rate; in parse_uac2_sample_rate_range()
359 kfree(fp->rate_table); in parse_audio_format_rates_v2v3()
360 fp->rate_table = NULL; in parse_audio_format_rates_v2v3()
369 fp->rate_table = kmalloc_array(fp->nr_rates, sizeof(int), GFP_KERNEL); in parse_audio_format_rates_v2v3()
370 if (!fp->rate_table) { in parse_audio_format_rates_v2v3()
Dquirks-table.h1640 .rate_table = (unsigned int[]) { 44100 }
1658 .rate_table = (unsigned int[]) { 44100 }
1707 .rate_table = (unsigned int[]) { 44100 }
1725 .rate_table = (unsigned int[]) { 44100 }
2124 .rate_table = (unsigned int[]) {
2150 .rate_table = (unsigned int[]) {
2195 .rate_table = (unsigned int[]) {
2221 .rate_table = (unsigned int[]) {
2265 .rate_table = (unsigned int[]) {
2289 .rate_table = (unsigned int[]) {
[all …]
Dquirks.c146 unsigned *rate_table = NULL; in create_fixed_stream_quirk() local
158 rate_table = kmemdup(fp->rate_table, in create_fixed_stream_quirk()
160 if (!rate_table) { in create_fixed_stream_quirk()
164 fp->rate_table = rate_table; in create_fixed_stream_quirk()
198 kfree(rate_table); in create_fixed_stream_quirk()
Dstream.c52 kfree(fp->rate_table); in free_substream()
832 kfree(fp->rate_table); in snd_usb_get_audioformat_uac12()
1042 kfree(fp->rate_table); in snd_usb_get_audioformat_uac3()
1063 kfree(fp->rate_table); in snd_usb_get_audioformat_uac3()
1185 kfree(fp->rate_table); in snd_usb_parse_audio_interface()
Dcard.h30 unsigned int *rate_table; /* rate table */ member
Dproc.c106 snd_iprintf(buffer, "%d", fp->rate_table[i]); in proc_dump_substream_formats()
/Linux-v4.19/arch/arm/mach-omap2/
Dclkt2xxx_virt_prcm_set.c46 const struct prcm_config *rate_table; variable
82 for (ptr = rate_table; ptr->mpu_speed; ptr++) { in omap2_round_to_table_rate()
106 for (prcm = rate_table; prcm->mpu_speed; prcm++) { in omap2_select_table_rate()
179 for (prcm = rate_table; prcm->mpu_speed; prcm++) { in omap2xxx_clkt_vps_check_bootloader_rates()
Dio.c440 rate_table = omap2420_rate_table; in omap2420_init_early()
464 rate_table = omap2430_rate_table; in omap2430_init_early()
Dopp2xxx.h427 extern const struct prcm_config *rate_table;
/Linux-v4.19/sound/soc/codecs/
Dmax98925.c211 } rate_table[] = { variable
265 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in max98925_rate_value()
266 if (rate_table[i].rate >= rate) { in max98925_rate_value()
267 *value = rate_table[i].sr; in max98925_rate_value()
268 *n = rate_table[i].divisors[clock][0]; in max98925_rate_value()
269 *m = rate_table[i].divisors[clock][1]; in max98925_rate_value()
Dmax98926.c261 } rate_table[] = { variable
443 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in max98926_dai_hw_params()
444 if (rate_table[i].rate >= rate) { in max98926_dai_hw_params()
445 dai_sr = rate_table[i].sr; in max98926_dai_hw_params()
Dmax98927.c247 static const int rate_table[] = { variable
279 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in max98927_set_clock()
280 if (rate_table[i] >= max98927->sysclk) in max98927_set_clock()
283 if (i == ARRAY_SIZE(rate_table)) { in max98927_set_clock()
Dmax98088.c935 } rate_table[] = { variable
952 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in rate_value()
953 if (rate_table[i].rate >= rate) { in rate_value()
954 *value = rate_table[i].sr; in rate_value()
958 *value = rate_table[0].sr; in rate_value()
Dmax98095.c914 } rate_table[] = { variable
931 for (i = 0; i < ARRAY_SIZE(rate_table); i++) { in rate_value()
932 if (rate_table[i].rate >= rate) { in rate_value()
933 *value = rate_table[i].sr; in rate_value()
937 *value = rate_table[0].sr; in rate_value()
/Linux-v4.19/drivers/hwmon/
Dads1015.c81 const unsigned int * const rate_table = data->id == ads1115 ? in ads1015_read_adc() local
92 conversion_time_ms = DIV_ROUND_UP(1000, rate_table[data_rate]); in ads1015_read_adc()
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Dphy.c817 struct power_per_rate *rate_table; in mt7601u_tssi_params_get() local
830 rate_table = dev->ee->power_rate_table.cck; in mt7601u_tssi_params_get()
835 rate_table = dev->ee->power_rate_table.ofdm; in mt7601u_tssi_params_get()
841 rate_table = dev->ee->power_rate_table.ht; in mt7601u_tssi_params_get()
846 p.trgt_power += rate_table[tx_rate / 2].bw20; in mt7601u_tssi_params_get()
848 p.trgt_power += rate_table[tx_rate / 2].bw40; in mt7601u_tssi_params_get()

12