/drivers/cpufreq/ |
D | s3c2412-cpufreq.c | 44 static struct clk *hclk; variable 52 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local 57 hclk_max = cfg->max.hclk; in s3c2412_cpufreq_calcdivs() 69 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs() 85 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs() 91 cfg->freq.armclk = dvs ? hclk : armdiv_clk; in s3c2412_cpufreq_calcdivs() 94 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs() 99 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs() 101 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs() 104 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs() [all …]
|
D | s3c2440-cpufreq.c | 47 static struct clk *hclk; variable 70 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local 75 hclk_max = cfg->max.hclk; in s3c2440_cpufreq_calcdivs() 93 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs() 94 if (hclk <= hclk_max || within_khz(hclk, hclk_max)) in s3c2440_cpufreq_calcdivs() 98 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs() 103 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs() 105 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs() 117 if (armclk < hclk) in s3c2440_cpufreq_calcdivs() 118 armclk = hclk; in s3c2440_cpufreq_calcdivs() [all …]
|
D | s3c2410-cpufreq.c | 45 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local 50 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs() 57 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 58 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs() 60 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs() 65 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 66 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs() 85 .hclk = 100000000, 138 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add()
|
D | s3c2416-cpufreq.c | 27 struct clk *hclk; member 131 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_enter_dvs() 132 ret = clk_set_parent(s3c_freq->armclk, s3c_freq->hclk); in s3c2416_cpufreq_enter_dvs() 189 if (clk_get_rate(s3c_freq->armdiv) > clk_get_rate(s3c_freq->hclk)) { in s3c2416_cpufreq_leave_dvs() 191 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs() 193 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs() 196 clk_get_rate(s3c_freq->hclk) / 1000, ret); in s3c2416_cpufreq_leave_dvs() 242 ? clk_get_rate(s3c_freq->hclk) / 1000 in s3c2416_cpufreq_set_target() 397 s3c_freq->hclk = clk_get(NULL, "hclk"); in s3c2416_cpufreq_driver_init() 398 if (IS_ERR(s3c_freq->hclk)) { in s3c2416_cpufreq_driver_init() [all …]
|
D | s3c24xx-cpufreq.c | 60 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local 63 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur() 70 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur() 72 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur() 81 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc() 85 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc() 101 cfg->freq.hclk, cfg->divs.h_divisor, in s3c_cpufreq_show() 183 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() 206 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk); in s3c_cpufreq_settarget() 219 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() [all …]
|
D | s3c24xx-cpufreq-debugfs.c | 33 f->fclk, f->hclk, f->pclk, f->armclk); in show_max() 77 cfg->freq.hclk, print_ns(cfg->freq.hclk_tns)); in info_show() 78 seq_printf(seq, " PCLK %ld Hz\n", cfg->freq.hclk); in info_show()
|
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()
|
/drivers/soc/qcom/ |
D | qcom_gsbi.c | 111 struct clk *hclk; member 183 gsbi->hclk = devm_clk_get(&pdev->dev, "iface"); in gsbi_probe() 184 if (IS_ERR(gsbi->hclk)) in gsbi_probe() 185 return PTR_ERR(gsbi->hclk); in gsbi_probe() 187 clk_prepare_enable(gsbi->hclk); in gsbi_probe() 218 clk_disable_unprepare(gsbi->hclk); in gsbi_probe() 226 clk_disable_unprepare(gsbi->hclk); in gsbi_remove()
|
/drivers/net/ethernet/cadence/ |
D | macb_pci.c | 69 plat_data.hclk = clk_register_fixed_rate(&pdev->dev, "hclk", NULL, 0, in macb_probe() 71 if (IS_ERR(plat_data.hclk)) { in macb_probe() 72 err = PTR_ERR(plat_data.hclk); in macb_probe() 100 clk_unregister(plat_data.hclk); in macb_probe() 115 clk_unregister(plat_data->hclk); in macb_remove()
|
D | macb_main.c | 3802 static void macb_clks_disable(struct clk *pclk, struct clk *hclk, struct clk *tx_clk, in macb_clks_disable() argument 3809 { .clk = hclk, }, in macb_clks_disable() 3817 struct clk **hclk, struct clk **tx_clk, in macb_clk_init() argument 3826 *hclk = pdata->hclk; in macb_clk_init() 3829 *hclk = devm_clk_get(&pdev->dev, "hclk"); in macb_clk_init() 3837 if (IS_ERR_OR_NULL(*hclk)) in macb_clk_init() 3839 IS_ERR(*hclk) ? PTR_ERR(*hclk) : -ENODEV, in macb_clk_init() 3860 err = clk_prepare_enable(*hclk); in macb_clk_init() 3893 clk_disable_unprepare(*hclk); in macb_clk_init() 4395 struct clk **hclk, struct clk **tx_clk, in at91ether_clk_init() argument [all …]
|
/drivers/crypto/rockchip/ |
D | rk3288_crypto.c | 37 err = clk_prepare_enable(dev->hclk); in rk_crypto_enable_clk() 51 clk_disable_unprepare(dev->hclk); in rk_crypto_enable_clk() 63 clk_disable_unprepare(dev->hclk); in rk_crypto_disable_clk() 190 crypto_info->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_crypto_probe() 191 if (IS_ERR(crypto_info->hclk)) { in rk_crypto_probe() 192 err = PTR_ERR(crypto_info->hclk); in rk_crypto_probe()
|
/drivers/clk/samsung/ |
D | clk-s5pv210-audss.c | 71 struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; in s5pv210_audss_clk_probe() local 88 hclk = devm_clk_get(&pdev->dev, "hclk"); in s5pv210_audss_clk_probe() 89 if (IS_ERR(hclk)) { in s5pv210_audss_clk_probe() 91 return PTR_ERR(hclk); in s5pv210_audss_clk_probe() 142 hclk_p = __clk_get_name(hclk); in s5pv210_audss_clk_probe()
|
/drivers/mmc/host/ |
D | tmio_mmc.c | 62 divisor = host->pdata->hclk / new_clock; in tmio_mmc_set_clock() 131 if (!pdata || !pdata->hclk) in tmio_mmc_probe() 164 host->mmc->f_max = pdata->hclk; in tmio_mmc_probe() 165 host->mmc->f_min = pdata->hclk / 512; in tmio_mmc_probe()
|
/drivers/spi/ |
D | spi-sun4i.c | 80 struct clk *hclk; member 393 ret = clk_prepare_enable(sspi->hclk); in sun4i_spi_runtime_resume() 411 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_resume() 422 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_suspend() 473 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_spi_probe() 474 if (IS_ERR(sspi->hclk)) { in sun4i_spi_probe() 476 ret = PTR_ERR(sspi->hclk); in sun4i_spi_probe()
|
D | spi-rockchip-sfc.c | 175 struct clk *hclk; member 590 sfc->hclk = devm_clk_get(&pdev->dev, "hclk_sfc"); in rockchip_sfc_probe() 591 if (IS_ERR(sfc->hclk)) { in rockchip_sfc_probe() 593 return PTR_ERR(sfc->hclk); in rockchip_sfc_probe() 613 ret = clk_prepare_enable(sfc->hclk); in rockchip_sfc_probe() 656 clk_disable_unprepare(sfc->hclk); in rockchip_sfc_probe() 669 clk_disable_unprepare(sfc->hclk); in rockchip_sfc_remove()
|
D | spi-sun6i.c | 93 struct clk *hclk; member 518 ret = clk_prepare_enable(sspi->hclk); in sun6i_spi_runtime_resume() 544 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_resume() 556 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_suspend() 625 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_spi_probe() 626 if (IS_ERR(sspi->hclk)) { in sun6i_spi_probe() 628 ret = PTR_ERR(sspi->hclk); in sun6i_spi_probe()
|
/drivers/slimbus/ |
D | qcom-ctrl.c | 117 struct clk *hclk; member 282 clk_prepare_enable(ctrl->hclk); in qcom_clk_pause_wakeup() 498 ctrl->hclk = devm_clk_get(&pdev->dev, "iface"); in qcom_slim_probe() 499 if (IS_ERR(ctrl->hclk)) in qcom_slim_probe() 500 return PTR_ERR(ctrl->hclk); in qcom_slim_probe() 565 ret = clk_prepare_enable(ctrl->hclk); in qcom_slim_probe() 626 clk_disable_unprepare(ctrl->hclk); in qcom_slim_probe() 640 clk_disable_unprepare(ctrl->hclk); in qcom_slim_remove() 661 clk_disable_unprepare(ctrl->hclk); in qcom_slim_runtime_suspend()
|
/drivers/usb/host/ |
D | ohci-at91.c | 54 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() 211 ohci_at91->hclk = devm_clk_get(dev, "hclk"); in usb_hcd_at91_probe() 212 if (IS_ERR(ohci_at91->hclk)) { in usb_hcd_at91_probe() 214 retval = PTR_ERR(ohci_at91->hclk); in usb_hcd_at91_probe()
|
/drivers/net/can/m_can/ |
D | m_can_platform.c | 185 clk_disable_unprepare(mcan_class->hclk); in m_can_runtime_suspend() 196 err = clk_prepare_enable(mcan_class->hclk); in m_can_runtime_resume() 202 clk_disable_unprepare(mcan_class->hclk); in m_can_runtime_resume()
|
D | m_can.h | 80 struct clk *hclk; member
|
/drivers/gpu/drm/rockchip/ |
D | rk3066_hdmi.c | 46 struct clk *hclk; member 763 hdmi->hclk = devm_clk_get(dev, "hclk"); in rk3066_hdmi_bind() 764 if (IS_ERR(hdmi->hclk)) { in rk3066_hdmi_bind() 766 return PTR_ERR(hdmi->hclk); in rk3066_hdmi_bind() 769 ret = clk_prepare_enable(hdmi->hclk); in rk3066_hdmi_bind() 823 clk_disable_unprepare(hdmi->hclk); in rk3066_hdmi_bind() 837 clk_disable_unprepare(hdmi->hclk); in rk3066_hdmi_unbind()
|
D | rockchip_drm_vop.c | 171 struct clk *hclk; member 558 ret = clk_enable(vop->hclk); in vop_core_clks_enable() 569 clk_disable(vop->hclk); in vop_core_clks_enable() 576 clk_disable(vop->hclk); in vop_core_clks_disable() 1931 vop->hclk = devm_clk_get(vop->dev, "hclk_vop"); in vop_initial() 1932 if (IS_ERR(vop->hclk)) { in vop_initial() 1934 return PTR_ERR(vop->hclk); in vop_initial() 1960 ret = clk_prepare_enable(vop->hclk); in vop_initial() 2019 clk_disable(vop->hclk); in vop_initial() 2031 clk_disable_unprepare(vop->hclk); in vop_initial() [all …]
|
/drivers/media/platform/rockchip/rga/ |
D | rga.c | 712 ret = clk_prepare_enable(rga->hclk); in rga_enable_clocks() 731 clk_disable_unprepare(rga->hclk); in rga_disable_clocks() 781 rga->hclk = devm_clk_get(rga->dev, "hclk"); in rga_parse_dt() 782 if (IS_ERR(rga->hclk)) { in rga_parse_dt() 784 return PTR_ERR(rga->hclk); in rga_parse_dt()
|
D | rga.h | 73 struct clk *hclk; member
|
/drivers/soundwire/ |
D | qcom.c | 135 struct clk *hclk; member 1253 ctrl->hclk = devm_clk_get(dev, "iface"); 1254 if (IS_ERR(ctrl->hclk)) { 1255 ret = PTR_ERR(ctrl->hclk); 1259 clk_prepare_enable(ctrl->hclk); 1327 clk_disable_unprepare(ctrl->hclk); 1337 clk_disable_unprepare(ctrl->hclk);
|