/linux-6.1.9/drivers/clk/visconti/ |
D | pll.c | 24 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 …]
|
D | pll.h | 52 const struct visconti_pll_rate_table *rate_table; member
|
/linux-6.1.9/drivers/clk/imx/ |
D | clk-fracn-gppll.c | 58 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 …]
|
D | clk-pll14xx.c | 41 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/ |
D | format.c | 157 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 …]
|
D | quirks-table.h | 114 .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 …]
|
D | quirks.c | 156 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()
|
D | card.h | 37 unsigned int *rate_table; /* rate table */ member
|
/linux-6.1.9/sound/pci/ac97/ |
D | ac97_pcm.c | 154 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/ |
D | clk-cpu.c | 58 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()
|
D | clk-pll.c | 39 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/ |
D | clk-pll.c | 33 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 …]
|
D | clk-s3c2410.c | 344 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()
|
D | clk.h | 255 const struct samsung_pll_rate_table *rate_table; member 267 .rate_table = _rtable, \
|
D | clk-exynos4.c | 1268 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()
|
D | clk-exynos5420.c | 1598 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/ |
D | clkt2xxx_virt_prcm_set.c | 43 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()
|
D | io.c | 439 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/ |
D | max98925.c | 209 } 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()
|
D | max98926.c | 250 } 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()
|
D | max98927.c | 245 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()
|
D | max98390.c | 256 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()
|
D | max98088.c | 938 } 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/ |
D | 8250_bcm7271.c | 212 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/ |
D | phy.c | 812 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()
|