Home
last modified time | relevance | path

Searched refs:core_clk (Results 1 – 25 of 43) sorted by relevance

12

/drivers/net/mdio/
Dmdio-mux-bcm-iproc.c54 struct clk *core_clk; member
67 if (md->core_clk) { in mdio_mux_iproc_config()
71 divisor = clk_get_rate(md->core_clk) / MDIO_OPERATING_FREQUENCY; in mdio_mux_iproc_config()
208 md->core_clk = devm_clk_get(&pdev->dev, NULL); in mdio_mux_iproc_probe()
209 if (md->core_clk == ERR_PTR(-ENOENT) || in mdio_mux_iproc_probe()
210 md->core_clk == ERR_PTR(-EINVAL)) in mdio_mux_iproc_probe()
211 md->core_clk = NULL; in mdio_mux_iproc_probe()
212 else if (IS_ERR(md->core_clk)) in mdio_mux_iproc_probe()
213 return PTR_ERR(md->core_clk); in mdio_mux_iproc_probe()
215 rc = clk_prepare_enable(md->core_clk); in mdio_mux_iproc_probe()
[all …]
/drivers/char/hw_random/
Dmeson-rng.c23 struct clk *core_clk; member
57 data->core_clk = devm_clk_get(dev, "core"); in meson_rng_probe()
58 if (IS_ERR(data->core_clk)) in meson_rng_probe()
59 data->core_clk = NULL; in meson_rng_probe()
61 if (data->core_clk) { in meson_rng_probe()
62 ret = clk_prepare_enable(data->core_clk); in meson_rng_probe()
66 data->core_clk); in meson_rng_probe()
/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_core_perf.c289 struct dss_clk *core_clk = kms->perf.core_clk; in _dpu_core_perf_set_core_clk_rate() local
291 if (core_clk->max_rate && (rate > core_clk->max_rate)) in _dpu_core_perf_set_core_clk_rate()
292 rate = core_clk->max_rate; in _dpu_core_perf_set_core_clk_rate()
294 core_clk->rate = rate; in _dpu_core_perf_set_core_clk_rate()
295 return dev_pm_opp_set_rate(&kms->pdev->dev, core_clk->rate); in _dpu_core_perf_set_core_clk_rate()
309 clk_rate = clk_round_rate(kms->perf.core_clk->clk, in _dpu_core_perf_get_core_clk_rate()
411 kms->perf.core_clk->clk_name, clk_rate); in dpu_core_perf_crtc_update()
524 perf->core_clk = NULL; in dpu_core_perf_destroy()
532 struct dss_clk *core_clk) in dpu_core_perf_init() argument
536 perf->core_clk = core_clk; in dpu_core_perf_init()
[all …]
Ddpu_core_perf.h59 struct dss_clk *core_clk; member
110 struct dss_clk *core_clk);
/drivers/nvmem/
Dmeson-mx-efuse.c46 struct clk *core_clk; member
67 err = clk_prepare_enable(efuse->core_clk); in meson_mx_efuse_hw_enable()
87 clk_disable_unprepare(efuse->core_clk); in meson_mx_efuse_hw_disable()
223 efuse->core_clk = devm_clk_get(&pdev->dev, "core"); in meson_mx_efuse_probe()
224 if (IS_ERR(efuse->core_clk)) { in meson_mx_efuse_probe()
226 return PTR_ERR(efuse->core_clk); in meson_mx_efuse_probe()
/drivers/pci/controller/dwc/
Dpcie-intel-gw.c70 struct clk *core_clk; member
215 lpp->core_clk = devm_clk_get(dev, NULL); in intel_pcie_get_resources()
216 if (IS_ERR(lpp->core_clk)) { in intel_pcie_get_resources()
217 ret = PTR_ERR(lpp->core_clk); in intel_pcie_get_resources()
298 ret = clk_prepare_enable(lpp->core_clk); in intel_pcie_host_setup()
326 clk_disable_unprepare(lpp->core_clk); in intel_pcie_host_setup()
338 clk_disable_unprepare(lpp->core_clk); in __intel_pcie_remove()
365 clk_disable_unprepare(lpp->core_clk); in intel_pcie_suspend_noirq()
Dpcie-tegra194.c256 struct clk *core_clk; member
460 clk_set_rate(pcie->core_clk, pcie_gen_freq[speed]); in tegra_pcie_ep_irq_thread()
914 clk_set_rate(pcie->core_clk, GEN4_CORE_CLK_FREQ); in tegra_pcie_dw_host_init()
1000 clk_set_rate(pcie->core_clk, pcie_gen_freq[speed]); in tegra_pcie_dw_start_link()
1349 ret = clk_prepare_enable(pcie->core_clk); in tegra_pcie_config_controller()
1412 clk_disable_unprepare(pcie->core_clk); in tegra_pcie_config_controller()
1437 clk_disable_unprepare(pcie->core_clk); in tegra_pcie_unconfig_controller()
1641 clk_disable_unprepare(pcie->core_clk); in pex_ep_event_pex_rst_assert()
1677 ret = clk_prepare_enable(pcie->core_clk); in pex_ep_event_pex_rst_deassert()
1777 clk_set_rate(pcie->core_clk, GEN4_CORE_CLK_FREQ); in pex_ep_event_pex_rst_deassert()
[all …]
/drivers/phy/intel/
Dphy-intel-lgm-combo.c88 struct clk *core_clk; member
258 ret = clk_prepare_enable(cbphy->core_clk); in intel_cbphy_iphy_power_on()
264 ret = clk_set_rate(cbphy->core_clk, cbphy->clk_rate); in intel_cbphy_iphy_power_on()
297 clk_disable_unprepare(cbphy->core_clk); in intel_cbphy_iphy_power_on()
323 clk_disable_unprepare(cbphy->core_clk); in intel_cbphy_iphy_power_off()
415 cbphy->core_clk = devm_clk_get(dev, NULL); in intel_cbphy_fwnode_parse()
416 if (IS_ERR(cbphy->core_clk)) { in intel_cbphy_fwnode_parse()
417 ret = PTR_ERR(cbphy->core_clk); in intel_cbphy_fwnode_parse()
612 clk_disable_unprepare(cbphy->core_clk); in intel_cbphy_remove()
/drivers/usb/chipidea/
Dci_hdrc_msm.c38 struct clk *core_clk; member
199 ci->core_clk = clk = devm_clk_get(&pdev->dev, "core"); in ci_hdrc_msm_probe()
233 ret = clk_prepare_enable(ci->core_clk); in ci_hdrc_msm_probe()
273 clk_disable_unprepare(ci->core_clk); in ci_hdrc_msm_probe()
284 clk_disable_unprepare(ci->core_clk); in ci_hdrc_msm_remove()
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-ipq806x.c89 struct clk *core_clk; member
214 gmac->core_clk = devm_clk_get(dev, "stmmaceth"); in ipq806x_gmac_of_parse()
215 if (IS_ERR(gmac->core_clk)) { in ipq806x_gmac_of_parse()
217 return PTR_ERR(gmac->core_clk); in ipq806x_gmac_of_parse()
219 clk_set_rate(gmac->core_clk, 266000000); in ipq806x_gmac_of_parse()
/drivers/firmware/
Dqcom_scm.c31 struct clk *core_clk; member
87 ret = clk_prepare_enable(__scm->core_clk); in qcom_scm_clk_enable()
104 clk_disable_unprepare(__scm->core_clk); in qcom_scm_clk_enable()
111 clk_disable_unprepare(__scm->core_clk); in qcom_scm_clk_disable()
1260 scm->core_clk = devm_clk_get(&pdev->dev, "core"); in qcom_scm_probe()
1261 if (IS_ERR(scm->core_clk)) { in qcom_scm_probe()
1262 if (PTR_ERR(scm->core_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1263 return PTR_ERR(scm->core_clk); in qcom_scm_probe()
1267 return PTR_ERR(scm->core_clk); in qcom_scm_probe()
1270 scm->core_clk = NULL; in qcom_scm_probe()
[all …]
/drivers/mmc/host/
Dmeson-mx-sdio.c105 struct clk *core_clk; member
677 host->core_clk = devm_clk_get(host->controller_dev, "core"); in meson_mx_mmc_probe()
678 if (IS_ERR(host->core_clk)) { in meson_mx_mmc_probe()
679 ret = PTR_ERR(host->core_clk); in meson_mx_mmc_probe()
693 ret = clk_prepare_enable(host->core_clk); in meson_mx_mmc_probe()
723 clk_disable_unprepare(host->core_clk); in meson_mx_mmc_probe()
743 clk_disable_unprepare(host->core_clk); in meson_mx_mmc_remove()
Dmeson-gx-mmc.c155 struct clk *core_clk; member
1200 host->core_clk = devm_clk_get(&pdev->dev, "core"); in meson_mmc_probe()
1201 if (IS_ERR(host->core_clk)) { in meson_mmc_probe()
1202 ret = PTR_ERR(host->core_clk); in meson_mmc_probe()
1206 ret = clk_prepare_enable(host->core_clk); in meson_mmc_probe()
1302 clk_disable_unprepare(host->core_clk); in meson_mmc_probe()
1326 clk_disable_unprepare(host->core_clk); in meson_mmc_remove()
/drivers/dma/qcom/
Dqcom_adm.c163 struct clk *core_clk; member
723 adev->core_clk = devm_clk_get(adev->dev, "core"); in adm_dma_probe()
724 if (IS_ERR(adev->core_clk)) in adm_dma_probe()
725 return PTR_ERR(adev->core_clk); in adm_dma_probe()
755 ret = clk_prepare_enable(adev->core_clk); in adm_dma_probe()
854 clk_disable_unprepare(adev->core_clk); in adm_dma_probe()
880 clk_disable_unprepare(adev->core_clk); in adm_dma_remove()
/drivers/video/fbdev/omap2/omapfb/dss/
Ddispc.c72 u16 pos_x, unsigned long *core_clk, bool mem_to_mem);
2163 u32 core_clk = 0; in calc_core_clk_five_taps() local
2174 core_clk = tmp; in calc_core_clk_five_taps()
2182 core_clk = max_t(u32, core_clk, tmp); in calc_core_clk_five_taps()
2189 core_clk = max_t(u32, core_clk, tmp); in calc_core_clk_five_taps()
2192 core_clk <<= 1; in calc_core_clk_five_taps()
2195 return core_clk; in calc_core_clk_five_taps()
2256 u16 pos_x, unsigned long *core_clk, bool mem_to_mem) in dispc_ovl_calc_scaling_24xx() argument
2269 *core_clk = dispc.feat->calc_core_clk(pclk, in_width, in dispc_ovl_calc_scaling_24xx()
2271 error = (in_width > maxsinglelinewidth || !*core_clk || in dispc_ovl_calc_scaling_24xx()
[all …]
/drivers/i3c/master/
Ddw-i3c-master.c240 struct clk *core_clk; member
524 core_rate = clk_get_rate(master->core_clk); in dw_i3c_clk_cfg()
567 core_rate = clk_get_rate(master->core_clk); in dw_i2c_clk_cfg()
1128 master->core_clk = devm_clk_get(&pdev->dev, NULL); in dw_i3c_probe()
1129 if (IS_ERR(master->core_clk)) in dw_i3c_probe()
1130 return PTR_ERR(master->core_clk); in dw_i3c_probe()
1137 ret = clk_prepare_enable(master->core_clk); in dw_i3c_probe()
1179 clk_disable_unprepare(master->core_clk); in dw_i3c_probe()
1195 clk_disable_unprepare(master->core_clk); in dw_i3c_remove()
/drivers/gpu/drm/msm/
Dmsm_gpu_devfreq.c47 clk_set_rate(gpu->core_clk, *freq); in msm_devfreq_target()
62 return clk_get_rate(gpu->core_clk); in get_freq()
Dmsm_gpu.c58 if (gpu->core_clk && gpu->fast_rate) in enable_clk()
59 clk_set_rate(gpu->core_clk, gpu->fast_rate); in enable_clk()
77 if (gpu->core_clk) in disable_clk()
78 clk_set_rate(gpu->core_clk, 27000000); in disable_clk()
792 gpu->core_clk = msm_clk_bulk_get_clock(gpu->grp_clks, in get_clocks()
/drivers/gpu/drm/rockchip/
Dcdn-dp-core.c97 ret = clk_prepare_enable(dp->core_clk); in cdn_dp_clk_enable()
116 rate = clk_get_rate(dp->core_clk); in cdn_dp_clk_enable()
131 clk_disable_unprepare(dp->core_clk); in cdn_dp_clk_enable()
142 clk_disable_unprepare(dp->core_clk); in cdn_dp_clk_disable()
716 dp->core_clk = devm_clk_get(dev, "core-clk"); in cdn_dp_parse_dt()
717 if (IS_ERR(dp->core_clk)) { in cdn_dp_parse_dt()
719 return PTR_ERR(dp->core_clk); in cdn_dp_parse_dt()
/drivers/gpu/drm/omapdrm/dss/
Ddispc.c106 u16 pos_x, unsigned long *core_clk, bool mem_to_mem);
2201 u32 core_clk = 0; in calc_core_clk_five_taps() local
2212 core_clk = tmp; in calc_core_clk_five_taps()
2220 core_clk = max_t(u32, core_clk, tmp); in calc_core_clk_five_taps()
2227 core_clk = max_t(u32, core_clk, tmp); in calc_core_clk_five_taps()
2230 core_clk <<= 1; in calc_core_clk_five_taps()
2233 return core_clk; in calc_core_clk_five_taps()
2297 u16 pos_x, unsigned long *core_clk, in dispc_ovl_calc_scaling_24xx() argument
2310 *core_clk = dispc->feat->calc_core_clk(pclk, in_width, in dispc_ovl_calc_scaling_24xx()
2312 error = (in_width > maxsinglelinewidth || !*core_clk || in dispc_ovl_calc_scaling_24xx()
[all …]
/drivers/gpu/drm/vc4/
Dvc4_hvs.c628 hvs->core_clk = devm_clk_get(&pdev->dev, NULL); in vc4_hvs_bind()
629 if (IS_ERR(hvs->core_clk)) { in vc4_hvs_bind()
631 return PTR_ERR(hvs->core_clk); in vc4_hvs_bind()
634 ret = clk_prepare_enable(hvs->core_clk); in vc4_hvs_bind()
759 clk_disable_unprepare(hvs->core_clk); in vc4_hvs_unbind()
/drivers/iio/adc/
Dmeson_saradc.c272 struct clk *core_clk; member
939 ret = clk_prepare_enable(priv->core_clk); in meson_sar_adc_hw_enable()
971 clk_disable_unprepare(priv->core_clk); in meson_sar_adc_hw_enable()
996 clk_disable_unprepare(priv->core_clk); in meson_sar_adc_hw_disable()
1238 priv->core_clk = devm_clk_get(&pdev->dev, "core"); in meson_sar_adc_probe()
1239 if (IS_ERR(priv->core_clk)) { in meson_sar_adc_probe()
1241 return PTR_ERR(priv->core_clk); in meson_sar_adc_probe()
/drivers/misc/
Dxilinx_sdfec.c179 struct clk *core_clk; member
1209 clks->core_clk = devm_clk_get(&pdev->dev, "core_clk"); in xsdfec_clk_init()
1210 if (IS_ERR(clks->core_clk)) { in xsdfec_clk_init()
1212 return PTR_ERR(clks->core_clk); in xsdfec_clk_init()
1276 err = clk_prepare_enable(clks->core_clk); in xsdfec_clk_init()
1340 clk_disable_unprepare(clks->core_clk); in xsdfec_clk_init()
1353 clk_disable_unprepare(clks->core_clk); in xsdfec_disable_all_clks()
/drivers/mtd/nand/raw/
Dmarvell_nand.c402 struct clk *core_clk; member
2377 unsigned int period_ns = 1000000000 / clk_get_rate(nfc->core_clk) * 2; in marvell_nfc_setup_interface()
2945 nfc->core_clk = devm_clk_get(&pdev->dev, "core"); in marvell_nfc_probe()
2948 if (nfc->core_clk == ERR_PTR(-ENOENT)) in marvell_nfc_probe()
2949 nfc->core_clk = devm_clk_get(&pdev->dev, NULL); in marvell_nfc_probe()
2951 if (IS_ERR(nfc->core_clk)) in marvell_nfc_probe()
2952 return PTR_ERR(nfc->core_clk); in marvell_nfc_probe()
2954 ret = clk_prepare_enable(nfc->core_clk); in marvell_nfc_probe()
3010 clk_disable_unprepare(nfc->core_clk); in marvell_nfc_probe()
3027 clk_disable_unprepare(nfc->core_clk); in marvell_nfc_remove()
[all …]
/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_kms.c304 clk_disable_unprepare(mdp5_kms->core_clk); in mdp5_disable()
319 clk_prepare_enable(mdp5_kms->core_clk); in mdp5_enable()
864 ret = get_clk(pdev, &mdp5_kms->core_clk, "core", true); in mdp5_init()
880 clk_set_rate(mdp5_kms->core_clk, 200000000); in mdp5_init()
898 clk_set_rate(mdp5_kms->core_clk, config->hw->max_clk); in mdp5_init()

12