/drivers/cpufreq/ |
D | s3c2412-cpufreq.c | 38 static struct clk *hclk; variable 46 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local 51 hclk_max = cfg->max.hclk; in s3c2412_cpufreq_calcdivs() 63 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs() 79 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs() 85 cfg->freq.armclk = dvs ? hclk : armdiv_clk; in s3c2412_cpufreq_calcdivs() 88 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs() 93 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs() 95 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs() 98 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs() [all …]
|
D | s3c2440-cpufreq.c | 37 static struct clk *hclk; variable 60 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local 65 hclk_max = cfg->max.hclk; in s3c2440_cpufreq_calcdivs() 83 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs() 84 if (hclk <= hclk_max || within_khz(hclk, hclk_max)) in s3c2440_cpufreq_calcdivs() 88 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs() 93 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs() 95 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs() 107 if (armclk < hclk) in s3c2440_cpufreq_calcdivs() 108 armclk = hclk; in s3c2440_cpufreq_calcdivs() [all …]
|
D | s3c2410-cpufreq.c | 48 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local 53 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs() 60 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 61 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs() 63 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs() 68 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 69 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs() 88 .hclk = 100000000, 141 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add()
|
D | s3c2416-cpufreq.c | 30 struct clk *hclk; member 134 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_enter_dvs() 135 ret = clk_set_parent(s3c_freq->armclk, s3c_freq->hclk); in s3c2416_cpufreq_enter_dvs() 192 if (clk_get_rate(s3c_freq->armdiv) > clk_get_rate(s3c_freq->hclk)) { in s3c2416_cpufreq_leave_dvs() 194 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs() 196 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs() 199 clk_get_rate(s3c_freq->hclk) / 1000, ret); in s3c2416_cpufreq_leave_dvs() 245 ? clk_get_rate(s3c_freq->hclk) / 1000 in s3c2416_cpufreq_set_target() 390 s3c_freq->hclk = clk_get(NULL, "hclk"); in s3c2416_cpufreq_driver_init() 391 if (IS_ERR(s3c_freq->hclk)) { in s3c2416_cpufreq_driver_init() [all …]
|
D | s3c24xx-cpufreq.c | 67 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local 70 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur() 77 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur() 79 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur() 88 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc() 92 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc() 108 cfg->freq.hclk, cfg->divs.h_divisor, in s3c_cpufreq_show() 190 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() 213 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk); in s3c_cpufreq_settarget() 226 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() [all …]
|
D | s3c24xx-cpufreq-debugfs.c | 36 f->fclk, f->hclk, f->pclk, f->armclk); in show_max() 91 cfg->freq.hclk, print_ns(cfg->freq.hclk_tns)); in info_show() 92 seq_printf(seq, " PCLK %ld Hz\n", cfg->freq.hclk); in info_show()
|
D | highbank-cpufreq.c | 37 unsigned long action, void *hclk) in hb_cpufreq_clk_notify() argument 39 struct clk_notifier_data *clk_data = hclk; in hb_cpufreq_clk_notify()
|
/drivers/soc/qcom/ |
D | qcom_gsbi.c | 119 struct clk *hclk; member 191 gsbi->hclk = devm_clk_get(&pdev->dev, "iface"); in gsbi_probe() 192 if (IS_ERR(gsbi->hclk)) in gsbi_probe() 193 return PTR_ERR(gsbi->hclk); in gsbi_probe() 195 clk_prepare_enable(gsbi->hclk); in gsbi_probe() 231 clk_disable_unprepare(gsbi->hclk); in gsbi_remove()
|
/drivers/clk/samsung/ |
D | clk-s5pv210-audss.c | 74 struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; in s5pv210_audss_clk_probe() local 92 hclk = devm_clk_get(&pdev->dev, "hclk"); in s5pv210_audss_clk_probe() 93 if (IS_ERR(hclk)) { in s5pv210_audss_clk_probe() 95 return PTR_ERR(hclk); in s5pv210_audss_clk_probe() 146 hclk_p = __clk_get_name(hclk); in s5pv210_audss_clk_probe()
|
/drivers/spi/ |
D | spi-sun4i.c | 79 struct clk *hclk; member 338 ret = clk_prepare_enable(sspi->hclk); in sun4i_spi_runtime_resume() 356 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_resume() 367 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_suspend() 421 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_spi_probe() 422 if (IS_ERR(sspi->hclk)) { in sun4i_spi_probe() 424 ret = PTR_ERR(sspi->hclk); in sun4i_spi_probe()
|
D | spi-sun6i.c | 84 struct clk *hclk; member 320 ret = clk_prepare_enable(sspi->hclk); in sun6i_spi_runtime_resume() 346 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_resume() 358 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_suspend() 412 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_spi_probe() 413 if (IS_ERR(sspi->hclk)) { in sun6i_spi_probe() 415 ret = PTR_ERR(sspi->hclk); in sun6i_spi_probe()
|
/drivers/crypto/rockchip/ |
D | rk3288_crypto.c | 39 err = clk_prepare_enable(dev->hclk); in rk_crypto_enable_clk() 53 clk_disable_unprepare(dev->hclk); in rk_crypto_enable_clk() 65 clk_disable_unprepare(dev->hclk); in rk_crypto_disable_clk() 326 crypto_info->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_crypto_probe() 327 if (IS_ERR(crypto_info->hclk)) { in rk_crypto_probe() 328 err = PTR_ERR(crypto_info->hclk); in rk_crypto_probe()
|
D | rk3288_crypto.h | 186 struct clk *hclk; member
|
/drivers/net/can/m_can/ |
D | m_can.c | 284 struct clk *hclk; member 546 err = clk_prepare_enable(priv->hclk); in m_can_get_berr_counter() 552 clk_disable_unprepare(priv->hclk); in m_can_get_berr_counter() 559 clk_disable_unprepare(priv->hclk); in m_can_get_berr_counter() 974 err = clk_prepare_enable(priv->hclk); in m_can_open() 1011 clk_disable_unprepare(priv->hclk); in m_can_open() 1022 clk_disable_unprepare(priv->hclk); in m_can_stop() 1188 struct clk *hclk, *cclk; in m_can_plat_probe() local 1191 hclk = devm_clk_get(&pdev->dev, "hclk"); in m_can_plat_probe() 1193 if (IS_ERR(hclk) || IS_ERR(cclk)) { in m_can_plat_probe() [all …]
|
/drivers/usb/host/ |
D | ohci-at91.c | 54 struct clk *hclk; member 81 clk_prepare_enable(ohci_at91->hclk); in at91_start_clock() 94 clk_disable_unprepare(ohci_at91->hclk); in at91_stop_clock() 208 ohci_at91->hclk = devm_clk_get(dev, "hclk"); in usb_hcd_at91_probe() 209 if (IS_ERR(ohci_at91->hclk)) { in usb_hcd_at91_probe() 211 retval = PTR_ERR(ohci_at91->hclk); in usb_hcd_at91_probe()
|
/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.c | 137 struct clk *hclk; member 509 ret = clk_enable(vop->hclk); in vop_enable() 556 clk_disable(vop->hclk); in vop_enable() 618 clk_disable(vop->hclk); in vop_crtc_disable() 1335 vop->hclk = devm_clk_get(vop->dev, "hclk_vop"); in vop_initial() 1336 if (IS_ERR(vop->hclk)) { in vop_initial() 1338 return PTR_ERR(vop->hclk); in vop_initial() 1364 ret = clk_prepare_enable(vop->hclk); in vop_initial() 1418 clk_disable(vop->hclk); in vop_initial() 1430 clk_disable_unprepare(vop->hclk); in vop_initial()
|
/drivers/net/ethernet/cadence/ |
D | macb.c | 2358 struct clk **hclk, struct clk **tx_clk, in macb_clk_init() argument 2370 *hclk = devm_clk_get(&pdev->dev, "hclk"); in macb_clk_init() 2371 if (IS_ERR(*hclk)) { in macb_clk_init() 2372 err = PTR_ERR(*hclk); in macb_clk_init() 2391 err = clk_prepare_enable(*hclk); in macb_clk_init() 2415 clk_disable_unprepare(*hclk); in macb_clk_init() 2810 struct clk **hclk, struct clk **tx_clk, in at91ether_clk_init() argument 2815 *hclk = NULL; in at91ether_clk_init() 2947 struct clk *pclk, *hclk = NULL, *tx_clk = NULL, *rx_clk = NULL; in macb_probe() local 2975 err = clk_init(pdev, &pclk, &hclk, &tx_clk, &rx_clk); in macb_probe() [all …]
|
D | macb.h | 775 struct clk **hclk, struct clk **tx_clk, 821 struct clk *hclk; member
|
/drivers/mmc/host/ |
D | tmio_mmc.c | 71 if (!pdata || !pdata->hclk) in tmio_mmc_probe()
|
/drivers/usb/gadget/udc/ |
D | atmel_usba_udc.c | 1739 ret = clk_prepare_enable(udc->hclk); in start_clock() 1754 clk_disable_unprepare(udc->hclk); in stop_clock() 2090 struct clk *pclk, *hclk; in usba_udc_probe() local 2113 hclk = devm_clk_get(&pdev->dev, "hclk"); in usba_udc_probe() 2114 if (IS_ERR(hclk)) in usba_udc_probe() 2115 return PTR_ERR(hclk); in usba_udc_probe() 2121 udc->hclk = hclk; in usba_udc_probe()
|
D | atmel_usba_udc.h | 342 struct clk *hclk; member
|
/drivers/mfd/ |
D | tc6387xb.c | 122 .hclk = 24000000,
|
D | t7l66xb.c | 145 .hclk = 24000000,
|
D | tc6393xb.c | 391 .hclk = 24000000,
|
D | asic3.c | 721 .hclk = 24576000,
|