Home
last modified time | relevance | path

Searched refs:bus_clk (Results 1 – 25 of 41) sorted by relevance

12

/drivers/gpu/drm/sun4i/
Dsun6i_drc.c17 struct clk *bus_clk; member
45 drc->bus_clk = devm_clk_get(dev, "ahb"); in sun6i_drc_bind()
46 if (IS_ERR(drc->bus_clk)) { in sun6i_drc_bind()
48 ret = PTR_ERR(drc->bus_clk); in sun6i_drc_bind()
51 clk_prepare_enable(drc->bus_clk); in sun6i_drc_bind()
71 clk_disable_unprepare(drc->bus_clk); in sun6i_drc_bind()
84 clk_disable_unprepare(drc->bus_clk); in sun6i_drc_unbind()
Dsun8i_mixer.c417 mixer->bus_clk = devm_clk_get(dev, "bus"); in sun8i_mixer_bind()
418 if (IS_ERR(mixer->bus_clk)) { in sun8i_mixer_bind()
420 ret = PTR_ERR(mixer->bus_clk); in sun8i_mixer_bind()
423 clk_prepare_enable(mixer->bus_clk); in sun8i_mixer_bind()
503 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_bind()
517 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_unbind()
Dsun4i_hdmi_enc.c528 hdmi->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_hdmi_bind()
529 if (IS_ERR(hdmi->bus_clk)) { in sun4i_hdmi_bind()
531 ret = PTR_ERR(hdmi->bus_clk); in sun4i_hdmi_bind()
534 clk_prepare_enable(hdmi->bus_clk); in sun4i_hdmi_bind()
669 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_bind()
684 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_unbind()
Dsun4i_frontend.c597 frontend->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_frontend_bind()
598 if (IS_ERR(frontend->bus_clk)) { in sun4i_frontend_bind()
600 return PTR_ERR(frontend->bus_clk); in sun4i_frontend_bind()
654 clk_prepare_enable(frontend->bus_clk); in sun4i_frontend_runtime_resume()
679 clk_disable_unprepare(frontend->bus_clk); in sun4i_frontend_runtime_suspend()
Dsun4i_backend.c856 backend->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_backend_bind()
857 if (IS_ERR(backend->bus_clk)) { in sun4i_backend_bind()
859 ret = PTR_ERR(backend->bus_clk); in sun4i_backend_bind()
862 clk_prepare_enable(backend->bus_clk); in sun4i_backend_bind()
956 clk_disable_unprepare(backend->bus_clk); in sun4i_backend_bind()
976 clk_disable_unprepare(backend->bus_clk); in sun4i_backend_unbind()
/drivers/mmc/host/
Dsdhci-of-dwcmshc.c28 struct clk *bus_clk; member
152 priv->bus_clk = devm_clk_get(&pdev->dev, "bus"); in dwcmshc_probe()
153 if (!IS_ERR(priv->bus_clk)) in dwcmshc_probe()
154 clk_prepare_enable(priv->bus_clk); in dwcmshc_probe()
172 clk_disable_unprepare(priv->bus_clk); in dwcmshc_probe()
187 clk_disable_unprepare(priv->bus_clk); in dwcmshc_remove()
207 if (!IS_ERR(priv->bus_clk)) in dwcmshc_suspend()
208 clk_disable_unprepare(priv->bus_clk); in dwcmshc_suspend()
224 if (!IS_ERR(priv->bus_clk)) { in dwcmshc_resume()
225 ret = clk_prepare_enable(priv->bus_clk); in dwcmshc_resume()
/drivers/watchdog/
Dmv64x60_wdt.c57 static unsigned int bus_clk; variable
117 if (timeout > 0xFFFFFFFF / bus_clk) in mv64x60_wdt_set_timeout()
118 timeout = 0xFFFFFFFF / bus_clk; in mv64x60_wdt_set_timeout()
120 mv64x60_wdt_count = timeout * bus_clk >> 8; in mv64x60_wdt_set_timeout()
261 bus_clk = 133; /* in MHz */ in mv64x60_wdt_probe()
264 bus_clk = pdata->bus_clk; in mv64x60_wdt_probe()
271 bus_clk++; in mv64x60_wdt_probe()
272 bus_clk *= 1000000; /* convert to Hz */ in mv64x60_wdt_probe()
Dgef_wdt.c66 static unsigned int bus_clk; variable
126 if (timeout > 0xFFFFFFFF / bus_clk) in gef_wdt_set_timeout()
127 timeout = 0xFFFFFFFF / bus_clk; in gef_wdt_set_timeout()
130 gef_wdt_count = (timeout * bus_clk) >> 8; in gef_wdt_set_timeout()
268 bus_clk = 133; /* in MHz */ in gef_wdt_probe()
272 bus_clk = freq; in gef_wdt_probe()
/drivers/clk/sunxi-ng/
Dccu-sun9i-a80-usb.c96 struct clk *bus_clk; in sun9i_a80_usb_clk_probe() local
105 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun9i_a80_usb_clk_probe()
106 if (IS_ERR(bus_clk)) { in sun9i_a80_usb_clk_probe()
107 ret = PTR_ERR(bus_clk); in sun9i_a80_usb_clk_probe()
114 ret = clk_prepare_enable(bus_clk); in sun9i_a80_usb_clk_probe()
128 clk_disable_unprepare(bus_clk); in sun9i_a80_usb_clk_probe()
Dccu-sun9i-a80-de.c207 struct clk *bus_clk; in sun9i_a80_de_clk_probe() local
217 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun9i_a80_de_clk_probe()
218 if (IS_ERR(bus_clk)) { in sun9i_a80_de_clk_probe()
219 ret = PTR_ERR(bus_clk); in sun9i_a80_de_clk_probe()
235 ret = clk_prepare_enable(bus_clk); in sun9i_a80_de_clk_probe()
259 clk_disable_unprepare(bus_clk); in sun9i_a80_de_clk_probe()
Dccu-sun8i-de2.c284 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local
299 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sunxi_de2_clk_probe()
300 if (IS_ERR(bus_clk)) { in sunxi_de2_clk_probe()
301 ret = PTR_ERR(bus_clk); in sunxi_de2_clk_probe()
325 ret = clk_prepare_enable(bus_clk); in sunxi_de2_clk_probe()
356 clk_disable_unprepare(bus_clk); in sunxi_de2_clk_probe()
/drivers/usb/host/
Dxhci-histb.c37 struct clk *bus_clk; member
88 histb->bus_clk = devm_clk_get(dev, "bus"); in xhci_histb_clks_get()
89 if (IS_ERR(histb->bus_clk)) { in xhci_histb_clks_get()
91 return PTR_ERR(histb->bus_clk); in xhci_histb_clks_get()
119 ret = clk_prepare_enable(histb->bus_clk); in xhci_histb_host_enable()
152 clk_disable_unprepare(histb->bus_clk); in xhci_histb_host_enable()
164 clk_disable_unprepare(histb->bus_clk); in xhci_histb_host_disable()
/drivers/pci/controller/
Dpci-ftpci100.c127 struct clk *bus_clk; member
448 p->bus_clk = devm_clk_get_enabled(dev, "PCICLK"); in faraday_pci_probe()
449 if (IS_ERR(p->bus_clk)) in faraday_pci_probe()
450 return PTR_ERR(p->bus_clk); in faraday_pci_probe()
486 if (!IS_ERR(p->bus_clk)) { in faraday_pci_probe()
492 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
497 ret = clk_set_rate(p->bus_clk, 66000000); in faraday_pci_probe()
506 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
/drivers/i2c/busses/
Di2c-bcm2835.c66 struct clk *bus_clk; member
433 i2c_dev->bus_clk = bcm2835_i2c_register_div(&pdev->dev, mclk, i2c_dev); in bcm2835_i2c_probe()
435 if (IS_ERR(i2c_dev->bus_clk)) { in bcm2835_i2c_probe()
437 return PTR_ERR(i2c_dev->bus_clk); in bcm2835_i2c_probe()
448 ret = clk_set_rate_exclusive(i2c_dev->bus_clk, bus_clk_rate); in bcm2835_i2c_probe()
454 ret = clk_prepare_enable(i2c_dev->bus_clk); in bcm2835_i2c_probe()
504 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_remove()
505 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_remove()
/drivers/pci/controller/dwc/
Dpcie-histb.c57 struct clk *bus_clk; member
223 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_disable()
251 ret = clk_prepare_enable(hipcie->bus_clk); in histb_pcie_host_enable()
291 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_enable()
379 hipcie->bus_clk = devm_clk_get(dev, "bus"); in histb_pcie_probe()
380 if (IS_ERR(hipcie->bus_clk)) { in histb_pcie_probe()
382 return PTR_ERR(hipcie->bus_clk); in histb_pcie_probe()
Dpci-exynos.c61 struct clk *bus_clk; member
114 ep->clk_res->bus_clk = devm_clk_get(dev, "pcie_bus"); in exynos5440_pcie_get_clk_resources()
115 if (IS_ERR(ep->clk_res->bus_clk)) { in exynos5440_pcie_get_clk_resources()
117 return PTR_ERR(ep->clk_res->bus_clk); in exynos5440_pcie_get_clk_resources()
135 ret = clk_prepare_enable(ep->clk_res->bus_clk); in exynos5440_pcie_init_clk_resources()
151 clk_disable_unprepare(ep->clk_res->bus_clk); in exynos5440_pcie_deinit_clk_resources()
/drivers/pwm/
Dpwm-sun4i.c86 struct clk *bus_clk; member
433 pwm->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe()
434 if (IS_ERR(pwm->bus_clk)) in sun4i_pwm_probe()
435 return dev_err_probe(&pdev->dev, PTR_ERR(pwm->bus_clk), in sun4i_pwm_probe()
455 ret = clk_prepare_enable(pwm->bus_clk); in sun4i_pwm_probe()
482 clk_disable_unprepare(pwm->bus_clk); in sun4i_pwm_probe()
498 clk_disable_unprepare(pwm->bus_clk); in sun4i_pwm_remove()
/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_csi.c218 csi->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun4i_csi_probe()
219 if (IS_ERR(csi->bus_clk)) { in sun4i_csi_probe()
221 return PTR_ERR(csi->bus_clk); in sun4i_csi_probe()
332 clk_prepare_enable(csi->bus_clk); in sun4i_csi_runtime_resume()
348 clk_disable_unprepare(csi->bus_clk); in sun4i_csi_runtime_suspend()
/drivers/firmware/
Dqcom_scm.c33 struct clk *bus_clk; member
95 ret = clk_prepare_enable(__scm->bus_clk); in qcom_scm_clk_enable()
113 clk_disable_unprepare(__scm->bus_clk); in qcom_scm_clk_disable()
1228 scm->bus_clk = devm_clk_get(&pdev->dev, "bus"); in qcom_scm_probe()
1229 if (IS_ERR(scm->bus_clk)) { in qcom_scm_probe()
1230 if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1231 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1235 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1238 scm->bus_clk = NULL; in qcom_scm_probe()
/drivers/tty/serial/8250/
D8250_mtk.c73 struct clk *bus_clk; member
428 clk_disable_unprepare(data->bus_clk); in mtk8250_runtime_suspend()
444 err = clk_prepare_enable(data->bus_clk); in mtk8250_runtime_resume()
498 data->bus_clk = devm_clk_get(&pdev->dev, "bus"); in mtk8250_probe_of()
499 if (IS_ERR(data->bus_clk)) in mtk8250_probe_of()
500 return PTR_ERR(data->bus_clk); in mtk8250_probe_of()
/drivers/mtd/nand/raw/
Darasan-nand-controller.c188 struct clk *bus_clk; member
286 clk_disable_unprepare(nfc->bus_clk); in anfc_select_target()
287 ret = clk_set_rate(nfc->bus_clk, anand->clk); in anfc_select_target()
293 ret = clk_prepare_enable(nfc->bus_clk); in anfc_select_target()
1306 nfc->bus_clk = devm_clk_get(&pdev->dev, "bus"); in anfc_probe()
1307 if (IS_ERR(nfc->bus_clk)) in anfc_probe()
1308 return PTR_ERR(nfc->bus_clk); in anfc_probe()
1314 ret = clk_prepare_enable(nfc->bus_clk); in anfc_probe()
1327 clk_disable_unprepare(nfc->bus_clk); in anfc_probe()
1341 clk_disable_unprepare(nfc->bus_clk); in anfc_remove()
/drivers/video/fbdev/
Ds3c-fb.c205 struct clk *bus_clk; member
351 clk = clk_get_rate(sfb->bus_clk); in s3c_fb_calc_pixclk()
1393 sfb->bus_clk = devm_clk_get(dev, "lcd"); in s3c_fb_probe()
1394 if (IS_ERR(sfb->bus_clk)) { in s3c_fb_probe()
1396 return PTR_ERR(sfb->bus_clk); in s3c_fb_probe()
1399 clk_prepare_enable(sfb->bus_clk); in s3c_fb_probe()
1500 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_probe()
1526 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_remove()
1555 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_suspend()
1572 clk_prepare_enable(sfb->bus_clk); in s3c_fb_resume()
[all …]
Datmel_lcdfb.c48 struct clk *bus_clk; member
889 clk_prepare_enable(sinfo->bus_clk); in atmel_lcdfb_start_clock()
895 clk_disable_unprepare(sinfo->bus_clk); in atmel_lcdfb_stop_clock()
1091 sinfo->bus_clk = clk_get(dev, "hclk"); in atmel_lcdfb_probe()
1092 if (IS_ERR(sinfo->bus_clk)) { in atmel_lcdfb_probe()
1093 ret = PTR_ERR(sinfo->bus_clk); in atmel_lcdfb_probe()
1240 clk_put(sinfo->bus_clk); in atmel_lcdfb_probe()
1264 clk_put(sinfo->bus_clk); in atmel_lcdfb_remove()
/drivers/thermal/
Dsun8i_thermal.c87 struct clk *bus_clk; member
355 tmdev->bus_clk = devm_clk_get_enabled(&pdev->dev, "bus"); in sun8i_ths_resource_init()
356 if (IS_ERR(tmdev->bus_clk)) in sun8i_ths_resource_init()
357 return PTR_ERR(tmdev->bus_clk); in sun8i_ths_resource_init()
/drivers/gpu/drm/exynos/
Dexynos_drm_fimd.c174 struct clk *bus_clk; member
354 clk_prepare_enable(ctx->bus_clk); in fimd_clear_channels()
384 clk_disable_unprepare(ctx->bus_clk); in fimd_clear_channels()
1177 ctx->bus_clk = devm_clk_get(dev, "fimd"); in fimd_probe()
1178 if (IS_ERR(ctx->bus_clk)) { in fimd_probe()
1180 return PTR_ERR(ctx->bus_clk); in fimd_probe()
1247 clk_disable_unprepare(ctx->bus_clk); in exynos_fimd_suspend()
1257 ret = clk_prepare_enable(ctx->bus_clk); in exynos_fimd_resume()

12