Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/sun4i/
A 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()
A Dsun8i_mixer.c415 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 Dsun4i_hdmi_enc.c526 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 Dsun4i_frontend.c595 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 Dclock.c92 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 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 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 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 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 Dccu-sun8i-de2.c283 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 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()
/linux/drivers/mmc/host/
A Dsdhci-of-dwcmshc.c70 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 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()
/linux/drivers/pci/controller/
A Dpci-ftpci100.c127 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 Dclock-cpg.c19 static struct clk bus_clk = { variable
35 &bus_clk,
43 CLKDEV_CON_ID("bus_clk", &bus_clk),
/linux/sound/soc/fsl/
A Dfsl_aud2htx.c221 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 Dfsl_sai.c1037 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 Di2c-bcm2835.c61 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 Dpcie-histb.c57 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 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()
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 Dpwm-sun4i.c86 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 Dpci-lantiq.c96 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 Dsun8i_thermal.c88 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 Dsun4i_csi.c189 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 D8250_mtk.c69 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 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()
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 Ds3c-fb.c206 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 …]

Completed in 51 milliseconds

123