/linux/drivers/gpu/drm/sun4i/ |
H 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()
|
H A D | sun8i_mixer.c | 510 mixer->bus_clk = devm_clk_get(dev, "bus"); in sun8i_mixer_bind() 511 if (IS_ERR(mixer->bus_clk)) { in sun8i_mixer_bind() 513 ret = PTR_ERR(mixer->bus_clk); in sun8i_mixer_bind() 516 clk_prepare_enable(mixer->bus_clk); in sun8i_mixer_bind() 596 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_bind() 610 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_unbind()
|
H A D | sun4i_hdmi_enc.c | 551 hdmi->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_hdmi_bind() 552 if (IS_ERR(hdmi->bus_clk)) { in sun4i_hdmi_bind() 554 ret = PTR_ERR(hdmi->bus_clk); in sun4i_hdmi_bind() 557 clk_prepare_enable(hdmi->bus_clk); in sun4i_hdmi_bind() 701 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_bind() 716 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_unbind()
|
/linux/drivers/clk/sunxi-ng/ |
H 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 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()
|
H 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 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()
|
H A 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/arch/sh/kernel/cpu/ |
H A D | clock-cpg.c | 19 static struct clk bus_clk = { variable 35 &bus_clk, 43 CLKDEV_CON_ID("bus_clk", &bus_clk),
|
/linux/drivers/i2c/busses/ |
H A D | i2c-bcm2835.c | 66 struct clk *bus_clk; member 430 i2c_dev->bus_clk = bcm2835_i2c_register_div(&pdev->dev, mclk, i2c_dev); in bcm2835_i2c_probe() 432 if (IS_ERR(i2c_dev->bus_clk)) in bcm2835_i2c_probe() 433 return dev_err_probe(&pdev->dev, PTR_ERR(i2c_dev->bus_clk), in bcm2835_i2c_probe() 444 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() 496 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_probe() 498 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_probe() 507 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_remove() 508 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_remove()
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | rockchip,dwc3.yaml | 69 - const: bus_clk 110 - const: bus_clk 135 - const: bus_clk 155 "bus_clk", "grf_clk";
|
H A D | rockchip,rk3399-dwc3.yaml | 44 - const: bus_clk 90 "bus_clk", "aclk_usb3_rksoc_axi_perf",
|
H A D | dwc3-xilinx.yaml | 45 - const: bus_clk 117 clock-names = "bus_clk", "ref_clk";
|
/linux/Documentation/devicetree/bindings/display/bridge/ |
H A D | samsung,mipi-dsim.yaml | 158 - const: bus_clk 186 - const: bus_clk 206 - const: bus_clk 226 - const: bus_clk 254 clock-names = "bus_clk",
|
/linux/drivers/usb/host/ |
H 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/dwc/ |
H A 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()
|
/linux/drivers/pwm/ |
H A D | pwm-sun4i.c | 84 struct clk *bus_clk; member 428 sun4ichip->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe() 429 if (IS_ERR(sun4ichip->bus_clk)) in sun4i_pwm_probe() 430 return dev_err_probe(&pdev->dev, PTR_ERR(sun4ichip->bus_clk), in sun4i_pwm_probe() 450 ret = clk_prepare_enable(sun4ichip->bus_clk); in sun4i_pwm_probe() 452 dev_err(&pdev->dev, "cannot prepare and enable bus_clk %pe\n", in sun4i_pwm_probe() 472 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_probe() 486 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_remove()
|
/linux/sound/soc/fsl/ |
H 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() 269 clk_disable_unprepare(aud2htx->bus_clk); in fsl_aud2htx_runtime_suspend() 279 ret = clk_prepare_enable(aud2htx->bus_clk); in fsl_aud2htx_runtime_resume()
|
H A D | fsl_aud2htx.h | 54 * @bus_clk: clock source to access register 61 struct clk *bus_clk; member
|
/linux/drivers/pci/controller/ |
H A 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()
|
/linux/drivers/interconnect/qcom/ |
H A D | icc-rpm.c | 375 if (!qp->bus_clk_desc && !qp->bus_clk) in qcom_icc_set() 386 if (qp->bus_clk) { in qcom_icc_set() 390 return clk_set_rate(qp->bus_clk, active_rate); in qcom_icc_set() 497 qp->bus_clk = devm_clk_get_optional(dev, "bus"); in qnoc_probe() 498 if (IS_ERR(qp->bus_clk)) in qnoc_probe() 499 return PTR_ERR(qp->bus_clk); in qnoc_probe() 540 ret = clk_prepare_enable(qp->bus_clk); in qnoc_probe() 624 clk_disable_unprepare(qp->bus_clk); in qnoc_probe() 636 clk_disable_unprepare(qp->bus_clk); in qnoc_remove()
|
/linux/sound/soc/sunxi/ |
H A D | sun50i-dmic.c | 63 struct clk *bus_clk; member 319 clk_disable_unprepare(host->bus_clk); in sun50i_dmic_runtime_suspend() 333 ret = clk_prepare_enable(host->bus_clk); in sun50i_dmic_runtime_resume() 363 host->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun50i_dmic_probe() 364 if (IS_ERR(host->bus_clk)) in sun50i_dmic_probe() 365 return dev_err_probe(&pdev->dev, PTR_ERR(host->bus_clk), in sun50i_dmic_probe()
|
/linux/drivers/leds/ |
H A D | leds-sun50i-a100.c | 76 struct clk *bus_clk; member 332 ret = clk_prepare_enable(priv->bus_clk); in sun50i_a100_ledc_resume() 349 clk_disable_unprepare(priv->bus_clk); in sun50i_a100_ledc_resume() 375 clk_disable_unprepare(priv->bus_clk); in sun50i_a100_ledc_suspend() 450 priv->bus_clk = devm_clk_get(dev, "bus"); in sun50i_a100_ledc_probe() 451 if (IS_ERR(priv->bus_clk)) in sun50i_a100_ledc_probe() 452 return PTR_ERR(priv->bus_clk); in sun50i_a100_ledc_probe()
|
/linux/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_csi.c | 197 csi->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun4i_csi_probe() 198 if (IS_ERR(csi->bus_clk)) { in sun4i_csi_probe() 200 return PTR_ERR(csi->bus_clk); in sun4i_csi_probe() 312 clk_prepare_enable(csi->bus_clk); in sun4i_csi_runtime_resume() 328 clk_disable_unprepare(csi->bus_clk); in sun4i_csi_runtime_suspend()
|
/linux/drivers/rtc/ |
H A D | rtc-sun6i.c | 741 struct clk *bus_clk = data; in sun6i_rtc_bus_clk_cleanup() local 743 clk_disable_unprepare(bus_clk); in sun6i_rtc_bus_clk_cleanup() 750 struct clk *bus_clk; in sun6i_rtc_probe() local 753 bus_clk = devm_clk_get_optional(dev, "bus"); in sun6i_rtc_probe() 754 if (IS_ERR(bus_clk)) in sun6i_rtc_probe() 755 return PTR_ERR(bus_clk); in sun6i_rtc_probe() 757 if (bus_clk) { in sun6i_rtc_probe() 758 ret = clk_prepare_enable(bus_clk); in sun6i_rtc_probe() 763 bus_clk); in sun6i_rtc_probe()
|
/linux/Documentation/devicetree/bindings/display/msm/ |
H A D | mdp4.yaml | 27 - const: bus_clk 83 "bus_clk",
|
/linux/drivers/tty/serial/8250/ |
H A 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()
|