/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/ |
D | dce112_clk_mgr.c | 77 int actual_clock = requested_clk_khz; in dce112_set_clock() local 90 actual_clock = dce_clk_params.target_clock_frequency; in dce112_set_clock() 116 if (clk_mgr_dce->dfs_bypass_disp_clk != actual_clock) in dce112_set_clock() 118 actual_clock / 1000 / 7); in dce112_set_clock() 122 clk_mgr_dce->dfs_bypass_disp_clk = actual_clock; in dce112_set_clock() 123 return actual_clock; in dce112_set_clock() 132 int actual_clock = requested_clk_khz; in dce112_set_dispclk() local 146 actual_clock = dce_clk_params.target_clock_frequency; in dce112_set_dispclk() 158 if (clk_mgr->dfs_bypass_disp_clk != actual_clock) in dce112_set_dispclk() 160 actual_clock / 1000 / 7); in dce112_set_dispclk() [all …]
|
/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clk_mgr.c | 253 int actual_clock = requested_clk_khz; in dce_set_clock() local 274 actual_clock = pxl_clk_params.dfs_bypass_display_clock; in dce_set_clock() 283 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7); in dce_set_clock() 285 return actual_clock; in dce_set_clock() 295 int actual_clock = requested_clk_khz; in dce112_set_clock() local 309 actual_clock = dce_clk_params.target_clock_frequency; in dce112_set_clock() 333 if (clk_mgr_dce->dfs_bypass_disp_clk != actual_clock) in dce112_set_clock() 335 actual_clock / 1000 / 7); in dce112_set_clock() 339 clk_mgr_dce->dfs_bypass_disp_clk = actual_clock; in dce112_set_clock() 340 return actual_clock; in dce112_set_clock()
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
D | dce_clk_mgr.c | 236 int actual_clock = requested_clk_khz; in dce_set_clock() local 257 actual_clock = pxl_clk_params.dfs_bypass_display_clock; in dce_set_clock() 266 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7); in dce_set_clock() 268 return actual_clock; in dce_set_clock()
|
/drivers/mmc/host/ |
D | sdhci-pci-gli.c | 411 host->mmc->actual_clock = 0; in sdhci_gl9750_set_clock() 419 clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock); in sdhci_gl9750_set_clock() 421 host->mmc->actual_clock = 205000000; in sdhci_gl9750_set_clock() 573 host->mmc->actual_clock = 0; in sdhci_gl9755_set_clock() 581 clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock); in sdhci_gl9755_set_clock() 583 host->mmc->actual_clock = 205000000; in sdhci_gl9755_set_clock()
|
D | sdhci-cns3xxx.c | 30 host->mmc->actual_clock = 0; in sdhci_cns3xxx_set_clock()
|
D | sdhci-brcmstb.c | 84 host->mmc->actual_clock = 0; in sdhci_brcmstb_set_clock() 86 clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock); in sdhci_brcmstb_set_clock()
|
D | sdhci-esdhc-imx.c | 326 unsigned int actual_clock; member 897 host->mmc->actual_clock = 0; in esdhc_pltfm_set_clock() 936 host->mmc->actual_clock = host_clock / (div * pre_div * ddr_pre_div); in esdhc_pltfm_set_clock() 938 clock, host->mmc->actual_clock); in esdhc_pltfm_set_clock() 1843 imx_data->actual_clock = host->mmc->actual_clock; in sdhci_esdhc_runtime_suspend() 1880 esdhc_pltfm_set_clock(host, imx_data->actual_clock); in sdhci_esdhc_runtime_resume()
|
D | meson-gx-mmc.c | 365 mmc->actual_clock = 0; in meson_mmc_clk_set() 394 mmc->actual_clock = clk_get_rate(host->mmc_clk); in meson_mmc_clk_set() 399 mmc->actual_clock >>= 1; in meson_mmc_clk_set() 402 dev_dbg(host->dev, "clk rate: %u Hz\n", mmc->actual_clock); in meson_mmc_clk_set() 403 if (rate != mmc->actual_clock) in meson_mmc_clk_set()
|
D | sdhci-of-at91.c | 66 host->mmc->actual_clock = 0; in sdhci_at91_set_clock() 83 clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock); in sdhci_at91_set_clock()
|
D | sdhci-esdhc-mcf.c | 230 host->mmc->actual_clock = 0; in esdhc_mcf_pltfm_set_clock() 276 host->mmc->actual_clock = clock; in esdhc_mcf_pltfm_set_clock()
|
D | mmci_stm32_sdmmc.c | 229 host->mmc->actual_clock = host->cclk; in mmci_sdmmc_set_clkreg() 231 host->mmc->actual_clock = 0; in mmci_sdmmc_set_clkreg()
|
D | sdhci-of-esdhc.c | 652 host->mmc->actual_clock = 0; in esdhc_of_set_clock() 701 host->mmc->actual_clock = host->max_clk / esdhc->div_ratio; in esdhc_of_set_clock() 704 clock, host->mmc->actual_clock); in esdhc_of_set_clock() 747 if (host->mmc->actual_clock == MMC_HS200_MAX_DTR) in esdhc_of_set_clock()
|
D | renesas_sdhi_core.c | 178 host->mmc->actual_clock = 0; in renesas_sdhi_set_clock() 182 host->mmc->actual_clock = renesas_sdhi_clk_update(host, new_clock); in renesas_sdhi_set_clock() 183 clock = host->mmc->actual_clock / 512; in renesas_sdhi_set_clock()
|
D | sdhci-s3c.c | 235 host->mmc->actual_clock = 0; in sdhci_s3c_set_clock() 376 host->mmc->actual_clock = 0; in sdhci_cmu_set_clock()
|
D | sdhci-pci-o2micro.c | 532 host->mmc->actual_clock = 0; in sdhci_pci_o2_set_clock() 556 clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock); in sdhci_pci_o2_set_clock()
|
D | sdhci-of-arasan.c | 534 if (!IS_ERR(sdhci_arasan->phy) && host->mmc->actual_clock) { in sdhci_arasan_resume() 579 return host->mmc->actual_clock; in sdhci_arasan_sdcardclk_recalc_rate() 606 return host->mmc->actual_clock; in sdhci_arasan_sampleclk_recalc_rate()
|
D | meson-mx-sdhc-mmc.c | 290 mmc->actual_clock = clk_get_rate(host->sd_clk); in meson_mx_sdhc_set_clk() 303 mmc->actual_clock = 0; in meson_mx_sdhc_set_clk()
|
D | mtk-sd.c | 762 if (mmc->actual_clock == 0) { in msdc_timeout_cal() 766 do_div(clk_ns, mmc->actual_clock); in msdc_timeout_cal() 848 mmc->actual_clock = 0; in msdc_set_mclk() 926 mmc->actual_clock = sclk; in msdc_set_mclk() 937 if (mmc->actual_clock <= 52000000) { in msdc_set_mclk() 968 dev_dbg(host->dev, "sclk: %d, timing: %d\n", mmc->actual_clock, in msdc_set_mclk()
|
D | sdhci.c | 926 freq = mmc->actual_clock ? : host->clock; in sdhci_calc_sw_timeout() 1867 unsigned int *actual_clock) in sdhci_calc_clk() argument 1949 *actual_clock = (host->max_clk * clk_mul) / real_div; in sdhci_calc_clk() 2016 host->mmc->actual_clock = 0; in sdhci_set_clock() 2023 clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock); in sdhci_set_clock() 2339 host->timeout_clk = mmc->actual_clock ? in sdhci_set_ios() 2340 mmc->actual_clock / 1000 : in sdhci_set_ios()
|
D | sdhci-of-dwcmshc.c | 186 host->mmc->actual_clock = 0; in dwcmshc_rk3568_set_clock()
|
D | sdhci.h | 789 unsigned int *actual_clock);
|
D | mmci.c | 449 host->mmc->actual_clock = host->cclk; in mmci_set_clkreg() 1731 if (host->variant->busy_timeout && mmc->actual_clock) in mmci_set_max_busy_timeout() 1732 max_busy_timeout = U32_MAX / DIV_ROUND_UP(mmc->actual_clock, in mmci_set_max_busy_timeout()
|
D | bcm2835.c | 1146 mmc->actual_clock = clock; in bcm2835_set_clock() 1157 writel(mmc->actual_clock / 2, host->ioaddr + SDTOUT); in bcm2835_set_clock()
|
D | sunxi-mmc.c | 773 mmc->actual_clock = 0; in sunxi_mmc_clk_set_rate() 864 mmc->actual_clock = rate; in sunxi_mmc_clk_set_rate()
|
/drivers/mmc/core/ |
D | debugfs.c | 60 if (host->actual_clock) in mmc_ios_show() 61 seq_printf(s, "actual clock:\t%u Hz\n", host->actual_clock); in mmc_ios_show()
|