/linux/drivers/gpu/drm/sun4i/ |
A 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()
|
A D | sun8i_mixer.c | 415 mixer->bus_clk = devm_clk_get(dev, "bus"); in sun8i_mixer_bind() 416 if (IS_ERR(mixer->bus_clk)) { in sun8i_mixer_bind() 418 ret = PTR_ERR(mixer->bus_clk); in sun8i_mixer_bind() 421 clk_prepare_enable(mixer->bus_clk); in sun8i_mixer_bind() 501 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_bind() 515 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_unbind()
|
A D | sun4i_hdmi_enc.c | 526 hdmi->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_hdmi_bind() 527 if (IS_ERR(hdmi->bus_clk)) { in sun4i_hdmi_bind() 529 ret = PTR_ERR(hdmi->bus_clk); in sun4i_hdmi_bind() 532 clk_prepare_enable(hdmi->bus_clk); in sun4i_hdmi_bind() 667 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_bind() 682 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_unbind()
|
A D | sun4i_frontend.c | 595 frontend->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_frontend_bind() 596 if (IS_ERR(frontend->bus_clk)) { in sun4i_frontend_bind() 598 return PTR_ERR(frontend->bus_clk); in sun4i_frontend_bind() 652 clk_prepare_enable(frontend->bus_clk); in sun4i_frontend_runtime_resume() 677 clk_disable_unprepare(frontend->bus_clk); in sun4i_frontend_runtime_suspend()
|
/linux/arch/mips/ar7/ |
A D | clock.c | 92 static struct clk_rate bus_clk = { variable 211 int base_clock = bus_clk.rate; in tnetd7300_set_clock() 215 base_clock = bus_clk.rate; in tnetd7300_set_clock() 255 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks() 351 bus_clk.rate = in tnetd7200_init_clocks() 355 bus_clk.rate); in tnetd7200_init_clocks() 382 bus_clk.rate = cpu_clk.rate / 2; in tnetd7200_init_clocks() 385 dsp_mul * 2, bus_clk.rate); in tnetd7200_init_clocks() 396 dsp_mul * 2, bus_clk.rate); in tnetd7200_init_clocks() 398 cpu_clk.rate = bus_clk.rate; in tnetd7200_init_clocks() [all …]
|
/linux/drivers/clk/sunxi-ng/ |
A 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 ret = PTR_ERR(bus_clk); in sun9i_a80_usb_clk_probe() 112 ret = clk_prepare_enable(bus_clk); in sun9i_a80_usb_clk_probe() 125 clk_disable_unprepare(bus_clk); in sun9i_a80_usb_clk_probe()
|
A 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 ret = PTR_ERR(bus_clk); in sun9i_a80_de_clk_probe() 233 ret = clk_prepare_enable(bus_clk); in sun9i_a80_de_clk_probe() 256 clk_disable_unprepare(bus_clk); in sun9i_a80_de_clk_probe()
|
A D | ccu-sun8i-de2.c | 283 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local 297 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sunxi_de2_clk_probe() 298 if (IS_ERR(bus_clk)) { in sunxi_de2_clk_probe() 299 ret = PTR_ERR(bus_clk); in sunxi_de2_clk_probe() 323 ret = clk_prepare_enable(bus_clk); in sunxi_de2_clk_probe() 354 clk_disable_unprepare(bus_clk); in sunxi_de2_clk_probe()
|
/linux/drivers/watchdog/ |
A 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()
|
/linux/drivers/mmc/host/ |
A D | sdhci-of-dwcmshc.c | 70 struct clk *bus_clk; member 388 priv->bus_clk = devm_clk_get(dev, "bus"); in dwcmshc_probe() 389 if (!IS_ERR(priv->bus_clk)) in dwcmshc_probe() 390 clk_prepare_enable(priv->bus_clk); in dwcmshc_probe() 429 clk_disable_unprepare(priv->bus_clk); in dwcmshc_probe() 448 clk_disable_unprepare(priv->bus_clk); in dwcmshc_remove() 471 if (!IS_ERR(priv->bus_clk)) in dwcmshc_suspend() 472 clk_disable_unprepare(priv->bus_clk); in dwcmshc_suspend() 493 if (!IS_ERR(priv->bus_clk)) { in dwcmshc_resume() 494 ret = clk_prepare_enable(priv->bus_clk); in dwcmshc_resume()
|
/linux/drivers/usb/host/ |
A 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()
|
/linux/drivers/pci/controller/ |
A D | pci-ftpci100.c | 127 struct clk *bus_clk; member 453 p->bus_clk = devm_clk_get(dev, "PCICLK"); in faraday_pci_probe() 454 if (IS_ERR(p->bus_clk)) in faraday_pci_probe() 455 return PTR_ERR(p->bus_clk); in faraday_pci_probe() 456 ret = clk_prepare_enable(p->bus_clk); in faraday_pci_probe() 496 if (!IS_ERR(p->bus_clk)) { in faraday_pci_probe() 502 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe() 507 ret = clk_set_rate(p->bus_clk, 66000000); in faraday_pci_probe() 516 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
|
/linux/arch/sh/kernel/cpu/ |
A D | clock-cpg.c | 19 static struct clk bus_clk = { variable 35 &bus_clk, 43 CLKDEV_CON_ID("bus_clk", &bus_clk),
|
/linux/sound/soc/fsl/ |
A D | fsl_aud2htx.c | 221 aud2htx->bus_clk = devm_clk_get(&pdev->dev, "bus"); in fsl_aud2htx_probe() 222 if (IS_ERR(aud2htx->bus_clk)) { in fsl_aud2htx_probe() 224 return PTR_ERR(aud2htx->bus_clk); in fsl_aud2htx_probe() 263 clk_disable_unprepare(aud2htx->bus_clk); in fsl_aud2htx_runtime_suspend() 273 ret = clk_prepare_enable(aud2htx->bus_clk); in fsl_aud2htx_runtime_resume()
|
A D | fsl_sai.c | 1037 sai->bus_clk = devm_clk_get(&pdev->dev, "bus"); in fsl_sai_probe() 1039 if (IS_ERR(sai->bus_clk) && PTR_ERR(sai->bus_clk) != -EPROBE_DEFER) in fsl_sai_probe() 1040 sai->bus_clk = devm_clk_get(&pdev->dev, "sai"); in fsl_sai_probe() 1041 if (IS_ERR(sai->bus_clk)) { in fsl_sai_probe() 1043 PTR_ERR(sai->bus_clk)); in fsl_sai_probe() 1045 return PTR_ERR(sai->bus_clk); in fsl_sai_probe() 1061 sai->mclk_clk[0] = sai->bus_clk; in fsl_sai_probe() 1260 clk_disable_unprepare(sai->bus_clk); in fsl_sai_runtime_suspend() 1276 ret = clk_prepare_enable(sai->bus_clk); in fsl_sai_runtime_resume() 1318 clk_disable_unprepare(sai->bus_clk); in fsl_sai_runtime_resume()
|
/linux/drivers/i2c/busses/ |
A D | i2c-bcm2835.c | 61 struct clk *bus_clk; member 428 i2c_dev->bus_clk = bcm2835_i2c_register_div(&pdev->dev, mclk, i2c_dev); in bcm2835_i2c_probe() 430 if (IS_ERR(i2c_dev->bus_clk)) { in bcm2835_i2c_probe() 432 return PTR_ERR(i2c_dev->bus_clk); in bcm2835_i2c_probe() 443 ret = clk_set_rate_exclusive(i2c_dev->bus_clk, bus_clk_rate); in bcm2835_i2c_probe() 449 ret = clk_prepare_enable(i2c_dev->bus_clk); in bcm2835_i2c_probe() 493 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_remove() 494 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_remove()
|
/linux/drivers/pci/controller/dwc/ |
A D | pcie-histb.c | 57 struct clk *bus_clk; member 215 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_disable() 243 ret = clk_prepare_enable(hipcie->bus_clk); in histb_pcie_host_enable() 283 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_enable() 372 hipcie->bus_clk = devm_clk_get(dev, "bus"); in histb_pcie_probe() 373 if (IS_ERR(hipcie->bus_clk)) { in histb_pcie_probe() 375 return PTR_ERR(hipcie->bus_clk); in histb_pcie_probe()
|
A 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() 344 ep->bus_clk = devm_clk_get(dev, "pcie_bus"); in exynos_pcie_probe() 345 if (IS_ERR(ep->bus_clk)) { in exynos_pcie_probe() 347 return PTR_ERR(ep->bus_clk); in exynos_pcie_probe()
|
/linux/drivers/pwm/ |
A D | pwm-sun4i.c | 86 struct clk *bus_clk; member 431 pwm->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe() 432 if (IS_ERR(pwm->bus_clk)) in sun4i_pwm_probe() 433 return dev_err_probe(&pdev->dev, PTR_ERR(pwm->bus_clk), in sun4i_pwm_probe() 453 ret = clk_prepare_enable(pwm->bus_clk); in sun4i_pwm_probe() 477 clk_disable_unprepare(pwm->bus_clk); in sun4i_pwm_probe() 490 clk_disable_unprepare(pwm->bus_clk); in sun4i_pwm_remove()
|
/linux/arch/mips/pci/ |
A D | pci-lantiq.c | 96 const __be32 *req_mask, *bus_clk; in ltq_pci_startup() local 114 bus_clk = of_get_property(node, "lantiq,bus-clock", NULL); in ltq_pci_startup() 115 if (bus_clk) in ltq_pci_startup() 116 clk_set_rate(clk_pci, *bus_clk); in ltq_pci_startup()
|
/linux/drivers/thermal/ |
A D | sun8i_thermal.c | 88 struct clk *bus_clk; member 342 tmdev->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun8i_ths_resource_init() 343 if (IS_ERR(tmdev->bus_clk)) in sun8i_ths_resource_init() 344 return PTR_ERR(tmdev->bus_clk); in sun8i_ths_resource_init() 357 ret = clk_prepare_enable(tmdev->bus_clk); in sun8i_ths_resource_init() 378 clk_disable_unprepare(tmdev->bus_clk); in sun8i_ths_resource_init() 538 clk_disable_unprepare(tmdev->bus_clk); in sun8i_ths_remove()
|
/linux/drivers/media/platform/sunxi/sun4i-csi/ |
A D | sun4i_csi.c | 189 csi->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun4i_csi_probe() 190 if (IS_ERR(csi->bus_clk)) { in sun4i_csi_probe() 192 return PTR_ERR(csi->bus_clk); in sun4i_csi_probe() 303 clk_prepare_enable(csi->bus_clk); in sun4i_csi_runtime_resume() 319 clk_disable_unprepare(csi->bus_clk); in sun4i_csi_runtime_suspend()
|
/linux/drivers/tty/serial/8250/ |
A D | 8250_mtk.c | 69 struct clk *bus_clk; member 424 clk_disable_unprepare(data->bus_clk); in mtk8250_runtime_suspend() 440 err = clk_prepare_enable(data->bus_clk); in mtk8250_runtime_resume() 494 data->bus_clk = devm_clk_get(&pdev->dev, "bus"); in mtk8250_probe_of() 495 if (IS_ERR(data->bus_clk)) in mtk8250_probe_of() 496 return PTR_ERR(data->bus_clk); in mtk8250_probe_of()
|
/linux/drivers/firmware/ |
A D | qcom_scm.c | 33 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() 1285 scm->bus_clk = devm_clk_get(&pdev->dev, "bus"); in qcom_scm_probe() 1286 if (IS_ERR(scm->bus_clk)) { in qcom_scm_probe() 1287 if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER) in qcom_scm_probe() 1288 return PTR_ERR(scm->bus_clk); in qcom_scm_probe() 1292 return PTR_ERR(scm->bus_clk); in qcom_scm_probe() 1295 scm->bus_clk = NULL; in qcom_scm_probe()
|
/linux/drivers/video/fbdev/ |
A D | s3c-fb.c | 206 struct clk *bus_clk; member 352 clk = clk_get_rate(sfb->bus_clk); in s3c_fb_calc_pixclk() 1395 if (IS_ERR(sfb->bus_clk)) { in s3c_fb_probe() 1397 return PTR_ERR(sfb->bus_clk); in s3c_fb_probe() 1400 clk_prepare_enable(sfb->bus_clk); in s3c_fb_probe() 1501 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_probe() 1527 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_remove() 1556 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_suspend() 1573 clk_prepare_enable(sfb->bus_clk); in s3c_fb_resume() 1633 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_runtime_suspend() [all …]
|