/drivers/gpu/drm/sun4i/ |
D | sun6i_drc.c | 17 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()
|
D | sun8i_mixer.c | 446 mixer->bus_clk = devm_clk_get(dev, "bus"); in sun8i_mixer_bind() 447 if (IS_ERR(mixer->bus_clk)) { in sun8i_mixer_bind() 449 ret = PTR_ERR(mixer->bus_clk); in sun8i_mixer_bind() 452 clk_prepare_enable(mixer->bus_clk); in sun8i_mixer_bind() 532 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_bind() 546 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_unbind()
|
D | sun4i_hdmi_enc.c | 520 hdmi->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_hdmi_bind() 521 if (IS_ERR(hdmi->bus_clk)) { in sun4i_hdmi_bind() 523 ret = PTR_ERR(hdmi->bus_clk); in sun4i_hdmi_bind() 526 clk_prepare_enable(hdmi->bus_clk); in sun4i_hdmi_bind() 661 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_bind() 676 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_unbind()
|
D | sun4i_frontend.c | 594 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() 649 clk_prepare_enable(frontend->bus_clk); in sun4i_frontend_runtime_resume() 674 clk_disable_unprepare(frontend->bus_clk); in sun4i_frontend_runtime_suspend()
|
D | sun4i_backend.c | 834 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/ |
D | ccu-sun9i-a80-usb.c | 95 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()
|
D | ccu-sun9i-a80-de.c | 206 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()
|
D | ccu-sun8i-de2.c | 244 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/ |
D | gef_wdt.c | 66 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()
|
D | s3c2410_wdt.c | 166 struct clk *bus_clk; /* for register interface (PCLK) */ member 299 return clk_get_rate(wdt->src_clk ? wdt->src_clk : wdt->bus_clk); in s3c2410wdt_get_freq() 659 wdt->bus_clk = devm_clk_get_enabled(dev, "watchdog"); in s3c2410wdt_probe() 660 if (IS_ERR(wdt->bus_clk)) in s3c2410wdt_probe() 661 return dev_err_probe(dev, PTR_ERR(wdt->bus_clk), "failed to get bus clock\n"); in s3c2410wdt_probe()
|
/drivers/i2c/busses/ |
D | i2c-bcm2835.c | 66 struct clk *bus_clk; member 431 i2c_dev->bus_clk = bcm2835_i2c_register_div(&pdev->dev, mclk, i2c_dev); in bcm2835_i2c_probe() 433 if (IS_ERR(i2c_dev->bus_clk)) in bcm2835_i2c_probe() 434 return dev_err_probe(&pdev->dev, PTR_ERR(i2c_dev->bus_clk), in bcm2835_i2c_probe() 445 ret = clk_set_rate_exclusive(i2c_dev->bus_clk, bus_clk_rate); in bcm2835_i2c_probe() 450 ret = clk_prepare_enable(i2c_dev->bus_clk); in bcm2835_i2c_probe() 497 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_probe() 499 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_probe() 508 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_remove() 509 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_remove()
|
/drivers/mmc/host/ |
D | sdhci-of-dwcmshc.c | 92 struct clk *bus_clk; member 509 priv->bus_clk = devm_clk_get(dev, "bus"); in dwcmshc_probe() 510 if (!IS_ERR(priv->bus_clk)) in dwcmshc_probe() 511 clk_prepare_enable(priv->bus_clk); in dwcmshc_probe() 578 clk_disable_unprepare(priv->bus_clk); in dwcmshc_probe() 614 clk_disable_unprepare(priv->bus_clk); in dwcmshc_remove() 637 if (!IS_ERR(priv->bus_clk)) in dwcmshc_suspend() 638 clk_disable_unprepare(priv->bus_clk); in dwcmshc_suspend() 659 if (!IS_ERR(priv->bus_clk)) { in dwcmshc_resume() 660 ret = clk_prepare_enable(priv->bus_clk); in dwcmshc_resume() [all …]
|
/drivers/usb/host/ |
D | xhci-histb.c | 37 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/ |
D | pci-ftpci100.c | 119 struct clk *bus_clk; member 434 p->bus_clk = devm_clk_get_enabled(dev, "PCICLK"); in faraday_pci_probe() 435 if (IS_ERR(p->bus_clk)) in faraday_pci_probe() 436 return PTR_ERR(p->bus_clk); in faraday_pci_probe() 472 if (!IS_ERR(p->bus_clk)) { in faraday_pci_probe() 478 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe() 483 ret = clk_set_rate(p->bus_clk, 66000000); in faraday_pci_probe() 492 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
|
/drivers/interconnect/qcom/ |
D | icc-rpm.c | 356 if (!qp->bus_clk_desc && !qp->bus_clk) in qcom_icc_set() 367 if (qp->bus_clk) { in qcom_icc_set() 371 return clk_set_rate(qp->bus_clk, active_rate); in qcom_icc_set() 451 qp->bus_clk = devm_clk_get_optional(dev, "bus"); in qnoc_probe() 452 if (IS_ERR(qp->bus_clk)) in qnoc_probe() 453 return PTR_ERR(qp->bus_clk); in qnoc_probe() 494 ret = clk_prepare_enable(qp->bus_clk); in qnoc_probe() 572 clk_disable_unprepare(qp->bus_clk); in qnoc_probe() 584 clk_disable_unprepare(qp->bus_clk); in qnoc_remove()
|
/drivers/pci/controller/dwc/ |
D | pcie-histb.c | 57 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() 369 hipcie->bus_clk = devm_clk_get(dev, "bus"); in histb_pcie_probe() 370 if (IS_ERR(hipcie->bus_clk)) { in histb_pcie_probe() 372 return PTR_ERR(hipcie->bus_clk); in histb_pcie_probe()
|
D | pci-exynos.c | 58 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/ |
D | pwm-sun4i.c | 85 struct clk *bus_clk; member 426 sun4ichip->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe() 427 if (IS_ERR(sun4ichip->bus_clk)) in sun4i_pwm_probe() 428 return dev_err_probe(&pdev->dev, PTR_ERR(sun4ichip->bus_clk), in sun4i_pwm_probe() 448 ret = clk_prepare_enable(sun4ichip->bus_clk); in sun4i_pwm_probe() 472 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_probe() 485 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_remove()
|
/drivers/media/platform/sunxi/sun4i-csi/ |
D | sun4i_csi.c | 186 csi->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun4i_csi_probe() 187 if (IS_ERR(csi->bus_clk)) { in sun4i_csi_probe() 189 return PTR_ERR(csi->bus_clk); in sun4i_csi_probe() 299 clk_prepare_enable(csi->bus_clk); in sun4i_csi_runtime_resume() 315 clk_disable_unprepare(csi->bus_clk); in sun4i_csi_runtime_suspend()
|
/drivers/rtc/ |
D | rtc-sun6i.c | 740 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/ |
D | 8250_mtk.c | 73 struct clk *bus_clk; member 438 clk_disable_unprepare(data->bus_clk); in mtk8250_runtime_suspend() 447 clk_prepare_enable(data->bus_clk); in mtk8250_runtime_resume() 493 data->bus_clk = devm_clk_get_enabled(&pdev->dev, "bus"); in mtk8250_probe_of() 494 if (IS_ERR(data->bus_clk)) in mtk8250_probe_of() 495 return PTR_ERR(data->bus_clk); in mtk8250_probe_of()
|
/drivers/video/fbdev/ |
D | s3c-fb.c | 206 struct clk *bus_clk; member 352 clk = clk_get_rate(sfb->bus_clk); in s3c_fb_calc_pixclk() 1390 sfb->bus_clk = devm_clk_get(dev, "lcd"); in s3c_fb_probe() 1391 if (IS_ERR(sfb->bus_clk)) in s3c_fb_probe() 1392 return dev_err_probe(dev, PTR_ERR(sfb->bus_clk), in s3c_fb_probe() 1395 clk_prepare_enable(sfb->bus_clk); in s3c_fb_probe() 1495 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_probe() 1521 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_remove() 1548 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_suspend() 1565 clk_prepare_enable(sfb->bus_clk); in s3c_fb_resume() [all …]
|
D | atmel_lcdfb.c | 48 struct clk *bus_clk; member 867 clk_prepare_enable(sinfo->bus_clk); in atmel_lcdfb_start_clock() 873 clk_disable_unprepare(sinfo->bus_clk); in atmel_lcdfb_stop_clock() 1069 sinfo->bus_clk = clk_get(dev, "hclk"); in atmel_lcdfb_probe() 1070 if (IS_ERR(sinfo->bus_clk)) { in atmel_lcdfb_probe() 1071 ret = PTR_ERR(sinfo->bus_clk); in atmel_lcdfb_probe() 1218 clk_put(sinfo->bus_clk); in atmel_lcdfb_probe() 1242 clk_put(sinfo->bus_clk); in atmel_lcdfb_remove()
|
/drivers/thermal/ |
D | sun8i_thermal.c | 86 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()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_fimd.c | 179 struct clk *bus_clk; member 376 clk_prepare_enable(ctx->bus_clk); in fimd_clear_channels() 406 clk_disable_unprepare(ctx->bus_clk); in fimd_clear_channels() 1231 ctx->bus_clk = devm_clk_get(dev, "fimd"); in fimd_probe() 1232 if (IS_ERR(ctx->bus_clk)) { in fimd_probe() 1234 return PTR_ERR(ctx->bus_clk); in fimd_probe() 1294 clk_disable_unprepare(ctx->bus_clk); in exynos_fimd_suspend() 1304 ret = clk_prepare_enable(ctx->bus_clk); in exynos_fimd_resume()
|