mclk 362 arch/arm/mach-ep93xx/clock.c struct clk *mclk; mclk 381 arch/arm/mach-ep93xx/clock.c mclk = &clk_xtali; mclk 383 arch/arm/mach-ep93xx/clock.c mclk = &clk_pll1; mclk 385 arch/arm/mach-ep93xx/clock.c mclk = &clk_pll2; mclk 386 arch/arm/mach-ep93xx/clock.c mclk_rate = mclk->rate * 2; mclk 401 arch/arm/mach-ep93xx/clock.c clk->parent = mclk; mclk 313 arch/arm/mach-s3c24xx/mach-anubis.c .mclk = 72 * MHZ, mclk 501 arch/powerpc/include/asm/ps3av.h u8 mclk; /* in: audio mclk */ mclk 199 arch/sh/boards/board-sh7785lcr.c .mclk = 84 * 1000000, mclk 954 drivers/clk/clk-u300.c struct clk_mclk *mclk = to_mclk(hw); mclk 958 drivers/clk/clk-u300.c if (!mclk->is_mspro) { mclk 1120 drivers/clk/clk-u300.c struct clk_mclk *mclk; mclk 1124 drivers/clk/clk-u300.c mclk = kzalloc(sizeof(*mclk), GFP_KERNEL); mclk 1125 drivers/clk/clk-u300.c if (!mclk) mclk 1133 drivers/clk/clk-u300.c mclk->hw.init = &init; mclk 1134 drivers/clk/clk-u300.c mclk->is_mspro = is_mspro; mclk 1136 drivers/clk/clk-u300.c hw = &mclk->hw; mclk 1139 drivers/clk/clk-u300.c kfree(mclk); mclk 284 drivers/clk/hisilicon/clk-hi3620.c struct clk_mmc *mclk = to_mmc(hw); mclk 286 drivers/clk/hisilicon/clk-hi3620.c if ((req->rate <= 13000000) && (mclk->id == HI3620_MMC_CIUCLK1)) { mclk 323 drivers/clk/hisilicon/clk-hi3620.c struct clk_mmc *mclk = to_mmc(hw); mclk 360 drivers/clk/hisilicon/clk-hi3620.c val = readl_relaxed(mclk->clken_reg); mclk 361 drivers/clk/hisilicon/clk-hi3620.c val &= ~(1 << mclk->clken_bit); mclk 362 drivers/clk/hisilicon/clk-hi3620.c writel_relaxed(val, mclk->clken_reg); mclk 364 drivers/clk/hisilicon/clk-hi3620.c val = readl_relaxed(mclk->sam_reg); mclk 365 drivers/clk/hisilicon/clk-hi3620.c val = mmc_clk_delay(val, sam, mclk->sam_off, mclk->sam_bits); mclk 366 drivers/clk/hisilicon/clk-hi3620.c writel_relaxed(val, mclk->sam_reg); mclk 368 drivers/clk/hisilicon/clk-hi3620.c val = readl_relaxed(mclk->drv_reg); mclk 369 drivers/clk/hisilicon/clk-hi3620.c val = mmc_clk_delay(val, drv, mclk->drv_off, mclk->drv_bits); mclk 370 drivers/clk/hisilicon/clk-hi3620.c writel_relaxed(val, mclk->drv_reg); mclk 372 drivers/clk/hisilicon/clk-hi3620.c val = readl_relaxed(mclk->div_reg); mclk 373 drivers/clk/hisilicon/clk-hi3620.c val = mmc_clk_delay(val, div, mclk->div_off, mclk->div_bits); mclk 374 drivers/clk/hisilicon/clk-hi3620.c writel_relaxed(val, mclk->div_reg); mclk 376 drivers/clk/hisilicon/clk-hi3620.c val = readl_relaxed(mclk->clken_reg); mclk 377 drivers/clk/hisilicon/clk-hi3620.c val |= 1 << mclk->clken_bit; mclk 378 drivers/clk/hisilicon/clk-hi3620.c writel_relaxed(val, mclk->clken_reg); mclk 387 drivers/clk/hisilicon/clk-hi3620.c struct clk_mmc *mclk = to_mmc(hw); mclk 390 drivers/clk/hisilicon/clk-hi3620.c if (mclk->id == HI3620_MMC_CIUCLK1) mclk 414 drivers/clk/hisilicon/clk-hi3620.c struct clk_mmc *mclk; mclk 418 drivers/clk/hisilicon/clk-hi3620.c mclk = kzalloc(sizeof(*mclk), GFP_KERNEL); mclk 419 drivers/clk/hisilicon/clk-hi3620.c if (!mclk) mclk 427 drivers/clk/hisilicon/clk-hi3620.c mclk->hw.init = &init; mclk 429 drivers/clk/hisilicon/clk-hi3620.c mclk->id = mmc_clk->id; mclk 430 drivers/clk/hisilicon/clk-hi3620.c mclk->clken_reg = base + mmc_clk->clken_reg; mclk 431 drivers/clk/hisilicon/clk-hi3620.c mclk->clken_bit = mmc_clk->clken_bit; mclk 432 drivers/clk/hisilicon/clk-hi3620.c mclk->div_reg = base + mmc_clk->div_reg; mclk 433 drivers/clk/hisilicon/clk-hi3620.c mclk->div_off = mmc_clk->div_off; mclk 434 drivers/clk/hisilicon/clk-hi3620.c mclk->div_bits = mmc_clk->div_bits; mclk 435 drivers/clk/hisilicon/clk-hi3620.c mclk->drv_reg = base + mmc_clk->drv_reg; mclk 436 drivers/clk/hisilicon/clk-hi3620.c mclk->drv_off = mmc_clk->drv_off; mclk 437 drivers/clk/hisilicon/clk-hi3620.c mclk->drv_bits = mmc_clk->drv_bits; mclk 438 drivers/clk/hisilicon/clk-hi3620.c mclk->sam_reg = base + mmc_clk->sam_reg; mclk 439 drivers/clk/hisilicon/clk-hi3620.c mclk->sam_off = mmc_clk->sam_off; mclk 440 drivers/clk/hisilicon/clk-hi3620.c mclk->sam_bits = mmc_clk->sam_bits; mclk 442 drivers/clk/hisilicon/clk-hi3620.c clk = clk_register(NULL, &mclk->hw); mclk 444 drivers/clk/hisilicon/clk-hi3620.c kfree(mclk); mclk 901 drivers/clk/renesas/r9a06g032-clocks.c struct clk *mclk; mclk 917 drivers/clk/renesas/r9a06g032-clocks.c mclk = devm_clk_get(dev, "mclk"); mclk 918 drivers/clk/renesas/r9a06g032-clocks.c if (IS_ERR(mclk)) mclk 919 drivers/clk/renesas/r9a06g032-clocks.c return PTR_ERR(mclk); mclk 928 drivers/clk/renesas/r9a06g032-clocks.c __clk_get_name(mclk); mclk 96 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h u32 mclk[MAX_AC_TIMING_ENTRIES]; mclk 383 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk = mclk 412 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.phase_shedding_limits_table.entries[i].mclk = mclk 107 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h u32 mclk; mclk 113 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h u32 mclk; mclk 153 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h u32 mclk; mclk 772 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c vce_clk_table.entries[i].mclk = vce_state->mclk; mclk 2108 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c uint32_t mclk; mclk 2109 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c int r, size = sizeof(mclk); mclk 2118 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (void *)&mclk, &size); mclk 2122 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c return snprintf(buf, PAGE_SIZE, "%d\n", mclk * 10 * 1000); mclk 2048 drivers/gpu/drm/amd/amdgpu/kv_dpm.c table->mclk = pi->sys_info.nbp_memory_clock[0]; mclk 2211 drivers/gpu/drm/amd/amdgpu/kv_dpm.c u32 sclk, mclk = 0; mclk 2228 drivers/gpu/drm/amd/amdgpu/kv_dpm.c mclk = max_limits->mclk; mclk 2309 drivers/gpu/drm/amd/amdgpu/kv_dpm.c force_high = (mclk >= pi->sys_info.nbp_memory_clock[3]) || mclk 2353 drivers/gpu/drm/amd/amdgpu/kv_dpm.c u32 mclk = max_limits->mclk; mclk 2368 drivers/gpu/drm/amd/amdgpu/kv_dpm.c force_high = ((mclk >= pi->sys_info.nbp_memory_clock[3]) || mclk 2785 drivers/gpu/drm/amd/amdgpu/kv_dpm.c adev->pm.dpm.vce_states[i].mclk = 0; mclk 3292 drivers/gpu/drm/amd/amdgpu/si_dpm.c if ((pl->mclk == 0) || (pl->sclk == 0)) mclk 3295 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pl->mclk == pl->sclk) mclk 3298 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pl->mclk > pl->sclk) { mclk 3299 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (((pl->mclk + (pl->sclk - 1)) / pl->sclk) > adev->pm.dpm.dyn_state.mclk_sclk_ratio) mclk 3302 drivers/gpu/drm/amd/amdgpu/si_dpm.c (pl->mclk + mclk 3306 drivers/gpu/drm/amd/amdgpu/si_dpm.c if ((pl->sclk - pl->mclk) > adev->pm.dpm.dyn_state.sclk_mclk_delta) mclk 3307 drivers/gpu/drm/amd/amdgpu/si_dpm.c pl->mclk = btc_get_valid_mclk(adev, mclk 3308 drivers/gpu/drm/amd/amdgpu/si_dpm.c max_limits->mclk, mclk 3434 drivers/gpu/drm/amd/amdgpu/si_dpm.c u32 mclk, sclk; mclk 3496 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (ps->performance_levels[i].mclk > max_limits->mclk) mclk 3497 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[i].mclk = max_limits->mclk; mclk 3521 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (ps->performance_levels[i].mclk > max_mclk_vddci) mclk 3522 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[i].mclk = max_mclk_vddci; mclk 3525 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (ps->performance_levels[i].mclk > max_mclk_vddc) mclk 3526 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[i].mclk = max_mclk_vddc; mclk 3529 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (ps->performance_levels[i].mclk > max_mclk) mclk 3530 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[i].mclk = max_mclk; mclk 3541 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk = ps->performance_levels[ps->performance_level_count - 1].mclk; mclk 3544 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk = ps->performance_levels[0].mclk; mclk 3559 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (mclk < adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].mclk) mclk 3560 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].mclk; mclk 3565 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[0].mclk = mclk; mclk 3589 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk = ps->performance_levels[0].mclk; mclk 3591 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (mclk < ps->performance_levels[i].mclk) mclk 3592 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk = ps->performance_levels[i].mclk; mclk 3595 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[i].mclk = mclk; mclk 3600 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (ps->performance_levels[i].mclk < ps->performance_levels[i - 1].mclk) mclk 3601 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[i].mclk = ps->performance_levels[i - 1].mclk; mclk 3618 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[i].mclk, mclk 3621 drivers/gpu/drm/amd/amdgpu/si_dpm.c ps->performance_levels[i].mclk, mclk 4325 drivers/gpu/drm/amd/amdgpu/si_dpm.c static u8 si_get_strobe_mode_settings(struct amdgpu_device *adev, u32 mclk) mclk 4331 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (mclk <= pi->mclk_strobe_mode_threshold) mclk 4335 drivers/gpu/drm/amd/amdgpu/si_dpm.c result = si_get_mclk_frequency_ratio(mclk, strobe_mode); mclk 4337 drivers/gpu/drm/amd/amdgpu/si_dpm.c result = si_get_ddr3_mclk_frequency_ratio(mclk); mclk 4593 drivers/gpu/drm/amd/amdgpu/si_dpm.c static int si_populate_mvdd_value(struct amdgpu_device *adev, u32 mclk, mclk 4600 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (mclk <= pi->mvdd_split_frequency) mclk 4673 drivers/gpu/drm/amd/amdgpu/si_dpm.c u16 voltage, u32 sclk, u32 mclk, mclk 4681 drivers/gpu/drm/amd/amdgpu/si_dpm.c (mclk <= limits->entries[i].mclk)) mclk 4770 drivers/gpu/drm/amd/amdgpu/si_dpm.c pl->mclk); mclk 4841 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vDLL_CNTL = mclk 4843 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vMCLK_PWRMGT_CNTL = mclk 4845 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vMPLL_AD_FUNC_CNTL = mclk 4847 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL = mclk 4849 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vMPLL_FUNC_CNTL = mclk 4851 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vMPLL_FUNC_CNTL_1 = mclk 4853 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vMPLL_FUNC_CNTL_2 = mclk 4855 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vMPLL_SS = mclk 4857 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.vMPLL_SS2 = mclk 4860 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].mclk.mclk_value = mclk 4861 drivers/gpu/drm/amd/amdgpu/si_dpm.c cpu_to_be32(initial_state->performance_levels[0].mclk); mclk 4911 drivers/gpu/drm/amd/amdgpu/si_dpm.c initial_state->performance_levels[0].mclk, mclk 4924 drivers/gpu/drm/amd/amdgpu/si_dpm.c initial_state->performance_levels[0].mclk); mclk 4926 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (initial_state->performance_levels[0].mclk > pi->mclk_edc_enable_threshold) mclk 5042 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vDLL_CNTL = mclk 5044 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vMCLK_PWRMGT_CNTL = mclk 5046 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_AD_FUNC_CNTL = mclk 5048 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL = mclk 5050 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_FUNC_CNTL = mclk 5052 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_FUNC_CNTL_1 = mclk 5054 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_FUNC_CNTL_2 = mclk 5056 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_SS = mclk 5058 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_SS2 = mclk 5070 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->ACPIState.levels[0].mclk.mclk_value = 0; mclk 5338 drivers/gpu/drm/amd/amdgpu/si_dpm.c SISLANDS_SMC_MCLK_VALUE *mclk, mclk 5410 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->mclk_value = cpu_to_be32(memory_clock); mclk 5411 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); mclk 5412 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vMPLL_FUNC_CNTL_1 = cpu_to_be32(mpll_func_cntl_1); mclk 5413 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vMPLL_FUNC_CNTL_2 = cpu_to_be32(mpll_func_cntl_2); mclk 5414 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 5415 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 5416 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 5417 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 5418 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vMPLL_SS = cpu_to_be32(mpll_ss1); mclk 5419 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk->vMPLL_SS2 = cpu_to_be32(mpll_ss2); mclk 5464 drivers/gpu/drm/amd/amdgpu/si_dpm.c (pl->mclk <= pi->mclk_stutter_mode_threshold) && mclk 5475 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) mclk 5478 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pl->mclk > eg_pi->mclk_edc_wr_enable_threshold) mclk 5481 drivers/gpu/drm/amd/amdgpu/si_dpm.c level->strobeMode = si_get_strobe_mode_settings(adev, pl->mclk); mclk 5484 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (si_get_mclk_frequency_ratio(pl->mclk, true) >= mclk 5494 drivers/gpu/drm/amd/amdgpu/si_dpm.c pl->mclk); mclk 5501 drivers/gpu/drm/amd/amdgpu/si_dpm.c pl->mclk, mclk 5502 drivers/gpu/drm/amd/amdgpu/si_dpm.c &level->mclk, mclk 5535 drivers/gpu/drm/amd/amdgpu/si_dpm.c pl->mclk, mclk 5543 drivers/gpu/drm/amd/amdgpu/si_dpm.c ret = si_populate_mvdd_value(adev, pl->mclk, &level->mvdd); mclk 5617 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (state->performance_levels[0].mclk != ulv->pl.mclk) mclk 6079 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pl->mclk <= si_pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) mclk 7148 drivers/gpu/drm/amd/amdgpu/si_dpm.c pl->mclk = le16_to_cpu(clock_info->si.usMemoryClockLow); mclk 7149 drivers/gpu/drm/amd/amdgpu/si_dpm.c pl->mclk |= clock_info->si.ucMemoryClockHigh << 16; mclk 7192 drivers/gpu/drm/amd/amdgpu/si_dpm.c pl->mclk = adev->clock.default_mclk; mclk 7202 drivers/gpu/drm/amd/amdgpu/si_dpm.c adev->pm.dpm.dyn_state.max_clock_voltage_on_ac.mclk = pl->mclk; mclk 7290 drivers/gpu/drm/amd/amdgpu/si_dpm.c u32 sclk, mclk; mclk 7296 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk = le16_to_cpu(clock_info->si.usMemoryClockLow); mclk 7297 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk |= clock_info->si.ucMemoryClockHigh << 16; mclk 7299 drivers/gpu/drm/amd/amdgpu/si_dpm.c adev->pm.dpm.vce_states[i].mclk = mclk; mclk 7460 drivers/gpu/drm/amd/amdgpu/si_dpm.c (adev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk == 0)) mclk 7500 drivers/gpu/drm/amd/amdgpu/si_dpm.c current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci, pl->pcie_gen + 1); mclk 7889 drivers/gpu/drm/amd/amdgpu/si_dpm.c return requested_state->performance_levels[0].mclk; mclk 7891 drivers/gpu/drm/amd/amdgpu/si_dpm.c return requested_state->performance_levels[requested_state->performance_level_count - 1].mclk; mclk 7910 drivers/gpu/drm/amd/amdgpu/si_dpm.c i, pl->sclk, pl->mclk, pl->vddc, pl->vddci, pl->pcie_gen + 1); mclk 7913 drivers/gpu/drm/amd/amdgpu/si_dpm.c i, pl->sclk, pl->mclk, pl->vddc, pl->vddci); mclk 7932 drivers/gpu/drm/amd/amdgpu/si_dpm.c return ((si_cpl1->mclk == si_cpl2->mclk) && mclk 7990 drivers/gpu/drm/amd/amdgpu/si_dpm.c uint32_t sclk, mclk; mclk 8010 drivers/gpu/drm/amd/amdgpu/si_dpm.c mclk = ps->performance_levels[pl_index].mclk; mclk 8011 drivers/gpu/drm/amd/amdgpu/si_dpm.c *((uint32_t *)value) = mclk; mclk 440 drivers/gpu/drm/amd/amdgpu/si_dpm.h RV7XX_SMC_MCLK_VALUE mclk; mclk 600 drivers/gpu/drm/amd/amdgpu/si_dpm.h u32 mclk; mclk 760 drivers/gpu/drm/amd/amdgpu/si_dpm.h NISLANDS_SMC_MCLK_VALUE mclk; mclk 154 drivers/gpu/drm/amd/amdgpu/sislands_smc.h SISLANDS_SMC_MCLK_VALUE mclk; mclk 64 drivers/gpu/drm/amd/display/dc/dm_services_types.h struct dm_pp_clock_range mclk; mclk 35 drivers/gpu/drm/amd/include/kgd_pp_interface.h u32 mclk; mclk 238 drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c (hwmgr->dyn_state.max_clock_voltage_on_dc.mclk == 0)) mclk 196 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h uint32_t mclk[MAX_AC_TIMING_ENTRIES]; mclk 359 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c limits->mclk = le32_to_cpu(limitable->entries[0].ulMCLKLimit); mclk 826 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c hwmgr->dyn_state.max_clock_voltage_on_dc.mclk = mclk 827 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c pp_table_information->max_clock_voltage_on_dc.mclk; mclk 1274 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c vce_state->mclk = le32_to_cpu(mclk_dep_record->ulMclk); mclk 434 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c limits->mclk = ((unsigned long)table->entries[0].ucMclkHigh << 16) | mclk 1120 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c uint32_t sclk, mclk; mclk 1133 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c mclk = smum_get_argument(hwmgr); mclk 1135 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c *((uint32_t *)value) = mclk * 100; mclk 2096 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c table_info->max_clock_voltage_on_ac.mclk = mclk 2104 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c hwmgr->dyn_state.max_clock_voltage_on_ac.mclk = table_info->max_clock_voltage_on_ac.mclk; mclk 2481 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c hwmgr->dyn_state.max_clock_voltage_on_ac.mclk = mclk 2891 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c uint32_t mclk; mclk 2917 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (smu7_ps->performance_levels[i].memory_clock > max_limits->mclk) mclk 2918 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c smu7_ps->performance_levels[i].memory_clock = max_limits->mclk; mclk 2945 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c stable_pstate_mclk = max_limits->mclk; mclk 2965 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c mclk = smu7_ps->performance_levels[0].memory_clock; mclk 2968 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c mclk = smu7_ps->performance_levels mclk 2975 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (mclk < minimum_clocks.memoryClock) mclk 2976 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c mclk = (minimum_clocks.memoryClock > max_limits->mclk) ? mclk 2977 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c max_limits->mclk : minimum_clocks.memoryClock; mclk 2980 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c smu7_ps->performance_levels[0].memory_clock = mclk; mclk 2989 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (mclk < smu7_ps->performance_levels[1].memory_clock) mclk 2990 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c mclk = smu7_ps->performance_levels[1].memory_clock; mclk 2992 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c smu7_ps->performance_levels[0].memory_clock = mclk; mclk 2993 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c smu7_ps->performance_levels[1].memory_clock = mclk; mclk 3528 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c uint32_t sclk, mclk, activity_percent; mclk 3545 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c mclk = cgs_read_register(hwmgr->device, mmSMC_MSG_ARG_0); mclk 3546 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c *((uint32_t *)value) = mclk; mclk 3603 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c uint32_t mclk = smu7_ps->performance_levels mclk 3629 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (mclk == mclk_table->dpm_levels[i].value) mclk 3634 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (mclk > mclk_table->dpm_levels[i-1].value) { mclk 3636 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c mclk_table->dpm_levels[i-1].value = mclk; mclk 267 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c table->mclk = sys_info->nbp_memory_clock[0]; mclk 721 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c stable_pstate_sclk = (hwmgr->dyn_state.max_clock_voltage_on_ac.mclk * mclk 1059 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c clocks.memoryClock = hwmgr->dyn_state.max_clock_voltage_on_ac.mclk; mclk 1482 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c info->memory_max_clock = limits->mclk; mclk 1649 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c clocks->memory_max_clock = limits->mclk; mclk 789 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c table_info->max_clock_voltage_on_ac.mclk = mclk 798 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c hwmgr->dyn_state.max_clock_voltage_on_ac.mclk = mclk 799 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c table_info->max_clock_voltage_on_ac.mclk; mclk 3138 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t mclk; mclk 3168 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c max_limits->mclk) mclk 3170 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c max_limits->mclk; mclk 3208 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c stable_pstate_mclk = max_limits->mclk; mclk 3230 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c mclk = vega10_ps->performance_levels[0].mem_clock; mclk 3236 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (mclk < minimum_clocks.memoryClock) mclk 3237 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c mclk = (minimum_clocks.memoryClock > max_limits->mclk) ? mclk 3238 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c max_limits->mclk : minimum_clocks.memoryClock; mclk 3241 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_ps->performance_levels[0].mem_clock = mclk; mclk 3250 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (mclk < vega10_ps->performance_levels[1].mem_clock) mclk 3251 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c mclk = vega10_ps->performance_levels[1].mem_clock; mclk 3263 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c mclk = data->mclk_latency_table.entries[i].frequency; mclk 3265 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_ps->performance_levels[0].mem_clock = mclk; mclk 3294 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t mclk = vega10_ps->performance_levels mclk 3311 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (mclk == mclk_table->dpm_levels[i].value) mclk 3316 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (mclk > mclk_table->dpm_levels[i-1].value) { mclk 3318 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c mclk_table->dpm_levels[i-1].value = mclk; mclk 4203 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c info->memory_max_clock = max_limits->mclk; mclk 864 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c limits->mclk = le32_to_cpu(limit_table->entries[0].ulMCLKLimit); mclk 1025 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c hwmgr->dyn_state.max_clock_voltage_on_dc.mclk = mclk 1026 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c pp_table_info->max_clock_voltage_on_dc.mclk; mclk 1690 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c info->memory_max_clock = max_limits->mclk; mclk 2748 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c info->memory_max_clock = max_limits->mclk; mclk 512 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h uint32_t mclk; mclk 178 drivers/gpu/drm/amd/powerplay/inc/power_state.h unsigned long mclk; mclk 1024 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c SMU7_Discrete_MemoryLevel *mclk, mclk 1103 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MclkFrequency = memory_clock; mclk 1104 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MpllFuncCntl = mpll_func_cntl; mclk 1105 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MpllFuncCntl_1 = mpll_func_cntl_1; mclk 1106 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MpllFuncCntl_2 = mpll_func_cntl_2; mclk 1107 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MpllAdFuncCntl = mpll_ad_func_cntl; mclk 1108 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MpllDqFuncCntl = mpll_dq_func_cntl; mclk 1109 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; mclk 1110 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->DllCntl = dll_cntl; mclk 1111 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MpllSs1 = mpll_ss1; mclk 1112 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c mclk->MpllSs2 = mpll_ss2; mclk 1348 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c static int ci_populate_mvdd_value(struct pp_hwmgr *hwmgr, uint32_t mclk, mclk 1358 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if (mclk <= hwmgr->dyn_state.mvdd_dependency_on_mclk->entries[i].clk) { mclk 1147 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c uint32_t clock, struct SMU73_Discrete_MemoryLevel *mclk) mclk 1158 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c mclk->MclkFrequency = clock; mclk 1159 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c mclk->MclkDivider = (uint8_t)mem_param.mpll_post_divider; mclk 1160 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c mclk->FreqRange = fiji_get_mclk_frequency_ratio(clock); mclk 1276 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c uint32_t mclk, SMIO_Pattern *smio_pat) mclk 1286 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c if (mclk <= table_info->vdd_dep_on_mclk->entries[i].clk) { mclk 1047 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c SMU71_Discrete_MemoryLevel *mclk, mclk 1155 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MclkFrequency = memory_clock; mclk 1156 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MpllFuncCntl = mpll_func_cntl; mclk 1157 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MpllFuncCntl_1 = mpll_func_cntl_1; mclk 1158 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MpllFuncCntl_2 = mpll_func_cntl_2; mclk 1159 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MpllAdFuncCntl = mpll_ad_func_cntl; mclk 1160 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MpllDqFuncCntl = mpll_dq_func_cntl; mclk 1161 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; mclk 1162 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->DllCntl = dll_cntl; mclk 1163 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MpllSs1 = mpll_ss1; mclk 1164 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c mclk->MpllSs2 = mpll_ss2; mclk 1395 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c static int iceland_populate_mvdd_value(struct pp_hwmgr *hwmgr, uint32_t mclk, mclk 1405 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c if (mclk <= hwmgr->dyn_state.mvdd_dependency_on_mclk->entries[i].clk) { mclk 1175 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c uint32_t mclk, SMIO_Pattern *smio_pat) mclk 1185 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c if (mclk <= table_info->vdd_dep_on_mclk->entries[i].clk) { mclk 790 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c SMU72_Discrete_MemoryLevel *mclk, mclk 906 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MclkFrequency = memory_clock; mclk 907 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MpllFuncCntl = mpll_func_cntl; mclk 908 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MpllFuncCntl_1 = mpll_func_cntl_1; mclk 909 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MpllFuncCntl_2 = mpll_func_cntl_2; mclk 910 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MpllAdFuncCntl = mpll_ad_func_cntl; mclk 911 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MpllDqFuncCntl = mpll_dq_func_cntl; mclk 912 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; mclk 913 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->DllCntl = dll_cntl; mclk 914 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MpllSs1 = mpll_ss1; mclk 915 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c mclk->MpllSs2 = mpll_ss2; mclk 1144 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint32_t mclk, SMIO_Pattern *smio_pattern) mclk 1154 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c if (mclk <= table_info->vdd_dep_on_mclk->entries[i].clk) { mclk 1083 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c uint32_t mclk, SMIO_Pattern *smio_pat) mclk 1093 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c if (mclk <= table_info->vdd_dep_on_mclk->entries[i].clk) { mclk 699 drivers/gpu/drm/arm/malidp_drv.c clk_disable_unprepare(hwdev->mclk); mclk 714 drivers/gpu/drm/arm/malidp_drv.c clk_prepare_enable(hwdev->mclk); mclk 760 drivers/gpu/drm/arm/malidp_drv.c hwdev->mclk = devm_clk_get(dev, "mclk"); mclk 761 drivers/gpu/drm/arm/malidp_drv.c if (IS_ERR(hwdev->mclk)) mclk 762 drivers/gpu/drm/arm/malidp_drv.c return PTR_ERR(hwdev->mclk); mclk 474 drivers/gpu/drm/arm/malidp_hw.c unsigned long mclk; mclk 493 drivers/gpu/drm/arm/malidp_hw.c mclk = a * pxlclk / 10; mclk 494 drivers/gpu/drm/arm/malidp_hw.c ret = clk_get_rate(hwdev->mclk); mclk 495 drivers/gpu/drm/arm/malidp_hw.c if (ret < mclk) { mclk 497 drivers/gpu/drm/arm/malidp_hw.c mclk / 1000); mclk 815 drivers/gpu/drm/arm/malidp_hw.c unsigned long mclk; mclk 834 drivers/gpu/drm/arm/malidp_hw.c mclk = (pxlclk * numerator) / denominator; mclk 835 drivers/gpu/drm/arm/malidp_hw.c ret = clk_get_rate(hwdev->mclk); mclk 836 drivers/gpu/drm/arm/malidp_hw.c if (ret < mclk) { mclk 838 drivers/gpu/drm/arm/malidp_hw.c mclk / 1000); mclk 238 drivers/gpu/drm/arm/malidp_hw.h struct clk *mclk; mclk 95 drivers/gpu/drm/ast/ast_drv.h uint32_t mclk; mclk 306 drivers/gpu/drm/ast/ast_main.c ast->mclk = 800; mclk 308 drivers/gpu/drm/ast/ast_main.c ast->mclk = 396; mclk 387 drivers/gpu/drm/ast/ast_main.c ast->mclk = ref_pll * (num + 2) / ((denum + 2) * (div * 1000)); mclk 476 drivers/gpu/drm/ast/ast_main.c ast->mclk, ast->dram_type, mclk 177 drivers/gpu/drm/bridge/sii902x.c struct clk *mclk; mclk 456 drivers/gpu/drm/bridge/sii902x.c unsigned int mclk) mclk 458 drivers/gpu/drm/bridge/sii902x.c int div = mclk / rate; mclk 567 drivers/gpu/drm/bridge/sii902x.c ret = clk_prepare_enable(sii902x->audio.mclk); mclk 573 drivers/gpu/drm/bridge/sii902x.c if (sii902x->audio.mclk) { mclk 574 drivers/gpu/drm/bridge/sii902x.c mclk_rate = clk_get_rate(sii902x->audio.mclk); mclk 646 drivers/gpu/drm/bridge/sii902x.c clk_disable_unprepare(sii902x->audio.mclk); mclk 665 drivers/gpu/drm/bridge/sii902x.c clk_disable_unprepare(sii902x->audio.mclk); mclk 778 drivers/gpu/drm/bridge/sii902x.c sii902x->audio.mclk = devm_clk_get_optional(dev, "mclk"); mclk 779 drivers/gpu/drm/bridge/sii902x.c if (IS_ERR(sii902x->audio.mclk)) { mclk 781 drivers/gpu/drm/bridge/sii902x.c __func__, PTR_ERR(sii902x->audio.mclk)); mclk 782 drivers/gpu/drm/bridge/sii902x.c return PTR_ERR(sii902x->audio.mclk); mclk 618 drivers/gpu/drm/mediatek/mtk_hdmi.c enum hdmi_aud_mclk mclk) mclk 625 drivers/gpu/drm/mediatek/mtk_hdmi.c switch (mclk) { mclk 456 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_lock_pll(struct gt215_ramfuc *fuc, struct gt215_clk_info *mclk) mclk 458 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x004004, mclk->pll); mclk 500 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_clk_info mclk; mclk 551 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = gt215_pll_info(device->clk, 0x12, 0x4000, freq, &mclk); mclk 602 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c pll2pll = (!(ctrl & 0x00000008)) && mclk.pll; mclk 615 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (mclk.pll && !pll2pll) { mclk 616 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004128, 0x003f3141, mclk.clk | 0x00000101); mclk 617 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_lock_pll(fuc, &mclk); mclk 691 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_lock_pll(fuc, &mclk); mclk 694 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (mclk.pll) { mclk 699 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004168, 0x003f3141, mclk.clk | 0x00000101); mclk 737 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (mclk.pll) { mclk 870 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (mclk.pll) { mclk 1245 drivers/gpu/drm/radeon/btc_dpm.c u32 *sclk, u32 *mclk) mclk 1249 drivers/gpu/drm/radeon/btc_dpm.c if ((sclk == NULL) || (mclk == NULL)) mclk 1256 drivers/gpu/drm/radeon/btc_dpm.c (btc_blacklist_clocks[i].mclk == *mclk)) mclk 1265 drivers/gpu/drm/radeon/btc_dpm.c btc_skip_blacklist_clocks(rdev, max_sclk, max_mclk, sclk, mclk); mclk 1275 drivers/gpu/drm/radeon/btc_dpm.c if ((pl->mclk == 0) || (pl->sclk == 0)) mclk 1278 drivers/gpu/drm/radeon/btc_dpm.c if (pl->mclk == pl->sclk) mclk 1281 drivers/gpu/drm/radeon/btc_dpm.c if (pl->mclk > pl->sclk) { mclk 1282 drivers/gpu/drm/radeon/btc_dpm.c if (((pl->mclk + (pl->sclk - 1)) / pl->sclk) > rdev->pm.dpm.dyn_state.mclk_sclk_ratio) mclk 1285 drivers/gpu/drm/radeon/btc_dpm.c (pl->mclk + mclk 1289 drivers/gpu/drm/radeon/btc_dpm.c if ((pl->sclk - pl->mclk) > rdev->pm.dpm.dyn_state.sclk_mclk_delta) mclk 1290 drivers/gpu/drm/radeon/btc_dpm.c pl->mclk = btc_get_valid_mclk(rdev, mclk 1291 drivers/gpu/drm/radeon/btc_dpm.c max_limits->mclk, mclk 1799 drivers/gpu/drm/radeon/btc_dpm.c if (state->low.mclk != ulv_pl->mclk) mclk 1819 drivers/gpu/drm/radeon/btc_dpm.c ulv_pl->mclk); mclk 1824 drivers/gpu/drm/radeon/btc_dpm.c val = cypress_calculate_burst_time(rdev, ulv_pl->sclk, ulv_pl->mclk); mclk 2102 drivers/gpu/drm/radeon/btc_dpm.c u32 mclk, sclk; mclk 2117 drivers/gpu/drm/radeon/btc_dpm.c if (ps->high.mclk > max_limits->mclk) mclk 2118 drivers/gpu/drm/radeon/btc_dpm.c ps->high.mclk = max_limits->mclk; mclk 2126 drivers/gpu/drm/radeon/btc_dpm.c if (ps->medium.mclk > max_limits->mclk) mclk 2127 drivers/gpu/drm/radeon/btc_dpm.c ps->medium.mclk = max_limits->mclk; mclk 2135 drivers/gpu/drm/radeon/btc_dpm.c if (ps->low.mclk > max_limits->mclk) mclk 2136 drivers/gpu/drm/radeon/btc_dpm.c ps->low.mclk = max_limits->mclk; mclk 2149 drivers/gpu/drm/radeon/btc_dpm.c mclk = ps->high.mclk; mclk 2154 drivers/gpu/drm/radeon/btc_dpm.c mclk = ps->low.mclk; mclk 2161 drivers/gpu/drm/radeon/btc_dpm.c ps->low.mclk = mclk; mclk 2165 drivers/gpu/drm/radeon/btc_dpm.c btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, mclk 2166 drivers/gpu/drm/radeon/btc_dpm.c &ps->low.sclk, &ps->low.mclk); mclk 2179 drivers/gpu/drm/radeon/btc_dpm.c mclk = ps->low.mclk; mclk 2180 drivers/gpu/drm/radeon/btc_dpm.c if (mclk < ps->medium.mclk) mclk 2181 drivers/gpu/drm/radeon/btc_dpm.c mclk = ps->medium.mclk; mclk 2182 drivers/gpu/drm/radeon/btc_dpm.c if (mclk < ps->high.mclk) mclk 2183 drivers/gpu/drm/radeon/btc_dpm.c mclk = ps->high.mclk; mclk 2184 drivers/gpu/drm/radeon/btc_dpm.c ps->low.mclk = mclk; mclk 2186 drivers/gpu/drm/radeon/btc_dpm.c ps->medium.mclk = mclk; mclk 2188 drivers/gpu/drm/radeon/btc_dpm.c ps->high.mclk = mclk; mclk 2191 drivers/gpu/drm/radeon/btc_dpm.c if (ps->medium.mclk < ps->low.mclk) mclk 2192 drivers/gpu/drm/radeon/btc_dpm.c ps->medium.mclk = ps->low.mclk; mclk 2195 drivers/gpu/drm/radeon/btc_dpm.c if (ps->high.mclk < ps->medium.mclk) mclk 2196 drivers/gpu/drm/radeon/btc_dpm.c ps->high.mclk = ps->medium.mclk; mclk 2201 drivers/gpu/drm/radeon/btc_dpm.c btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, mclk 2202 drivers/gpu/drm/radeon/btc_dpm.c &ps->medium.sclk, &ps->medium.mclk); mclk 2203 drivers/gpu/drm/radeon/btc_dpm.c btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, mclk 2204 drivers/gpu/drm/radeon/btc_dpm.c &ps->high.sclk, &ps->high.mclk); mclk 2213 drivers/gpu/drm/radeon/btc_dpm.c ps->low.mclk, max_limits->vddci, &ps->low.vddci); mclk 2215 drivers/gpu/drm/radeon/btc_dpm.c ps->low.mclk, max_limits->vddc, &ps->low.vddc); mclk 2222 drivers/gpu/drm/radeon/btc_dpm.c ps->medium.mclk, max_limits->vddci, &ps->medium.vddci); mclk 2224 drivers/gpu/drm/radeon/btc_dpm.c ps->medium.mclk, max_limits->vddc, &ps->medium.vddc); mclk 2231 drivers/gpu/drm/radeon/btc_dpm.c ps->high.mclk, max_limits->vddci, &ps->high.vddci); mclk 2233 drivers/gpu/drm/radeon/btc_dpm.c ps->high.mclk, max_limits->vddc, &ps->high.vddc); mclk 2716 drivers/gpu/drm/radeon/btc_dpm.c (rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk == 0)) mclk 2758 drivers/gpu/drm/radeon/btc_dpm.c current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci); mclk 2804 drivers/gpu/drm/radeon/btc_dpm.c return pl->mclk; mclk 2825 drivers/gpu/drm/radeon/btc_dpm.c return requested_state->low.mclk; mclk 2827 drivers/gpu/drm/radeon/btc_dpm.c return requested_state->high.mclk; mclk 46 drivers/gpu/drm/radeon/btc_dpm.h u32 *sclk, u32 *mclk); mclk 802 drivers/gpu/drm/radeon/ci_dpm.c u32 sclk, mclk; mclk 831 drivers/gpu/drm/radeon/ci_dpm.c if (ps->performance_levels[i].mclk > max_limits->mclk) mclk 832 drivers/gpu/drm/radeon/ci_dpm.c ps->performance_levels[i].mclk = max_limits->mclk; mclk 841 drivers/gpu/drm/radeon/ci_dpm.c mclk = ps->performance_levels[ps->performance_level_count - 1].mclk; mclk 844 drivers/gpu/drm/radeon/ci_dpm.c mclk = ps->performance_levels[0].mclk; mclk 851 drivers/gpu/drm/radeon/ci_dpm.c if (mclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk) mclk 852 drivers/gpu/drm/radeon/ci_dpm.c mclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk; mclk 856 drivers/gpu/drm/radeon/ci_dpm.c ps->performance_levels[0].mclk = mclk; mclk 862 drivers/gpu/drm/radeon/ci_dpm.c if (ps->performance_levels[0].mclk < ps->performance_levels[1].mclk) mclk 863 drivers/gpu/drm/radeon/ci_dpm.c ps->performance_levels[0].mclk = ps->performance_levels[1].mclk; mclk 865 drivers/gpu/drm/radeon/ci_dpm.c if (ps->performance_levels[1].mclk < ps->performance_levels[0].mclk) mclk 866 drivers/gpu/drm/radeon/ci_dpm.c ps->performance_levels[1].mclk = ps->performance_levels[0].mclk; mclk 2307 drivers/gpu/drm/radeon/ci_dpm.c static int ci_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, mclk 2315 drivers/gpu/drm/radeon/ci_dpm.c if (mclk <= rdev->pm.dpm.dyn_state.mvdd_dependency_on_mclk.entries[i].clk) { mclk 2398 drivers/gpu/drm/radeon/ci_dpm.c u32 mclk, mclk 2406 drivers/gpu/drm/radeon/ci_dpm.c if (mclk < limits->entries[i].mclk) { mclk 2524 drivers/gpu/drm/radeon/ci_dpm.c u32 mclk, mclk 2531 drivers/gpu/drm/radeon/ci_dpm.c radeon_atom_set_engine_dram_timings(rdev, sclk, mclk); mclk 2537 drivers/gpu/drm/radeon/ci_dpm.c ci_register_patching_mc_arb(rdev, sclk, mclk, &dram_timing2); mclk 2603 drivers/gpu/drm/radeon/ci_dpm.c boot_state->performance_levels[0].mclk) { mclk 2790 drivers/gpu/drm/radeon/ci_dpm.c SMU7_Discrete_MemoryLevel *mclk, mclk 2861 drivers/gpu/drm/radeon/ci_dpm.c mclk->MclkFrequency = memory_clock; mclk 2862 drivers/gpu/drm/radeon/ci_dpm.c mclk->MpllFuncCntl = mpll_func_cntl; mclk 2863 drivers/gpu/drm/radeon/ci_dpm.c mclk->MpllFuncCntl_1 = mpll_func_cntl_1; mclk 2864 drivers/gpu/drm/radeon/ci_dpm.c mclk->MpllFuncCntl_2 = mpll_func_cntl_2; mclk 2865 drivers/gpu/drm/radeon/ci_dpm.c mclk->MpllAdFuncCntl = mpll_ad_func_cntl; mclk 2866 drivers/gpu/drm/radeon/ci_dpm.c mclk->MpllDqFuncCntl = mpll_dq_func_cntl; mclk 2867 drivers/gpu/drm/radeon/ci_dpm.c mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; mclk 2868 drivers/gpu/drm/radeon/ci_dpm.c mclk->DllCntl = dll_cntl; mclk 2869 drivers/gpu/drm/radeon/ci_dpm.c mclk->MpllSs1 = mpll_ss1; mclk 2870 drivers/gpu/drm/radeon/ci_dpm.c mclk->MpllSs2 = mpll_ss2; mclk 3771 drivers/gpu/drm/radeon/ci_dpm.c state->performance_levels[0].mclk, mclk 3772 drivers/gpu/drm/radeon/ci_dpm.c state->performance_levels[high_limit_count].mclk); mclk 3863 drivers/gpu/drm/radeon/ci_dpm.c u32 mclk = state->performance_levels[state->performance_level_count-1].mclk; mclk 3885 drivers/gpu/drm/radeon/ci_dpm.c if (mclk == mclk_table->dpm_levels[i].value) mclk 3903 drivers/gpu/drm/radeon/ci_dpm.c u32 mclk = state->performance_levels[state->performance_level_count-1].mclk; mclk 3914 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->mclk_table.dpm_levels[dpm_table->mclk_table.count-1].value = mclk; mclk 4950 drivers/gpu/drm/radeon/ci_dpm.c rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.mclk = mclk 5486 drivers/gpu/drm/radeon/ci_dpm.c pl->mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); mclk 5487 drivers/gpu/drm/radeon/ci_dpm.c pl->mclk |= clock_info->ci.ucMemoryClockHigh << 16; mclk 5509 drivers/gpu/drm/radeon/ci_dpm.c pl->mclk = pi->vbios_boot_state.mclk_bootup_value; mclk 5620 drivers/gpu/drm/radeon/ci_dpm.c u32 sclk, mclk; mclk 5626 drivers/gpu/drm/radeon/ci_dpm.c mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); mclk 5627 drivers/gpu/drm/radeon/ci_dpm.c mclk |= clock_info->ci.ucMemoryClockHigh << 16; mclk 5629 drivers/gpu/drm/radeon/ci_dpm.c rdev->pm.dpm.vce_states[i].mclk = mclk; mclk 5933 drivers/gpu/drm/radeon/ci_dpm.c (rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk == 0)) mclk 5948 drivers/gpu/drm/radeon/ci_dpm.c u32 mclk = ci_get_average_mclk_freq(rdev); mclk 5953 drivers/gpu/drm/radeon/ci_dpm.c sclk, mclk); mclk 5969 drivers/gpu/drm/radeon/ci_dpm.c i, pl->sclk, pl->mclk, pl->pcie_gen + 1, pl->pcie_lane); mclk 5983 drivers/gpu/drm/radeon/ci_dpm.c u32 mclk = ci_get_average_mclk_freq(rdev); mclk 5985 drivers/gpu/drm/radeon/ci_dpm.c return mclk; mclk 6005 drivers/gpu/drm/radeon/ci_dpm.c return requested_state->performance_levels[0].mclk; mclk 6007 drivers/gpu/drm/radeon/ci_dpm.c return requested_state->performance_levels[requested_state->performance_level_count - 1].mclk; mclk 40 drivers/gpu/drm/radeon/ci_dpm.h u32 mclk; mclk 424 drivers/gpu/drm/radeon/cypress_dpm.c u8 cypress_get_strobe_mode_settings(struct radeon_device *rdev, u32 mclk) mclk 431 drivers/gpu/drm/radeon/cypress_dpm.c if (mclk <= pi->mclk_strobe_mode_threshold) mclk 433 drivers/gpu/drm/radeon/cypress_dpm.c result = cypress_get_mclk_frequency_ratio(rdev, mclk, strobe_mode); mclk 476 drivers/gpu/drm/radeon/cypress_dpm.c RV7XX_SMC_MCLK_VALUE *mclk, mclk 598 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.mclk_value = cpu_to_be32(memory_clock); mclk 599 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 600 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); mclk 601 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 602 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); mclk 603 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 604 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 605 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.vMPLL_SS = cpu_to_be32(mpll_ss1); mclk 606 drivers/gpu/drm/radeon/cypress_dpm.c mclk->mclk770.vMPLL_SS2 = cpu_to_be32(mpll_ss2); mclk 653 drivers/gpu/drm/radeon/cypress_dpm.c u32 mclk, mclk 665 drivers/gpu/drm/radeon/cypress_dpm.c if (mclk <= pi->mvdd_split_frequency) { mclk 698 drivers/gpu/drm/radeon/cypress_dpm.c (pl->mclk <= pi->mclk_stutter_mode_threshold) && mclk 708 drivers/gpu/drm/radeon/cypress_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) mclk 711 drivers/gpu/drm/radeon/cypress_dpm.c if (pl->mclk > eg_pi->mclk_edc_wr_enable_threshold) mclk 714 drivers/gpu/drm/radeon/cypress_dpm.c level->strobeMode = cypress_get_strobe_mode_settings(rdev, pl->mclk); mclk 717 drivers/gpu/drm/radeon/cypress_dpm.c if (cypress_get_mclk_frequency_ratio(rdev, pl->mclk, true) >= mclk 727 drivers/gpu/drm/radeon/cypress_dpm.c pl->mclk, mclk 728 drivers/gpu/drm/radeon/cypress_dpm.c &level->mclk, mclk 734 drivers/gpu/drm/radeon/cypress_dpm.c pl->mclk, mclk 735 drivers/gpu/drm/radeon/cypress_dpm.c &level->mclk, mclk 758 drivers/gpu/drm/radeon/cypress_dpm.c ret = cypress_populate_mvdd_value(rdev, pl->mclk, &level->mvdd); mclk 836 drivers/gpu/drm/radeon/cypress_dpm.c if (pl->mclk <= mclk 935 drivers/gpu/drm/radeon/cypress_dpm.c new_state->low.mclk)); mclk 938 drivers/gpu/drm/radeon/cypress_dpm.c new_state->medium.mclk)); mclk 941 drivers/gpu/drm/radeon/cypress_dpm.c new_state->high.mclk)); mclk 1051 drivers/gpu/drm/radeon/cypress_dpm.c range_table->mclk[i]; mclk 1052 drivers/gpu/drm/radeon/cypress_dpm.c radeon_atom_set_ac_timing(rdev, range_table->mclk[i]); mclk 1128 drivers/gpu/drm/radeon/cypress_dpm.c radeon_atom_set_ac_timing(rdev, boot_state->low.mclk); mclk 1147 drivers/gpu/drm/radeon/cypress_dpm.c boot_state->low.mclk); mclk 1205 drivers/gpu/drm/radeon/cypress_dpm.c boot_state->low.mclk); mclk 1244 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = mclk 1246 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = mclk 1248 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL = mclk 1250 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL_2 = mclk 1252 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = mclk 1254 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.vDLL_CNTL = mclk 1257 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_SS = mclk 1259 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_SS2 = mclk 1262 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].mclk.mclk770.mclk_value = mclk 1263 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(initial_state->low.mclk); mclk 1315 drivers/gpu/drm/radeon/cypress_dpm.c initial_state->low.mclk); mclk 1317 drivers/gpu/drm/radeon/cypress_dpm.c if (initial_state->low.mclk > pi->mclk_edc_enable_threshold) mclk 1434 drivers/gpu/drm/radeon/cypress_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = mclk 1436 drivers/gpu/drm/radeon/cypress_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = mclk 1438 drivers/gpu/drm/radeon/cypress_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL = mclk 1440 drivers/gpu/drm/radeon/cypress_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL_2 = mclk 1442 drivers/gpu/drm/radeon/cypress_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = mclk 1444 drivers/gpu/drm/radeon/cypress_dpm.c table->ACPIState.levels[0].mclk.mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 1446 drivers/gpu/drm/radeon/cypress_dpm.c table->ACPIState.levels[0].mclk.mclk770.mclk_value = 0; mclk 158 drivers/gpu/drm/radeon/cypress_dpm.h u8 cypress_get_strobe_mode_settings(struct radeon_device *rdev, u32 mclk); mclk 1982 drivers/gpu/drm/radeon/kv_dpm.c table->mclk = pi->sys_info.nbp_memory_clock[0]; mclk 2146 drivers/gpu/drm/radeon/kv_dpm.c u32 sclk, mclk = 0; mclk 2163 drivers/gpu/drm/radeon/kv_dpm.c mclk = max_limits->mclk; mclk 2244 drivers/gpu/drm/radeon/kv_dpm.c force_high = (mclk >= pi->sys_info.nbp_memory_clock[3]) || mclk 2288 drivers/gpu/drm/radeon/kv_dpm.c u32 mclk = max_limits->mclk; mclk 2303 drivers/gpu/drm/radeon/kv_dpm.c force_high = ((mclk >= pi->sys_info.nbp_memory_clock[3]) || mclk 2717 drivers/gpu/drm/radeon/kv_dpm.c rdev->pm.dpm.vce_states[i].mclk = 0; mclk 793 drivers/gpu/drm/radeon/ni_dpm.c u32 mclk; mclk 810 drivers/gpu/drm/radeon/ni_dpm.c if (ps->performance_levels[i].mclk > max_limits->mclk) mclk 811 drivers/gpu/drm/radeon/ni_dpm.c ps->performance_levels[i].mclk = max_limits->mclk; mclk 825 drivers/gpu/drm/radeon/ni_dpm.c ps->performance_levels[0].mclk = mclk 826 drivers/gpu/drm/radeon/ni_dpm.c ps->performance_levels[ps->performance_level_count - 1].mclk; mclk 831 drivers/gpu/drm/radeon/ni_dpm.c btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, mclk 833 drivers/gpu/drm/radeon/ni_dpm.c &ps->performance_levels[0].mclk); mclk 844 drivers/gpu/drm/radeon/ni_dpm.c mclk = ps->performance_levels[0].mclk; mclk 847 drivers/gpu/drm/radeon/ni_dpm.c if (mclk < ps->performance_levels[i].mclk) mclk 848 drivers/gpu/drm/radeon/ni_dpm.c mclk = ps->performance_levels[i].mclk; mclk 853 drivers/gpu/drm/radeon/ni_dpm.c ps->performance_levels[i].mclk = mclk; mclk 858 drivers/gpu/drm/radeon/ni_dpm.c if (ps->performance_levels[i].mclk < ps->performance_levels[i - 1].mclk) mclk 859 drivers/gpu/drm/radeon/ni_dpm.c ps->performance_levels[i].mclk = ps->performance_levels[i - 1].mclk; mclk 866 drivers/gpu/drm/radeon/ni_dpm.c btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, mclk 868 drivers/gpu/drm/radeon/ni_dpm.c &ps->performance_levels[i].mclk); mclk 879 drivers/gpu/drm/radeon/ni_dpm.c ps->performance_levels[i].mclk, mclk 882 drivers/gpu/drm/radeon/ni_dpm.c ps->performance_levels[i].mclk, mclk 1323 drivers/gpu/drm/radeon/ni_dpm.c u32 mclk, mclk 1335 drivers/gpu/drm/radeon/ni_dpm.c if (mclk <= pi->mvdd_split_frequency) { mclk 1626 drivers/gpu/drm/radeon/ni_dpm.c radeon_atom_set_engine_dram_timings(rdev, pl->sclk, pl->mclk); mclk 1692 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.vMPLL_AD_FUNC_CNTL = mclk 1694 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.vMPLL_AD_FUNC_CNTL_2 = mclk 1696 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL = mclk 1698 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL_2 = mclk 1700 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.vMCLK_PWRMGT_CNTL = mclk 1702 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.vDLL_CNTL = mclk 1704 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.vMPLL_SS = mclk 1706 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.vMPLL_SS2 = mclk 1708 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].mclk.mclk_value = mclk 1709 drivers/gpu/drm/radeon/ni_dpm.c cpu_to_be32(initial_state->performance_levels[0].mclk); mclk 1766 drivers/gpu/drm/radeon/ni_dpm.c initial_state->performance_levels[0].mclk); mclk 1768 drivers/gpu/drm/radeon/ni_dpm.c if (initial_state->performance_levels[0].mclk > pi->mclk_edc_enable_threshold) mclk 1905 drivers/gpu/drm/radeon/ni_dpm.c table->ACPIState.levels[0].mclk.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 1906 drivers/gpu/drm/radeon/ni_dpm.c table->ACPIState.levels[0].mclk.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); mclk 1907 drivers/gpu/drm/radeon/ni_dpm.c table->ACPIState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 1908 drivers/gpu/drm/radeon/ni_dpm.c table->ACPIState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); mclk 1909 drivers/gpu/drm/radeon/ni_dpm.c table->ACPIState.levels[0].mclk.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 1910 drivers/gpu/drm/radeon/ni_dpm.c table->ACPIState.levels[0].mclk.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 1912 drivers/gpu/drm/radeon/ni_dpm.c table->ACPIState.levels[0].mclk.mclk_value = 0; mclk 2163 drivers/gpu/drm/radeon/ni_dpm.c NISLANDS_SMC_MCLK_VALUE *mclk, mclk 2281 drivers/gpu/drm/radeon/ni_dpm.c mclk->mclk_value = cpu_to_be32(memory_clock); mclk 2282 drivers/gpu/drm/radeon/ni_dpm.c mclk->vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 2283 drivers/gpu/drm/radeon/ni_dpm.c mclk->vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); mclk 2284 drivers/gpu/drm/radeon/ni_dpm.c mclk->vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 2285 drivers/gpu/drm/radeon/ni_dpm.c mclk->vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); mclk 2286 drivers/gpu/drm/radeon/ni_dpm.c mclk->vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 2287 drivers/gpu/drm/radeon/ni_dpm.c mclk->vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 2288 drivers/gpu/drm/radeon/ni_dpm.c mclk->vMPLL_SS = cpu_to_be32(mpll_ss1); mclk 2289 drivers/gpu/drm/radeon/ni_dpm.c mclk->vMPLL_SS2 = cpu_to_be32(mpll_ss2); mclk 2330 drivers/gpu/drm/radeon/ni_dpm.c (pl->mclk <= pi->mclk_stutter_mode_threshold) && mclk 2337 drivers/gpu/drm/radeon/ni_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) mclk 2339 drivers/gpu/drm/radeon/ni_dpm.c if (pl->mclk > eg_pi->mclk_edc_wr_enable_threshold) mclk 2342 drivers/gpu/drm/radeon/ni_dpm.c level->strobeMode = cypress_get_strobe_mode_settings(rdev, pl->mclk); mclk 2345 drivers/gpu/drm/radeon/ni_dpm.c if (cypress_get_mclk_frequency_ratio(rdev, pl->mclk, true) >= mclk 2352 drivers/gpu/drm/radeon/ni_dpm.c if (pl->mclk > ni_pi->mclk_rtt_mode_threshold) mclk 2356 drivers/gpu/drm/radeon/ni_dpm.c ret = ni_populate_mclk_value(rdev, pl->sclk, pl->mclk, mclk 2357 drivers/gpu/drm/radeon/ni_dpm.c &level->mclk, mclk 2361 drivers/gpu/drm/radeon/ni_dpm.c ret = ni_populate_mclk_value(rdev, pl->sclk, pl->mclk, &level->mclk, 1, 1); mclk 2385 drivers/gpu/drm/radeon/ni_dpm.c ni_populate_mvdd_value(rdev, pl->mclk, &level->mvdd); mclk 2965 drivers/gpu/drm/radeon/ni_dpm.c if (pl->mclk <= ni_pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) mclk 3933 drivers/gpu/drm/radeon/ni_dpm.c pl->mclk = le16_to_cpu(clock_info->evergreen.usMemoryClockLow); mclk 3934 drivers/gpu/drm/radeon/ni_dpm.c pl->mclk |= clock_info->evergreen.ucMemoryClockHigh << 16; mclk 3970 drivers/gpu/drm/radeon/ni_dpm.c pl->mclk = rdev->clock.default_mclk; mclk 3979 drivers/gpu/drm/radeon/ni_dpm.c rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.mclk = pl->mclk; mclk 4262 drivers/gpu/drm/radeon/ni_dpm.c (rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk == 0)) mclk 4296 drivers/gpu/drm/radeon/ni_dpm.c i, pl->sclk, pl->mclk, pl->vddc, pl->vddci, pl->pcie_gen + 1); mclk 4299 drivers/gpu/drm/radeon/ni_dpm.c i, pl->sclk, pl->mclk, pl->vddc, pl->vddci); mclk 4321 drivers/gpu/drm/radeon/ni_dpm.c current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci); mclk 4357 drivers/gpu/drm/radeon/ni_dpm.c return pl->mclk; mclk 4378 drivers/gpu/drm/radeon/ni_dpm.c return requested_state->performance_levels[0].mclk; mclk 4380 drivers/gpu/drm/radeon/ni_dpm.c return requested_state->performance_levels[requested_state->performance_level_count - 1].mclk; mclk 109 drivers/gpu/drm/radeon/nislands_smc.h NISLANDS_SMC_MCLK_VALUE mclk; mclk 290 drivers/gpu/drm/radeon/r100.c clock_info[rdev->pm.requested_clock_mode_index].mclk, mclk 3262 drivers/gpu/drm/radeon/r100.c mclk_ff = rdev->pm.mclk; mclk 530 drivers/gpu/drm/radeon/r600.c clock_info[rdev->pm.requested_clock_mode_index].mclk, mclk 976 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk = mclk 1005 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.phase_shedding_limits_table.entries[i].mclk = mclk 1279 drivers/gpu/drm/radeon/radeon.h u32 mclk; mclk 1369 drivers/gpu/drm/radeon/radeon.h u32 mclk; mclk 1375 drivers/gpu/drm/radeon/radeon.h u32 mclk; mclk 1415 drivers/gpu/drm/radeon/radeon.h u32 mclk; mclk 1529 drivers/gpu/drm/radeon/radeon.h u32 mclk; mclk 1606 drivers/gpu/drm/radeon/radeon.h fixed20_12 mclk; mclk 2148 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[0].mclk = mclk 2153 drivers/gpu/drm/radeon/radeon_atombios.c if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || mclk 2183 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[0].mclk = mclk 2188 drivers/gpu/drm/radeon/radeon_atombios.c if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || mclk 2219 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[0].mclk = mclk 2224 drivers/gpu/drm/radeon/radeon_atombios.c if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || mclk 2450 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.default_mclk = rdev->pm.power_state[state_index].clock_info[0].mclk; mclk 2462 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[j].mclk = mclk 2481 drivers/gpu/drm/radeon/radeon_atombios.c u32 sclk, mclk; mclk 2497 drivers/gpu/drm/radeon/radeon_atombios.c mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); mclk 2498 drivers/gpu/drm/radeon/radeon_atombios.c mclk |= clock_info->ci.ucMemoryClockHigh << 16; mclk 2499 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[mode_index].mclk = mclk; mclk 2506 drivers/gpu/drm/radeon/radeon_atombios.c mclk = le16_to_cpu(clock_info->si.usMemoryClockLow); mclk 2507 drivers/gpu/drm/radeon/radeon_atombios.c mclk |= clock_info->si.ucMemoryClockHigh << 16; mclk 2508 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[mode_index].mclk = mclk; mclk 2519 drivers/gpu/drm/radeon/radeon_atombios.c mclk = le16_to_cpu(clock_info->evergreen.usMemoryClockLow); mclk 2520 drivers/gpu/drm/radeon/radeon_atombios.c mclk |= clock_info->evergreen.ucMemoryClockHigh << 16; mclk 2521 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[mode_index].mclk = mclk; mclk 2532 drivers/gpu/drm/radeon/radeon_atombios.c mclk = le16_to_cpu(clock_info->r600.usMemoryClockLow); mclk 2533 drivers/gpu/drm/radeon/radeon_atombios.c mclk |= clock_info->r600.ucMemoryClockHigh << 16; mclk 2534 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[mode_index].mclk = mclk; mclk 2567 drivers/gpu/drm/radeon/radeon_atombios.c if ((rdev->pm.power_state[state_index].clock_info[mode_index].mclk == 0) || mclk 2634 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[0].mclk = mclk 2730 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[0].mclk = mclk 2803 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[0].mclk = rdev->clock.default_mclk; mclk 3953 drivers/gpu/drm/radeon/radeon_atombios.c mclk_range_table->mclk[i] = le32_to_cpu(format->ulClkRange); mclk 72 drivers/gpu/drm/radeon/radeon_clocks.c uint32_t fb_div, ref_div, post_div, mclk; mclk 85 drivers/gpu/drm/radeon/radeon_clocks.c mclk = fb_div / ref_div; mclk 89 drivers/gpu/drm/radeon/radeon_clocks.c mclk >>= 1; mclk 91 drivers/gpu/drm/radeon/radeon_clocks.c mclk >>= 2; mclk 93 drivers/gpu/drm/radeon/radeon_clocks.c mclk >>= 3; mclk 95 drivers/gpu/drm/radeon/radeon_clocks.c return mclk; mclk 741 drivers/gpu/drm/radeon/radeon_combios.c uint16_t sclk, mclk; mclk 796 drivers/gpu/drm/radeon/radeon_combios.c mclk = RBIOS16(pll_info + 0x8); mclk 799 drivers/gpu/drm/radeon/radeon_combios.c if (mclk == 0) mclk 800 drivers/gpu/drm/radeon/radeon_combios.c mclk = 200 * 100; mclk 803 drivers/gpu/drm/radeon/radeon_combios.c rdev->clock.default_mclk = mclk; mclk 2737 drivers/gpu/drm/radeon/radeon_combios.c rdev->pm.power_state[state_index].clock_info[0].mclk = RBIOS32(offset + 0x5 + 0x2); mclk 2739 drivers/gpu/drm/radeon/radeon_combios.c if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || mclk 2811 drivers/gpu/drm/radeon/radeon_combios.c rdev->pm.power_state[state_index].clock_info[0].mclk = rdev->clock.default_mclk; mclk 727 drivers/gpu/drm/radeon/radeon_device.c u32 mclk = rdev->pm.current_mclk; mclk 733 drivers/gpu/drm/radeon/radeon_device.c rdev->pm.mclk.full = dfixed_const(mclk); mclk 734 drivers/gpu/drm/radeon/radeon_device.c rdev->pm.mclk.full = dfixed_div(rdev->pm.mclk, a); mclk 648 drivers/gpu/drm/radeon/radeon_mode.h u32 mclk[MAX_AC_TIMING_ENTRIES]; mclk 174 drivers/gpu/drm/radeon/radeon_pm.c u32 sclk, mclk; mclk 196 drivers/gpu/drm/radeon/radeon_pm.c mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. mclk 197 drivers/gpu/drm/radeon/radeon_pm.c clock_info[rdev->pm.profiles[PM_PROFILE_HIGH_MH_IDX].dpms_on_cm_idx].mclk; mclk 199 drivers/gpu/drm/radeon/radeon_pm.c mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. mclk 200 drivers/gpu/drm/radeon/radeon_pm.c clock_info[rdev->pm.requested_clock_mode_index].mclk; mclk 202 drivers/gpu/drm/radeon/radeon_pm.c if (mclk > rdev->pm.default_mclk) mclk 203 drivers/gpu/drm/radeon/radeon_pm.c mclk = rdev->pm.default_mclk; mclk 232 drivers/gpu/drm/radeon/radeon_pm.c if (rdev->asic->pm.set_memory_clock && (mclk != rdev->pm.current_mclk)) { mclk 234 drivers/gpu/drm/radeon/radeon_pm.c radeon_set_memory_clock(rdev, mclk); mclk 236 drivers/gpu/drm/radeon/radeon_pm.c rdev->pm.current_mclk = mclk; mclk 237 drivers/gpu/drm/radeon/radeon_pm.c DRM_DEBUG_DRIVER("Setting: m: %d\n", mclk); mclk 349 drivers/gpu/drm/radeon/radeon_pm.c clock_info->mclk * 10, mclk 456 drivers/gpu/drm/radeon/rv6xx_dpm.c state->high.mclk; mclk 458 drivers/gpu/drm/radeon/rv6xx_dpm.c state->high.mclk; mclk 460 drivers/gpu/drm/radeon/rv6xx_dpm.c state->medium.mclk; mclk 462 drivers/gpu/drm/radeon/rv6xx_dpm.c state->low.mclk; mclk 466 drivers/gpu/drm/radeon/rv6xx_dpm.c if (state->high.mclk == state->medium.mclk) mclk 473 drivers/gpu/drm/radeon/rv6xx_dpm.c if (state->medium.mclk == state->low.mclk) mclk 1821 drivers/gpu/drm/radeon/rv6xx_dpm.c u32 sclk, mclk; mclk 1840 drivers/gpu/drm/radeon/rv6xx_dpm.c mclk = le16_to_cpu(clock_info->r600.usMemoryClockLow); mclk 1841 drivers/gpu/drm/radeon/rv6xx_dpm.c mclk |= clock_info->r600.ucMemoryClockHigh << 16; mclk 1843 drivers/gpu/drm/radeon/rv6xx_dpm.c pl->mclk = mclk; mclk 1866 drivers/gpu/drm/radeon/rv6xx_dpm.c pl->mclk = rdev->clock.default_mclk; mclk 2018 drivers/gpu/drm/radeon/rv6xx_dpm.c pl->sclk, pl->mclk, pl->vddc); mclk 2021 drivers/gpu/drm/radeon/rv6xx_dpm.c pl->sclk, pl->mclk, pl->vddc); mclk 2024 drivers/gpu/drm/radeon/rv6xx_dpm.c pl->sclk, pl->mclk, pl->vddc); mclk 2049 drivers/gpu/drm/radeon/rv6xx_dpm.c current_index, pl->sclk, pl->mclk, pl->vddc); mclk 2095 drivers/gpu/drm/radeon/rv6xx_dpm.c return pl->mclk; mclk 2125 drivers/gpu/drm/radeon/rv6xx_dpm.c return requested_state->low.mclk; mclk 2127 drivers/gpu/drm/radeon/rv6xx_dpm.c return requested_state->high.mclk; mclk 81 drivers/gpu/drm/radeon/rv6xx_dpm.h u32 mclk; mclk 120 drivers/gpu/drm/radeon/rv730_dpm.c LPRV7XX_SMC_MCLK_VALUE mclk) mclk 185 drivers/gpu/drm/radeon/rv730_dpm.c mclk->mclk730.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 186 drivers/gpu/drm/radeon/rv730_dpm.c mclk->mclk730.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 187 drivers/gpu/drm/radeon/rv730_dpm.c mclk->mclk730.mclk_value = cpu_to_be32(memory_clock); mclk 188 drivers/gpu/drm/radeon/rv730_dpm.c mclk->mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); mclk 189 drivers/gpu/drm/radeon/rv730_dpm.c mclk->mclk730.vMPLL_FUNC_CNTL2 = cpu_to_be32(mpll_func_cntl_2); mclk 190 drivers/gpu/drm/radeon/rv730_dpm.c mclk->mclk730.vMPLL_FUNC_CNTL3 = cpu_to_be32(mpll_func_cntl_3); mclk 191 drivers/gpu/drm/radeon/rv730_dpm.c mclk->mclk730.vMPLL_SS = cpu_to_be32(mpll_ss); mclk 192 drivers/gpu/drm/radeon/rv730_dpm.c mclk->mclk730.vMPLL_SS2 = cpu_to_be32(mpll_ss2); mclk 296 drivers/gpu/drm/radeon/rv730_dpm.c table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); mclk 297 drivers/gpu/drm/radeon/rv730_dpm.c table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL2 = cpu_to_be32(mpll_func_cntl_2); mclk 298 drivers/gpu/drm/radeon/rv730_dpm.c table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL3 = cpu_to_be32(mpll_func_cntl_3); mclk 299 drivers/gpu/drm/radeon/rv730_dpm.c table->ACPIState.levels[0].mclk.mclk730.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 300 drivers/gpu/drm/radeon/rv730_dpm.c table->ACPIState.levels[0].mclk.mclk730.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 302 drivers/gpu/drm/radeon/rv730_dpm.c table->ACPIState.levels[0].mclk.mclk730.mclk_value = 0; mclk 326 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL = mclk 328 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL2 = mclk 330 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL3 = mclk 332 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].mclk.mclk730.vMCLK_PWRMGT_CNTL = mclk 334 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].mclk.mclk730.vDLL_CNTL = mclk 336 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].mclk.mclk730.vMPLL_SS = mclk 338 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].mclk.mclk730.vMPLL_SS2 = mclk 341 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].mclk.mclk730.mclk_value = mclk 342 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(initial_state->low.mclk); mclk 416 drivers/gpu/drm/radeon/rv730_dpm.c state->high.mclk); mclk 426 drivers/gpu/drm/radeon/rv730_dpm.c state->medium.mclk); mclk 436 drivers/gpu/drm/radeon/rv730_dpm.c state->low.mclk); mclk 188 drivers/gpu/drm/radeon/rv740_dpm.c RV7XX_SMC_MCLK_VALUE *mclk) mclk 271 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.mclk_value = cpu_to_be32(memory_clock); mclk 272 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 273 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); mclk 274 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 275 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); mclk 276 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 277 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 278 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.vMPLL_SS = cpu_to_be32(mpll_ss1); mclk 279 drivers/gpu/drm/radeon/rv740_dpm.c mclk->mclk770.vMPLL_SS2 = cpu_to_be32(mpll_ss2); mclk 373 drivers/gpu/drm/radeon/rv740_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 374 drivers/gpu/drm/radeon/rv740_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); mclk 375 drivers/gpu/drm/radeon/rv740_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 376 drivers/gpu/drm/radeon/rv740_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); mclk 377 drivers/gpu/drm/radeon/rv740_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 378 drivers/gpu/drm/radeon/rv740_dpm.c table->ACPIState.levels[0].mclk.mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 380 drivers/gpu/drm/radeon/rv740_dpm.c table->ACPIState.levels[0].mclk.mclk770.mclk_value = 0; mclk 387 drivers/gpu/drm/radeon/rv770_dpm.c RV7XX_SMC_MCLK_VALUE *mclk) mclk 472 drivers/gpu/drm/radeon/rv770_dpm.c mclk->mclk770.mclk_value = cpu_to_be32(memory_clock); mclk 473 drivers/gpu/drm/radeon/rv770_dpm.c mclk->mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 474 drivers/gpu/drm/radeon/rv770_dpm.c mclk->mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); mclk 475 drivers/gpu/drm/radeon/rv770_dpm.c mclk->mclk770.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 476 drivers/gpu/drm/radeon/rv770_dpm.c mclk->mclk770.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); mclk 477 drivers/gpu/drm/radeon/rv770_dpm.c mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 478 drivers/gpu/drm/radeon/rv770_dpm.c mclk->mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 591 drivers/gpu/drm/radeon/rv770_dpm.c int rv770_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, mclk 602 drivers/gpu/drm/radeon/rv770_dpm.c if (mclk <= pi->mvdd_split_frequency) { mclk 641 drivers/gpu/drm/radeon/rv770_dpm.c if (pl->mclk <= pi->mclk_strobe_mode_threshold) mclk 643 drivers/gpu/drm/radeon/rv770_dpm.c rv740_get_mclk_frequency_ratio(pl->mclk) | 0x10; mclk 647 drivers/gpu/drm/radeon/rv770_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) mclk 653 drivers/gpu/drm/radeon/rv770_dpm.c pl->mclk, &level->mclk); mclk 656 drivers/gpu/drm/radeon/rv770_dpm.c pl->mclk, &level->mclk); mclk 659 drivers/gpu/drm/radeon/rv770_dpm.c pl->mclk, &level->mclk); mclk 668 drivers/gpu/drm/radeon/rv770_dpm.c ret = rv770_populate_mvdd_value(rdev, pl->mclk, &level->mvdd); mclk 753 drivers/gpu/drm/radeon/rv770_dpm.c state->high.mclk); mclk 981 drivers/gpu/drm/radeon/rv770_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 982 drivers/gpu/drm/radeon/rv770_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); mclk 983 drivers/gpu/drm/radeon/rv770_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 984 drivers/gpu/drm/radeon/rv770_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); mclk 986 drivers/gpu/drm/radeon/rv770_dpm.c table->ACPIState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 987 drivers/gpu/drm/radeon/rv770_dpm.c table->ACPIState.levels[0].mclk.mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 989 drivers/gpu/drm/radeon/rv770_dpm.c table->ACPIState.levels[0].mclk.mclk770.mclk_value = 0; mclk 1030 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = mclk 1032 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = mclk 1034 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL = mclk 1036 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL_2 = mclk 1038 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = mclk 1040 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.vDLL_CNTL = mclk 1043 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_SS = mclk 1045 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.vMPLL_SS2 = mclk 1048 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].mclk.mclk770.mclk_value = mclk 1049 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(initial_state->low.mclk); mclk 1092 drivers/gpu/drm/radeon/rv770_dpm.c if (initial_state->low.mclk <= pi->mclk_strobe_mode_threshold) mclk 1094 drivers/gpu/drm/radeon/rv770_dpm.c rv740_get_mclk_frequency_ratio(initial_state->low.mclk) | 0x10; mclk 1098 drivers/gpu/drm/radeon/rv770_dpm.c if (initial_state->low.mclk >= pi->mclk_edc_enable_threshold) mclk 1756 drivers/gpu/drm/radeon/rv770_dpm.c if (current_state->high.mclk <= pi->mclk_odt_threshold) mclk 1759 drivers/gpu/drm/radeon/rv770_dpm.c if (new_state->high.mclk <= pi->mclk_odt_threshold) mclk 1785 drivers/gpu/drm/radeon/rv770_dpm.c if (current_state->high.mclk <= pi->mclk_odt_threshold) mclk 1788 drivers/gpu/drm/radeon/rv770_dpm.c if (new_state->high.mclk <= pi->mclk_odt_threshold) mclk 2180 drivers/gpu/drm/radeon/rv770_dpm.c u32 sclk, mclk; mclk 2199 drivers/gpu/drm/radeon/rv770_dpm.c mclk = le16_to_cpu(clock_info->evergreen.usMemoryClockLow); mclk 2200 drivers/gpu/drm/radeon/rv770_dpm.c mclk |= clock_info->evergreen.ucMemoryClockHigh << 16; mclk 2208 drivers/gpu/drm/radeon/rv770_dpm.c mclk = le16_to_cpu(clock_info->r600.usMemoryClockLow); mclk 2209 drivers/gpu/drm/radeon/rv770_dpm.c mclk |= clock_info->r600.ucMemoryClockHigh << 16; mclk 2215 drivers/gpu/drm/radeon/rv770_dpm.c pl->mclk = mclk; mclk 2251 drivers/gpu/drm/radeon/rv770_dpm.c pl->mclk = rdev->clock.default_mclk; mclk 2260 drivers/gpu/drm/radeon/rv770_dpm.c rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.mclk = pl->mclk; mclk 2444 drivers/gpu/drm/radeon/rv770_dpm.c pl->sclk, pl->mclk, pl->vddc, pl->vddci); mclk 2447 drivers/gpu/drm/radeon/rv770_dpm.c pl->sclk, pl->mclk, pl->vddc, pl->vddci); mclk 2450 drivers/gpu/drm/radeon/rv770_dpm.c pl->sclk, pl->mclk, pl->vddc, pl->vddci); mclk 2454 drivers/gpu/drm/radeon/rv770_dpm.c pl->sclk, pl->mclk, pl->vddc); mclk 2457 drivers/gpu/drm/radeon/rv770_dpm.c pl->sclk, pl->mclk, pl->vddc); mclk 2460 drivers/gpu/drm/radeon/rv770_dpm.c pl->sclk, pl->mclk, pl->vddc); mclk 2487 drivers/gpu/drm/radeon/rv770_dpm.c current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci); mclk 2490 drivers/gpu/drm/radeon/rv770_dpm.c current_index, pl->sclk, pl->mclk, pl->vddc); mclk 2535 drivers/gpu/drm/radeon/rv770_dpm.c return pl->mclk; mclk 2565 drivers/gpu/drm/radeon/rv770_dpm.c return requested_state->low.mclk; mclk 2567 drivers/gpu/drm/radeon/rv770_dpm.c return requested_state->high.mclk; mclk 144 drivers/gpu/drm/radeon/rv770_dpm.h u32 mclk; mclk 185 drivers/gpu/drm/radeon/rv770_dpm.h LPRV7XX_SMC_MCLK_VALUE mclk); mclk 206 drivers/gpu/drm/radeon/rv770_dpm.h RV7XX_SMC_MCLK_VALUE *mclk); mclk 220 drivers/gpu/drm/radeon/rv770_dpm.h int rv770_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, mclk 109 drivers/gpu/drm/radeon/rv770_smc.h RV7XX_SMC_MCLK_VALUE mclk; mclk 2975 drivers/gpu/drm/radeon/si_dpm.c u32 mclk, sclk; mclk 3037 drivers/gpu/drm/radeon/si_dpm.c if (ps->performance_levels[i].mclk > max_limits->mclk) mclk 3038 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[i].mclk = max_limits->mclk; mclk 3062 drivers/gpu/drm/radeon/si_dpm.c if (ps->performance_levels[i].mclk > max_mclk_vddci) mclk 3063 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[i].mclk = max_mclk_vddci; mclk 3066 drivers/gpu/drm/radeon/si_dpm.c if (ps->performance_levels[i].mclk > max_mclk_vddc) mclk 3067 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[i].mclk = max_mclk_vddc; mclk 3070 drivers/gpu/drm/radeon/si_dpm.c if (ps->performance_levels[i].mclk > max_mclk) mclk 3071 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[i].mclk = max_mclk; mclk 3082 drivers/gpu/drm/radeon/si_dpm.c mclk = ps->performance_levels[ps->performance_level_count - 1].mclk; mclk 3085 drivers/gpu/drm/radeon/si_dpm.c mclk = ps->performance_levels[0].mclk; mclk 3100 drivers/gpu/drm/radeon/si_dpm.c if (mclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk) mclk 3101 drivers/gpu/drm/radeon/si_dpm.c mclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk; mclk 3106 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[0].mclk = mclk; mclk 3130 drivers/gpu/drm/radeon/si_dpm.c mclk = ps->performance_levels[0].mclk; mclk 3132 drivers/gpu/drm/radeon/si_dpm.c if (mclk < ps->performance_levels[i].mclk) mclk 3133 drivers/gpu/drm/radeon/si_dpm.c mclk = ps->performance_levels[i].mclk; mclk 3136 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[i].mclk = mclk; mclk 3141 drivers/gpu/drm/radeon/si_dpm.c if (ps->performance_levels[i].mclk < ps->performance_levels[i - 1].mclk) mclk 3142 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[i].mclk = ps->performance_levels[i - 1].mclk; mclk 3159 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[i].mclk, mclk 3162 drivers/gpu/drm/radeon/si_dpm.c ps->performance_levels[i].mclk, mclk 3860 drivers/gpu/drm/radeon/si_dpm.c static u8 si_get_strobe_mode_settings(struct radeon_device *rdev, u32 mclk) mclk 3866 drivers/gpu/drm/radeon/si_dpm.c if (mclk <= pi->mclk_strobe_mode_threshold) mclk 3870 drivers/gpu/drm/radeon/si_dpm.c result = si_get_mclk_frequency_ratio(mclk, strobe_mode); mclk 3872 drivers/gpu/drm/radeon/si_dpm.c result = si_get_ddr3_mclk_frequency_ratio(mclk); mclk 4131 drivers/gpu/drm/radeon/si_dpm.c static int si_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, mclk 4138 drivers/gpu/drm/radeon/si_dpm.c if (mclk <= pi->mvdd_split_frequency) mclk 4211 drivers/gpu/drm/radeon/si_dpm.c u16 voltage, u32 sclk, u32 mclk, mclk 4219 drivers/gpu/drm/radeon/si_dpm.c (mclk <= limits->entries[i].mclk)) mclk 4306 drivers/gpu/drm/radeon/si_dpm.c pl->mclk); mclk 4377 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vDLL_CNTL = mclk 4379 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vMCLK_PWRMGT_CNTL = mclk 4381 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vMPLL_AD_FUNC_CNTL = mclk 4383 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL = mclk 4385 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vMPLL_FUNC_CNTL = mclk 4387 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vMPLL_FUNC_CNTL_1 = mclk 4389 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vMPLL_FUNC_CNTL_2 = mclk 4391 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vMPLL_SS = mclk 4393 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.vMPLL_SS2 = mclk 4396 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].mclk.mclk_value = mclk 4397 drivers/gpu/drm/radeon/si_dpm.c cpu_to_be32(initial_state->performance_levels[0].mclk); mclk 4447 drivers/gpu/drm/radeon/si_dpm.c initial_state->performance_levels[0].mclk, mclk 4462 drivers/gpu/drm/radeon/si_dpm.c initial_state->performance_levels[0].mclk); mclk 4464 drivers/gpu/drm/radeon/si_dpm.c if (initial_state->performance_levels[0].mclk > pi->mclk_edc_enable_threshold) mclk 4579 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vDLL_CNTL = mclk 4581 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vMCLK_PWRMGT_CNTL = mclk 4583 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_AD_FUNC_CNTL = mclk 4585 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL = mclk 4587 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_FUNC_CNTL = mclk 4589 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_FUNC_CNTL_1 = mclk 4591 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_FUNC_CNTL_2 = mclk 4593 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_SS = mclk 4595 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.vMPLL_SS2 = mclk 4607 drivers/gpu/drm/radeon/si_dpm.c table->ACPIState.levels[0].mclk.mclk_value = 0; mclk 4876 drivers/gpu/drm/radeon/si_dpm.c SISLANDS_SMC_MCLK_VALUE *mclk, mclk 4948 drivers/gpu/drm/radeon/si_dpm.c mclk->mclk_value = cpu_to_be32(memory_clock); mclk 4949 drivers/gpu/drm/radeon/si_dpm.c mclk->vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); mclk 4950 drivers/gpu/drm/radeon/si_dpm.c mclk->vMPLL_FUNC_CNTL_1 = cpu_to_be32(mpll_func_cntl_1); mclk 4951 drivers/gpu/drm/radeon/si_dpm.c mclk->vMPLL_FUNC_CNTL_2 = cpu_to_be32(mpll_func_cntl_2); mclk 4952 drivers/gpu/drm/radeon/si_dpm.c mclk->vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); mclk 4953 drivers/gpu/drm/radeon/si_dpm.c mclk->vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); mclk 4954 drivers/gpu/drm/radeon/si_dpm.c mclk->vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); mclk 4955 drivers/gpu/drm/radeon/si_dpm.c mclk->vDLL_CNTL = cpu_to_be32(dll_cntl); mclk 4956 drivers/gpu/drm/radeon/si_dpm.c mclk->vMPLL_SS = cpu_to_be32(mpll_ss1); mclk 4957 drivers/gpu/drm/radeon/si_dpm.c mclk->vMPLL_SS2 = cpu_to_be32(mpll_ss2); mclk 5002 drivers/gpu/drm/radeon/si_dpm.c (pl->mclk <= pi->mclk_stutter_mode_threshold) && mclk 5013 drivers/gpu/drm/radeon/si_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) mclk 5016 drivers/gpu/drm/radeon/si_dpm.c if (pl->mclk > eg_pi->mclk_edc_wr_enable_threshold) mclk 5019 drivers/gpu/drm/radeon/si_dpm.c level->strobeMode = si_get_strobe_mode_settings(rdev, pl->mclk); mclk 5022 drivers/gpu/drm/radeon/si_dpm.c if (si_get_mclk_frequency_ratio(pl->mclk, true) >= mclk 5032 drivers/gpu/drm/radeon/si_dpm.c pl->mclk); mclk 5039 drivers/gpu/drm/radeon/si_dpm.c pl->mclk, mclk 5040 drivers/gpu/drm/radeon/si_dpm.c &level->mclk, mclk 5073 drivers/gpu/drm/radeon/si_dpm.c pl->mclk, mclk 5081 drivers/gpu/drm/radeon/si_dpm.c ret = si_populate_mvdd_value(rdev, pl->mclk, &level->mvdd); mclk 5155 drivers/gpu/drm/radeon/si_dpm.c if (state->performance_levels[0].mclk != ulv->pl.mclk) mclk 5625 drivers/gpu/drm/radeon/si_dpm.c if (pl->mclk <= si_pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) mclk 6748 drivers/gpu/drm/radeon/si_dpm.c pl->mclk = le16_to_cpu(clock_info->si.usMemoryClockLow); mclk 6749 drivers/gpu/drm/radeon/si_dpm.c pl->mclk |= clock_info->si.ucMemoryClockHigh << 16; mclk 6792 drivers/gpu/drm/radeon/si_dpm.c pl->mclk = rdev->clock.default_mclk; mclk 6802 drivers/gpu/drm/radeon/si_dpm.c rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.mclk = pl->mclk; mclk 6885 drivers/gpu/drm/radeon/si_dpm.c u32 sclk, mclk; mclk 6891 drivers/gpu/drm/radeon/si_dpm.c mclk = le16_to_cpu(clock_info->si.usMemoryClockLow); mclk 6892 drivers/gpu/drm/radeon/si_dpm.c mclk |= clock_info->si.ucMemoryClockHigh << 16; mclk 6894 drivers/gpu/drm/radeon/si_dpm.c rdev->pm.dpm.vce_states[i].mclk = mclk; mclk 7070 drivers/gpu/drm/radeon/si_dpm.c (rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk == 0)) mclk 7109 drivers/gpu/drm/radeon/si_dpm.c current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci, pl->pcie_gen + 1); mclk 7145 drivers/gpu/drm/radeon/si_dpm.c return pl->mclk; mclk 154 drivers/gpu/drm/radeon/sislands_smc.h SISLANDS_SMC_MCLK_VALUE mclk; mclk 1814 drivers/gpu/drm/radeon/trinity_dpm.c rdev->pm.dpm.vce_states[i].mclk = 0; mclk 159 drivers/i2c/busses/i2c-bcm2835.c struct clk *mclk, mclk 169 drivers/i2c/busses/i2c-bcm2835.c mclk_name = __clk_get_name(mclk); mclk 408 drivers/i2c/busses/i2c-bcm2835.c struct clk *mclk; mclk 423 drivers/i2c/busses/i2c-bcm2835.c mclk = devm_clk_get(&pdev->dev, NULL); mclk 424 drivers/i2c/busses/i2c-bcm2835.c if (IS_ERR(mclk)) { mclk 425 drivers/i2c/busses/i2c-bcm2835.c if (PTR_ERR(mclk) != -EPROBE_DEFER) mclk 427 drivers/i2c/busses/i2c-bcm2835.c return PTR_ERR(mclk); mclk 430 drivers/i2c/busses/i2c-bcm2835.c i2c_dev->bus_clk = bcm2835_i2c_register_div(&pdev->dev, mclk, i2c_dev); mclk 394 drivers/i2c/busses/i2c-sh7760.c struct clk *mclk; mclk 399 drivers/i2c/busses/i2c-sh7760.c mclk = clk_get(NULL, "peripheral_clk"); mclk 400 drivers/i2c/busses/i2c-sh7760.c if (IS_ERR(mclk)) { mclk 401 drivers/i2c/busses/i2c-sh7760.c return PTR_ERR(mclk); mclk 403 drivers/i2c/busses/i2c-sh7760.c mck = mclk->rate; mclk 404 drivers/i2c/busses/i2c-sh7760.c clk_put(mclk); mclk 128 drivers/iio/adc/ad7124.c struct clk *mclk; mclk 236 drivers/iio/adc/ad7124.c fclk = clk_get_rate(st->mclk); mclk 516 drivers/iio/adc/ad7124.c fclk = clk_get_rate(st->mclk); mclk 525 drivers/iio/adc/ad7124.c ret = clk_set_rate(st->mclk, fclk); mclk 612 drivers/iio/adc/ad7124.c st->mclk = devm_clk_get(&spi->dev, "mclk"); mclk 613 drivers/iio/adc/ad7124.c if (IS_ERR(st->mclk)) { mclk 614 drivers/iio/adc/ad7124.c ret = PTR_ERR(st->mclk); mclk 618 drivers/iio/adc/ad7124.c ret = clk_prepare_enable(st->mclk); mclk 645 drivers/iio/adc/ad7124.c clk_disable_unprepare(st->mclk); mclk 663 drivers/iio/adc/ad7124.c clk_disable_unprepare(st->mclk); mclk 38 drivers/iio/adc/ad7766.c struct clk *mclk; mclk 98 drivers/iio/adc/ad7766.c ret = clk_prepare_enable(ad7766->mclk); mclk 122 drivers/iio/adc/ad7766.c clk_disable_unprepare(ad7766->mclk); mclk 144 drivers/iio/adc/ad7766.c *val = clk_get_rate(ad7766->mclk) / mclk 227 drivers/iio/adc/ad7766.c ad7766->mclk = devm_clk_get(&spi->dev, "mclk"); mclk 228 drivers/iio/adc/ad7766.c if (IS_ERR(ad7766->mclk)) mclk 229 drivers/iio/adc/ad7766.c return PTR_ERR(ad7766->mclk); mclk 158 drivers/iio/adc/ad7768-1.c struct clk *mclk; mclk 538 drivers/iio/adc/ad7768-1.c clk_disable_unprepare(st->mclk); mclk 568 drivers/iio/adc/ad7768-1.c st->mclk = devm_clk_get(&spi->dev, "mclk"); mclk 569 drivers/iio/adc/ad7768-1.c if (IS_ERR(st->mclk)) mclk 570 drivers/iio/adc/ad7768-1.c return PTR_ERR(st->mclk); mclk 572 drivers/iio/adc/ad7768-1.c ret = clk_prepare_enable(st->mclk); mclk 580 drivers/iio/adc/ad7768-1.c st->mclk_freq = clk_get_rate(st->mclk); mclk 274 drivers/media/common/b2c2/flexcop-fe-tuner.c .mclk = 88000000UL, mclk 82 drivers/media/dvb-frontends/bsbe1.h .mclk = 88000000UL, mclk 117 drivers/media/dvb-frontends/bsru6.h .mclk = 88000000UL, mclk 352 drivers/media/dvb-frontends/m88ds3103.c dev->mclk = 110250000; mclk 354 drivers/media/dvb-frontends/m88ds3103.c dev->mclk = 96000000; mclk 368 drivers/media/dvb-frontends/m88ds3103.c dev->mclk = 96000000; mclk 562 drivers/media/dvb-frontends/m88ds3103.c u16tmp = DIV_ROUND_CLOSEST_ULL((u64)c->symbol_rate * 0x10000, dev->mclk); mclk 586 drivers/media/dvb-frontends/m88ds3103.c s32tmp = DIV_ROUND_CLOSEST(s32tmp, dev->mclk / 1000); mclk 926 drivers/media/dvb-frontends/m88ds3103.c c->symbol_rate = DIV_ROUND_CLOSEST_ULL((u64)(buf[1] << 8 | buf[0] << 0) * dev->mclk, 0x10000); mclk 39 drivers/media/dvb-frontends/m88ds3103_priv.h s32 mclk; mclk 104 drivers/media/dvb-frontends/m88rs2000.c u32 mclk; mclk 114 drivers/media/dvb-frontends/m88rs2000.c mclk = (u32)(reg * RS2000_FE_CRYSTAL_KHZ + 28 / 2) / 28; mclk 116 drivers/media/dvb-frontends/m88rs2000.c return mclk; mclk 122 drivers/media/dvb-frontends/m88rs2000.c u32 mclk; mclk 127 drivers/media/dvb-frontends/m88rs2000.c mclk = m88rs2000_get_mclk(fe); mclk 128 drivers/media/dvb-frontends/m88rs2000.c if (!mclk) mclk 131 drivers/media/dvb-frontends/m88rs2000.c tmp = (offset * 4096 + (s32)mclk / 2) / (s32)mclk; mclk 152 drivers/media/dvb-frontends/m88rs2000.c u32 mclk; mclk 158 drivers/media/dvb-frontends/m88rs2000.c mclk = m88rs2000_get_mclk(fe); mclk 159 drivers/media/dvb-frontends/m88rs2000.c if (!mclk) mclk 165 drivers/media/dvb-frontends/m88rs2000.c do_div(temp, mclk); mclk 190 drivers/media/dvb-frontends/mn88443x.c struct clk *mclk; mclk 211 drivers/media/dvb-frontends/mn88443x.c clk_prepare_enable(chip->mclk); mclk 231 drivers/media/dvb-frontends/mn88443x.c clk_disable_unprepare(chip->mclk); mclk 686 drivers/media/dvb-frontends/mn88443x.c chip->mclk = devm_clk_get(dev, "mclk"); mclk 687 drivers/media/dvb-frontends/mn88443x.c if (IS_ERR(chip->mclk) && !conf) { mclk 689 drivers/media/dvb-frontends/mn88443x.c PTR_ERR(chip->mclk)); mclk 690 drivers/media/dvb-frontends/mn88443x.c return PTR_ERR(chip->mclk); mclk 709 drivers/media/dvb-frontends/mn88443x.c chip->mclk = conf->mclk; mclk 735 drivers/media/dvb-frontends/mn88443x.c chip->clk_freq = clk_get_rate(chip->mclk); mclk 19 drivers/media/dvb-frontends/mn88443x.h struct clk *mclk; mclk 207 drivers/media/dvb-frontends/stb0899_algo.c derot_limit = (internal->sub_range / 2L) / internal->mclk; mclk 208 drivers/media/dvb-frontends/stb0899_algo.c derot_step = (params->srate / 2L) / internal->mclk; mclk 276 drivers/media/dvb-frontends/stb0899_algo.c derot_limit = (internal->sub_range / 2L) / internal->mclk; mclk 284 drivers/media/dvb-frontends/stb0899_algo.c dprintk(state->verbose, FE_DEBUG, 1, "Derot Freq=%d, mclk=%d", derot_freq, internal->mclk); mclk 387 drivers/media/dvb-frontends/stb0899_algo.c derot_step = (params->srate / 4L) / internal->mclk; mclk 388 drivers/media/dvb-frontends/stb0899_algo.c derot_limit = (internal->sub_range / 2L) / internal->mclk; mclk 399 drivers/media/dvb-frontends/stb0899_algo.c dprintk(state->verbose, FE_DEBUG, 1, "Derot freq=%d, mclk=%d", derot_freq, internal->mclk); mclk 444 drivers/media/dvb-frontends/stb0899_algo.c tp_freq = internal->freq - (internal->derot_freq * internal->mclk) / 1000; mclk 553 drivers/media/dvb-frontends/stb0899_algo.c internal->derot_percent, params->srate, internal->mclk); mclk 556 drivers/media/dvb-frontends/stb0899_algo.c internal->derot_step = internal->derot_percent * (params->srate / 1000L) / internal->mclk; /* DerotStep/1000 * Fsymbol */ mclk 621 drivers/media/dvb-frontends/stb0899_algo.c internal->derot_freq, internal->mclk); mclk 626 drivers/media/dvb-frontends/stb0899_algo.c internal->derot_freq, internal->mclk); mclk 631 drivers/media/dvb-frontends/stb0899_algo.c internal->derot_freq, internal->mclk); mclk 636 drivers/media/dvb-frontends/stb0899_algo.c internal->derot_freq, internal->mclk); mclk 638 drivers/media/dvb-frontends/stb0899_algo.c internal->freq = params->freq - ((internal->derot_freq * internal->mclk) / 1000); mclk 541 drivers/media/dvb-frontends/stb0899_drv.c u32 mclk = 0, div = 0; mclk 544 drivers/media/dvb-frontends/stb0899_drv.c mclk = (div + 1) * state->config->xtal_freq / 6; mclk 545 drivers/media/dvb-frontends/stb0899_drv.c dprintk(state->verbose, FE_DEBUG, 1, "div=%d, mclk=%d", div, mclk); mclk 547 drivers/media/dvb-frontends/stb0899_drv.c return mclk; mclk 643 drivers/media/dvb-frontends/stb0899_drv.c internal->mclk = master_clk / 65536L; mclk 823 drivers/media/dvb-frontends/stb0899_drv.c u32 mclk, tx_freq = 22000;/* count = 0, i; */ mclk 837 drivers/media/dvb-frontends/stb0899_drv.c mclk = stb0899_get_mclk(state); mclk 838 drivers/media/dvb-frontends/stb0899_drv.c f22_tx = mclk / (tx_freq * 32); mclk 161 drivers/media/dvb-frontends/stb0899_priv.h s32 mclk; /* Masterclock Divider factor (binary) */ mclk 224 drivers/media/dvb-frontends/stv0299.c big += (state->config->mclk-1); // round correctly mclk 225 drivers/media/dvb-frontends/stv0299.c do_div(big, state->config->mclk); mclk 233 drivers/media/dvb-frontends/stv0299.c u32 Mclk = state->config->mclk / 4096L; mclk 603 drivers/media/dvb-frontends/stv0299.c derot_freq *= (state->config->mclk >> 16); mclk 59 drivers/media/dvb-frontends/stv0299.h u32 mclk; mclk 45 drivers/media/dvb-frontends/stv0367.c u32 mclk; mclk 2319 drivers/media/dvb-frontends/stv0367.c cab_state->mclk = stv0367cab_get_mclk(fe, state->config->xtal); mclk 2528 drivers/media/dvb-frontends/stv0367.c cab_state->mclk); mclk 2591 drivers/media/dvb-frontends/stv0367.c cab_state->mclk, mclk 2611 drivers/media/dvb-frontends/stv0367.c p->symbol_rate = stv0367cab_GetSymbolRate(state, cab_state->mclk); mclk 2989 drivers/media/dvb-frontends/stv0367.c state->cab_state->mclk = stv0367cab_get_mclk(&state->fe, mclk 273 drivers/media/dvb-frontends/stv0900_core.c u32 mclk, div, ad_div; mclk 278 drivers/media/dvb-frontends/stv0900_core.c mclk = (div + 1) * ext_clk / ad_div; mclk 280 drivers/media/dvb-frontends/stv0900_core.c dprintk("%s: Calculated Mclk = %d\n", __func__, mclk); mclk 282 drivers/media/dvb-frontends/stv0900_core.c return mclk; mclk 285 drivers/media/dvb-frontends/stv0900_core.c static enum fe_stv0900_error stv0900_set_mclk(struct stv0900_internal *intp, u32 mclk) mclk 295 drivers/media/dvb-frontends/stv0900_core.c dprintk("%s: Mclk set to %d, Quartz = %d\n", __func__, mclk, mclk 299 drivers/media/dvb-frontends/stv0900_core.c m_div = ((clk_sel * mclk) / intp->quartz) - 1; mclk 301 drivers/media/dvb-frontends/stv0900_core.c intp->mclk = stv0900_get_mclk_freq(intp, mclk 310 drivers/media/dvb-frontends/stv0900_core.c m_div = intp->mclk / 704000; mclk 991 drivers/media/dvb-frontends/stv0900_core.c freq /= (intp->mclk / 1000); mclk 1001 drivers/media/dvb-frontends/stv0900_core.c freq /= (intp->mclk / 1000); mclk 1493 drivers/media/dvb-frontends/stv0900_core.c intp->mclk = stv0900_get_mclk_freq(intp, intp->quartz); mclk 288 drivers/media/dvb-frontends/stv0900_priv.h s32 mclk; mclk 42 drivers/media/dvb-frontends/stv0900_sw.c max_carrier /= intp->mclk / 1000; mclk 69 drivers/media/dvb-frontends/stv0900_sw.c max_carrier /= intp->mclk / 1000; mclk 75 drivers/media/dvb-frontends/stv0900_sw.c freq_inc /= intp->mclk >> 10; mclk 135 drivers/media/dvb-frontends/stv0900_sw.c max_carrier /= intp->mclk / 1000; mclk 295 drivers/media/dvb-frontends/stv0900_sw.c u32 mclk, mclk 310 drivers/media/dvb-frontends/stv0900_sw.c intval1 = (mclk) >> 16; mclk 313 drivers/media/dvb-frontends/stv0900_sw.c rem1 = (mclk) % 0x10000; mclk 323 drivers/media/dvb-frontends/stv0900_sw.c u32 mclk, u32 srate, mclk 328 drivers/media/dvb-frontends/stv0900_sw.c dprintk("%s: Mclk %d, SR %d, Dmd %d\n", __func__, mclk, mclk 333 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 12); mclk 336 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 10); mclk 339 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 7); mclk 347 drivers/media/dvb-frontends/stv0900_sw.c u32 mclk, u32 srate, mclk 356 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 12); mclk 359 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 10); mclk 362 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 7); mclk 375 drivers/media/dvb-frontends/stv0900_sw.c u32 mclk, u32 srate, mclk 383 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 12); mclk 387 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 10); mclk 391 drivers/media/dvb-frontends/stv0900_sw.c symb /= (mclk >> 7); mclk 608 drivers/media/dvb-frontends/stv0900_sw.c freq = (tuner_freq * 65536) / (intp->mclk / 1000); mclk 828 drivers/media/dvb-frontends/stv0900_sw.c srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); mclk 933 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, srate, demod); mclk 1125 drivers/media/dvb-frontends/stv0900_sw.c static s32 stv0900_get_carr_freq(struct stv0900_internal *intp, u32 mclk, mclk 1139 drivers/media/dvb-frontends/stv0900_sw.c intval1 = mclk >> 12; mclk 1141 drivers/media/dvb-frontends/stv0900_sw.c rem1 = mclk % 0x1000; mclk 1204 drivers/media/dvb-frontends/stv0900_sw.c offsetFreq = stv0900_get_carr_freq(intp, intp->mclk, d) / 1000; mclk 1206 drivers/media/dvb-frontends/stv0900_sw.c result->symbol_rate = stv0900_get_symbol_rate(intp, intp->mclk, d); mclk 1280 drivers/media/dvb-frontends/stv0900_sw.c srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); mclk 1283 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, srate, demod); mclk 1343 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, 1000000, demod); mclk 1353 drivers/media/dvb-frontends/stv0900_sw.c freq_step = (1000000 << 8) / (intp->mclk >> 8); mclk 1470 drivers/media/dvb-frontends/stv0900_sw.c coarse_srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); mclk 1500 drivers/media/dvb-frontends/stv0900_sw.c coarse_srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); mclk 1517 drivers/media/dvb-frontends/stv0900_sw.c coarse_srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); mclk 1522 drivers/media/dvb-frontends/stv0900_sw.c symbmax /= (intp->mclk / 1000); mclk 1526 drivers/media/dvb-frontends/stv0900_sw.c symbmin /= (intp->mclk / 1000); mclk 1529 drivers/media/dvb-frontends/stv0900_sw.c symb /= (intp->mclk / 1000); mclk 1533 drivers/media/dvb-frontends/stv0900_sw.c symbmax /= (intp->mclk / 100); mclk 1537 drivers/media/dvb-frontends/stv0900_sw.c symbmin /= (intp->mclk / 100); mclk 1540 drivers/media/dvb-frontends/stv0900_sw.c symb /= (intp->mclk / 100); mclk 1842 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, 1000000, demod); mclk 1876 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, mclk 1878 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_max_symbol_rate(intp, intp->mclk, mclk 1880 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_min_symbol_rate(intp, intp->mclk, mclk 855 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 12); mclk 858 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 10); mclk 861 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 7); mclk 882 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 12); mclk 885 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 10); mclk 888 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 7); mclk 916 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 12); mclk 919 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 10); mclk 922 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk >> 7); mclk 1452 drivers/media/dvb-frontends/stv090x.c freq_abs /= (state->internal->mclk / 1000); mclk 1462 drivers/media/dvb-frontends/stv090x.c freq_abs /= (state->internal->mclk / 1000); mclk 1616 drivers/media/dvb-frontends/stv090x.c freq_step = (1000000 * 256) / (state->internal->mclk / 256); mclk 1781 drivers/media/dvb-frontends/stv090x.c srate_coarse = stv090x_get_srate(state, state->internal->mclk); mclk 1833 drivers/media/dvb-frontends/stv090x.c srate_coarse = stv090x_get_srate(state, state->internal->mclk); mclk 1848 drivers/media/dvb-frontends/stv090x.c srate_coarse = stv090x_get_srate(state, state->internal->mclk); mclk 1885 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk / 1000); mclk 1892 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk / 1000); mclk 1898 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk / 1000); mclk 1906 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk / 100); mclk 1913 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk / 100); mclk 1919 drivers/media/dvb-frontends/stv090x.c sym /= (state->internal->mclk / 100); mclk 2249 drivers/media/dvb-frontends/stv090x.c car_max /= (state->internal->mclk / 1000); mclk 2255 drivers/media/dvb-frontends/stv090x.c inc /= state->internal->mclk / 1000; mclk 2316 drivers/media/dvb-frontends/stv090x.c car_max /= state->internal->mclk / 1000; mclk 2341 drivers/media/dvb-frontends/stv090x.c car_max /= (state->internal->mclk / 1000); mclk 2520 drivers/media/dvb-frontends/stv090x.c static s32 stv090x_get_car_freq(struct stv090x_state *state, u32 mclk) mclk 2529 drivers/media/dvb-frontends/stv090x.c int_1 = mclk >> 12; mclk 2533 drivers/media/dvb-frontends/stv090x.c tmp_1 = mclk % 0x1000; mclk 2615 drivers/media/dvb-frontends/stv090x.c offst_freq = stv090x_get_car_freq(state, state->internal->mclk) / 1000; mclk 2843 drivers/media/dvb-frontends/stv090x.c srate = stv090x_get_srate(state, state->internal->mclk); mclk 3236 drivers/media/dvb-frontends/stv090x.c if (stv090x_set_max_srate(state, state->internal->mclk, mclk 3239 drivers/media/dvb-frontends/stv090x.c if (stv090x_set_min_srate(state, state->internal->mclk, mclk 4269 drivers/media/dvb-frontends/stv090x.c static int stv090x_set_mclk(struct stv090x_state *state, u32 mclk, u32 clk) mclk 4277 drivers/media/dvb-frontends/stv090x.c div = ((clk_sel * mclk) / config->xtal) - 1; mclk 4284 drivers/media/dvb-frontends/stv090x.c state->internal->mclk = stv090x_get_mclk(state); mclk 4287 drivers/media/dvb-frontends/stv090x.c div = state->internal->mclk / 704000; mclk 4491 drivers/media/dvb-frontends/stv090x.c speed = state->internal->mclk / mclk 4500 drivers/media/dvb-frontends/stv090x.c speed = state->internal->mclk / mclk 4523 drivers/media/dvb-frontends/stv090x.c speed = state->internal->mclk / mclk 4532 drivers/media/dvb-frontends/stv090x.c speed = state->internal->mclk / mclk 4646 drivers/media/dvb-frontends/stv090x.c speed = state->internal->mclk / mclk 4655 drivers/media/dvb-frontends/stv090x.c speed = state->internal->mclk / mclk 4691 drivers/media/dvb-frontends/stv090x.c if (state->internal->mclk == 0) { mclk 4913 drivers/media/dvb-frontends/stv090x.c state->internal->mclk = 0; mclk 227 drivers/media/dvb-frontends/stv090x_priv.h s32 mclk; /* Masterclock Divider factor */ mclk 87 drivers/media/dvb-frontends/stv0910.c u32 mclk; mclk 502 drivers/media/dvb-frontends/stv0910.c symbol_rate = (u32)(((u64)symbol_rate * state->base->mclk) >> 32); mclk 859 drivers/media/dvb-frontends/stv0910.c state->base->mclk = fvco / (2 * odf) * 1000000; mclk 1058 drivers/media/dvb-frontends/stv0910.c symb = muldiv32(p->symbol_rate, 65536, state->base->mclk); mclk 1110 drivers/media/dvb-frontends/stv0910.c freq = (freq << 16) / (state->base->mclk / 1000); mclk 1138 drivers/media/dvb-frontends/stv0910.c u8 freq = ((state->base->mclk + 11000 * 32) / (22000 * 32)); mclk 28 drivers/media/dvb-frontends/stv6110.c u32 mclk; mclk 210 drivers/media/dvb-frontends/stv6110.c ((((priv->mclk / 1000000) - 16) & 0x1f) << 3); mclk 239 drivers/media/dvb-frontends/stv6110.c freq = divider * (priv->mclk / 1000); mclk 256 drivers/media/dvb-frontends/stv6110.c frequency, priv->mclk); mclk 261 drivers/media/dvb-frontends/stv6110.c ((((priv->mclk / 1000000) - 16) & 0x1f) << 3); mclk 290 drivers/media/dvb-frontends/stv6110.c p_calc = (priv->mclk / 100000); mclk 295 drivers/media/dvb-frontends/stv6110.c p_calc_opt = (priv->mclk / 100000); mclk 299 drivers/media/dvb-frontends/stv6110.c ref = priv->mclk / ((1 << (r_div_opt + 1)) * (1 << (p + 1))); mclk 329 drivers/media/dvb-frontends/stv6110.c vco_freq = divider * ((priv->mclk / 1000) / ((1 << (r_div_opt + 1)))); mclk 417 drivers/media/dvb-frontends/stv6110.c priv->mclk = config->mclk; mclk 29 drivers/media/dvb-frontends/stv6110.h u32 mclk; mclk 1011 drivers/media/i2c/ov5675.c u32 mclk; mclk 1018 drivers/media/i2c/ov5675.c ret = fwnode_property_read_u32(fwnode, "clock-frequency", &mclk); mclk 1025 drivers/media/i2c/ov5675.c if (mclk != OV5675_MCLK) { mclk 1026 drivers/media/i2c/ov5675.c dev_err(dev, "external clock %d is not supported", mclk); mclk 583 drivers/media/i2c/ov6650.c unsigned long mclk, pclk; mclk 655 drivers/media/i2c/ov6650.c mclk = 12000000; mclk 663 drivers/media/i2c/ov6650.c mclk / pclk, 10 * mclk % pclk / pclk); mclk 1102 drivers/media/i2c/ov8856.c u32 mclk; mclk 1109 drivers/media/i2c/ov8856.c ret = fwnode_property_read_u32(fwnode, "clock-frequency", &mclk); mclk 1113 drivers/media/i2c/ov8856.c if (mclk != OV8856_MCLK) { mclk 1114 drivers/media/i2c/ov8856.c dev_err(dev, "external clock %d is not supported", mclk); mclk 586 drivers/media/i2c/s5k5baf.c unsigned long mclk = state->mclk_frequency / 1000; mclk 597 drivers/media/i2c/s5k5baf.c s5k5baf_write_seq(state, REG_I_INCLK_FREQ_L, mclk & 0xffff, mclk >> 16); mclk 485 drivers/media/pci/cx23885/cx23885-dvb.c .mclk = 16000000, mclk 492 drivers/media/pci/cx23885/cx23885-dvb.c .mclk = 16000000, mclk 762 drivers/media/pci/cx88/cx88-dvb.c .mclk = 88000000UL, mclk 978 drivers/media/pci/cx88/cx88-dvb.c .mclk = 88000000UL, mclk 811 drivers/media/pci/dm1105/dm1105.c .mclk = 88000000UL, mclk 144 drivers/media/pci/mantis/mantis_vp1033.c .mclk = 88000000UL, mclk 569 drivers/media/pci/ttpci/budget-av.c .mclk = 88000000UL, mclk 582 drivers/media/pci/ttpci/budget-av.c .mclk = 88000000UL, mclk 594 drivers/media/pci/ttpci/budget-av.c .mclk = 88000000UL, mclk 868 drivers/media/pci/ttpci/budget-av.c .mclk = 88000000UL, mclk 687 drivers/media/pci/ttpci/budget-ci.c .mclk = 64000000UL, mclk 389 drivers/media/pci/ttpci/budget.c .mclk = 88000000UL, mclk 399 drivers/media/pci/ttpci/budget.c .mclk = 88000000UL, mclk 977 drivers/media/platform/exynos4-is/fimc-is-param.h u32 mclk; mclk 627 drivers/media/platform/exynos4-is/fimc-is.c soe->mclk = 0; mclk 556 drivers/media/platform/marvell-ccic/cafe-driver.c clkdev_create(mcam->mclk, "xclk", "%d-%04x", mclk 1923 drivers/media/platform/marvell-ccic/mcam-core.c cam->mclk = devm_clk_register(cam->dev, &cam->mclk_hw); mclk 1924 drivers/media/platform/marvell-ccic/mcam-core.c if (IS_ERR(cam->mclk)) { mclk 1925 drivers/media/platform/marvell-ccic/mcam-core.c ret = PTR_ERR(cam->mclk); mclk 130 drivers/media/platform/marvell-ccic/mcam-core.h struct clk *mclk; mclk 298 drivers/media/platform/marvell-ccic/mmp-driver.c mcam->mclk); mclk 714 drivers/media/platform/pxa_camera.c unsigned long mclk; mclk 1118 drivers/media/platform/pxa_camera.c unsigned long mclk = pcdev->mclk; mclk 1126 drivers/media/platform/pxa_camera.c if (mclk > lcdclk / 4) { mclk 1127 drivers/media/platform/pxa_camera.c mclk = lcdclk / 4; mclk 1129 drivers/media/platform/pxa_camera.c "Limiting master clock to %lu\n", mclk); mclk 1133 drivers/media/platform/pxa_camera.c div = (lcdclk + 2 * mclk - 1) / (2 * mclk) - 1; mclk 1137 drivers/media/platform/pxa_camera.c pcdev->mclk = lcdclk / (2 * (div + 1)); mclk 1140 drivers/media/platform/pxa_camera.c lcdclk, mclk, div); mclk 1176 drivers/media/platform/pxa_camera.c recalculate_fifo_timeout(pcdev, pcdev->mclk); mclk 2299 drivers/media/platform/pxa_camera.c pcdev->mclk = mclk_rate; mclk 2392 drivers/media/platform/pxa_camera.c pcdev->mclk = pcdev->pdata->mclk_10khz * 10000; mclk 2420 drivers/media/platform/pxa_camera.c if (!pcdev->mclk) { mclk 2423 drivers/media/platform/pxa_camera.c pcdev->mclk = 20000000; mclk 2507 drivers/media/platform/pxa_camera.c if (pcdev->mclk) { mclk 161 drivers/media/platform/stm32/stm32-dcmi.c struct clk *mclk; mclk 1840 drivers/media/platform/stm32/stm32-dcmi.c struct clk *mclk; mclk 1906 drivers/media/platform/stm32/stm32-dcmi.c mclk = devm_clk_get(&pdev->dev, "mclk"); mclk 1907 drivers/media/platform/stm32/stm32-dcmi.c if (IS_ERR(mclk)) { mclk 1908 drivers/media/platform/stm32/stm32-dcmi.c if (PTR_ERR(mclk) != -EPROBE_DEFER) mclk 1910 drivers/media/platform/stm32/stm32-dcmi.c return PTR_ERR(mclk); mclk 1926 drivers/media/platform/stm32/stm32-dcmi.c dcmi->mclk = mclk; mclk 2064 drivers/media/platform/stm32/stm32-dcmi.c clk_disable_unprepare(dcmi->mclk); mclk 2074 drivers/media/platform/stm32/stm32-dcmi.c ret = clk_prepare_enable(dcmi->mclk); mclk 357 drivers/media/usb/dvb-usb-v2/anysee.c .mclk = 16000000, mclk 794 drivers/media/usb/dvb-usb-v2/lmedm04.c .mclk = 88000000UL, mclk 1046 drivers/media/usb/dvb-usb/dw2102.c .mclk = 88000000UL, mclk 1126 drivers/media/usb/dvb-usb/dw2102.c .mclk = 16000000, mclk 253 drivers/media/usb/dvb-usb/opera1.c .mclk = 88000000UL, mclk 1304 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c .mclk = 88000000UL, mclk 51 drivers/mfd/arizona-core.c ret = clk_prepare_enable(arizona->mclk[ARIZONA_MCLK1]); mclk 58 drivers/mfd/arizona-core.c ret = clk_prepare_enable(arizona->mclk[ARIZONA_MCLK2]); mclk 94 drivers/mfd/arizona-core.c clk_disable_unprepare(arizona->mclk[ARIZONA_MCLK1]); mclk 97 drivers/mfd/arizona-core.c clk_disable_unprepare(arizona->mclk[ARIZONA_MCLK2]); mclk 1010 drivers/mfd/arizona-core.c BUILD_BUG_ON(ARRAY_SIZE(arizona->mclk) != ARRAY_SIZE(mclk_name)); mclk 1011 drivers/mfd/arizona-core.c for (i = 0; i < ARRAY_SIZE(arizona->mclk); i++) { mclk 1012 drivers/mfd/arizona-core.c arizona->mclk[i] = devm_clk_get(arizona->dev, mclk_name[i]); mclk 1013 drivers/mfd/arizona-core.c if (IS_ERR(arizona->mclk[i])) { mclk 1015 drivers/mfd/arizona-core.c mclk_name[i], PTR_ERR(arizona->mclk[i])); mclk 1016 drivers/mfd/arizona-core.c arizona->mclk[i] = NULL; mclk 391 drivers/mfd/sm501.c unsigned long mclk; mclk 407 drivers/mfd/sm501.c unsigned long mclk, mclk 422 drivers/mfd/sm501.c diff = DIV_ROUND_CLOSEST(mclk, divider << shift) - freq; mclk 430 drivers/mfd/sm501.c clock->mclk = mclk; mclk 452 drivers/mfd/sm501.c unsigned long mclk; mclk 463 drivers/mfd/sm501.c mclk = (24000000UL * m / n) >> k; mclk 466 drivers/mfd/sm501.c mclk, &best_diff)) { mclk 476 drivers/mfd/sm501.c return clock->mclk / (clock->divider << clock->shift); mclk 490 drivers/mfd/sm501.c unsigned long mclk; mclk 494 drivers/mfd/sm501.c for (mclk = 288000000; mclk <= 336000000; mclk += 48000000) { mclk 495 drivers/mfd/sm501.c sm501_calc_clock(freq, clock, max_div, mclk, &best_diff); mclk 499 drivers/mfd/sm501.c return clock->mclk / (clock->divider << clock->shift); mclk 551 drivers/mfd/sm501.c if (to.mclk != 288000000) mclk 564 drivers/mfd/sm501.c if (to.mclk != 288000000) mclk 576 drivers/mfd/sm501.c if (to.mclk != 288000000) mclk 1268 drivers/mfd/sm501.c if (init->mclk) { mclk 1269 drivers/mfd/sm501.c dev_info(sm->dev, "setting MCLK to %ld\n", init->mclk); mclk 1270 drivers/mfd/sm501.c sm501_set_clock(sm->dev, SM501_CLOCK_MCLK, init->mclk); mclk 1542 drivers/mfd/sm501.c .mclk = 72 * MHZ, mclk 358 drivers/mfd/twl6040.c clk_disable_unprepare(twl6040->mclk); mclk 435 drivers/mfd/twl6040.c clk_disable_unprepare(twl6040->mclk); mclk 479 drivers/mfd/twl6040.c clk_prepare_enable(twl6040->mclk); mclk 674 drivers/mfd/twl6040.c twl6040->mclk = devm_clk_get(&client->dev, "mclk"); mclk 675 drivers/mfd/twl6040.c if (IS_ERR(twl6040->mclk)) { mclk 676 drivers/mfd/twl6040.c if (PTR_ERR(twl6040->mclk) == -EPROBE_DEFER) mclk 679 drivers/mfd/twl6040.c twl6040->mclk = NULL; mclk 373 drivers/mmc/host/mmci.c host->cclk = host->mclk; mclk 374 drivers/mmc/host/mmci.c } else if (desired >= host->mclk) { mclk 378 drivers/mmc/host/mmci.c host->cclk = host->mclk; mclk 386 drivers/mmc/host/mmci.c clk = DIV_ROUND_UP(host->mclk, desired) - 2; mclk 389 drivers/mmc/host/mmci.c host->cclk = host->mclk / (clk + 2); mclk 395 drivers/mmc/host/mmci.c clk = host->mclk / (2 * desired) - 1; mclk 398 drivers/mmc/host/mmci.c host->cclk = host->mclk / (2 * (clk + 1)); mclk 1029 drivers/mmc/host/mmci.c (host->size <= 8 && host->mclk > 50000000))) mclk 1679 drivers/mmc/host/mmci.c host->mclk = clk_get_rate(host->clk); mclk 1872 drivers/mmc/host/mmci.c host->mclk = clk_get_rate(host->clk); mclk 1878 drivers/mmc/host/mmci.c if (host->mclk > variant->f_max) { mclk 1882 drivers/mmc/host/mmci.c host->mclk = clk_get_rate(host->clk); mclk 1884 drivers/mmc/host/mmci.c host->mclk); mclk 1904 drivers/mmc/host/mmci.c mmc->f_min = DIV_ROUND_UP(host->mclk, 257); mclk 1906 drivers/mmc/host/mmci.c mmc->f_min = DIV_ROUND_UP(host->mclk, 2046); mclk 1910 drivers/mmc/host/mmci.c mmc->f_min = DIV_ROUND_UP(host->mclk, 512); mclk 1920 drivers/mmc/host/mmci.c min(host->mclk, mmc->f_max); mclk 1923 drivers/mmc/host/mmci.c fmax : min(host->mclk, fmax); mclk 386 drivers/mmc/host/mmci.h unsigned int mclk; mclk 184 drivers/mmc/host/mmci_stm32_sdmmc.c if (desired >= host->mclk && !ddr) { mclk 185 drivers/mmc/host/mmci_stm32_sdmmc.c host->cclk = host->mclk; mclk 187 drivers/mmc/host/mmci_stm32_sdmmc.c clk = DIV_ROUND_UP(host->mclk, 2 * desired); mclk 190 drivers/mmc/host/mmci_stm32_sdmmc.c host->cclk = host->mclk / (2 * clk); mclk 199 drivers/mmc/host/mmci_stm32_sdmmc.c host->cclk = host->mclk / (2 * clk); mclk 420 drivers/mmc/host/mtk-sd.c u32 mclk; /* mmc subsystem clock frequency */ mclk 759 drivers/mmc/host/mtk-sd.c host->mclk = 0; mclk 840 drivers/mmc/host/mtk-sd.c host->mclk = hz; mclk 1697 drivers/mmc/host/mtk-sd.c if (host->mclk != ios->clock || host->timing != ios->timing) mclk 356 drivers/net/ethernet/chelsio/cxgb3/common.h unsigned int mclk; mclk 3168 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (adap->name == dev->name && adap->params.vpd.mclk) mclk 584 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c VPD_ENTRY(mclk, 6); /* mem clock */ mclk 733 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = vpdstrtouint(vpd.mclk_data, vpd.mclk_len, 10, &p->mclk); mclk 3383 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (vpd->mclk) { mclk 3386 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (mc7_init(&adapter->pmrx, vpd->mclk, vpd->mem_timing) || mclk 3387 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c mc7_init(&adapter->pmtx, vpd->mclk, vpd->mem_timing) || mclk 3388 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c mc7_init(&adapter->cm, vpd->mclk, vpd->mem_timing) || mclk 3689 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (adapter->params.vpd.mclk) { mclk 467 drivers/ps3/ps3av_cmd.c u8 mclk; mclk 483 drivers/ps3/ps3av_cmd.c return ps3av_cnv_mclk_table[i].mclk; mclk 636 drivers/ps3/ps3av_cmd.c param->mclk = ps3av_cnv_mclk(audio_mode->audio_fs) | 0x80; mclk 81 drivers/spi/spi-sun4i.c struct clk *mclk; mclk 269 drivers/spi/spi-sun4i.c mclk_rate = clk_get_rate(sspi->mclk); mclk 271 drivers/spi/spi-sun4i.c clk_set_rate(sspi->mclk, 2 * tfr->speed_hz); mclk 272 drivers/spi/spi-sun4i.c mclk_rate = clk_get_rate(sspi->mclk); mclk 399 drivers/spi/spi-sun4i.c ret = clk_prepare_enable(sspi->mclk); mclk 421 drivers/spi/spi-sun4i.c clk_disable_unprepare(sspi->mclk); mclk 480 drivers/spi/spi-sun4i.c sspi->mclk = devm_clk_get(&pdev->dev, "mod"); mclk 481 drivers/spi/spi-sun4i.c if (IS_ERR(sspi->mclk)) { mclk 483 drivers/spi/spi-sun4i.c ret = PTR_ERR(sspi->mclk); mclk 91 drivers/spi/spi-sun6i.c struct clk *mclk; mclk 270 drivers/spi/spi-sun6i.c mclk_rate = clk_get_rate(sspi->mclk); mclk 272 drivers/spi/spi-sun6i.c clk_set_rate(sspi->mclk, 2 * tfr->speed_hz); mclk 273 drivers/spi/spi-sun6i.c mclk_rate = clk_get_rate(sspi->mclk); mclk 397 drivers/spi/spi-sun6i.c ret = clk_prepare_enable(sspi->mclk); mclk 415 drivers/spi/spi-sun6i.c clk_disable_unprepare(sspi->mclk); mclk 428 drivers/spi/spi-sun6i.c clk_disable_unprepare(sspi->mclk); mclk 489 drivers/spi/spi-sun6i.c sspi->mclk = devm_clk_get(&pdev->dev, "mod"); mclk 490 drivers/spi/spi-sun6i.c if (IS_ERR(sspi->mclk)) { mclk 492 drivers/spi/spi-sun6i.c ret = PTR_ERR(sspi->mclk); mclk 161 drivers/staging/iio/adc/ad7192.c struct clk *mclk; mclk 241 drivers/staging/iio/adc/ad7192.c if (PTR_ERR(st->mclk) == -ENOENT) { mclk 853 drivers/staging/iio/adc/ad7192.c st->mclk = devm_clk_get(&st->sd.spi->dev, "mclk"); mclk 854 drivers/staging/iio/adc/ad7192.c if (IS_ERR(st->mclk) && PTR_ERR(st->mclk) != -ENOENT) { mclk 855 drivers/staging/iio/adc/ad7192.c ret = PTR_ERR(st->mclk); mclk 863 drivers/staging/iio/adc/ad7192.c ret = clk_prepare_enable(st->mclk); mclk 867 drivers/staging/iio/adc/ad7192.c st->fclk = clk_get_rate(st->mclk); mclk 886 drivers/staging/iio/adc/ad7192.c clk_disable_unprepare(st->mclk); mclk 903 drivers/staging/iio/adc/ad7192.c clk_disable_unprepare(st->mclk); mclk 99 drivers/staging/iio/frequency/ad9832.c struct clk *mclk; mclk 121 drivers/staging/iio/frequency/ad9832.c static unsigned long ad9832_calc_freqreg(unsigned long mclk, unsigned long fout) mclk 125 drivers/staging/iio/frequency/ad9832.c do_div(freqreg, mclk); mclk 134 drivers/staging/iio/frequency/ad9832.c if (fout > (clk_get_rate(st->mclk) / 2)) mclk 137 drivers/staging/iio/frequency/ad9832.c regval = ad9832_calc_freqreg(clk_get_rate(st->mclk), fout); mclk 338 drivers/staging/iio/frequency/ad9832.c st->mclk = devm_clk_get(&spi->dev, "mclk"); mclk 339 drivers/staging/iio/frequency/ad9832.c if (IS_ERR(st->mclk)) { mclk 340 drivers/staging/iio/frequency/ad9832.c ret = PTR_ERR(st->mclk); mclk 344 drivers/staging/iio/frequency/ad9832.c ret = clk_prepare_enable(st->mclk); mclk 432 drivers/staging/iio/frequency/ad9832.c clk_disable_unprepare(st->mclk); mclk 447 drivers/staging/iio/frequency/ad9832.c clk_disable_unprepare(st->mclk); mclk 74 drivers/staging/iio/frequency/ad9834.c struct clk *mclk; mclk 102 drivers/staging/iio/frequency/ad9834.c static unsigned int ad9834_calc_freqreg(unsigned long mclk, unsigned long fout) mclk 106 drivers/staging/iio/frequency/ad9834.c do_div(freqreg, mclk); mclk 116 drivers/staging/iio/frequency/ad9834.c clk_freq = clk_get_rate(st->mclk); mclk 419 drivers/staging/iio/frequency/ad9834.c st->mclk = devm_clk_get(&spi->dev, NULL); mclk 420 drivers/staging/iio/frequency/ad9834.c if (IS_ERR(st->mclk)) { mclk 421 drivers/staging/iio/frequency/ad9834.c ret = PTR_ERR(st->mclk); mclk 425 drivers/staging/iio/frequency/ad9834.c ret = clk_prepare_enable(st->mclk); mclk 500 drivers/staging/iio/frequency/ad9834.c clk_disable_unprepare(st->mclk); mclk 513 drivers/staging/iio/frequency/ad9834.c clk_disable_unprepare(st->mclk); mclk 88 drivers/staging/iio/impedance-analyzer/ad5933.c struct clk *mclk; mclk 713 drivers/staging/iio/impedance-analyzer/ad5933.c st->mclk = devm_clk_get(&client->dev, "mclk"); mclk 714 drivers/staging/iio/impedance-analyzer/ad5933.c if (IS_ERR(st->mclk) && PTR_ERR(st->mclk) != -ENOENT) { mclk 715 drivers/staging/iio/impedance-analyzer/ad5933.c ret = PTR_ERR(st->mclk); mclk 719 drivers/staging/iio/impedance-analyzer/ad5933.c if (!IS_ERR(st->mclk)) { mclk 720 drivers/staging/iio/impedance-analyzer/ad5933.c ret = clk_prepare_enable(st->mclk); mclk 723 drivers/staging/iio/impedance-analyzer/ad5933.c ext_clk_hz = clk_get_rate(st->mclk); mclk 762 drivers/staging/iio/impedance-analyzer/ad5933.c clk_disable_unprepare(st->mclk); mclk 777 drivers/staging/iio/impedance-analyzer/ad5933.c clk_disable_unprepare(st->mclk); mclk 181 drivers/staging/media/imx/imx7-media-csi.c struct clk *mclk; mclk 406 drivers/staging/media/imx/imx7-media-csi.c ret = clk_prepare_enable(csi->mclk); mclk 426 drivers/staging/media/imx/imx7-media-csi.c clk_disable_unprepare(csi->mclk); mclk 1204 drivers/staging/media/imx/imx7-media-csi.c csi->mclk = devm_clk_get(&pdev->dev, "mclk"); mclk 1205 drivers/staging/media/imx/imx7-media-csi.c if (IS_ERR(csi->mclk)) { mclk 1206 drivers/staging/media/imx/imx7-media-csi.c ret = PTR_ERR(csi->mclk); mclk 50 drivers/video/fbdev/aty/atyfb.h int sclk, mclk, mclk_pm, xclk; mclk 306 drivers/video/fbdev/aty/atyfb_base.c static int mclk; mclk 368 drivers/video/fbdev/aty/atyfb_base.c int pll, mclk, xclk, ecp_max; mclk 456 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = aty_chips[i].mclk; mclk 484 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = 67; mclk 492 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = 67; mclk 502 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = 67; mclk 510 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = 67; mclk 522 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = 67; mclk 530 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = 67; mclk 2399 drivers/video/fbdev/aty/atyfb_base.c if (par->pll_limits.mclk == 67 && par->ram_type < SDRAM) mclk 2400 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = 63; mclk 2412 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = 70; mclk 2420 drivers/video/fbdev/aty/atyfb_base.c if (mclk) mclk 2421 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = mclk; mclk 2427 drivers/video/fbdev/aty/atyfb_base.c par->mclk_per = 1000000/par->pll_limits.mclk; mclk 2553 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.pll_max, par->pll_limits.mclk, mclk 3376 drivers/video/fbdev/aty/atyfb_base.c par->pll_limits.mclk = pll_block.MCLK_max_freq/100; mclk 3820 drivers/video/fbdev/aty/atyfb_base.c mclk = simple_strtoul(this_opt + 5, NULL, 0); mclk 3975 drivers/video/fbdev/aty/atyfb_base.c module_param(mclk, int, 0); mclk 3976 drivers/video/fbdev/aty/atyfb_base.c MODULE_PARM_DESC(mclk, "int: override memory clock"); mclk 569 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = (*val) / 10; mclk 582 drivers/video/fbdev/aty/radeon_base.c unsigned sclk, mclk, tmp, ref_div; mclk 698 drivers/video/fbdev/aty/radeon_base.c mclk = round_div((2 * Nm * xtal), (2 * M)); mclk 704 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = mclk; mclk 724 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 23000; mclk 735 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 27500; mclk 745 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 25000; mclk 755 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 27000; mclk 766 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 16600; mclk 792 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = BIOS_IN16(pll_info_block + 0x0a); mclk 822 drivers/video/fbdev/aty/radeon_base.c if (rinfo->pll.mclk == 0) mclk 823 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 20000; mclk 830 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk / 100, rinfo->pll.mclk % 100, mclk 141 drivers/video/fbdev/aty/radeonfb.h int sclk, mclk; mclk 452 drivers/video/fbdev/cirrusfb.c long mclk = vga_rseq(cinfo->regbase, CL_SEQR1F) & 0x3f; mclk 455 drivers/video/fbdev/cirrusfb.c mclk = (14318 * mclk) >> 3; mclk 456 drivers/video/fbdev/cirrusfb.c dev_dbg(info->device, "Read MCLK of %ld kHz\n", mclk); mclk 462 drivers/video/fbdev/cirrusfb.c if (abs(freq - mclk) < 250) { mclk 465 drivers/video/fbdev/cirrusfb.c } else if (abs(freq - (mclk / 2)) < 250) { mclk 146 include/linux/mfd/arizona/core.h struct clk *mclk[ARIZONA_NUM_MCLK]; mclk 215 include/linux/mfd/twl6040.h struct clk *mclk; mclk 123 include/linux/sm501.h unsigned long mclk; /* non-zero to modify */ mclk 37 include/sound/wm8962.h struct clk *mclk; mclk 1038 include/uapi/drm/amdgpu_drm.h __u32 mclk; mclk 34 sound/aoa/soundbus/i2sbus/pcm.c static int clock_and_divisors(int mclk, int sclk, int rate, int *out) mclk 37 sound/aoa/soundbus/i2sbus/pcm.c if (mclk % sclk) mclk 40 sound/aoa/soundbus/i2sbus/pcm.c if (i2s_sf_sclkdiv(mclk / sclk, out)) mclk 43 sound/aoa/soundbus/i2sbus/pcm.c if (I2S_CLOCK_SPEED_18MHz % (rate * mclk) == 0) { mclk 44 sound/aoa/soundbus/i2sbus/pcm.c if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_18MHz / (rate * mclk), out)) { mclk 49 sound/aoa/soundbus/i2sbus/pcm.c if (I2S_CLOCK_SPEED_45MHz % (rate * mclk) == 0) { mclk 50 sound/aoa/soundbus/i2sbus/pcm.c if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_45MHz / (rate * mclk), out)) { mclk 55 sound/aoa/soundbus/i2sbus/pcm.c if (I2S_CLOCK_SPEED_49MHz % (rate * mclk) == 0) { mclk 56 sound/aoa/soundbus/i2sbus/pcm.c if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_49MHz / (rate * mclk), out)) { mclk 49 sound/soc/atmel/sam9g20_wm8731.c static struct clk *mclk; mclk 62 sound/soc/atmel/sam9g20_wm8731.c ret = clk_enable(mclk); mclk 70 sound/soc/atmel/sam9g20_wm8731.c clk_disable(mclk); mclk 168 sound/soc/atmel/sam9g20_wm8731.c mclk = clk_get(NULL, "pck0"); mclk 169 sound/soc/atmel/sam9g20_wm8731.c if (IS_ERR(mclk)) { mclk 171 sound/soc/atmel/sam9g20_wm8731.c ret = PTR_ERR(mclk); mclk 181 sound/soc/atmel/sam9g20_wm8731.c ret = clk_set_parent(mclk, pllb); mclk 188 sound/soc/atmel/sam9g20_wm8731.c clk_set_rate(mclk, MCLK_RATE); mclk 233 sound/soc/atmel/sam9g20_wm8731.c clk_put(mclk); mclk 234 sound/soc/atmel/sam9g20_wm8731.c mclk = NULL; mclk 244 sound/soc/atmel/sam9g20_wm8731.c clk_disable(mclk); mclk 245 sound/soc/atmel/sam9g20_wm8731.c mclk = NULL; mclk 197 sound/soc/bcm/cygnus-ssp.c u32 mclk; mclk 491 sound/soc/bcm/cygnus-ssp.c static int pll_configure_mclk(struct cygnus_audio *cygaud, u32 mclk, mclk 501 sound/soc/bcm/cygnus-ssp.c if (p_entry->mclk == mclk) { mclk 508 sound/soc/bcm/cygnus-ssp.c "%s No valid mclk freq (%u) found!\n", __func__, mclk); mclk 534 sound/soc/bcm/cygnus-ssp.c error = clk_set_rate(ch_clk, mclk); mclk 560 sound/soc/bcm/cygnus-ssp.c if ((aio->mclk % bit_rate) != 0) mclk 563 sound/soc/bcm/cygnus-ssp.c ratio = aio->mclk / bit_rate; mclk 579 sound/soc/bcm/cygnus-ssp.c aio->lrclk, aio->bit_per_frame, aio->mclk); mclk 616 sound/soc/bcm/cygnus-ssp.c aio->bit_per_frame, aio->mclk, aio->lrclk); mclk 732 sound/soc/bcm/cygnus-ssp.c aio->mclk = freq; mclk 99 sound/soc/bcm/cygnus-ssp.h u32 mclk; mclk 74 sound/soc/cirrus/ep93xx-i2s.c struct clk *mclk; mclk 114 sound/soc/cirrus/ep93xx-i2s.c clk_enable(info->mclk); mclk 161 sound/soc/cirrus/ep93xx-i2s.c clk_disable(info->mclk); mclk 333 sound/soc/cirrus/ep93xx-i2s.c div = clk_get_rate(info->mclk) / params_rate(params); mclk 343 sound/soc/cirrus/ep93xx-i2s.c err = clk_set_rate(info->sclk, clk_get_rate(info->mclk) / sdiv); mclk 363 sound/soc/cirrus/ep93xx-i2s.c return clk_set_rate(info->mclk, freq); mclk 454 sound/soc/cirrus/ep93xx-i2s.c info->mclk = clk_get(&pdev->dev, "mclk"); mclk 455 sound/soc/cirrus/ep93xx-i2s.c if (IS_ERR(info->mclk)) { mclk 456 sound/soc/cirrus/ep93xx-i2s.c err = PTR_ERR(info->mclk); mclk 490 sound/soc/cirrus/ep93xx-i2s.c clk_put(info->mclk); mclk 501 sound/soc/cirrus/ep93xx-i2s.c clk_put(info->mclk); mclk 386 sound/soc/codecs/adau17x1.c if (!adau->mclk) mclk 455 sound/soc/codecs/adau17x1.c clk_get_rate(adau->mclk), pll_rate); mclk 1042 sound/soc/codecs/adau17x1.c adau->mclk = devm_clk_get(dev, "mclk"); mclk 1043 sound/soc/codecs/adau17x1.c if (IS_ERR(adau->mclk)) { mclk 1044 sound/soc/codecs/adau17x1.c if (PTR_ERR(adau->mclk) != -ENOENT) mclk 1045 sound/soc/codecs/adau17x1.c return PTR_ERR(adau->mclk); mclk 1047 sound/soc/codecs/adau17x1.c adau->mclk = NULL; mclk 1048 sound/soc/codecs/adau17x1.c } else if (adau->mclk) { mclk 1056 sound/soc/codecs/adau17x1.c ret = adau_calc_pll_cfg(clk_get_rate(adau->mclk), 48000 * 1024, mclk 1061 sound/soc/codecs/adau17x1.c ret = clk_prepare_enable(adau->mclk); mclk 1098 sound/soc/codecs/adau17x1.c if (adau->mclk) mclk 1099 sound/soc/codecs/adau17x1.c clk_disable_unprepare(adau->mclk); mclk 37 sound/soc/codecs/adau17x1.h struct clk *mclk; mclk 778 sound/soc/codecs/adau1977.c static bool adau1977_check_sysclk(unsigned int mclk, unsigned int base_freq) mclk 782 sound/soc/codecs/adau1977.c if (mclk % (base_freq * 128) != 0) mclk 785 sound/soc/codecs/adau1977.c mcs = mclk / (128 * base_freq); mclk 1354 sound/soc/codecs/arizona.c return clk_prepare_enable(arizona->mclk[clk_idx]); mclk 1356 sound/soc/codecs/arizona.c clk_disable_unprepare(arizona->mclk[clk_idx]); mclk 2398 sound/soc/codecs/arizona.c clk = arizona->mclk[ARIZONA_MCLK1]; mclk 2401 sound/soc/codecs/arizona.c clk = arizona->mclk[ARIZONA_MCLK2]; mclk 393 sound/soc/codecs/cs35l33.c int mclk; mclk 426 sound/soc/codecs/cs35l33.c static int cs35l33_get_mclk_coeff(int mclk, int srate) mclk 431 sound/soc/codecs/cs35l33.c if (cs35l33_mclk_coeffs[i].mclk == mclk && mclk 475 sound/soc/codecs/cs35l34.c int mclk; mclk 509 sound/soc/codecs/cs35l34.c static int cs35l34_get_mclk_coeff(int mclk, int srate) mclk 514 sound/soc/codecs/cs35l34.c if (cs35l34_mclk_coeffs[i].mclk == mclk && mclk 236 sound/soc/codecs/cs4265.c u32 mclk; mclk 307 sound/soc/codecs/cs4265.c static int cs4265_get_clk_index(int mclk, int rate) mclk 313 sound/soc/codecs/cs4265.c clk_map_table[i].mclk == mclk) mclk 331 sound/soc/codecs/cs4265.c if (clk_map_table[i].mclk == freq) { mclk 133 sound/soc/codecs/cs4270.c unsigned int mclk; /* Input frequency of the MCLK pin */ mclk 193 sound/soc/codecs/cs4270.c u8 mclk; mclk 260 sound/soc/codecs/cs4270.c cs4270->mclk = freq; mclk 340 sound/soc/codecs/cs4270.c ratio = cs4270->mclk / rate; /* MCLK/LRCK ratio */ mclk 357 sound/soc/codecs/cs4270.c reg |= cs4270_mode_ratios[i].mclk; mclk 157 sound/soc/codecs/cs4271.c unsigned int mclk; mclk 203 sound/soc/codecs/cs4271.c cs4271->mclk = freq; mclk 385 sound/soc/codecs/cs4271.c ratio = cs4271->mclk / cs4271->rate; mclk 45 sound/soc/codecs/cs42l51.c unsigned int mclk; mclk 312 sound/soc/codecs/cs42l51.c unsigned char mclk; mclk 359 sound/soc/codecs/cs42l51.c cs42l51->mclk = freq; mclk 394 sound/soc/codecs/cs42l51.c ratio = cs42l51->mclk / rate; /* MCLK/LRCK ratio */ mclk 469 sound/soc/codecs/cs42l51.c if (ratios[i].mclk) mclk 47 sound/soc/codecs/cs42l52.c u32 mclk; mclk 634 sound/soc/codecs/cs42l52.c u32 mclk; mclk 695 sound/soc/codecs/cs42l52.c static int cs42l52_get_clk(int mclk, int rate) mclk 702 sound/soc/codecs/cs42l52.c mclk1 = clk_map_table[i].mclk; mclk 703 sound/soc/codecs/cs42l52.c if (abs(mclk - mclk1) < abs(mclk - mclk2)) { mclk 814 sound/soc/codecs/cs42l52.c cs42l52->sysclk = clk_map_table[index].mclk; mclk 48 sound/soc/codecs/cs42l56.c u32 mclk; mclk 628 sound/soc/codecs/cs42l56.c u32 mclk; mclk 702 sound/soc/codecs/cs42l56.c static int cs42l56_get_mclk_ratio(int mclk, int rate) mclk 707 sound/soc/codecs/cs42l56.c if (clk_ratio_table[i].mclk == mclk && mclk 742 sound/soc/codecs/cs42l56.c cs42l56->mclk = freq; mclk 866 sound/soc/codecs/cs42l56.c ratio = cs42l56_get_mclk_ratio(cs42l56->mclk, params_rate(params)); mclk 41 sound/soc/codecs/cs42l73.c u32 mclk; mclk 782 sound/soc/codecs/cs42l73.c u32 mclk; mclk 862 sound/soc/codecs/cs42l73.c static int cs42l73_get_mclk_coeff(int mclk, int srate) mclk 867 sound/soc/codecs/cs42l73.c if (cs42l73_mclk_coeffs[i].mclk == mclk && mclk 881 sound/soc/codecs/cs42l73.c u32 mclk = 0; mclk 889 sound/soc/codecs/cs42l73.c mclk = cs42l73_mclkx_coeffs[mclkx_coeff].mclkx / mclk 894 sound/soc/codecs/cs42l73.c mclk); mclk 902 sound/soc/codecs/cs42l73.c priv->mclk = mclk; mclk 1058 sound/soc/codecs/cs42l73.c cs42l73_get_mclk_coeff(priv->mclk, srate); mclk 1065 sound/soc/codecs/cs42l73.c id, priv->mclk, srate, mclk 1072 sound/soc/codecs/cs42l73.c if (priv->mclk >= 6400000) mclk 1240 sound/soc/codecs/cs42l73.c cs42l73->mclk = 0; mclk 242 sound/soc/codecs/cs43130.c cs43130->mclk, cs43130->mclk_int); mclk 244 sound/soc/codecs/cs43130.c pll_entry = cs43130_get_pll_table(cs43130->mclk, cs43130->mclk_int); mclk 303 sound/soc/codecs/cs43130.c cs43130->mclk = freq_in; mclk 787 sound/soc/codecs/cs43130.c cs43130_set_pll(component, 0, 0, cs43130->mclk, required_clk); mclk 850 sound/soc/codecs/cs43130.c cs43130_set_pll(component, 0, 0, cs43130->mclk, required_clk); mclk 1639 sound/soc/codecs/cs43130.c cs43130->mclk = freq; mclk 2062 sound/soc/codecs/cs43130.c if (!cs43130->mclk) mclk 2070 sound/soc/codecs/cs43130.c cs43130_set_pll(component, 0, 0, cs43130->mclk, CS43130_MCLK_22M); mclk 515 sound/soc/codecs/cs43130.h unsigned int mclk; mclk 35 sound/soc/codecs/cs53l30.c struct clk *mclk; mclk 667 sound/soc/codecs/cs53l30.c ret = clk_prepare_enable(priv->mclk); mclk 726 sound/soc/codecs/cs53l30.c clk_disable_unprepare(priv->mclk); mclk 994 sound/soc/codecs/cs53l30.c cs53l30->mclk = devm_clk_get(dev, "mclk"); mclk 995 sound/soc/codecs/cs53l30.c if (IS_ERR(cs53l30->mclk)) { mclk 996 sound/soc/codecs/cs53l30.c if (PTR_ERR(cs53l30->mclk) != -ENOENT) { mclk 997 sound/soc/codecs/cs53l30.c ret = PTR_ERR(cs53l30->mclk); mclk 1001 sound/soc/codecs/cs53l30.c cs53l30->mclk = NULL; mclk 39 sound/soc/codecs/cx2072x.c struct clk *mclk; mclk 78 sound/soc/codecs/cx2072x.c unsigned int mclk; mclk 569 sound/soc/codecs/cx2072x.c static unsigned int get_div_from_mclk(unsigned int mclk) mclk 575 sound/soc/codecs/cx2072x.c if (mclk <= mclk_pre_div[i].mclk) { mclk 998 sound/soc/codecs/cx2072x.c if (clk_set_rate(cx2072x->mclk, freq)) { mclk 1621 sound/soc/codecs/cx2072x.c clk_disable_unprepare(cx2072x->mclk); mclk 1629 sound/soc/codecs/cx2072x.c return clk_prepare_enable(cx2072x->mclk); mclk 1658 sound/soc/codecs/cx2072x.c cx2072x->mclk = devm_clk_get(cx2072x->dev, "mclk"); mclk 1659 sound/soc/codecs/cx2072x.c if (IS_ERR(cx2072x->mclk)) { mclk 1661 sound/soc/codecs/cx2072x.c return PTR_ERR(cx2072x->mclk); mclk 1370 sound/soc/codecs/da7213.c if (da7213->mclk) { mclk 1371 sound/soc/codecs/da7213.c freq = clk_round_rate(da7213->mclk, freq); mclk 1372 sound/soc/codecs/da7213.c ret = clk_set_rate(da7213->mclk, freq); mclk 1540 sound/soc/codecs/da7213.c if (da7213->mclk) { mclk 1541 sound/soc/codecs/da7213.c ret = clk_prepare_enable(da7213->mclk); mclk 1558 sound/soc/codecs/da7213.c if (da7213->mclk) mclk 1559 sound/soc/codecs/da7213.c clk_disable_unprepare(da7213->mclk); mclk 1814 sound/soc/codecs/da7213.c da7213->mclk = devm_clk_get(component->dev, "mclk"); mclk 1815 sound/soc/codecs/da7213.c if (IS_ERR(da7213->mclk)) { mclk 1816 sound/soc/codecs/da7213.c if (PTR_ERR(da7213->mclk) != -ENOENT) mclk 1817 sound/soc/codecs/da7213.c return PTR_ERR(da7213->mclk); mclk 1819 sound/soc/codecs/da7213.c da7213->mclk = NULL; mclk 527 sound/soc/codecs/da7213.h struct clk *mclk; mclk 1840 sound/soc/codecs/da7218.c if (da7218->mclk) { mclk 1841 sound/soc/codecs/da7218.c freq = clk_round_rate(da7218->mclk, freq); mclk 1842 sound/soc/codecs/da7218.c ret = clk_set_rate(da7218->mclk, freq); mclk 2583 sound/soc/codecs/da7218.c if (da7218->mclk) { mclk 2584 sound/soc/codecs/da7218.c ret = clk_prepare_enable(da7218->mclk); mclk 2606 sound/soc/codecs/da7218.c if (da7218->mclk) mclk 2607 sound/soc/codecs/da7218.c clk_disable_unprepare(da7218->mclk); mclk 2896 sound/soc/codecs/da7218.c da7218->mclk = devm_clk_get(component->dev, "mclk"); mclk 2897 sound/soc/codecs/da7218.c if (IS_ERR(da7218->mclk)) { mclk 2898 sound/soc/codecs/da7218.c if (PTR_ERR(da7218->mclk) != -ENOENT) { mclk 2899 sound/soc/codecs/da7218.c ret = PTR_ERR(da7218->mclk); mclk 2902 sound/soc/codecs/da7218.c da7218->mclk = NULL; mclk 1395 sound/soc/codecs/da7218.h struct clk *mclk; mclk 126 sound/soc/codecs/da7219-aad.c if (da7219->mclk) { mclk 127 sound/soc/codecs/da7219-aad.c ret = clk_prepare_enable(da7219->mclk); mclk 321 sound/soc/codecs/da7219-aad.c if (da7219->mclk) mclk 322 sound/soc/codecs/da7219-aad.c clk_disable_unprepare(da7219->mclk); mclk 1193 sound/soc/codecs/da7219.c if (da7219->mclk) { mclk 1194 sound/soc/codecs/da7219.c freq = clk_round_rate(da7219->mclk, freq); mclk 1195 sound/soc/codecs/da7219.c ret = clk_set_rate(da7219->mclk, freq); mclk 1806 sound/soc/codecs/da7219.c if (da7219->mclk) { mclk 1807 sound/soc/codecs/da7219.c ret = clk_prepare_enable(da7219->mclk); mclk 1826 sound/soc/codecs/da7219.c if (da7219->mclk) mclk 1827 sound/soc/codecs/da7219.c clk_disable_unprepare(da7219->mclk); mclk 2139 sound/soc/codecs/da7219.c if (da7219->mclk) { mclk 2140 sound/soc/codecs/da7219.c parent_name = __clk_get_name(da7219->mclk); mclk 2299 sound/soc/codecs/da7219.c da7219->mclk = devm_clk_get(component->dev, "mclk"); mclk 2300 sound/soc/codecs/da7219.c if (IS_ERR(da7219->mclk)) { mclk 2301 sound/soc/codecs/da7219.c if (PTR_ERR(da7219->mclk) != -ENOENT) { mclk 2302 sound/soc/codecs/da7219.c ret = PTR_ERR(da7219->mclk); mclk 2305 sound/soc/codecs/da7219.c da7219->mclk = NULL; mclk 824 sound/soc/codecs/da7219.h struct clk *mclk; mclk 33 sound/soc/codecs/es7134.c unsigned int mclk; mclk 41 sound/soc/codecs/es7134.c unsigned int mfs = priv->mclk / rate; mclk 72 sound/soc/codecs/es7134.c if (!priv->mclk) mclk 84 sound/soc/codecs/es7134.c priv->mclk = freq; mclk 31 sound/soc/codecs/es7241.c unsigned int mclk; mclk 92 sound/soc/codecs/es7241.c unsigned int mfs = priv->mclk / rate; mclk 118 sound/soc/codecs/es7241.c priv->mclk = freq; mclk 37 sound/soc/codecs/es8316.c struct clk *mclk; mclk 380 sound/soc/codecs/es8316.c ret = clk_set_rate(es8316->mclk, freq); mclk 718 sound/soc/codecs/es8316.c es8316->mclk = devm_clk_get_optional(component->dev, "mclk"); mclk 719 sound/soc/codecs/es8316.c if (IS_ERR(es8316->mclk)) { mclk 721 sound/soc/codecs/es8316.c return PTR_ERR(es8316->mclk); mclk 723 sound/soc/codecs/es8316.c if (!es8316->mclk) mclk 726 sound/soc/codecs/es8316.c ret = clk_prepare_enable(es8316->mclk); mclk 758 sound/soc/codecs/es8316.c clk_disable_unprepare(es8316->mclk); mclk 20 sound/soc/codecs/lochnagar-sc.c struct clk *mclk; mclk 95 sound/soc/codecs/lochnagar-sc.c ret = clk_prepare_enable(priv->mclk); mclk 116 sound/soc/codecs/lochnagar-sc.c clk_disable_unprepare(priv->mclk); mclk 232 sound/soc/codecs/lochnagar-sc.c priv->mclk = devm_clk_get(&pdev->dev, "mclk"); mclk 233 sound/soc/codecs/lochnagar-sc.c if (IS_ERR(priv->mclk)) { mclk 234 sound/soc/codecs/lochnagar-sc.c ret = PTR_ERR(priv->mclk); mclk 43 sound/soc/codecs/max98088.c struct clk *mclk; mclk 1105 sound/soc/codecs/max98088.c if (!IS_ERR(max98088->mclk)) { mclk 1106 sound/soc/codecs/max98088.c freq = clk_round_rate(max98088->mclk, freq); mclk 1107 sound/soc/codecs/max98088.c clk_set_rate(max98088->mclk, freq); mclk 1324 sound/soc/codecs/max98088.c if (!IS_ERR(max98088->mclk)) { mclk 1327 sound/soc/codecs/max98088.c clk_disable_unprepare(max98088->mclk); mclk 1329 sound/soc/codecs/max98088.c clk_prepare_enable(max98088->mclk); mclk 1746 sound/soc/codecs/max98088.c max98088->mclk = devm_clk_get(&i2c->dev, "mclk"); mclk 1747 sound/soc/codecs/max98088.c if (IS_ERR(max98088->mclk)) mclk 1748 sound/soc/codecs/max98088.c if (PTR_ERR(max98088->mclk) == -EPROBE_DEFER) mclk 1749 sound/soc/codecs/max98088.c return PTR_ERR(max98088->mclk); mclk 1727 sound/soc/codecs/max98090.c if (IS_ERR(max98090->mclk)) mclk 1731 sound/soc/codecs/max98090.c clk_disable_unprepare(max98090->mclk); mclk 1733 sound/soc/codecs/max98090.c ret = clk_prepare_enable(max98090->mclk); mclk 1988 sound/soc/codecs/max98090.c if (!IS_ERR(max98090->mclk)) { mclk 1989 sound/soc/codecs/max98090.c freq = clk_round_rate(max98090->mclk, freq); mclk 1990 sound/soc/codecs/max98090.c clk_set_rate(max98090->mclk, freq); mclk 2370 sound/soc/codecs/max98090.c max98090->mclk = devm_clk_get(component->dev, "mclk"); mclk 2371 sound/soc/codecs/max98090.c if (PTR_ERR(max98090->mclk) == -EPROBE_DEFER) mclk 1522 sound/soc/codecs/max98090.h struct clk *mclk; mclk 44 sound/soc/codecs/max98095.c struct clk *mclk; mclk 1131 sound/soc/codecs/max98095.c if (!IS_ERR(max98095->mclk)) { mclk 1132 sound/soc/codecs/max98095.c freq = clk_round_rate(max98095->mclk, freq); mclk 1133 sound/soc/codecs/max98095.c clk_set_rate(max98095->mclk, freq); mclk 1382 sound/soc/codecs/max98095.c if (IS_ERR(max98095->mclk)) mclk 1386 sound/soc/codecs/max98095.c clk_disable_unprepare(max98095->mclk); mclk 1388 sound/soc/codecs/max98095.c ret = clk_prepare_enable(max98095->mclk); mclk 1992 sound/soc/codecs/max98095.c max98095->mclk = devm_clk_get(component->dev, "mclk"); mclk 1993 sound/soc/codecs/max98095.c if (PTR_ERR(max98095->mclk) == -EPROBE_DEFER) mclk 599 sound/soc/codecs/max9860.c struct clk *mclk; mclk 642 sound/soc/codecs/max9860.c mclk = clk_get(dev, "mclk"); mclk 644 sound/soc/codecs/max9860.c if (IS_ERR(mclk)) { mclk 645 sound/soc/codecs/max9860.c ret = PTR_ERR(mclk); mclk 651 sound/soc/codecs/max9860.c mclk_rate = clk_get_rate(mclk); mclk 652 sound/soc/codecs/max9860.c clk_put(mclk); mclk 35 sound/soc/codecs/ml26124.c u32 mclk; mclk 43 sound/soc/codecs/ml26124.c u32 mclk; mclk 313 sound/soc/codecs/ml26124.c static inline int get_coeff(int mclk, int rate) mclk 318 sound/soc/codecs/ml26124.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) mclk 330 sound/soc/codecs/ml26124.c int i = get_coeff(priv->mclk, params_rate(hw_params)); mclk 339 sound/soc/codecs/ml26124.c switch (priv->mclk / params_rate(hw_params)) { mclk 454 sound/soc/codecs/ml26124.c priv->mclk = freq; mclk 293 sound/soc/codecs/msm8916-wcd-analog.c struct clk *mclk; mclk 1175 sound/soc/codecs/msm8916-wcd-analog.c priv->mclk = devm_clk_get(dev, "mclk"); mclk 1176 sound/soc/codecs/msm8916-wcd-analog.c if (IS_ERR(priv->mclk)) { mclk 1178 sound/soc/codecs/msm8916-wcd-analog.c return PTR_ERR(priv->mclk); mclk 1191 sound/soc/codecs/msm8916-wcd-analog.c ret = clk_prepare_enable(priv->mclk); mclk 1247 sound/soc/codecs/msm8916-wcd-analog.c clk_disable_unprepare(priv->mclk); mclk 228 sound/soc/codecs/msm8916-wcd-digital.c struct clk *ahbclk, *mclk; mclk 835 sound/soc/codecs/msm8916-wcd-digital.c priv->mclk = devm_clk_get(dev, "mclk"); mclk 836 sound/soc/codecs/msm8916-wcd-digital.c if (IS_ERR(priv->mclk)) { mclk 838 sound/soc/codecs/msm8916-wcd-digital.c return PTR_ERR(priv->mclk); mclk 859 sound/soc/codecs/msm8916-wcd-digital.c return clk_set_rate(p->mclk, freq); mclk 1087 sound/soc/codecs/msm8916-wcd-digital.c mclk_rate = clk_get_rate(msm8916_wcd->mclk); mclk 1201 sound/soc/codecs/msm8916-wcd-digital.c ret = clk_prepare_enable(priv->mclk); mclk 1218 sound/soc/codecs/msm8916-wcd-digital.c clk_disable_unprepare(priv->mclk); mclk 2115 sound/soc/codecs/nau8825.c nau8825->mclk = devm_clk_get(nau8825->dev, "mclk"); mclk 2116 sound/soc/codecs/nau8825.c if (IS_ERR(nau8825->mclk)) { mclk 2122 sound/soc/codecs/nau8825.c ret = clk_prepare_enable(nau8825->mclk); mclk 2130 sound/soc/codecs/nau8825.c freq = clk_round_rate(nau8825->mclk, freq); mclk 2131 sound/soc/codecs/nau8825.c ret = clk_set_rate(nau8825->mclk, freq); mclk 2164 sound/soc/codecs/nau8825.c clk_disable_unprepare(nau8825->mclk); mclk 2212 sound/soc/codecs/nau8825.c clk_disable_unprepare(nau8825->mclk); mclk 2260 sound/soc/codecs/nau8825.c clk_disable_unprepare(nau8825->mclk); mclk 2286 sound/soc/codecs/nau8825.c clk_disable_unprepare(nau8825->mclk); mclk 2350 sound/soc/codecs/nau8825.c ret = clk_prepare_enable(nau8825->mclk); mclk 2380 sound/soc/codecs/nau8825.c clk_disable_unprepare(nau8825->mclk); mclk 2540 sound/soc/codecs/nau8825.c nau8825->mclk = devm_clk_get(dev, "mclk"); mclk 2541 sound/soc/codecs/nau8825.c if (PTR_ERR(nau8825->mclk) == -EPROBE_DEFER) { mclk 2543 sound/soc/codecs/nau8825.c } else if (PTR_ERR(nau8825->mclk) == -ENOENT) { mclk 2545 sound/soc/codecs/nau8825.c nau8825->mclk = NULL; mclk 2547 sound/soc/codecs/nau8825.c } else if (IS_ERR(nau8825->mclk)) { mclk 451 sound/soc/codecs/nau8825.h struct clk *mclk; mclk 35 sound/soc/codecs/rk3328_codec.c struct clk *mclk; mclk 463 sound/soc/codecs/rk3328_codec.c rk3328->mclk = devm_clk_get(&pdev->dev, "mclk"); mclk 464 sound/soc/codecs/rk3328_codec.c if (IS_ERR(rk3328->mclk)) mclk 465 sound/soc/codecs/rk3328_codec.c return PTR_ERR(rk3328->mclk); mclk 467 sound/soc/codecs/rk3328_codec.c ret = clk_prepare_enable(rk3328->mclk); mclk 470 sound/soc/codecs/rk3328_codec.c clk_set_rate(rk3328->mclk, INITIAL_FREQ); mclk 1058 sound/soc/codecs/rt5514.c if (IS_ERR(rt5514->mclk)) mclk 1062 sound/soc/codecs/rt5514.c clk_disable_unprepare(rt5514->mclk); mclk 1064 sound/soc/codecs/rt5514.c ret = clk_prepare_enable(rt5514->mclk); mclk 1101 sound/soc/codecs/rt5514.c rt5514->mclk = devm_clk_get(component->dev, "mclk"); mclk 1102 sound/soc/codecs/rt5514.c if (PTR_ERR(rt5514->mclk) == -EPROBE_DEFER) mclk 274 sound/soc/codecs/rt5514.h struct clk *mclk, *dsp_calib_clk; mclk 145 sound/soc/codecs/rt5616.c struct clk *mclk; mclk 1177 sound/soc/codecs/rt5616.c if (IS_ERR(rt5616->mclk)) mclk 1181 sound/soc/codecs/rt5616.c clk_disable_unprepare(rt5616->mclk); mclk 1183 sound/soc/codecs/rt5616.c ret = clk_prepare_enable(rt5616->mclk); mclk 1228 sound/soc/codecs/rt5616.c rt5616->mclk = devm_clk_get(component->dev, "mclk"); mclk 1229 sound/soc/codecs/rt5616.c if (PTR_ERR(rt5616->mclk) == -EPROBE_DEFER) mclk 1206 sound/soc/codecs/rt5631.c u32 mclk; mclk 1336 sound/soc/codecs/rt5631.c static int get_coeff(int mclk, int rate, int timesofbclk) mclk 1341 sound/soc/codecs/rt5631.c if (coeff_div[i].mclk == mclk && coeff_div[i].rate == rate && mclk 1951 sound/soc/codecs/rt5640.c if (IS_ERR(rt5640->mclk)) mclk 1955 sound/soc/codecs/rt5640.c clk_disable_unprepare(rt5640->mclk); mclk 1957 sound/soc/codecs/rt5640.c ret = clk_prepare_enable(rt5640->mclk); mclk 2475 sound/soc/codecs/rt5640.c rt5640->mclk = devm_clk_get(component->dev, "mclk"); mclk 2476 sound/soc/codecs/rt5640.c if (PTR_ERR(rt5640->mclk) == -EPROBE_DEFER) mclk 2122 sound/soc/codecs/rt5640.h struct clk *mclk; mclk 3665 sound/soc/codecs/rt5659.c ret = clk_prepare_enable(rt5659->mclk); mclk 3683 sound/soc/codecs/rt5659.c clk_disable_unprepare(rt5659->mclk); mclk 4162 sound/soc/codecs/rt5659.c rt5659->mclk = devm_clk_get(&i2c->dev, "mclk"); mclk 4163 sound/soc/codecs/rt5659.c if (IS_ERR(rt5659->mclk)) { mclk 4164 sound/soc/codecs/rt5659.c if (PTR_ERR(rt5659->mclk) != -ENOENT) mclk 4165 sound/soc/codecs/rt5659.c return PTR_ERR(rt5659->mclk); mclk 4167 sound/soc/codecs/rt5659.c rt5659->mclk = NULL; mclk 1800 sound/soc/codecs/rt5659.h struct clk *mclk; mclk 1084 sound/soc/codecs/rt5660.c if (IS_ERR(rt5660->mclk)) mclk 1088 sound/soc/codecs/rt5660.c clk_disable_unprepare(rt5660->mclk); mclk 1090 sound/soc/codecs/rt5660.c ret = clk_prepare_enable(rt5660->mclk); mclk 1280 sound/soc/codecs/rt5660.c rt5660->mclk = devm_clk_get(&i2c->dev, "mclk"); mclk 1281 sound/soc/codecs/rt5660.c if (PTR_ERR(rt5660->mclk) == -EPROBE_DEFER) mclk 834 sound/soc/codecs/rt5660.h struct clk *mclk; mclk 148 sound/soc/codecs/sgtl5000.c struct clk *mclk; mclk 1599 sound/soc/codecs/sgtl5000.c sgtl5000->mclk = devm_clk_get(&client->dev, NULL); mclk 1600 sound/soc/codecs/sgtl5000.c if (IS_ERR(sgtl5000->mclk)) { mclk 1601 sound/soc/codecs/sgtl5000.c ret = PTR_ERR(sgtl5000->mclk); mclk 1612 sound/soc/codecs/sgtl5000.c ret = clk_prepare_enable(sgtl5000->mclk); mclk 1778 sound/soc/codecs/sgtl5000.c clk_disable_unprepare(sgtl5000->mclk); mclk 1791 sound/soc/codecs/sgtl5000.c clk_disable_unprepare(sgtl5000->mclk); mclk 221 sound/soc/codecs/ssm2602.c u32 mclk; mclk 278 sound/soc/codecs/ssm2602.c static inline int ssm2602_get_coeff(int mclk, int rate) mclk 284 sound/soc/codecs/ssm2602.c ssm2602_coeff_table[i].mclk == mclk) mclk 147 sound/soc/codecs/sta32x.c unsigned int mclk; mclk 587 sound/soc/codecs/sta32x.c sta32x->mclk = freq; mclk 659 sound/soc/codecs/sta32x.c if (!sta32x->mclk) { mclk 666 sound/soc/codecs/sta32x.c ratio = sta32x->mclk / rate; mclk 170 sound/soc/codecs/sta350.c unsigned int mclk; mclk 616 sound/soc/codecs/sta350.c sta350->mclk = freq; mclk 688 sound/soc/codecs/sta350.c if (!sta350->mclk) { mclk 695 sound/soc/codecs/sta350.c ratio = sta350->mclk / rate; mclk 56 sound/soc/codecs/sti-sas.c int mclk; mclk 62 sound/soc/codecs/sti-sas.c int mclk; mclk 274 sound/soc/codecs/sti-sas.c drvdata->spdif.mclk = freq; mclk 278 sound/soc/codecs/sti-sas.c drvdata->dac.mclk = freq; mclk 294 sound/soc/codecs/sti-sas.c if ((drvdata->spdif.mclk / runtime->rate) != 128) { mclk 300 sound/soc/codecs/sti-sas.c if ((drvdata->dac.mclk / runtime->rate) != 256) { mclk 241 sound/soc/codecs/tas5086.c unsigned int mclk, sclk; mclk 304 sound/soc/codecs/tas5086.c priv->mclk = freq; mclk 379 sound/soc/codecs/tas5086.c priv->mclk / priv->rate); mclk 49 sound/soc/codecs/tas571x.c struct clk *mclk; mclk 334 sound/soc/codecs/tas571x.c if (!IS_ERR(priv->mclk)) { mclk 335 sound/soc/codecs/tas571x.c ret = clk_prepare_enable(priv->mclk); mclk 346 sound/soc/codecs/tas571x.c if (!IS_ERR(priv->mclk)) mclk 347 sound/soc/codecs/tas571x.c clk_disable_unprepare(priv->mclk); mclk 796 sound/soc/codecs/tas571x.c priv->mclk = devm_clk_get(dev, "mclk"); mclk 797 sound/soc/codecs/tas571x.c if (IS_ERR(priv->mclk) && PTR_ERR(priv->mclk) != -ENOENT) { mclk 799 sound/soc/codecs/tas571x.c PTR_ERR(priv->mclk)); mclk 800 sound/soc/codecs/tas571x.c return PTR_ERR(priv->mclk); mclk 186 sound/soc/codecs/tlv320aic23.c int mclk; mclk 241 sound/soc/codecs/tlv320aic23.c static int find_rate(int mclk, u32 need_adc, u32 need_dac) mclk 260 sound/soc/codecs/tlv320aic23.c int base = mclk / bosr_usb_divisor_table[i]; mclk 294 sound/soc/codecs/tlv320aic23.c static void get_current_sample_rates(struct snd_soc_component *component, int mclk, mclk 299 sound/soc/codecs/tlv320aic23.c int val = (mclk / bosr_usb_divisor_table[src & 3]); mclk 311 sound/soc/codecs/tlv320aic23.c static int set_sample_rate_control(struct snd_soc_component *component, int mclk, mclk 315 sound/soc/codecs/tlv320aic23.c int data = find_rate(mclk, sample_rate_adc, sample_rate_dac); mclk 325 sound/soc/codecs/tlv320aic23.c get_current_sample_rates(component, mclk, &adc, &dac); mclk 354 sound/soc/codecs/tlv320aic23.c ret = set_sample_rate_control(component, aic23->mclk, sample_rate_adc, mclk 475 sound/soc/codecs/tlv320aic23.c aic23->mclk = freq; mclk 37 sound/soc/codecs/tlv320aic26.c int mclk; mclk 109 sound/soc/codecs/tlv320aic26.c jval = fsref / (aic26->mclk / 2048); mclk 111 sound/soc/codecs/tlv320aic26.c dval = fsref - (jval * (aic26->mclk / 2048)); mclk 112 sound/soc/codecs/tlv320aic26.c dval = (10000 * dval) / (aic26->mclk / 2048); mclk 169 sound/soc/codecs/tlv320aic26.c aic26->mclk = freq; mclk 572 sound/soc/codecs/tlv320aic32x4.c struct clk *mclk; mclk 576 sound/soc/codecs/tlv320aic32x4.c mclk = clk_get_parent(pll); mclk 578 sound/soc/codecs/tlv320aic32x4.c return clk_set_rate(mclk, freq); mclk 306 sound/soc/codecs/wcd9335.c struct clk *mclk; mclk 4219 sound/soc/codecs/wcd9335.c ret = clk_prepare_enable(wcd->mclk); mclk 4235 sound/soc/codecs/wcd9335.c clk_disable_unprepare(wcd->mclk); mclk 4894 sound/soc/codecs/wcd9335.c return clk_set_rate(wcd->mclk, freq); mclk 5026 sound/soc/codecs/wcd9335.c wcd->mclk = devm_clk_get(dev, "mclk"); mclk 5027 sound/soc/codecs/wcd9335.c if (IS_ERR(wcd->mclk)) { mclk 5029 sound/soc/codecs/wcd9335.c return PTR_ERR(wcd->mclk); mclk 63 sound/soc/codecs/wm2000.c struct clk *mclk; mclk 137 sound/soc/codecs/wm2000.c rate = clk_get_rate(wm2000->mclk); mclk 556 sound/soc/codecs/wm2000.c ret = clk_prepare_enable(wm2000->mclk); mclk 573 sound/soc/codecs/wm2000.c clk_disable_unprepare(wm2000->mclk); mclk 880 sound/soc/codecs/wm2000.c wm2000->mclk = devm_clk_get(&i2c->dev, "MCLK"); mclk 881 sound/soc/codecs/wm2000.c if (IS_ERR(wm2000->mclk)) { mclk 882 sound/soc/codecs/wm2000.c ret = PTR_ERR(wm2000->mclk); mclk 101 sound/soc/codecs/wm8711.c u32 mclk; mclk 144 sound/soc/codecs/wm8711.c static inline int get_coeff(int mclk, int rate) mclk 149 sound/soc/codecs/wm8711.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) mclk 46 sound/soc/codecs/wm8731.c struct clk *mclk; mclk 249 sound/soc/codecs/wm8731.c u32 mclk; mclk 322 sound/soc/codecs/wm8731.c static inline int get_coeff(int mclk, int rate) mclk 327 sound/soc/codecs/wm8731.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) mclk 391 sound/soc/codecs/wm8731.c if (wm8731->mclk && clk_set_rate(wm8731->mclk, freq)) mclk 494 sound/soc/codecs/wm8731.c if (wm8731->mclk) { mclk 495 sound/soc/codecs/wm8731.c ret = clk_prepare_enable(wm8731->mclk); mclk 517 sound/soc/codecs/wm8731.c if (wm8731->mclk) mclk 518 sound/soc/codecs/wm8731.c clk_disable_unprepare(wm8731->mclk); mclk 672 sound/soc/codecs/wm8731.c wm8731->mclk = devm_clk_get(&spi->dev, "mclk"); mclk 673 sound/soc/codecs/wm8731.c if (IS_ERR(wm8731->mclk)) { mclk 674 sound/soc/codecs/wm8731.c ret = PTR_ERR(wm8731->mclk); mclk 676 sound/soc/codecs/wm8731.c wm8731->mclk = NULL; mclk 742 sound/soc/codecs/wm8731.c wm8731->mclk = devm_clk_get(&i2c->dev, "mclk"); mclk 743 sound/soc/codecs/wm8731.c if (IS_ERR(wm8731->mclk)) { mclk 744 sound/soc/codecs/wm8731.c ret = PTR_ERR(wm8731->mclk); mclk 746 sound/soc/codecs/wm8731.c wm8731->mclk = NULL; mclk 43 sound/soc/codecs/wm8737.c unsigned int mclk; mclk 278 sound/soc/codecs/wm8737.c u32 mclk; mclk 338 sound/soc/codecs/wm8737.c if (coeff_div[i].mclk == wm8737->mclk) mclk 341 sound/soc/codecs/wm8737.c if (coeff_div[i].mclk == wm8737->mclk * 2) { mclk 349 sound/soc/codecs/wm8737.c wm8737->mclk, params_rate(params)); mclk 387 sound/soc/codecs/wm8737.c if (freq == coeff_div[i].mclk || mclk 388 sound/soc/codecs/wm8737.c freq == coeff_div[i].mclk * 2) { mclk 389 sound/soc/codecs/wm8737.c wm8737->mclk = freq; mclk 428 sound/soc/codecs/wm8750.c u32 mclk; mclk 485 sound/soc/codecs/wm8750.c static inline int get_coeff(int mclk, int rate) mclk 490 sound/soc/codecs/wm8750.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) mclk 495 sound/soc/codecs/wm8750.c mclk, rate); mclk 791 sound/soc/codecs/wm8753.c u32 mclk; mclk 847 sound/soc/codecs/wm8753.c static int get_coeff(int mclk, int rate) mclk 852 sound/soc/codecs/wm8753.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) mclk 48 sound/soc/codecs/wm8904.c struct clk *mclk; mclk 1874 sound/soc/codecs/wm8904.c ret = clk_prepare_enable(wm8904->mclk); mclk 1926 sound/soc/codecs/wm8904.c clk_disable_unprepare(wm8904->mclk); mclk 2154 sound/soc/codecs/wm8904.c wm8904->mclk = devm_clk_get(&i2c->dev, "mclk"); mclk 2155 sound/soc/codecs/wm8904.c if (IS_ERR(wm8904->mclk)) { mclk 2156 sound/soc/codecs/wm8904.c ret = PTR_ERR(wm8904->mclk); mclk 196 sound/soc/codecs/wm8955.c int mclk; mclk 261 sound/soc/codecs/wm8955.c if (wm8955->mclk_rate == clock_cfgs[i].mclk) mclk 283 sound/soc/codecs/wm8955.c clock_cfgs[sr].mclk, &pll); mclk 121 sound/soc/codecs/wm8960.c struct clk *mclk; mclk 627 sound/soc/codecs/wm8960.c int wm8960_configure_sysclk(struct wm8960_priv *wm8960, int mclk, mclk 632 sound/soc/codecs/wm8960.c int diff, closest = mclk; mclk 644 sound/soc/codecs/wm8960.c sysclk = mclk / sysclk_divs[i]; mclk 906 sound/soc/codecs/wm8960.c if (!IS_ERR(wm8960->mclk)) { mclk 907 sound/soc/codecs/wm8960.c ret = clk_prepare_enable(wm8960->mclk); mclk 932 sound/soc/codecs/wm8960.c if (!IS_ERR(wm8960->mclk)) mclk 933 sound/soc/codecs/wm8960.c clk_disable_unprepare(wm8960->mclk); mclk 1029 sound/soc/codecs/wm8960.c if (!IS_ERR(wm8960->mclk)) { mclk 1030 sound/soc/codecs/wm8960.c ret = clk_prepare_enable(wm8960->mclk); mclk 1053 sound/soc/codecs/wm8960.c if (!IS_ERR(wm8960->mclk)) mclk 1054 sound/soc/codecs/wm8960.c clk_disable_unprepare(wm8960->mclk); mclk 1406 sound/soc/codecs/wm8960.c wm8960->mclk = devm_clk_get(&i2c->dev, "mclk"); mclk 1407 sound/soc/codecs/wm8960.c if (IS_ERR(wm8960->mclk)) { mclk 1408 sound/soc/codecs/wm8960.c if (PTR_ERR(wm8960->mclk) == -EPROBE_DEFER) mclk 3528 sound/soc/codecs/wm8962.c pdata->mclk = devm_clk_get(&i2c->dev, NULL); mclk 3563 sound/soc/codecs/wm8962.c if (IS_ERR(wm8962->pdata.mclk)) { mclk 3565 sound/soc/codecs/wm8962.c if (PTR_ERR(wm8962->pdata.mclk) == -EPROBE_DEFER) mclk 3567 sound/soc/codecs/wm8962.c wm8962->pdata.mclk = NULL; mclk 3780 sound/soc/codecs/wm8962.c ret = clk_prepare_enable(wm8962->pdata.mclk); mclk 3830 sound/soc/codecs/wm8962.c clk_disable_unprepare(wm8962->pdata.mclk); mclk 3850 sound/soc/codecs/wm8962.c clk_disable_unprepare(wm8962->pdata.mclk); mclk 361 sound/soc/codecs/wm8971.c u32 mclk; mclk 418 sound/soc/codecs/wm8971.c static int get_coeff(int mclk, int rate) mclk 423 sound/soc/codecs/wm8971.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) mclk 28 sound/soc/codecs/wm8974.c unsigned int mclk; mclk 424 sound/soc/codecs/wm8974.c if (!priv->mclk || !priv->fs) mclk 429 sound/soc/codecs/wm8974.c f = wm8974_get_mclkdiv(priv->mclk, fs256, &mclkdiv); mclk 431 sound/soc/codecs/wm8974.c if (f != priv->mclk) { mclk 436 sound/soc/codecs/wm8974.c wm8974_set_dai_pll(dai, 0, 0, priv->mclk, fpll); mclk 451 sound/soc/codecs/wm8974.c priv->mclk = freq; mclk 450 sound/soc/codecs/wm8988.c u32 mclk; mclk 507 sound/soc/codecs/wm8988.c static inline int get_coeff(int mclk, int rate) mclk 512 sound/soc/codecs/wm8988.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) mclk 170 sound/soc/codecs/wm8994.c rate = wm8994->mclk[0]; mclk 175 sound/soc/codecs/wm8994.c rate = wm8994->mclk[1]; mclk 2395 sound/soc/codecs/wm8994.c wm8994->mclk[0] = freq; mclk 2403 sound/soc/codecs/wm8994.c wm8994->mclk[1] = freq; mclk 78 sound/soc/codecs/wm8994.h int mclk[2]; mclk 380 sound/soc/codecs/wm8995.c int mclk[2]; mclk 685 sound/soc/codecs/wm8995.c rate = wm8995->mclk[0]; mclk 689 sound/soc/codecs/wm8995.c rate = wm8995->mclk[1]; mclk 1926 sound/soc/codecs/wm8995.c wm8995->mclk[0] = freq; mclk 1932 sound/soc/codecs/wm8995.c wm8995->mclk[1] = freq; mclk 34 sound/soc/fsl/fsl_micfil.c struct clk *mclk; mclk 158 sound/soc/fsl/fsl_micfil.c mclk_rate = clk_get_rate(micfil->mclk); mclk 202 sound/soc/fsl/fsl_micfil.c clk_disable_unprepare(micfil->mclk); mclk 204 sound/soc/fsl/fsl_micfil.c ret = clk_set_rate(micfil->mclk, freq * 1024); mclk 209 sound/soc/fsl/fsl_micfil.c clk_prepare_enable(micfil->mclk); mclk 304 sound/soc/fsl/fsl_micfil.c clk_get_rate(micfil->mclk), rate); mclk 380 sound/soc/fsl/fsl_micfil.c clk_get_rate(micfil->mclk), freq); mclk 664 sound/soc/fsl/fsl_micfil.c micfil->mclk = devm_clk_get(&pdev->dev, "ipg_clk_app"); mclk 665 sound/soc/fsl/fsl_micfil.c if (IS_ERR(micfil->mclk)) { mclk 667 sound/soc/fsl/fsl_micfil.c PTR_ERR(micfil->mclk)); mclk 668 sound/soc/fsl/fsl_micfil.c return PTR_ERR(micfil->mclk); mclk 765 sound/soc/fsl/fsl_micfil.c clk_disable_unprepare(micfil->mclk); mclk 775 sound/soc/fsl/fsl_micfil.c ret = clk_prepare_enable(micfil->mclk); mclk 257 sound/soc/generic/simple-card-utils.c unsigned int mclk, mclk_fs = 0; mclk 264 sound/soc/generic/simple-card-utils.c mclk = params_rate(params) * mclk_fs; mclk 266 sound/soc/generic/simple-card-utils.c ret = asoc_simple_set_clk_rate(dai_props->codec_dai, mclk); mclk 270 sound/soc/generic/simple-card-utils.c ret = asoc_simple_set_clk_rate(dai_props->cpu_dai, mclk); mclk 274 sound/soc/generic/simple-card-utils.c ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 279 sound/soc/generic/simple-card-utils.c ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, mclk 38 sound/soc/intel/boards/bytcht_es8316.c struct clk *mclk; mclk 203 sound/soc/intel/boards/bytcht_es8316.c ret = clk_prepare_enable(priv->mclk); mclk 205 sound/soc/intel/boards/bytcht_es8316.c clk_disable_unprepare(priv->mclk); mclk 207 sound/soc/intel/boards/bytcht_es8316.c ret = clk_set_rate(priv->mclk, 19200000); mclk 211 sound/soc/intel/boards/bytcht_es8316.c ret = clk_prepare_enable(priv->mclk); mclk 534 sound/soc/intel/boards/bytcht_es8316.c priv->mclk = devm_clk_get(dev, "pmc_plt_clk_3"); mclk 535 sound/soc/intel/boards/bytcht_es8316.c if (IS_ERR(priv->mclk)) { mclk 536 sound/soc/intel/boards/bytcht_es8316.c ret = PTR_ERR(priv->mclk); mclk 88 sound/soc/intel/boards/bytcr_rt5640.c struct clk *mclk; mclk 242 sound/soc/intel/boards/bytcr_rt5640.c ret = clk_prepare_enable(priv->mclk); mclk 261 sound/soc/intel/boards/bytcr_rt5640.c clk_disable_unprepare(priv->mclk); mclk 915 sound/soc/intel/boards/bytcr_rt5640.c ret = clk_prepare_enable(priv->mclk); mclk 917 sound/soc/intel/boards/bytcr_rt5640.c clk_disable_unprepare(priv->mclk); mclk 920 sound/soc/intel/boards/bytcr_rt5640.c ret = clk_set_rate(priv->mclk, 25000000); mclk 922 sound/soc/intel/boards/bytcr_rt5640.c ret = clk_set_rate(priv->mclk, 19200000); mclk 1304 sound/soc/intel/boards/bytcr_rt5640.c priv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); mclk 1305 sound/soc/intel/boards/bytcr_rt5640.c if (IS_ERR(priv->mclk)) { mclk 1306 sound/soc/intel/boards/bytcr_rt5640.c ret_val = PTR_ERR(priv->mclk); mclk 84 sound/soc/intel/boards/bytcr_rt5651.c struct clk *mclk; mclk 191 sound/soc/intel/boards/bytcr_rt5651.c ret = clk_prepare_enable(priv->mclk); mclk 210 sound/soc/intel/boards/bytcr_rt5651.c clk_disable_unprepare(priv->mclk); mclk 618 sound/soc/intel/boards/bytcr_rt5651.c ret = clk_prepare_enable(priv->mclk); mclk 620 sound/soc/intel/boards/bytcr_rt5651.c clk_disable_unprepare(priv->mclk); mclk 623 sound/soc/intel/boards/bytcr_rt5651.c ret = clk_set_rate(priv->mclk, 25000000); mclk 625 sound/soc/intel/boards/bytcr_rt5651.c ret = clk_set_rate(priv->mclk, 19200000); mclk 1066 sound/soc/intel/boards/bytcr_rt5651.c priv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); mclk 1067 sound/soc/intel/boards/bytcr_rt5651.c if (IS_ERR(priv->mclk)) { mclk 1068 sound/soc/intel/boards/bytcr_rt5651.c ret_val = PTR_ERR(priv->mclk); mclk 36 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct clk *mclk; mclk 62 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret = clk_prepare_enable(ctx->mclk); mclk 69 sound/soc/intel/boards/cht_bsw_max98090_ti.c clk_disable_unprepare(ctx->mclk); mclk 238 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret = clk_prepare_enable(ctx->mclk); mclk 240 sound/soc/intel/boards/cht_bsw_max98090_ti.c clk_disable_unprepare(ctx->mclk); mclk 242 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret = clk_set_rate(ctx->mclk, CHT_PLAT_CLK_3_HZ); mclk 572 sound/soc/intel/boards/cht_bsw_max98090_ti.c drv->mclk = devm_clk_get(&pdev->dev, mclk_name); mclk 573 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (IS_ERR(drv->mclk)) { mclk 576 sound/soc/intel/boards/cht_bsw_max98090_ti.c mclk_name, PTR_ERR(drv->mclk)); mclk 577 sound/soc/intel/boards/cht_bsw_max98090_ti.c return PTR_ERR(drv->mclk); mclk 588 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret_val = clk_prepare_enable(drv->mclk); mclk 611 sound/soc/intel/boards/cht_bsw_max98090_ti.c clk_disable_unprepare(ctx->mclk); mclk 44 sound/soc/intel/boards/cht_bsw_rt5645.c struct clk *mclk; mclk 86 sound/soc/intel/boards/cht_bsw_rt5645.c ret = clk_prepare_enable(ctx->mclk); mclk 105 sound/soc/intel/boards/cht_bsw_rt5645.c clk_disable_unprepare(ctx->mclk); mclk 326 sound/soc/intel/boards/cht_bsw_rt5645.c ret = clk_prepare_enable(ctx->mclk); mclk 328 sound/soc/intel/boards/cht_bsw_rt5645.c clk_disable_unprepare(ctx->mclk); mclk 330 sound/soc/intel/boards/cht_bsw_rt5645.c ret = clk_set_rate(ctx->mclk, CHT_PLAT_CLK_3_HZ); mclk 680 sound/soc/intel/boards/cht_bsw_rt5645.c drv->mclk = devm_clk_get(&pdev->dev, mclk_name); mclk 681 sound/soc/intel/boards/cht_bsw_rt5645.c if (IS_ERR(drv->mclk)) { mclk 683 sound/soc/intel/boards/cht_bsw_rt5645.c mclk_name, PTR_ERR(drv->mclk)); mclk 684 sound/soc/intel/boards/cht_bsw_rt5645.c return PTR_ERR(drv->mclk); mclk 33 sound/soc/intel/boards/cht_bsw_rt5672.c struct clk *mclk; mclk 64 sound/soc/intel/boards/cht_bsw_rt5672.c if (ctx->mclk) { mclk 65 sound/soc/intel/boards/cht_bsw_rt5672.c ret = clk_prepare_enable(ctx->mclk); mclk 97 sound/soc/intel/boards/cht_bsw_rt5672.c if (ctx->mclk) mclk 98 sound/soc/intel/boards/cht_bsw_rt5672.c clk_disable_unprepare(ctx->mclk); mclk 214 sound/soc/intel/boards/cht_bsw_rt5672.c if (ctx->mclk) { mclk 225 sound/soc/intel/boards/cht_bsw_rt5672.c ret = clk_prepare_enable(ctx->mclk); mclk 227 sound/soc/intel/boards/cht_bsw_rt5672.c clk_disable_unprepare(ctx->mclk); mclk 229 sound/soc/intel/boards/cht_bsw_rt5672.c ret = clk_set_rate(ctx->mclk, CHT_PLAT_CLK_3_HZ); mclk 439 sound/soc/intel/boards/cht_bsw_rt5672.c drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); mclk 440 sound/soc/intel/boards/cht_bsw_rt5672.c if (IS_ERR(drv->mclk)) { mclk 443 sound/soc/intel/boards/cht_bsw_rt5672.c PTR_ERR(drv->mclk)); mclk 444 sound/soc/intel/boards/cht_bsw_rt5672.c return PTR_ERR(drv->mclk); mclk 46 sound/soc/intel/boards/kbl_rt5663_max98927.c struct clk *mclk; mclk 85 sound/soc/intel/boards/kbl_rt5663_max98927.c ret = clk_set_rate(priv->mclk, 24000000); mclk 92 sound/soc/intel/boards/kbl_rt5663_max98927.c ret = clk_prepare_enable(priv->mclk); mclk 103 sound/soc/intel/boards/kbl_rt5663_max98927.c clk_disable_unprepare(priv->mclk); mclk 110 sound/soc/intel/boards/kbl_rt5663_max98927.c clk_disable_unprepare(priv->mclk); mclk 114 sound/soc/intel/boards/kbl_rt5663_max98927.c clk_disable_unprepare(priv->mclk); mclk 970 sound/soc/intel/boards/kbl_rt5663_max98927.c ctx->mclk = devm_clk_get(&pdev->dev, "ssp1_mclk"); mclk 971 sound/soc/intel/boards/kbl_rt5663_max98927.c if (IS_ERR(ctx->mclk)) { mclk 972 sound/soc/intel/boards/kbl_rt5663_max98927.c ret = PTR_ERR(ctx->mclk); mclk 57 sound/soc/intel/boards/sof_rt5682.c struct clk *mclk; mclk 163 sound/soc/intel/boards/sof_rt5682.c ret = clk_prepare_enable(ctx->mclk); mclk 165 sound/soc/intel/boards/sof_rt5682.c clk_disable_unprepare(ctx->mclk); mclk 167 sound/soc/intel/boards/sof_rt5682.c ret = clk_set_rate(ctx->mclk, 19200000); mclk 213 sound/soc/intel/boards/sof_rt5682.c ret = clk_prepare_enable(ctx->mclk); mclk 624 sound/soc/intel/boards/sof_rt5682.c ctx->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); mclk 625 sound/soc/intel/boards/sof_rt5682.c if (IS_ERR(ctx->mclk)) { mclk 626 sound/soc/intel/boards/sof_rt5682.c ret = PTR_ERR(ctx->mclk); mclk 634 sound/soc/intel/boards/sof_rt5682.c ret = clk_prepare_enable(ctx->mclk); mclk 1382 sound/soc/intel/haswell/sst-haswell-ipc.c enum sst_hsw_device_id dev, enum sst_hsw_device_mclk mclk, mclk 1392 sound/soc/intel/haswell/sst-haswell-ipc.c hsw->dx_mclk = config.clock_frequency = mclk; mclk 482 sound/soc/intel/haswell/sst-haswell-ipc.h enum sst_hsw_device_id dev, enum sst_hsw_device_mclk mclk, mclk 26 sound/soc/intel/skylake/skl-i2s.h #define get_clk_src(mclk, mask) \ mclk 27 sound/soc/intel/skylake/skl-i2s.h ((mclk.mdivctrl & mask) >> SKL_SHIFT(mask)) mclk 77 sound/soc/intel/skylake/skl-i2s.h struct skl_i2s_config_mclk mclk; mclk 85 sound/soc/intel/skylake/skl-i2s.h struct skl_i2s_config_mclk_ext mclk; mclk 263 sound/soc/intel/skylake/skl-nhlt.c clk_src = get_clk_src(i2s_config->mclk, mclk 266 sound/soc/intel/skylake/skl-nhlt.c clk_src = get_clk_src(i2s_config_ext->mclk, mclk 291 sound/soc/intel/skylake/skl-nhlt.c static void skl_get_mclk(struct skl_dev *skl, struct skl_ssp_clk *mclk, mclk 307 sound/soc/intel/skylake/skl-nhlt.c clk_src = get_clk_src(i2s_config->mclk, mclk 309 sound/soc/intel/skylake/skl-nhlt.c clkdiv = i2s_config->mclk.mdivr & mclk 312 sound/soc/intel/skylake/skl-nhlt.c clk_src = get_clk_src(i2s_config_ext->mclk, mclk 314 sound/soc/intel/skylake/skl-nhlt.c clkdiv = i2s_config_ext->mclk.mdivr[0] & mclk 330 sound/soc/intel/skylake/skl-nhlt.c mclk[id].rate_cfg[0].rate = parent->rate/div_ratio; mclk 331 sound/soc/intel/skylake/skl-nhlt.c mclk[id].rate_cfg[0].config = &fmt->fmt_config[0]; mclk 332 sound/soc/intel/skylake/skl-nhlt.c mclk[id].parent_name = parent->name; mclk 97 sound/soc/intel/skylake/skl-ssp-clk.c ipc->mclk.hdr.type = DMA_CLK_CONTROLS; mclk 99 sound/soc/intel/skylake/skl-ssp-clk.c ipc->mclk.hdr.size = sizeof(struct skl_dmactrl_mclk_cfg) - mclk 133 sound/soc/intel/skylake/skl-ssp-clk.c ipc->mclk.mclk = 0; mclk 135 sound/soc/intel/skylake/skl-ssp-clk.c ipc->mclk.mclk = 1; mclk 137 sound/soc/intel/skylake/skl-ssp-clk.c ipc->mclk.keep_running = enable; mclk 138 sound/soc/intel/skylake/skl-ssp-clk.c ipc->mclk.warm_up_over = enable; mclk 139 sound/soc/intel/skylake/skl-ssp-clk.c ipc->mclk.clk_stop_over = !enable; mclk 140 sound/soc/intel/skylake/skl-ssp-clk.c data = (u8 *)&ipc->mclk; mclk 57 sound/soc/intel/skylake/skl-ssp-clk.h u32 mclk:1; mclk 81 sound/soc/intel/skylake/skl-ssp-clk.h struct skl_dmactrl_mclk_cfg mclk; mclk 179 sound/soc/meson/axg-card.c unsigned int mclk; mclk 183 sound/soc/meson/axg-card.c mclk = params_rate(params) * be->mclk_fs; mclk 186 sound/soc/meson/axg-card.c ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 192 sound/soc/meson/axg-card.c ret = snd_soc_dai_set_sysclk(rtd->cpu_dai, 0, mclk, mclk 61 sound/soc/meson/axg-spdifout.c struct clk *mclk; mclk 224 sound/soc/meson/axg-spdifout.c ret = clk_set_rate(priv->mclk, rate * 128); mclk 361 sound/soc/meson/axg-spdifout.c ret = clk_prepare_enable(priv->mclk); mclk 366 sound/soc/meson/axg-spdifout.c clk_disable_unprepare(priv->mclk); mclk 431 sound/soc/meson/axg-spdifout.c priv->mclk = devm_clk_get(dev, "mclk"); mclk 432 sound/soc/meson/axg-spdifout.c if (IS_ERR(priv->mclk)) { mclk 433 sound/soc/meson/axg-spdifout.c ret = PTR_ERR(priv->mclk); mclk 106 sound/soc/meson/axg-tdm-interface.c if (!iface->mclk) { mclk 109 sound/soc/meson/axg-tdm-interface.c ret = clk_set_rate(iface->mclk, freq); mclk 129 sound/soc/meson/axg-tdm-interface.c if (!iface->mclk && (fmt & SND_SOC_DAIFMT_CBS_CFS)) { mclk 263 sound/soc/meson/axg-tdm-interface.c clk_set_rate(iface->mclk, 4 * srate); mclk 446 sound/soc/meson/axg-tdm-interface.c ret = clk_prepare_enable(iface->mclk); mclk 451 sound/soc/meson/axg-tdm-interface.c clk_disable_unprepare(iface->mclk); mclk 522 sound/soc/meson/axg-tdm-interface.c iface->mclk = devm_clk_get(dev, "mclk"); mclk 523 sound/soc/meson/axg-tdm-interface.c if (IS_ERR(iface->mclk)) { mclk 524 sound/soc/meson/axg-tdm-interface.c ret = PTR_ERR(iface->mclk); mclk 526 sound/soc/meson/axg-tdm-interface.c iface->mclk = NULL; mclk 29 sound/soc/meson/axg-tdm.h struct clk *mclk; mclk 55 sound/soc/mxs/mxs-saif.c saif->mclk = freq; mclk 78 sound/soc/mxs/mxs-saif.c unsigned int mclk, mclk 85 sound/soc/mxs/mxs-saif.c dev_dbg(saif->dev, "mclk %d rate %d\n", mclk, rate); mclk 121 sound/soc/mxs/mxs-saif.c switch (mclk / rate) { mclk 165 sound/soc/mxs/mxs-saif.c switch (mclk / rate) { mclk 238 sound/soc/mxs/mxs-saif.c int mxs_saif_get_mclk(unsigned int saif_id, unsigned int mclk, mclk 270 sound/soc/mxs/mxs-saif.c ret = mxs_saif_set_clk(saif, mclk, rate); mclk 428 sound/soc/mxs/mxs-saif.c if (!saif->mclk && saif->mclk_in_use) { mclk 444 sound/soc/mxs/mxs-saif.c ret = mxs_saif_set_clk(saif, saif->mclk, params_rate(params)); mclk 103 sound/soc/mxs/mxs-saif.h unsigned int mclk; mclk 121 sound/soc/mxs/mxs-saif.h extern int mxs_saif_get_mclk(unsigned int saif_id, unsigned int mclk, mclk 26 sound/soc/mxs/mxs-sgtl5000.c u32 mclk; mclk 32 sound/soc/mxs/mxs-sgtl5000.c mclk = 256 * rate; mclk 35 sound/soc/mxs/mxs-sgtl5000.c mclk = 512 * rate; mclk 40 sound/soc/mxs/mxs-sgtl5000.c ret = snd_soc_dai_set_sysclk(codec_dai, SGTL5000_SYSCLK, mclk, 0); mclk 43 sound/soc/mxs/mxs-sgtl5000.c mclk / 1000000, mclk / 1000 % 1000); mclk 48 sound/soc/mxs/mxs-sgtl5000.c ret = snd_soc_dai_set_sysclk(cpu_dai, MXS_SAIF_MCLK, mclk, 0); mclk 51 sound/soc/mxs/mxs-sgtl5000.c mclk / 1000000, mclk / 1000 % 1000); mclk 72 sound/soc/rockchip/rk3288_hdmi_analog.c int mclk; mclk 82 sound/soc/rockchip/rk3288_hdmi_analog.c mclk = 12288000; mclk 85 sound/soc/rockchip/rk3288_hdmi_analog.c mclk = 24576000; mclk 91 sound/soc/rockchip/rk3288_hdmi_analog.c mclk = 11289600; mclk 97 sound/soc/rockchip/rk3288_hdmi_analog.c ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, mclk 105 sound/soc/rockchip/rk3288_hdmi_analog.c ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 55 sound/soc/rockchip/rk3399_gru_sound.c unsigned int mclk; mclk 58 sound/soc/rockchip/rk3399_gru_sound.c mclk = params_rate(params) * SOUND_FS; mclk 60 sound/soc/rockchip/rk3399_gru_sound.c ret = snd_soc_dai_set_sysclk(rtd->cpu_dai, 0, mclk, 0); mclk 63 sound/soc/rockchip/rk3399_gru_sound.c __func__, mclk, ret); mclk 76 sound/soc/rockchip/rk3399_gru_sound.c unsigned int mclk; mclk 79 sound/soc/rockchip/rk3399_gru_sound.c mclk = params_rate(params) * SOUND_FS; mclk 81 sound/soc/rockchip/rk3399_gru_sound.c ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, mclk 89 sound/soc/rockchip/rk3399_gru_sound.c mclk, SND_SOC_CLOCK_IN); mclk 108 sound/soc/rockchip/rk3399_gru_sound.c int mclk, ret; mclk 119 sound/soc/rockchip/rk3399_gru_sound.c mclk = 12288000; mclk 125 sound/soc/rockchip/rk3399_gru_sound.c mclk = 11289600; mclk 131 sound/soc/rockchip/rk3399_gru_sound.c ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, mclk 138 sound/soc/rockchip/rk3399_gru_sound.c ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 204 sound/soc/rockchip/rk3399_gru_sound.c unsigned int mclk; mclk 207 sound/soc/rockchip/rk3399_gru_sound.c mclk = params_rate(params) * SOUND_FS; mclk 209 sound/soc/rockchip/rk3399_gru_sound.c ret = snd_soc_dai_set_sysclk(rtd->cpu_dai, 0, mclk, 0); mclk 212 sound/soc/rockchip/rk3399_gru_sound.c __func__, mclk, ret); mclk 35 sound/soc/rockchip/rockchip_i2s.c struct clk *mclk; mclk 59 sound/soc/rockchip/rockchip_i2s.c clk_disable_unprepare(i2s->mclk); mclk 69 sound/soc/rockchip/rockchip_i2s.c ret = clk_prepare_enable(i2s->mclk); mclk 80 sound/soc/rockchip/rockchip_i2s.c clk_disable_unprepare(i2s->mclk); mclk 280 sound/soc/rockchip/rockchip_i2s.c mclk_rate = clk_get_rate(i2s->mclk); mclk 425 sound/soc/rockchip/rockchip_i2s.c ret = clk_set_rate(i2s->mclk, freq); mclk 615 sound/soc/rockchip/rockchip_i2s.c i2s->mclk = devm_clk_get(&pdev->dev, "i2s_clk"); mclk 616 sound/soc/rockchip/rockchip_i2s.c if (IS_ERR(i2s->mclk)) { mclk 618 sound/soc/rockchip/rockchip_i2s.c return PTR_ERR(i2s->mclk); mclk 104 sound/soc/rockchip/rockchip_max98090.c int mclk; mclk 114 sound/soc/rockchip/rockchip_max98090.c mclk = 12288000; mclk 120 sound/soc/rockchip/rockchip_max98090.c mclk = 11289600; mclk 126 sound/soc/rockchip/rockchip_max98090.c ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, mclk 133 sound/soc/rockchip/rockchip_max98090.c ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 61 sound/soc/rockchip/rockchip_rt5645.c int mclk; mclk 71 sound/soc/rockchip/rockchip_rt5645.c mclk = 12288000; mclk 77 sound/soc/rockchip/rockchip_rt5645.c mclk = 11289600; mclk 83 sound/soc/rockchip/rockchip_rt5645.c ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, mclk 90 sound/soc/rockchip/rockchip_rt5645.c ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 36 sound/soc/rockchip/rockchip_spdif.c struct clk *mclk; mclk 70 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->mclk); mclk 81 sound/soc/rockchip/rockchip_spdif.c ret = clk_prepare_enable(spdif->mclk); mclk 98 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->mclk); mclk 111 sound/soc/rockchip/rockchip_spdif.c int srate, mclk; mclk 115 sound/soc/rockchip/rockchip_spdif.c mclk = srate * 128; mclk 132 sound/soc/rockchip/rockchip_spdif.c ret = clk_set_rate(spdif->mclk, mclk); mclk 319 sound/soc/rockchip/rockchip_spdif.c spdif->mclk = devm_clk_get(&pdev->dev, "mclk"); mclk 320 sound/soc/rockchip/rockchip_spdif.c if (IS_ERR(spdif->mclk)) { mclk 322 sound/soc/rockchip/rockchip_spdif.c ret = PTR_ERR(spdif->mclk); mclk 326 sound/soc/rockchip/rockchip_spdif.c ret = clk_prepare_enable(spdif->mclk); mclk 378 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->mclk); mclk 393 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->mclk); mclk 1315 sound/soc/sti/uniperif.h int mclk; mclk 318 sound/soc/sti/uniperif_player.c clk_div = player->mclk / runtime->rate; mclk 430 sound/soc/sti/uniperif_player.c clk_div = player->mclk / runtime->rate; mclk 552 sound/soc/sti/uniperif_player.c player->mclk = freq; mclk 667 sound/soc/sti/uniperif_player.c if (player->mclk) mclk 668 sound/soc/sti/uniperif_player.c ret = uni_player_clk_set_rate(player, player->mclk); mclk 740 sound/soc/sti/uniperif_player.c player->mclk = freq; mclk 377 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_mclk_data *mclk = to_mclk_data(hw); mclk 378 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_sub_data *sai = mclk->sai_data; mclk 385 sound/soc/stm/stm32_sai_sub.c mclk->freq = *prate / div; mclk 387 sound/soc/stm/stm32_sai_sub.c return mclk->freq; mclk 393 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_mclk_data *mclk = to_mclk_data(hw); mclk 395 sound/soc/stm/stm32_sai_sub.c return mclk->freq; mclk 401 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_mclk_data *mclk = to_mclk_data(hw); mclk 402 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_sub_data *sai = mclk->sai_data; mclk 413 sound/soc/stm/stm32_sai_sub.c mclk->freq = rate; mclk 420 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_mclk_data *mclk = to_mclk_data(hw); mclk 421 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_sub_data *sai = mclk->sai_data; mclk 431 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_mclk_data *mclk = to_mclk_data(hw); mclk 432 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_sub_data *sai = mclk->sai_data; mclk 450 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_mclk_data *mclk; mclk 456 sound/soc/stm/stm32_sai_sub.c mclk = devm_kzalloc(dev, sizeof(*mclk), GFP_KERNEL); mclk 457 sound/soc/stm/stm32_sai_sub.c if (!mclk) mclk 476 sound/soc/stm/stm32_sai_sub.c mclk->hw.init = CLK_HW_INIT(mclk_name, pname, &mclk_ops, 0); mclk 477 sound/soc/stm/stm32_sai_sub.c mclk->sai_data = sai; mclk 478 sound/soc/stm/stm32_sai_sub.c hw = &mclk->hw; mclk 75 sound/soc/sunxi/sun4i-i2s.c #define SUN4I_I2S_CLK_DIV_MCLK(mclk) ((mclk) << 0) mclk 265 sound/soc/sunxi/sun4i-spdif.c unsigned int mclk = 0; mclk 302 sound/soc/sunxi/sun4i-spdif.c mclk = 22579200; mclk 309 sound/soc/sunxi/sun4i-spdif.c mclk = 24576000; mclk 315 sound/soc/sunxi/sun4i-spdif.c ret = clk_set_rate(host->spdif_clk, mclk); mclk 318 sound/soc/sunxi/sun4i-spdif.c "Setting SPDIF clock rate for %d Hz failed!\n", mclk); mclk 43 sound/soc/tegra/tegra_alc5632.c int srate, mclk; mclk 47 sound/soc/tegra/tegra_alc5632.c mclk = 512 * srate; mclk 49 sound/soc/tegra/tegra_alc5632.c err = tegra_asoc_utils_set_rate(&alc5632->util_data, srate, mclk); mclk 55 sound/soc/tegra/tegra_alc5632.c err = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 19 sound/soc/tegra/tegra_asoc_utils.c int mclk) mclk 55 sound/soc/tegra/tegra_asoc_utils.c (mclk != data->set_mclk)); mclk 72 sound/soc/tegra/tegra_asoc_utils.c err = clk_set_rate(data->clk_pll_a_out0, mclk); mclk 99 sound/soc/tegra/tegra_asoc_utils.c data->set_mclk = mclk; mclk 33 sound/soc/tegra/tegra_asoc_utils.h int mclk); mclk 44 sound/soc/tegra/tegra_max98090.c int srate, mclk; mclk 56 sound/soc/tegra/tegra_max98090.c mclk = 12288000; mclk 62 sound/soc/tegra/tegra_max98090.c mclk = 11289600; mclk 65 sound/soc/tegra/tegra_max98090.c mclk = 12000000; mclk 69 sound/soc/tegra/tegra_max98090.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); mclk 75 sound/soc/tegra/tegra_max98090.c err = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 46 sound/soc/tegra/tegra_rt5640.c int srate, mclk; mclk 50 sound/soc/tegra/tegra_rt5640.c mclk = 256 * srate; mclk 52 sound/soc/tegra/tegra_rt5640.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); mclk 58 sound/soc/tegra/tegra_rt5640.c err = snd_soc_dai_set_sysclk(codec_dai, RT5640_SCLK_S_MCLK, mclk, mclk 48 sound/soc/tegra/tegra_rt5677.c int srate, mclk, err; mclk 51 sound/soc/tegra/tegra_rt5677.c mclk = 256 * srate; mclk 53 sound/soc/tegra/tegra_rt5677.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); mclk 59 sound/soc/tegra/tegra_rt5677.c err = snd_soc_dai_set_sysclk(codec_dai, RT5677_SCLK_S_MCLK, mclk, mclk 42 sound/soc/tegra/tegra_sgtl5000.c int srate, mclk; mclk 51 sound/soc/tegra/tegra_sgtl5000.c mclk = 11289600; mclk 54 sound/soc/tegra/tegra_sgtl5000.c mclk = 12288000; mclk 58 sound/soc/tegra/tegra_sgtl5000.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); mclk 64 sound/soc/tegra/tegra_sgtl5000.c err = snd_soc_dai_set_sysclk(codec_dai, SGTL5000_SYSCLK, mclk, mclk 46 sound/soc/tegra/tegra_wm8753.c int srate, mclk; mclk 55 sound/soc/tegra/tegra_wm8753.c mclk = 11289600; mclk 58 sound/soc/tegra/tegra_wm8753.c mclk = 12288000; mclk 62 sound/soc/tegra/tegra_wm8753.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); mclk 68 sound/soc/tegra/tegra_wm8753.c err = snd_soc_dai_set_sysclk(codec_dai, WM8753_MCLK, mclk, mclk 51 sound/soc/tegra/tegra_wm8903.c int srate, mclk; mclk 59 sound/soc/tegra/tegra_wm8903.c mclk = 128 * srate; mclk 62 sound/soc/tegra/tegra_wm8903.c mclk = 256 * srate; mclk 66 sound/soc/tegra/tegra_wm8903.c while (mclk < 6000000) mclk 67 sound/soc/tegra/tegra_wm8903.c mclk *= 2; mclk 69 sound/soc/tegra/tegra_wm8903.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); mclk 75 sound/soc/tegra/tegra_wm8903.c err = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 41 sound/soc/tegra/trimslice.c int srate, mclk; mclk 45 sound/soc/tegra/trimslice.c mclk = 128 * srate; mclk 47 sound/soc/tegra/trimslice.c err = tegra_asoc_utils_set_rate(&trimslice->util_data, srate, mclk); mclk 53 sound/soc/tegra/trimslice.c err = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, mclk 25 sound/soc/ti/davinci-evm.c struct clk *mclk; mclk 36 sound/soc/ti/davinci-evm.c if (drvdata->mclk) mclk 37 sound/soc/ti/davinci-evm.c return clk_prepare_enable(drvdata->mclk); mclk 49 sound/soc/ti/davinci-evm.c if (drvdata->mclk) mclk 50 sound/soc/ti/davinci-evm.c clk_disable_unprepare(drvdata->mclk); mclk 390 sound/soc/ti/davinci-evm.c struct clk *mclk; mclk 418 sound/soc/ti/davinci-evm.c mclk = devm_clk_get(&pdev->dev, "mclk"); mclk 419 sound/soc/ti/davinci-evm.c if (PTR_ERR(mclk) == -EPROBE_DEFER) { mclk 421 sound/soc/ti/davinci-evm.c } else if (IS_ERR(mclk)) { mclk 423 sound/soc/ti/davinci-evm.c mclk = NULL; mclk 430 sound/soc/ti/davinci-evm.c drvdata->mclk = mclk; mclk 435 sound/soc/ti/davinci-evm.c if (!drvdata->mclk) { mclk 440 sound/soc/ti/davinci-evm.c drvdata->sysclk = clk_get_rate(drvdata->mclk); mclk 441 sound/soc/ti/davinci-evm.c } else if (drvdata->mclk) { mclk 443 sound/soc/ti/davinci-evm.c clk_set_rate(drvdata->mclk, drvdata->sysclk); mclk 444 sound/soc/ti/davinci-evm.c drvdata->sysclk = clk_get_rate(drvdata->mclk); mclk 66 sound/soc/ux500/mop500_ab8500.c enum mclk mclk_sel; mclk 72 sound/soc/ux500/mop500_ab8500.c static inline const char *get_mclk_str(enum mclk mclk_sel)