/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()
|
/drivers/soundwire/ |
D | bus.c | 1231 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 …]
|
D | intel.c | 409 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()
|
D | cadence_master.c | 1303 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/ |
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 …]
|
/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 …]
|
/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 | 214 __u32 rate, __u32 mclk_freq);
|
/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()
|
/drivers/mmc/host/ |
D | sdhci-msm.c | 591 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/ |
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()
|
D | arkfb.c | 31 int mclk_freq; member
|
/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()
|
D | rj54n1cb0c.c | 1348 rj54n1->tgclk_mhz = (rj54n1_priv->mclk_freq / PLL_L * PLL_N) / in rj54n1_probe()
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_hwmgr.c | 1435 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/ |
D | ci_dpm.c | 1749 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()
|