Home
last modified time | relevance | path

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

/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()
/drivers/soundwire/
Dbus.c1231 u32 mclk_freq = slave->bus->prop.mclk_freq; in sdw_slave_set_frequency() local
1246 if (!mclk_freq) { in sdw_slave_set_frequency()
1261 if (!(19200000 % mclk_freq)) { in sdw_slave_set_frequency()
1262 mclk_freq = 19200000; in sdw_slave_set_frequency()
1264 } else if (!(24000000 % mclk_freq)) { in sdw_slave_set_frequency()
1265 mclk_freq = 24000000; in sdw_slave_set_frequency()
1267 } else if (!(24576000 % mclk_freq)) { in sdw_slave_set_frequency()
1268 mclk_freq = 24576000; in sdw_slave_set_frequency()
1270 } else if (!(22579200 % mclk_freq)) { in sdw_slave_set_frequency()
1271 mclk_freq = 22579200; in sdw_slave_set_frequency()
[all …]
Dintel.c409 if (prop->mclk_freq % 6000000) in intel_link_power_up()
1448 &prop->mclk_freq); in sdw_master_read_intel_prop()
1451 prop->mclk_freq /= 2; in sdw_master_read_intel_prop()
Dcadence_master.c1303 divider = (prop->mclk_freq / prop->max_clk_freq) - 1; in cdns_init_clock_ctrl()
1390 divider = prop->mclk_freq * SDW_DOUBLE_RATE_FACTOR / in cdns_bus_conf()
/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 …]
/drivers/video/fbdev/riva/
Driva_hw.c661 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 …]
/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);
/drivers/iio/adc/
Dad7768-1.c159 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()
/drivers/mmc/host/
Dsdhci-msm.c591 u32 mclk_freq = 0, config; in msm_cm_dll_set_freq() local
597 mclk_freq = 0; in msm_cm_dll_set_freq()
599 mclk_freq = 1; in msm_cm_dll_set_freq()
601 mclk_freq = 2; in msm_cm_dll_set_freq()
603 mclk_freq = 3; in msm_cm_dll_set_freq()
605 mclk_freq = 4; in msm_cm_dll_set_freq()
607 mclk_freq = 5; in msm_cm_dll_set_freq()
609 mclk_freq = 6; in msm_cm_dll_set_freq()
611 mclk_freq = 7; in msm_cm_dll_set_freq()
615 config |= mclk_freq << CMUX_SHIFT_PHASE_SHIFT; in msm_cm_dll_set_freq()
[all …]
/drivers/video/fbdev/
Ds3fb.c33 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()
Darkfb.c31 int mclk_freq; member
/drivers/media/i2c/
Dhi846.c2066 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()
Drj54n1cb0c.c1348 rj54n1->tgclk_mhz = (rj54n1_priv->mclk_freq / PLL_L * PLL_N) / in rj54n1_probe()
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c1435 static int vega12_get_current_mclk_freq(struct pp_hwmgr *hwmgr, uint32_t *mclk_freq) in vega12_get_current_mclk_freq() argument
1439 *mclk_freq = 0; in vega12_get_current_mclk_freq()
1447 *mclk_freq = mem_clk * 100; in vega12_get_current_mclk_freq()
/drivers/gpu/drm/radeon/
Dci_dpm.c1749 u32 mclk_freq; in ci_get_average_mclk_freq() local
1753 &mclk_freq); in ci_get_average_mclk_freq()
1755 mclk_freq = 0; in ci_get_average_mclk_freq()
1757 return mclk_freq; in ci_get_average_mclk_freq()