Home
last modified time | relevance | path

Searched refs:bus_clk (Results 1 – 25 of 44) 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.c444 mixer->bus_clk = devm_clk_get(dev, "bus"); in sun8i_mixer_bind()
445 if (IS_ERR(mixer->bus_clk)) { in sun8i_mixer_bind()
447 ret = PTR_ERR(mixer->bus_clk); in sun8i_mixer_bind()
450 clk_prepare_enable(mixer->bus_clk); in sun8i_mixer_bind()
530 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_bind()
544 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_unbind()
Dsun4i_hdmi_enc.c527 hdmi->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_hdmi_bind()
528 if (IS_ERR(hdmi->bus_clk)) { in sun4i_hdmi_bind()
530 ret = PTR_ERR(hdmi->bus_clk); in sun4i_hdmi_bind()
533 clk_prepare_enable(hdmi->bus_clk); in sun4i_hdmi_bind()
668 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_bind()
683 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_unbind()
Dsun4i_frontend.c594 frontend->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_frontend_bind()
595 if (IS_ERR(frontend->bus_clk)) { in sun4i_frontend_bind()
597 return PTR_ERR(frontend->bus_clk); in sun4i_frontend_bind()
651 clk_prepare_enable(frontend->bus_clk); in sun4i_frontend_runtime_resume()
676 clk_disable_unprepare(frontend->bus_clk); in sun4i_frontend_runtime_suspend()
Dsun4i_backend.c834 backend->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_backend_bind()
835 if (IS_ERR(backend->bus_clk)) { in sun4i_backend_bind()
837 ret = PTR_ERR(backend->bus_clk); in sun4i_backend_bind()
840 clk_prepare_enable(backend->bus_clk); in sun4i_backend_bind()
934 clk_disable_unprepare(backend->bus_clk); in sun4i_backend_bind()
954 clk_disable_unprepare(backend->bus_clk); in sun4i_backend_unbind()
/drivers/clk/sunxi-ng/
Dccu-sun9i-a80-usb.c95 struct clk *bus_clk; in sun9i_a80_usb_clk_probe() local
103 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun9i_a80_usb_clk_probe()
104 if (IS_ERR(bus_clk)) in sun9i_a80_usb_clk_probe()
105 return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk), in sun9i_a80_usb_clk_probe()
109 ret = clk_prepare_enable(bus_clk); in sun9i_a80_usb_clk_probe()
122 clk_disable_unprepare(bus_clk); in sun9i_a80_usb_clk_probe()
Dccu-sun9i-a80-de.c206 struct clk *bus_clk; in sun9i_a80_de_clk_probe() local
215 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun9i_a80_de_clk_probe()
216 if (IS_ERR(bus_clk)) in sun9i_a80_de_clk_probe()
217 return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk), in sun9i_a80_de_clk_probe()
226 ret = clk_prepare_enable(bus_clk); in sun9i_a80_de_clk_probe()
249 clk_disable_unprepare(bus_clk); in sun9i_a80_de_clk_probe()
Dccu-sun8i-de2.c244 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local
258 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sunxi_de2_clk_probe()
259 if (IS_ERR(bus_clk)) in sunxi_de2_clk_probe()
260 return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk), in sunxi_de2_clk_probe()
274 ret = clk_prepare_enable(bus_clk); in sunxi_de2_clk_probe()
305 clk_disable_unprepare(bus_clk); in sunxi_de2_clk_probe()
/drivers/watchdog/
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()
Ds3c2410_wdt.c167 struct clk *bus_clk; /* for register interface (PCLK) */ member
300 return clk_get_rate(wdt->src_clk ? wdt->src_clk : wdt->bus_clk); in s3c2410wdt_get_freq()
731 wdt->bus_clk = devm_clk_get(dev, "watchdog"); in s3c2410wdt_probe()
732 if (IS_ERR(wdt->bus_clk)) { in s3c2410wdt_probe()
734 return PTR_ERR(wdt->bus_clk); in s3c2410wdt_probe()
737 ret = clk_prepare_enable(wdt->bus_clk); in s3c2410wdt_probe()
849 clk_disable_unprepare(wdt->bus_clk); in s3c2410wdt_probe()
868 clk_disable_unprepare(wdt->bus_clk); in s3c2410wdt_remove()
/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()
501 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_probe()
503 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_probe()
512 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_remove()
513 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_remove()
/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/mmc/host/
Dsdhci-of-dwcmshc.c89 struct clk *bus_clk; member
495 priv->bus_clk = devm_clk_get(dev, "bus"); in dwcmshc_probe()
496 if (!IS_ERR(priv->bus_clk)) in dwcmshc_probe()
497 clk_prepare_enable(priv->bus_clk); in dwcmshc_probe()
550 clk_disable_unprepare(priv->bus_clk); in dwcmshc_probe()
569 clk_disable_unprepare(priv->bus_clk); in dwcmshc_remove()
592 if (!IS_ERR(priv->bus_clk)) in dwcmshc_suspend()
593 clk_disable_unprepare(priv->bus_clk); in dwcmshc_suspend()
614 if (!IS_ERR(priv->bus_clk)) { in dwcmshc_resume()
615 ret = clk_prepare_enable(priv->bus_clk); in dwcmshc_resume()
/drivers/pci/controller/
Dpci-ftpci100.c120 struct clk *bus_clk; member
435 p->bus_clk = devm_clk_get_enabled(dev, "PCICLK"); in faraday_pci_probe()
436 if (IS_ERR(p->bus_clk)) in faraday_pci_probe()
437 return PTR_ERR(p->bus_clk); in faraday_pci_probe()
473 if (!IS_ERR(p->bus_clk)) { in faraday_pci_probe()
479 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
484 ret = clk_set_rate(p->bus_clk, 66000000); in faraday_pci_probe()
493 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
/drivers/pci/controller/dwc/
Dpcie-histb.c57 struct clk *bus_clk; member
213 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_disable()
241 ret = clk_prepare_enable(hipcie->bus_clk); in histb_pcie_host_enable()
281 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_enable()
370 hipcie->bus_clk = devm_clk_get(dev, "bus"); in histb_pcie_probe()
371 if (IS_ERR(hipcie->bus_clk)) { in histb_pcie_probe()
373 return PTR_ERR(hipcie->bus_clk); in histb_pcie_probe()
Dpci-exynos.c58 struct clk *bus_clk; member
74 ret = clk_prepare_enable(ep->bus_clk); in exynos_pcie_init_clk_resources()
90 clk_disable_unprepare(ep->bus_clk); in exynos_pcie_deinit_clk_resources()
341 ep->bus_clk = devm_clk_get(dev, "pcie_bus"); in exynos_pcie_probe()
342 if (IS_ERR(ep->bus_clk)) { in exynos_pcie_probe()
344 return PTR_ERR(ep->bus_clk); in exynos_pcie_probe()
/drivers/pwm/
Dpwm-sun4i.c86 struct clk *bus_clk; member
425 sun4ichip->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe()
426 if (IS_ERR(sun4ichip->bus_clk)) in sun4i_pwm_probe()
427 return dev_err_probe(&pdev->dev, PTR_ERR(sun4ichip->bus_clk), in sun4i_pwm_probe()
447 ret = clk_prepare_enable(sun4ichip->bus_clk); in sun4i_pwm_probe()
471 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_probe()
484 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_remove()
/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_csi.c187 csi->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun4i_csi_probe()
188 if (IS_ERR(csi->bus_clk)) { in sun4i_csi_probe()
190 return PTR_ERR(csi->bus_clk); in sun4i_csi_probe()
301 clk_prepare_enable(csi->bus_clk); in sun4i_csi_runtime_resume()
317 clk_disable_unprepare(csi->bus_clk); in sun4i_csi_runtime_suspend()
/drivers/rtc/
Drtc-sun6i.c740 struct clk *bus_clk = data; in sun6i_rtc_bus_clk_cleanup() local
742 clk_disable_unprepare(bus_clk); in sun6i_rtc_bus_clk_cleanup()
749 struct clk *bus_clk; in sun6i_rtc_probe() local
752 bus_clk = devm_clk_get_optional(dev, "bus"); in sun6i_rtc_probe()
753 if (IS_ERR(bus_clk)) in sun6i_rtc_probe()
754 return PTR_ERR(bus_clk); in sun6i_rtc_probe()
756 if (bus_clk) { in sun6i_rtc_probe()
757 ret = clk_prepare_enable(bus_clk); in sun6i_rtc_probe()
762 bus_clk); in sun6i_rtc_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/video/fbdev/
Ds3c-fb.c206 struct clk *bus_clk; member
352 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()
1395 return dev_err_probe(dev, PTR_ERR(sfb->bus_clk), in s3c_fb_probe()
1398 clk_prepare_enable(sfb->bus_clk); in s3c_fb_probe()
1498 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_probe()
1524 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_remove()
1553 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_suspend()
1570 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/firmware/
Dqcom_scm.c34 struct clk *bus_clk; member
87 ret = clk_prepare_enable(__scm->bus_clk); in qcom_scm_clk_enable()
105 clk_disable_unprepare(__scm->bus_clk); in qcom_scm_clk_disable()
1386 scm->bus_clk = devm_clk_get(&pdev->dev, "bus"); in qcom_scm_probe()
1387 if (IS_ERR(scm->bus_clk)) { in qcom_scm_probe()
1388 if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1389 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1393 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1396 scm->bus_clk = NULL; in qcom_scm_probe()
/drivers/mtd/nand/raw/
Darasan-nand-controller.c213 struct clk *bus_clk; member
350 clk_disable_unprepare(nfc->bus_clk); in anfc_select_target()
351 ret = clk_set_rate(nfc->bus_clk, anand->clk); in anfc_select_target()
357 ret = clk_prepare_enable(nfc->bus_clk); in anfc_select_target()
1474 nfc->bus_clk = devm_clk_get(&pdev->dev, "bus"); in anfc_probe()
1475 if (IS_ERR(nfc->bus_clk)) in anfc_probe()
1476 return PTR_ERR(nfc->bus_clk); in anfc_probe()
1482 ret = clk_prepare_enable(nfc->bus_clk); in anfc_probe()
1503 clk_disable_unprepare(nfc->bus_clk); in anfc_probe()
1517 clk_disable_unprepare(nfc->bus_clk); in anfc_remove()
/drivers/thermal/
Dsun8i_thermal.c88 struct clk *bus_clk; member
356 tmdev->bus_clk = devm_clk_get_enabled(&pdev->dev, "bus"); in sun8i_ths_resource_init()
357 if (IS_ERR(tmdev->bus_clk)) in sun8i_ths_resource_init()
358 return PTR_ERR(tmdev->bus_clk); in sun8i_ths_resource_init()

12