/drivers/firmware/ |
D | qcom_scm.c | 33 struct clk *core_clk; member 45 ret = clk_prepare_enable(__scm->core_clk); in qcom_scm_clk_enable() 62 clk_disable_unprepare(__scm->core_clk); in qcom_scm_clk_enable() 69 clk_disable_unprepare(__scm->core_clk); in qcom_scm_clk_disable() 332 scm->core_clk = devm_clk_get(&pdev->dev, "core"); in qcom_scm_probe() 333 if (IS_ERR(scm->core_clk)) { in qcom_scm_probe() 334 if (PTR_ERR(scm->core_clk) == -EPROBE_DEFER) in qcom_scm_probe() 335 return PTR_ERR(scm->core_clk); in qcom_scm_probe() 337 scm->core_clk = NULL; in qcom_scm_probe() 362 ret = clk_set_rate(scm->core_clk, INT_MAX); in qcom_scm_probe()
|
/drivers/usb/phy/ |
D | phy-qcom-8x16-usb.c | 66 struct clk *core_clk; member 220 qphy->core_clk = devm_clk_get(dev, "core"); in phy_8x16_read_devicetree() 221 if (IS_ERR(qphy->core_clk)) in phy_8x16_read_devicetree() 222 return PTR_ERR(qphy->core_clk); in phy_8x16_read_devicetree() 301 ret = clk_set_rate(qphy->core_clk, INT_MAX); in phy_8x16_probe() 305 ret = clk_prepare_enable(qphy->core_clk); in phy_8x16_probe() 341 clk_disable_unprepare(qphy->core_clk); in phy_8x16_probe() 362 clk_disable_unprepare(qphy->core_clk); in phy_8x16_remove()
|
D | phy-msm-usb.c | 194 struct clk *core_clk; member 554 if (!IS_ERR(motg->core_clk)) in msm_usb_reset() 555 clk_prepare_enable(motg->core_clk); in msm_usb_reset() 574 if (!IS_ERR(motg->core_clk)) in msm_usb_reset() 575 clk_disable_unprepare(motg->core_clk); in msm_usb_reset() 735 if (!IS_ERR(motg->core_clk)) in msm_otg_suspend() 736 clk_disable_unprepare(motg->core_clk); in msm_otg_suspend() 770 if (!IS_ERR(motg->core_clk)) in msm_otg_resume() 771 clk_prepare_enable(motg->core_clk); in msm_otg_resume() 1860 motg->core_clk = devm_clk_get(&pdev->dev, in msm_otg_probe() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-ipq806x.c | 101 struct clk *core_clk; member 225 gmac->core_clk = devm_clk_get(dev, "stmmaceth"); in ipq806x_gmac_of_parse() 226 if (IS_ERR(gmac->core_clk)) { in ipq806x_gmac_of_parse() 228 return PTR_ERR(gmac->core_clk); in ipq806x_gmac_of_parse() 230 clk_set_rate(gmac->core_clk, 266000000); in ipq806x_gmac_of_parse()
|
/drivers/pci/host/ |
D | pcie-qcom.c | 54 struct clk *core_clk; member 155 res->core_clk = devm_clk_get(dev, "core"); in qcom_pcie_get_resources_v0() 156 if (IS_ERR(res->core_clk)) in qcom_pcie_get_resources_v0() 157 return PTR_ERR(res->core_clk); in qcom_pcie_get_resources_v0() 228 clk_disable_unprepare(res->core_clk); in qcom_pcie_deinit_v0() 278 ret = clk_prepare_enable(res->core_clk); in qcom_pcie_init_v0() 330 clk_disable_unprepare(res->core_clk); in qcom_pcie_init_v0()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dispc.c | 83 u16 pos_x, unsigned long *core_clk, bool mem_to_mem); 2205 u32 core_clk = 0; in calc_core_clk_five_taps() local 2216 core_clk = tmp; in calc_core_clk_five_taps() 2224 core_clk = max_t(u32, core_clk, tmp); in calc_core_clk_five_taps() 2231 core_clk = max_t(u32, core_clk, tmp); in calc_core_clk_five_taps() 2234 core_clk <<= 1; in calc_core_clk_five_taps() 2237 return core_clk; in calc_core_clk_five_taps() 2298 u16 pos_x, unsigned long *core_clk, bool mem_to_mem) in dispc_ovl_calc_scaling_24xx() argument 2311 *core_clk = dispc.feat->calc_core_clk(pclk, in_width, in dispc_ovl_calc_scaling_24xx() 2313 error = (in_width > maxsinglelinewidth || !*core_clk || in dispc_ovl_calc_scaling_24xx() [all …]
|
/drivers/gpu/drm/omapdrm/dss/ |
D | dispc.c | 82 u16 pos_x, unsigned long *core_clk, bool mem_to_mem); 2238 u32 core_clk = 0; in calc_core_clk_five_taps() local 2249 core_clk = tmp; in calc_core_clk_five_taps() 2257 core_clk = max_t(u32, core_clk, tmp); in calc_core_clk_five_taps() 2264 core_clk = max_t(u32, core_clk, tmp); in calc_core_clk_five_taps() 2267 core_clk <<= 1; in calc_core_clk_five_taps() 2270 return core_clk; in calc_core_clk_five_taps() 2331 u16 pos_x, unsigned long *core_clk, bool mem_to_mem) in dispc_ovl_calc_scaling_24xx() argument 2344 *core_clk = dispc.feat->calc_core_clk(pclk, in_width, in dispc_ovl_calc_scaling_24xx() 2346 error = (in_width > maxsinglelinewidth || !*core_clk || in dispc_ovl_calc_scaling_24xx() [all …]
|
/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_kms.c | 154 clk_disable_unprepare(mdp5_kms->core_clk); in mdp5_disable() 167 clk_prepare_enable(mdp5_kms->core_clk); in mdp5_enable() 712 ret = get_clk(pdev, &mdp5_kms->core_clk, "core_clk", true); in mdp5_init() 726 clk_set_rate(mdp5_kms->core_clk, 200000000); in mdp5_init() 744 clk_set_rate(mdp5_kms->core_clk, config->hw->max_clk); in mdp5_init()
|
D | mdp5_kms.h | 52 struct clk *core_clk; member
|
/drivers/mtd/nand/ |
D | qcom_nandc.c | 255 struct clk *core_clk; member 2107 nandc->core_clk = devm_clk_get(dev, "core"); in qcom_nandc_probe() 2108 if (IS_ERR(nandc->core_clk)) in qcom_nandc_probe() 2109 return PTR_ERR(nandc->core_clk); in qcom_nandc_probe() 2123 ret = clk_prepare_enable(nandc->core_clk); in qcom_nandc_probe() 2167 clk_disable_unprepare(nandc->core_clk); in qcom_nandc_probe() 2185 clk_disable_unprepare(nandc->core_clk); in qcom_nandc_remove()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_hw.c | 2735 static void tp_set_timers(struct adapter *adap, unsigned int core_clk) in tp_set_timers() argument 2737 unsigned int tre = fls(core_clk / (1000000 / TP_TMR_RES)) - 1; in tp_set_timers() 2738 unsigned int dack_re = fls(core_clk / 5000) - 1; /* 200us */ in tp_set_timers() 2739 unsigned int tstamp_re = fls(core_clk / 1000); /* 1ms, at least */ in tp_set_timers() 2740 unsigned int tps = core_clk >> tre; in tp_set_timers() 2746 (core_clk >> dack_re) / (1000 / TP_DACK_TIMER)); in tp_set_timers()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | cmd.h | 257 MLXSW_ITEM32(cmd_mbox, query_fw, core_clk, 0x08, 16, 16);
|