/linux-6.6.21/sound/pci/oxygen/ |
D | xonar_dg.c | 186 unsigned char mclk_freq; in set_cs4245_dac_params() local 189 mclk_freq = data->cs4245_shadow[CS4245_MCLK_FREQ] & ~CS4245_MCLK1_MASK; in set_cs4245_dac_params() 192 mclk_freq |= CS4245_MCLK_1 << CS4245_MCLK1_SHIFT; in set_cs4245_dac_params() 195 mclk_freq |= CS4245_MCLK_1 << CS4245_MCLK1_SHIFT; in set_cs4245_dac_params() 198 mclk_freq |= CS4245_MCLK_2 << CS4245_MCLK1_SHIFT; in set_cs4245_dac_params() 201 data->cs4245_shadow[CS4245_MCLK_FREQ] = mclk_freq; in set_cs4245_dac_params() 211 unsigned char mclk_freq; in set_cs4245_adc_params() local 214 mclk_freq = data->cs4245_shadow[CS4245_MCLK_FREQ] & ~CS4245_MCLK2_MASK; in set_cs4245_adc_params() 217 mclk_freq |= CS4245_MCLK_1 << CS4245_MCLK2_SHIFT; in set_cs4245_adc_params() 220 mclk_freq |= CS4245_MCLK_1 << CS4245_MCLK2_SHIFT; in set_cs4245_adc_params() [all …]
|
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv04/ |
D | arb.c | 59 int mclk_freq, pclk_freq, nvclk_freq; in nv04_calc_arb() local 64 mclk_freq = arb->mclk_khz; in nv04_calc_arb() 80 us_m = mclk_loop * 1000 * 1000 / mclk_freq; in nv04_calc_arb() 87 cpm_us = crtpagemiss * pagemiss * 1000 * 1000 / mclk_freq; in nv04_calc_arb() 93 p1 = m1 * pclk_freq / mclk_freq; in nv04_calc_arb() 112 int pclk_freq, nvclk_freq, mclk_freq; in nv10_calc_arb() local 121 mclk_freq = arb->mclk_khz; in nv10_calc_arb() 123 fill_rate = mclk_freq * arb->memory_width / 8; /* kB/s */ in nv10_calc_arb() 152 fill_lat = mclks * 1000 * 1000 / mclk_freq /* minimum mclk latency */ in nv10_calc_arb() 163 extra_lat = xclks * 1000 * 1000 / mclk_freq; in nv10_calc_arb()
|
/linux-6.6.21/sound/soc/samsung/ |
D | smdk_wm8994pcm.c | 49 unsigned long mclk_freq; in smdk_wm8994_pcm_hw_params() local 62 mclk_freq = params_rate(params) * rfs; in smdk_wm8994_pcm_hw_params() 65 mclk_freq, SND_SOC_CLOCK_IN); in smdk_wm8994_pcm_hw_params() 70 SMDK_WM8994_FREQ, mclk_freq); in smdk_wm8994_pcm_hw_params() 76 mclk_freq, SND_SOC_CLOCK_IN); in smdk_wm8994_pcm_hw_params()
|
/linux-6.6.21/sound/soc/intel/boards/ |
D | sof_wm8804.c | 58 long mclk_freq; in sof_wm8804_hw_params() local 71 mclk_freq = samplerate * 256; in sof_wm8804_hw_params() 74 mclk_freq = samplerate * 128; in sof_wm8804_hw_params() 127 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, sysclk, mclk_freq); in sof_wm8804_hw_params()
|
/linux-6.6.21/sound/soc/fsl/ |
D | imx-card.c | 301 unsigned long mclk_freq; in imx_aif_hw_params() local 356 mclk_freq = akcodec_get_mclk_rate(substream, params, slots, slot_width); in imx_aif_hw_params() 358 mclk_freq = params_rate(params) * slots * slot_width; in imx_aif_hw_params() 363 mclk_freq = IMX_CARD_MCLK_22P5792MHZ; in imx_aif_hw_params() 365 mclk_freq = IMX_CARD_MCLK_24P576MHZ; in imx_aif_hw_params() 368 ret = snd_soc_dai_set_sysclk(cpu_dai, link_data->cpu_sysclk_id, mclk_freq, in imx_aif_hw_params() 371 dev_err(dev, "failed to set cpui dai mclk1 rate (%lu): %d\n", mclk_freq, ret); in imx_aif_hw_params() 382 unsigned long mclk_freq; in ak5558_hw_rule_rate() local 391 mclk_freq = fs * akcodec_rates[i]; in ak5558_hw_rule_rate() 393 mclk_freq *= link_data->one2one_ratio ? 1 : 2; in ak5558_hw_rule_rate() [all …]
|
D | fsl-asoc-card.c | 53 unsigned long mclk_freq; member 219 codec_priv->mclk_freq, pll_out); in fsl_asoc_card_hw_params() 530 codec_priv->mclk_freq, SND_SOC_CLOCK_IN); in fsl_asoc_card_late_probe() 607 priv->codec_priv.mclk_freq = clk_get_rate(codec_clk); in fsl_asoc_card_probe() 632 priv->cpu_priv.sysclk_freq[TX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe() 633 priv->cpu_priv.sysclk_freq[RX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe() 702 priv->codec_priv.free_freq = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
|
/linux-6.6.21/drivers/soundwire/ |
D | bus.c | 1279 u32 mclk_freq = slave->bus->prop.mclk_freq; in sdw_slave_set_frequency() local 1295 if (!mclk_freq) { in sdw_slave_set_frequency() 1310 if (!(19200000 % mclk_freq)) { in sdw_slave_set_frequency() 1311 mclk_freq = 19200000; in sdw_slave_set_frequency() 1313 } else if (!(24000000 % mclk_freq)) { in sdw_slave_set_frequency() 1314 mclk_freq = 24000000; in sdw_slave_set_frequency() 1316 } else if (!(24576000 % mclk_freq)) { in sdw_slave_set_frequency() 1317 mclk_freq = 24576000; in sdw_slave_set_frequency() 1319 } else if (!(22579200 % mclk_freq)) { in sdw_slave_set_frequency() 1320 mclk_freq = 22579200; in sdw_slave_set_frequency() [all …]
|
D | intel_auxdevice.c | 141 &prop->mclk_freq); in sdw_master_read_intel_prop() 144 prop->mclk_freq /= 2; in sdw_master_read_intel_prop()
|
/linux-6.6.21/drivers/video/fbdev/nvidia/ |
D | nv_hw.c | 247 int mclk_freq, pclk_freq, nvclk_freq, mp_enable; in nv4CalcArbitration() local 253 mclk_freq = arb->mclk_khz; in nv4CalcArbitration() 291 us_m = mclk_loop * 1000 * 1000 / mclk_freq; in nv4CalcArbitration() 301 (vpagemiss * pagemiss) * 1000 * 1000 / mclk_freq; in nv4CalcArbitration() 302 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration() 308 mclk_freq; in nv4CalcArbitration() 317 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration() 323 mclk_freq; in nv4CalcArbitration() 325 crtpagemiss * pagemiss * 1000 * 1000 / mclk_freq; in nv4CalcArbitration() 336 crtpagemiss * pagemiss * 1000 * 1000 / mclk_freq; in nv4CalcArbitration() [all …]
|
/linux-6.6.21/sound/soc/ti/ |
D | omap-abe-twl6040.c | 40 int mclk_freq; /* MCLK frequency speed for twl6040 */ member 57 freq = priv->mclk_freq; in omap_abe_hw_params() 287 of_property_read_u32(node, "ti,mclk-freq", &priv->mclk_freq); in omap_abe_probe() 288 if (!priv->mclk_freq) { in omap_abe_probe()
|
/linux-6.6.21/drivers/staging/greybus/ |
D | audio_apbridgea.c | 14 __u32 mclk_freq) in gb_audio_apbridgea_set_config() argument 22 req.mclk_freq = cpu_to_le32(mclk_freq); in gb_audio_apbridgea_set_config()
|
D | audio_apbridgea.h | 75 __le32 mclk_freq; /* XXX Remove? */ member
|
D | audio_codec.h | 215 __u32 rate, __u32 mclk_freq);
|
/linux-6.6.21/drivers/video/fbdev/riva/ |
D | riva_hw.c | 661 int mclk_freq, pclk_freq, nvclk_freq, mp_enable; in nv4CalcArbitration() local 667 mclk_freq = arb->mclk_khz; in nv4CalcArbitration() 706 us_m = mclk_loop *1000*1000 / mclk_freq; in nv4CalcArbitration() 716 vpm_us = (vpagemiss * pagemiss)*1000*1000/mclk_freq; in nv4CalcArbitration() 717 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration() 720 video_fill_us = cbs*1000*1000 / (8 * width) / mclk_freq; in nv4CalcArbitration() 727 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration() 730 video_fill_us = vbs*1000*1000 / (8 * width) / mclk_freq; in nv4CalcArbitration() 731 cpm_us = crtpagemiss * pagemiss *1000*1000/ mclk_freq; in nv4CalcArbitration() 746 cpm_us = crtpagemiss * pagemiss *1000*1000/ mclk_freq; in nv4CalcArbitration() [all …]
|
/linux-6.6.21/drivers/iio/adc/ |
D | ad7768-1.c | 159 unsigned int mclk_freq; member 306 res = DIV_ROUND_CLOSEST(st->mclk_freq, freq); in ad7768_set_freq() 331 st->samp_freq = DIV_ROUND_CLOSEST(st->mclk_freq, in ad7768_set_freq() 347 freq = DIV_ROUND_CLOSEST(st->mclk_freq, in ad7768_sampling_freq_avail() 600 st->mclk_freq = clk_get_rate(st->mclk); in ad7768_probe()
|
/linux-6.6.21/include/media/i2c/ |
D | rj54n1cb0c.h | 12 unsigned int mclk_freq; member
|
/linux-6.6.21/include/sound/ |
D | cs42l73.h | 16 unsigned int mclk_freq; member
|
/linux-6.6.21/drivers/mmc/host/ |
D | sdhci-msm.c | 595 u32 mclk_freq = 0, config; in msm_cm_dll_set_freq() local 601 mclk_freq = 0; in msm_cm_dll_set_freq() 603 mclk_freq = 1; in msm_cm_dll_set_freq() 605 mclk_freq = 2; in msm_cm_dll_set_freq() 607 mclk_freq = 3; in msm_cm_dll_set_freq() 609 mclk_freq = 4; in msm_cm_dll_set_freq() 611 mclk_freq = 5; in msm_cm_dll_set_freq() 613 mclk_freq = 6; in msm_cm_dll_set_freq() 615 mclk_freq = 7; in msm_cm_dll_set_freq() 619 config |= mclk_freq << CMUX_SHIFT_PHASE_SHIFT; in msm_cm_dll_set_freq() [all …]
|
/linux-6.6.21/sound/soc/codecs/ |
D | nau8825.c | 2406 if (!nau8825->mclk_freq) { in nau8825_mclk_prepare() 2414 if (nau8825->mclk_freq != freq) { in nau8825_mclk_prepare() 2421 nau8825->mclk_freq = freq; in nau8825_mclk_prepare() 2448 if (nau8825->mclk_freq) { in nau8825_configure_sysclk() 2450 nau8825->mclk_freq = 0; in nau8825_configure_sysclk() 2496 if (nau8825->mclk_freq) { in nau8825_configure_sysclk() 2498 nau8825->mclk_freq = 0; in nau8825_configure_sysclk() 2544 if (nau8825->mclk_freq) { in nau8825_configure_sysclk() 2546 nau8825->mclk_freq = 0; in nau8825_configure_sysclk() 2570 if (nau8825->mclk_freq) { in nau8825_configure_sysclk() [all …]
|
/linux-6.6.21/sound/soc/sunxi/ |
D | sun4i-i2s.c | 216 unsigned int mclk_freq; member 278 return i2s->mclk_freq; in sun4i_i2s_get_bclk_parent_rate() 377 oversample_rate = i2s->mclk_freq / rate; in sun4i_i2s_set_clk_rate() 392 mclk_div = sun4i_i2s_get_mclk_div(i2s, clk_rate, i2s->mclk_freq); in sun4i_i2s_set_clk_rate() 1064 i2s->mclk_freq = freq; in sun4i_i2s_set_sysclk()
|
/linux-6.6.21/sound/soc/mediatek/mt8195/ |
D | mt8195-dai-etdm.c | 112 unsigned int mclk_freq; member 1940 if (etdm_data->mclk_freq) { in mtk_dai_etdm_mclk_configure() 1954 etdm_data->mclk_freq); in mtk_dai_etdm_mclk_configure() 2164 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk() 2182 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk() 2478 if (etdm_data->mclk_freq) { in mtk_dai_etdm_probe() 2480 etdm_data->mclk_freq); in mtk_dai_etdm_probe()
|
/linux-6.6.21/drivers/video/fbdev/ |
D | s3fb.c | 33 int chip, rev, mclk_freq; member 1257 par->mclk_freq = ((vga_rseq(par->state.vgabase, 0x11) + 2) * 14318) / ((regval & 0x1F) + 2); in s3_pci_probe() 1258 par->mclk_freq = par->mclk_freq >> (regval >> 5); in s3_pci_probe() 1353 info->fix.smem_len >> 20, (par->mclk_freq + 500) / 1000); in s3_pci_probe()
|
/linux-6.6.21/drivers/media/i2c/ |
D | hi846.c | 2066 u32 mclk_freq; in hi846_probe() local 2086 mclk_freq = clk_get_rate(hi846->clock); in hi846_probe() 2087 if (mclk_freq != 25000000) in hi846_probe() 2090 mclk_freq); in hi846_probe()
|
/linux-6.6.21/sound/soc/rockchip/ |
D | rockchip_i2s_tdm.c | 683 unsigned int mclk_freq; in rockchip_i2s_tdm_set_mclk() local 708 mclk_freq = i2s_tdm->mclk_tx_freq; in rockchip_i2s_tdm_set_mclk() 711 mclk_freq = i2s_tdm->mclk_rx_freq; in rockchip_i2s_tdm_set_mclk() 714 ret = clk_set_rate(*mclk, mclk_freq); in rockchip_i2s_tdm_set_mclk()
|
/linux-6.6.21/sound/soc/mediatek/mt8188/ |
D | mt8188-dai-etdm.c | 103 unsigned int mclk_freq; member 432 etdm_data->mclk_freq); in mtk_dai_etdm_enable_mclk() 515 return !!(etdm_priv->mclk_freq > 0); in mtk_etdm_mclk_connect() 519 return !!(etdm_priv->mclk_freq > 0); in mtk_etdm_mclk_connect() 2245 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk() 2268 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk()
|