/linux-6.1.9/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 | 444 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()
|
D | sun4i_hdmi_enc.c | 527 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()
|
/linux-6.1.9/arch/mips/ar7/ |
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() 248 bus_clk.rate = tnetd7300_get_clock(BUS_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks() 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() 392 bus_clk.rate = ((dsp_base / dsp_prediv) * dsp_mul) in tnetd7200_init_clocks() [all …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/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 | 167 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()
|
/linux-6.1.9/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() 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()
|
/linux-6.1.9/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),
|
/linux-6.1.9/drivers/pci/controller/ |
D | pci-ftpci100.c | 120 struct clk *bus_clk; member 440 p->bus_clk = devm_clk_get(dev, "PCICLK"); in faraday_pci_probe() 441 if (IS_ERR(p->bus_clk)) in faraday_pci_probe() 442 return PTR_ERR(p->bus_clk); in faraday_pci_probe() 443 ret = clk_prepare_enable(p->bus_clk); in faraday_pci_probe() 483 if (!IS_ERR(p->bus_clk)) { in faraday_pci_probe() 489 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe() 494 ret = clk_set_rate(p->bus_clk, 66000000); in faraday_pci_probe() 503 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
|
/linux-6.1.9/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()
|
/linux-6.1.9/sound/soc/fsl/ |
D | fsl_aud2htx.c | 222 aud2htx->bus_clk = devm_clk_get(&pdev->dev, "bus"); in fsl_aud2htx_probe() 223 if (IS_ERR(aud2htx->bus_clk)) { in fsl_aud2htx_probe() 225 return PTR_ERR(aud2htx->bus_clk); in fsl_aud2htx_probe() 272 clk_disable_unprepare(aud2htx->bus_clk); in fsl_aud2htx_runtime_suspend() 282 ret = clk_prepare_enable(aud2htx->bus_clk); in fsl_aud2htx_runtime_resume()
|
/linux-6.1.9/drivers/mmc/host/ |
D | sdhci-of-dwcmshc.c | 89 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()
|
/linux-6.1.9/sound/soc/sunxi/ |
D | sun50i-dmic.c | 51 struct clk *bus_clk; member 285 clk_disable_unprepare(host->bus_clk); in sun50i_dmic_runtime_suspend() 299 ret = clk_prepare_enable(host->bus_clk); in sun50i_dmic_runtime_resume() 330 host->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun50i_dmic_probe() 331 if (IS_ERR(host->bus_clk)) in sun50i_dmic_probe() 332 return dev_err_probe(&pdev->dev, PTR_ERR(host->bus_clk), in sun50i_dmic_probe()
|
/linux-6.1.9/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() 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()
|
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()
|
/linux-6.1.9/arch/mips/pci/ |
D | pci-lantiq.c | 96 const __be32 *req_mask, *bus_clk; in ltq_pci_startup() local 115 bus_clk = of_get_property(node, "lantiq,bus-clock", NULL); in ltq_pci_startup() 116 if (bus_clk) in ltq_pci_startup() 117 clk_set_rate(clk_pci, *bus_clk); in ltq_pci_startup()
|
/linux-6.1.9/drivers/pwm/ |
D | pwm-sun4i.c | 86 struct clk *bus_clk; member 423 sun4ichip->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe() 424 if (IS_ERR(sun4ichip->bus_clk)) in sun4i_pwm_probe() 425 return dev_err_probe(&pdev->dev, PTR_ERR(sun4ichip->bus_clk), in sun4i_pwm_probe() 445 ret = clk_prepare_enable(sun4ichip->bus_clk); in sun4i_pwm_probe() 469 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_probe() 482 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_remove()
|
/linux-6.1.9/drivers/media/platform/sunxi/sun4i-csi/ |
D | sun4i_csi.c | 187 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()
|
/linux-6.1.9/drivers/thermal/ |
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-6.1.9/drivers/rtc/ |
D | rtc-sun6i.c | 748 struct clk *bus_clk = data; in sun6i_rtc_bus_clk_cleanup() local 750 clk_disable_unprepare(bus_clk); in sun6i_rtc_bus_clk_cleanup() 757 struct clk *bus_clk; in sun6i_rtc_probe() local 760 bus_clk = devm_clk_get_optional(dev, "bus"); in sun6i_rtc_probe() 761 if (IS_ERR(bus_clk)) in sun6i_rtc_probe() 762 return PTR_ERR(bus_clk); in sun6i_rtc_probe() 764 if (bus_clk) { in sun6i_rtc_probe() 765 ret = clk_prepare_enable(bus_clk); in sun6i_rtc_probe() 770 bus_clk); in sun6i_rtc_probe()
|
/linux-6.1.9/Documentation/devicetree/bindings/display/msm/ |
D | mdp4.yaml | 27 - const: bus_clk 83 "bus_clk",
|
/linux-6.1.9/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()
|