/kernel/linux/linux-5.10/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 | 417 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()
|
D | sun4i_hdmi_enc.c | 528 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()
|
D | sun4i_frontend.c | 597 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()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | mv64x60_wdt.c | 57 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()
|
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()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | sdhci-of-dwcmshc.c | 28 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()
|
/kernel/linux/linux-5.10/arch/mips/ar7/ |
D | clock.c | 87 static struct clk bus_clk = { variable 209 int base_clock = bus_clk.rate; in tnetd7300_set_clock() 213 base_clock = bus_clk.rate; in tnetd7300_set_clock() 244 bus_clk.rate = tnetd7300_get_clock(BUS_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks() 251 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks() 340 bus_clk.rate = in tnetd7200_init_clocks() 344 bus_clk.rate); in tnetd7200_init_clocks() 371 bus_clk.rate = cpu_clk.rate / 2; in tnetd7200_init_clocks() 374 dsp_mul * 2, bus_clk.rate); in tnetd7200_init_clocks() 381 bus_clk.rate = ((dsp_base / dsp_prediv) * dsp_mul) in tnetd7200_init_clocks() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/ |
D | ccu-sun9i-a80-usb.c | 96 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()
|
D | ccu-sun9i-a80-de.c | 207 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()
|
D | ccu-sun8i-de2.c | 284 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()
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/ |
D | clock-cpg.c | 19 static struct clk bus_clk = { variable 35 &bus_clk, 43 CLKDEV_CON_ID("bus_clk", &bus_clk),
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
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()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-bcm2835.c | 66 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()
|
/kernel/linux/linux-5.10/arch/mips/pci/ |
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()
|
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/ |
D | pcie-histb.c | 57 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()
|
D | pci-exynos.c | 61 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()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/ |
D | rockchip,dwc3.txt | 10 "bus_clk" Master/Core clock, have to be >= 62.5 MHz for SS 29 "bus_clk", "grf_clk"; 46 "bus_clk", "grf_clk";
|
D | dwc3-xilinx.txt | 7 "bus_clk" Master/Core clock, have to be >= 125 MHz for SS 22 clock-names = "bus_clk" "ref_clk";
|
/kernel/linux/linux-5.10/drivers/pwm/ |
D | pwm-sun4i.c | 86 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()
|
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun4i-csi/ |
D | sun4i_csi.c | 218 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()
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | sun8i_thermal.c | 87 struct clk *bus_clk; member 341 tmdev->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun8i_ths_resource_init() 342 if (IS_ERR(tmdev->bus_clk)) in sun8i_ths_resource_init() 343 return PTR_ERR(tmdev->bus_clk); in sun8i_ths_resource_init() 356 ret = clk_prepare_enable(tmdev->bus_clk); in sun8i_ths_resource_init() 377 clk_disable_unprepare(tmdev->bus_clk); in sun8i_ths_resource_init() 537 clk_disable_unprepare(tmdev->bus_clk); in sun8i_ths_remove()
|
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
D | 8250_mtk.c | 73 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()
|
/kernel/linux/linux-5.10/drivers/firmware/ |
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() 1215 scm->bus_clk = devm_clk_get(&pdev->dev, "bus"); in qcom_scm_probe() 1216 if (IS_ERR(scm->bus_clk)) { in qcom_scm_probe() 1217 if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER) in qcom_scm_probe() 1218 return PTR_ERR(scm->bus_clk); in qcom_scm_probe() 1222 return PTR_ERR(scm->bus_clk); in qcom_scm_probe() 1225 scm->bus_clk = NULL; in qcom_scm_probe()
|