Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/
Ddce112_clk_mgr.c77 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/
Ddce_clk_mgr.c253 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/
Ddce_clk_mgr.c236 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/
Dsdhci-pci-gli.c411 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()
Dsdhci-cns3xxx.c30 host->mmc->actual_clock = 0; in sdhci_cns3xxx_set_clock()
Dsdhci-brcmstb.c84 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()
Dsdhci-esdhc-imx.c326 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()
Dmeson-gx-mmc.c365 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()
Dsdhci-of-at91.c66 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()
Dsdhci-esdhc-mcf.c230 host->mmc->actual_clock = 0; in esdhc_mcf_pltfm_set_clock()
276 host->mmc->actual_clock = clock; in esdhc_mcf_pltfm_set_clock()
Dmmci_stm32_sdmmc.c229 host->mmc->actual_clock = host->cclk; in mmci_sdmmc_set_clkreg()
231 host->mmc->actual_clock = 0; in mmci_sdmmc_set_clkreg()
Dsdhci-of-esdhc.c652 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()
Drenesas_sdhi_core.c178 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()
Dsdhci-s3c.c235 host->mmc->actual_clock = 0; in sdhci_s3c_set_clock()
376 host->mmc->actual_clock = 0; in sdhci_cmu_set_clock()
Dsdhci-pci-o2micro.c532 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()
Dsdhci-of-arasan.c534 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()
Dmeson-mx-sdhc-mmc.c290 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()
Dmtk-sd.c762 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()
Dsdhci.c926 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()
Dsdhci-of-dwcmshc.c186 host->mmc->actual_clock = 0; in dwcmshc_rk3568_set_clock()
Dsdhci.h789 unsigned int *actual_clock);
Dmmci.c449 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()
Dbcm2835.c1146 mmc->actual_clock = clock; in bcm2835_set_clock()
1157 writel(mmc->actual_clock / 2, host->ioaddr + SDTOUT); in bcm2835_set_clock()
Dsunxi-mmc.c773 mmc->actual_clock = 0; in sunxi_mmc_clk_set_rate()
864 mmc->actual_clock = rate; in sunxi_mmc_clk_set_rate()
/drivers/mmc/core/
Ddebugfs.c60 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()

12