| /linux/arch/arm/mach-mv78xx0/ |
| H A D | common.c | 47 int hclk; in get_hclk() local 54 hclk = 166666667; in get_hclk() 57 hclk = 200000000; in get_hclk() 60 hclk = 266666667; in get_hclk() 63 hclk = 333333333; in get_hclk() 66 hclk = 400000000; in get_hclk() 73 return hclk; in get_hclk() 76 static void get_pclk_l2clk(int hclk, int core_index, int *pclk, int *l2clk) in get_pclk_l2clk() argument 94 *pclk = ((u64)hclk * (2 + (cfg & 0xf))) >> 1; in get_pclk_l2clk() 408 int hclk; in mv78xx0_init() local [all …]
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_pci.c | 68 plat_data.hclk = clk_register_fixed_rate(&pdev->dev, "hclk", NULL, 0, in macb_probe() 70 if (IS_ERR(plat_data.hclk)) { in macb_probe() 71 err = PTR_ERR(plat_data.hclk); in macb_probe() 99 clk_unregister_fixed_rate(plat_data.hclk); in macb_probe() 113 struct clk *hclk = plat_data->hclk; in macb_remove() local 117 clk_unregister_fixed_rate(hclk); in macb_remove()
|
| H A D | macb_main.c | 4613 static void macb_clks_disable(struct clk *pclk, struct clk *hclk, struct clk *tx_clk, in macb_clks_disable() argument 4620 { .clk = hclk, }, in macb_clks_disable() 4628 struct clk **hclk, struct clk **tx_clk, in macb_clk_init_dflt() argument 4637 *hclk = pdata->hclk; in macb_clk_init_dflt() 4640 *hclk = devm_clk_get(&pdev->dev, "hclk"); in macb_clk_init_dflt() 4648 if (IS_ERR_OR_NULL(*hclk)) in macb_clk_init_dflt() 4650 IS_ERR(*hclk) ? PTR_ERR(*hclk) : -ENODEV, in macb_clk_init_dflt() 4671 err = clk_prepare_enable(*hclk); in macb_clk_init_dflt() 4704 clk_disable_unprepare(*hclk); in macb_clk_init_dflt() 4713 struct clk **hclk, struct clk **tx_clk, in macb_clk_init() argument [all …]
|
| /linux/drivers/char/hw_random/ |
| H A D | jh7110-trng.c | 98 struct clk *hclk; member 241 clk_disable_unprepare(trng->hclk); in starfive_trng_cleanup() 306 trng->hclk = devm_clk_get(&pdev->dev, "hclk"); in starfive_trng_probe() 307 if (IS_ERR(trng->hclk)) in starfive_trng_probe() 308 return dev_err_probe(&pdev->dev, PTR_ERR(trng->hclk), in starfive_trng_probe() 321 clk_prepare_enable(trng->hclk); in starfive_trng_probe() 344 clk_disable_unprepare(trng->hclk); in starfive_trng_probe() 356 clk_disable_unprepare(trng->hclk); in starfive_trng_suspend() 366 clk_prepare_enable(trng->hclk); in starfive_trng_resume()
|
| /linux/drivers/clk/samsung/ |
| H A D | clk-s5pv210-audss.c | 75 struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; in s5pv210_audss_clk_probe() local 91 hclk = devm_clk_get(&pdev->dev, "hclk"); in s5pv210_audss_clk_probe() 92 if (IS_ERR(hclk)) { in s5pv210_audss_clk_probe() 94 return PTR_ERR(hclk); in s5pv210_audss_clk_probe() 145 hclk_p = __clk_get_name(hclk); in s5pv210_audss_clk_probe()
|
| /linux/arch/arm/boot/dts/st/ |
| H A D | ste-nomadik-stn8815.dtsi | 227 hclk: hclk@0 { label 229 compatible = "st,nomadik-hclk-clock"; 238 clocks = <&hclk>; 302 clocks = <&hclk>; 308 clocks = <&hclk>; 314 clocks = <&hclk>; 320 clocks = <&hclk>; 326 clocks = <&hclk>; 380 clocks = <&hclk>; 386 clocks = <&hclk>; [all …]
|
| /linux/drivers/soc/qcom/ |
| H A D | qcom_gsbi.c | 111 struct clk *hclk; member 181 gsbi->hclk = devm_clk_get_enabled(&pdev->dev, "iface"); in gsbi_probe() 182 if (IS_ERR(gsbi->hclk)) in gsbi_probe() 183 return PTR_ERR(gsbi->hclk); in gsbi_probe()
|
| /linux/sound/soc/rockchip/ |
| H A D | rockchip_pdm.c | 33 struct clk *hclk; member 415 clk_disable_unprepare(pdm->hclk); in rockchip_pdm_runtime_suspend() 431 ret = clk_prepare_enable(pdm->hclk); in rockchip_pdm_runtime_resume() 610 pdm->hclk = devm_clk_get(&pdev->dev, "pdm_hclk"); in rockchip_pdm_probe() 611 if (IS_ERR(pdm->hclk)) in rockchip_pdm_probe() 612 return PTR_ERR(pdm->hclk); in rockchip_pdm_probe() 614 ret = clk_prepare_enable(pdm->hclk); in rockchip_pdm_probe() 654 clk_disable_unprepare(pdm->hclk); in rockchip_pdm_probe() 668 clk_disable_unprepare(pdm->hclk); in rockchip_pdm_remove()
|
| H A D | rockchip_i2s_tdm.c | 51 struct clk *hclk; member 133 clk_disable_unprepare(i2s_tdm->hclk); in i2s_tdm_runtime_suspend() 143 ret = clk_prepare_enable(i2s_tdm->hclk); in i2s_tdm_runtime_resume() 163 clk_disable_unprepare(i2s_tdm->hclk); in i2s_tdm_runtime_resume() 1282 i2s_tdm->hclk = devm_clk_get(&pdev->dev, "hclk"); in rockchip_i2s_tdm_probe() 1283 if (IS_ERR(i2s_tdm->hclk)) { in rockchip_i2s_tdm_probe() 1284 return dev_err_probe(i2s_tdm->dev, PTR_ERR(i2s_tdm->hclk), in rockchip_i2s_tdm_probe() 1342 ret = clk_prepare_enable(i2s_tdm->hclk); in rockchip_i2s_tdm_probe() 1389 clk_disable_unprepare(i2s_tdm->hclk); in rockchip_i2s_tdm_probe()
|
| H A D | rockchip_sai.c | 44 struct clk *hclk; member 246 clk_disable_unprepare(sai->hclk); in rockchip_sai_runtime_suspend() 256 ret = clk_prepare_enable(sai->hclk); in rockchip_sai_runtime_resume() 275 clk_disable_unprepare(sai->hclk); in rockchip_sai_runtime_resume() 323 * It is advised to reset the hclk domain before resetting the mclk in rockchip_sai_reset() 1445 sai->hclk = devm_clk_get_enabled(&pdev->dev, "hclk"); in rockchip_sai_probe() 1446 if (IS_ERR(sai->hclk)) in rockchip_sai_probe() 1447 return dev_err_probe(&pdev->dev, PTR_ERR(sai->hclk), in rockchip_sai_probe() 1448 "Failed to get hclk\ in rockchip_sai_probe() [all...] |
| /linux/drivers/spi/ |
| H A D | spi-rockchip-sfc.c | 177 struct clk *hclk; member 644 sfc->hclk = devm_clk_get(&pdev->dev, "hclk_sfc"); in rockchip_sfc_probe() 645 if (IS_ERR(sfc->hclk)) in rockchip_sfc_probe() 646 return dev_err_probe(&pdev->dev, PTR_ERR(sfc->hclk), in rockchip_sfc_probe() 660 ret = clk_prepare_enable(sfc->hclk); in rockchip_sfc_probe() 735 clk_disable_unprepare(sfc->hclk); in rockchip_sfc_probe() 751 clk_disable_unprepare(sfc->hclk); in rockchip_sfc_remove() 760 clk_disable_unprepare(sfc->hclk); in rockchip_sfc_runtime_suspend() 770 ret = clk_prepare_enable(sfc->hclk); in rockchip_sfc_runtime_resume() 776 clk_disable_unprepare(sfc->hclk); in rockchip_sfc_runtime_resume()
|
| /linux/drivers/usb/host/ |
| H A D | ohci-at91.c | 55 struct clk *hclk; member 79 clk_prepare_enable(ohci_at91->hclk); in at91_start_clock() 92 clk_disable_unprepare(ohci_at91->hclk); in at91_stop_clock() 221 ohci_at91->hclk = devm_clk_get(dev, "hclk"); in usb_hcd_at91_probe() 222 if (IS_ERR(ohci_at91->hclk)) { in usb_hcd_at91_probe() 224 retval = PTR_ERR(ohci_at91->hclk); in usb_hcd_at91_probe()
|
| /linux/drivers/cpufreq/ |
| H A D | highbank-cpufreq.c | 34 unsigned long action, void *hclk) in hb_cpufreq_clk_notify() argument 36 struct clk_notifier_data *clk_data = hclk; in hb_cpufreq_clk_notify()
|
| /linux/drivers/net/can/m_can/ |
| H A D | m_can_platform.c | 193 clk_disable_unprepare(mcan_class->hclk); in m_can_runtime_suspend() 204 err = clk_prepare_enable(mcan_class->hclk); in m_can_runtime_resume() 210 clk_disable_unprepare(mcan_class->hclk); in m_can_runtime_resume()
|
| /linux/drivers/soundwire/ |
| H A D | qcom.c | 203 struct clk *hclk; member 723 clk_prepare_enable(ctrl->hclk); in qcom_swrm_irq_handler() 856 clk_disable_unprepare(ctrl->hclk); in qcom_swrm_irq_handler() 1585 ctrl->hclk = devm_clk_get(dev, "iface"); 1586 if (IS_ERR(ctrl->hclk)) { 1587 ret = dev_err_probe(dev, PTR_ERR(ctrl->hclk), "unable to get iface clock\n"); 1591 clk_prepare_enable(ctrl->hclk); 1691 clk_disable_unprepare(ctrl->hclk); 1701 clk_disable_unprepare(ctrl->hclk); 1714 clk_prepare_enable(ctrl->hclk); [all …]
|
| /linux/arch/arm64/boot/dts/lg/ |
| H A D | lg1312.dtsi | 28 clock-names = "hclk", "pclk";
|
| H A D | lg1313.dtsi | 28 clock-names = "hclk", "pclk";
|
| /linux/arch/arm/boot/dts/microchip/ |
| H A D | sama7g5.dtsi | 386 clock-names = "hclk", "cclk"; 402 clock-names = "hclk", "cclk"; 418 clock-names = "hclk", "cclk"; 434 clock-names = "hclk", "cclk"; 450 clock-names = "hclk", "cclk"; 466 clock-names = "hclk", "cclk"; 868 clock-names = "pclk", "hclk", "tx_clk", "tsu_clk"; 880 clock-names = "pclk", "hclk";
|
| H A D | at91sam9x5_macb1.dtsi | 40 clock-names = "hclk", "pclk";
|
| H A D | sama5d3_emac.dtsi | 43 clock-names = "hclk", "pclk";
|
| H A D | at91sam9x5_macb0.dtsi | 52 clock-names = "hclk", "pclk";
|
| /linux/drivers/media/platform/rockchip/rga/ |
| H A D | rga.c | 717 ret = clk_prepare_enable(rga->hclk); in rga_enable_clocks() 736 clk_disable_unprepare(rga->hclk); in rga_disable_clocks() 786 rga->hclk = devm_clk_get(rga->dev, "hclk"); in rga_parse_dt() 787 if (IS_ERR(rga->hclk)) { in rga_parse_dt() 789 return PTR_ERR(rga->hclk); in rga_parse_dt()
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_drm_vop.c | 176 struct clk *hclk; member 584 ret = clk_enable(vop->hclk); in vop_core_clks_enable() 595 clk_disable(vop->hclk); in vop_core_clks_enable() 602 clk_disable(vop->hclk); in vop_core_clks_disable() 2006 vop->hclk = devm_clk_get(vop->dev, "hclk_vop"); in vop_initial() 2007 if (IS_ERR(vop->hclk)) { in vop_initial() 2009 return PTR_ERR(vop->hclk); in vop_initial() 2035 ret = clk_prepare_enable(vop->hclk); in vop_initial() 2094 clk_disable(vop->hclk); in vop_initial() 2106 clk_disable_unprepare(vop->hclk); in vop_initial() [all …]
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-am62-mcu.dtsi | 161 clock-names = "hclk", "cclk"; 173 clock-names = "hclk", "cclk";
|
| /linux/drivers/accel/amdxdna/ |
| H A D | aie2_pm.c | 63 while (ndev->priv->dpm_clk_tbl[ndev->max_dpm_level].hclk) in aie2_pm_init()
|