Home
last modified time | relevance | path

Searched refs:mclk_freq (Results 1 – 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/sound/pci/oxygen/
Dxonar_dg.c186 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/
Darb.c59 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()
/kernel/linux/linux-5.10/sound/soc/samsung/
Dsmdk_wm8994pcm.c49 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()
/kernel/linux/linux-5.10/drivers/soundwire/
Dbus.c1152 u32 mclk_freq = slave->bus->prop.mclk_freq; in sdw_slave_set_frequency() local
1167 if (!mclk_freq) { in sdw_slave_set_frequency()
1182 if (!(19200000 % mclk_freq)) { in sdw_slave_set_frequency()
1183 mclk_freq = 19200000; in sdw_slave_set_frequency()
1185 } else if (!(24000000 % mclk_freq)) { in sdw_slave_set_frequency()
1186 mclk_freq = 24000000; in sdw_slave_set_frequency()
1188 } else if (!(24576000 % mclk_freq)) { in sdw_slave_set_frequency()
1189 mclk_freq = 24576000; in sdw_slave_set_frequency()
1191 } else if (!(22579200 % mclk_freq)) { in sdw_slave_set_frequency()
1192 mclk_freq = 22579200; in sdw_slave_set_frequency()
[all …]
Dintel.c360 if (prop->mclk_freq % 6000000) in intel_link_power_up()
1280 &prop->mclk_freq); in sdw_master_read_intel_prop()
1283 prop->mclk_freq /= 2; in sdw_master_read_intel_prop()
Dcadence_master.c1187 divider = (prop->mclk_freq / prop->max_clk_freq) - 1; in cdns_init_clock_ctrl()
1272 divider = prop->mclk_freq * SDW_DOUBLE_RATE_FACTOR / in cdns_bus_conf()
/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dsof_wm8804.c58 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()
/kernel/linux/linux-5.10/sound/soc/ti/
Domap-abe-twl6040.c40 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()
295 if (!priv->mclk_freq) { in omap_abe_probe()
/kernel/linux/linux-5.10/drivers/video/fbdev/nvidia/
Dnv_hw.c247 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 …]
/kernel/linux/linux-5.10/drivers/staging/greybus/
Daudio_apbridgea.c14 __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()
Daudio_apbridgea.h75 __le32 mclk_freq; /* XXX Remove? */ member
Daudio_codec.h214 __u32 rate, __u32 mclk_freq);
/kernel/linux/linux-5.10/drivers/video/fbdev/riva/
Driva_hw.c662 int mclk_freq, pclk_freq, nvclk_freq, mp_enable; in nv4CalcArbitration() local
669 mclk_freq = arb->mclk_khz; in nv4CalcArbitration()
710 us_m = mclk_loop *1000*1000 / mclk_freq; in nv4CalcArbitration()
720 vpm_us = (vpagemiss * pagemiss)*1000*1000/mclk_freq; in nv4CalcArbitration()
721 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration()
724 video_fill_us = cbs*1000*1000 / (8 * width) / mclk_freq; in nv4CalcArbitration()
731 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration()
734 video_fill_us = vbs*1000*1000 / (8 * width) / mclk_freq; in nv4CalcArbitration()
735 cpm_us = crtpagemiss * pagemiss *1000*1000/ mclk_freq; in nv4CalcArbitration()
750 cpm_us = crtpagemiss * pagemiss *1000*1000/ mclk_freq; in nv4CalcArbitration()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dad7768-1.c159 unsigned int mclk_freq; member
305 res = DIV_ROUND_CLOSEST(st->mclk_freq, freq); in ad7768_set_freq()
330 st->samp_freq = DIV_ROUND_CLOSEST(st->mclk_freq, in ad7768_set_freq()
346 freq = DIV_ROUND_CLOSEST(st->mclk_freq, in ad7768_sampling_freq_avail()
578 st->mclk_freq = clk_get_rate(st->mclk); in ad7768_probe()
/kernel/linux/linux-5.10/include/media/i2c/
Drj54n1cb0c.h12 unsigned int mclk_freq; member
/kernel/linux/linux-5.10/include/sound/
Dcs42l73.h16 unsigned int mclk_freq; member
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl-asoc-card.c45 unsigned long mclk_freq; member
197 codec_priv->mclk_freq, pll_out); in fsl_asoc_card_hw_params()
512 codec_priv->mclk_freq, SND_SOC_CLOCK_IN); in fsl_asoc_card_late_probe()
586 priv->codec_priv.mclk_freq = clk_get_rate(codec_clk); in fsl_asoc_card_probe()
606 priv->cpu_priv.sysclk_freq[TX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
607 priv->cpu_priv.sysclk_freq[RX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dnau8825.c2121 if (!nau8825->mclk_freq) { in nau8825_mclk_prepare()
2129 if (nau8825->mclk_freq != freq) { in nau8825_mclk_prepare()
2136 nau8825->mclk_freq = freq; in nau8825_mclk_prepare()
2163 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2165 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2211 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2213 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2259 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2261 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2285 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
[all …]
Dnau8825.h455 int mclk_freq; /* 0 - mclk is disabled */ member
Dwm8904.c1811 unsigned long mclk_freq; in wm8904_set_sysclk() local
1822 mclk_freq = clk_get_rate(priv->mclk); in wm8904_set_sysclk()
1824 if (mclk_freq != freq) { in wm8904_set_sysclk()
1828 mclk_freq, freq); in wm8904_set_sysclk()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-msm.c575 u32 mclk_freq = 0, config; in msm_cm_dll_set_freq() local
581 mclk_freq = 0; in msm_cm_dll_set_freq()
583 mclk_freq = 1; in msm_cm_dll_set_freq()
585 mclk_freq = 2; in msm_cm_dll_set_freq()
587 mclk_freq = 3; in msm_cm_dll_set_freq()
589 mclk_freq = 4; in msm_cm_dll_set_freq()
591 mclk_freq = 5; in msm_cm_dll_set_freq()
593 mclk_freq = 6; in msm_cm_dll_set_freq()
595 mclk_freq = 7; in msm_cm_dll_set_freq()
599 config |= mclk_freq << CMUX_SHIFT_PHASE_SHIFT; in msm_cm_dll_set_freq()
[all …]
/kernel/linux/linux-5.10/sound/soc/sunxi/
Dsun4i-i2s.c177 unsigned int mclk_freq; member
239 return i2s->mclk_freq; in sun4i_i2s_get_bclk_parent_rate()
338 oversample_rate = i2s->mclk_freq / rate; in sun4i_i2s_set_clk_rate()
353 mclk_div = sun4i_i2s_get_mclk_div(i2s, clk_rate, i2s->mclk_freq); in sun4i_i2s_set_clk_rate()
832 i2s->mclk_freq = freq; in sun4i_i2s_set_sysclk()
/kernel/linux/linux-5.10/drivers/video/fbdev/
Ds3fb.c32 int chip, rev, mclk_freq; member
1249 par->mclk_freq = ((vga_rseq(par->state.vgabase, 0x11) + 2) * 14318) / ((regval & 0x1F) + 2); in s3_pci_probe()
1250 par->mclk_freq = par->mclk_freq >> (regval >> 5); in s3_pci_probe()
1345 info->fix.smem_len >> 20, (par->mclk_freq + 500) / 1000); in s3_pci_probe()
/kernel/linux/linux-5.10/include/linux/soundwire/
Dsdw.h420 u32 mclk_freq; member
/kernel/linux/linux-5.10/arch/sh/boards/mach-kfr2r09/
Dsetup.c282 .mclk_freq = CEU_MCLK_FREQ,

12