/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 | 601 mixer->bus_clk = devm_clk_get(dev, "bus"); in sun8i_mixer_bind() 602 if (IS_ERR(mixer->bus_clk)) { in sun8i_mixer_bind() 604 ret = PTR_ERR(mixer->bus_clk); in sun8i_mixer_bind() 607 clk_prepare_enable(mixer->bus_clk); in sun8i_mixer_bind() 661 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_bind() 675 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_unbind()
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | rockchip,dwc3.yaml | 73 - const: bus_clk 115 - const: bus_clk 131 - const: bus_clk 158 - const: bus_clk 178 "bus_clk", "grf_clk";
|
H A D | rockchip,rk3399-dwc3.yaml | 44 - const: bus_clk 90 "bus_clk", "aclk_usb3_rksoc_axi_perf",
|
/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 | 255 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local 269 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sunxi_de2_clk_probe() 270 if (IS_ERR(bus_clk)) in sunxi_de2_clk_probe() 271 return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk), in sunxi_de2_clk_probe() 285 ret = clk_prepare_enable(bus_clk); in sunxi_de2_clk_probe() 326 clk_disable_unprepare(bus_clk); in sunxi_de2_clk_probe()
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_of.c | 27 struct clk *bus_clk; member 127 struct clk *bus_clk; in of_platform_serial_setup() local 129 bus_clk = devm_clk_get_optional_enabled(dev, "bus"); in of_platform_serial_setup() 130 if (IS_ERR(bus_clk)) { in of_platform_serial_setup() 131 ret = dev_err_probe(dev, PTR_ERR(bus_clk), "failed to get bus clock\n"); in of_platform_serial_setup() 136 info->clk = devm_clk_get_enabled(dev, bus_clk ? "core" : NULL); in of_platform_serial_setup() 142 info->bus_clk = bus_clk; in of_platform_serial_setup() 304 clk_disable_unprepare(info->bus_clk); in of_serial_suspend() 317 clk_prepare_enable(info->bus_clk); in of_serial_resume()
|
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()
|
/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/watchdog/ |
H 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() 267 bus_clk = 133; /* in MHz */ in gef_wdt_probe() 271 bus_clk = freq; in gef_wdt_probe()
|
H A D | airoha_wdt.c | 132 struct clk *bus_clk; in airoha_wdt_probe() local 143 bus_clk = devm_clk_get_enabled(dev, "bus"); in airoha_wdt_probe() 144 if (IS_ERR(bus_clk)) in airoha_wdt_probe() 145 return dev_err_probe(dev, PTR_ERR(bus_clk), in airoha_wdt_probe() 149 airoha_wdt->wdt_freq = clk_get_rate(bus_clk) / 2; in airoha_wdt_probe()
|
/linux/Documentation/devicetree/bindings/display/bridge/ |
H A D | samsung,mipi-dsim.yaml | 160 - const: bus_clk 188 - const: bus_clk 208 - const: bus_clk 228 - const: bus_clk 256 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 210 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_disable() 238 ret = clk_prepare_enable(hipcie->bus_clk); in histb_pcie_host_enable() 278 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_enable() 366 hipcie->bus_clk = devm_clk_get(dev, "bus"); in histb_pcie_probe() 367 if (IS_ERR(hipcie->bus_clk)) { in histb_pcie_probe() 369 return PTR_ERR(hipcie->bus_clk); in histb_pcie_probe()
|
/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/pwm/ |
H A D | pwm-sun4i.c | 83 struct clk *bus_clk; member 420 sun4ichip->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe() 421 if (IS_ERR(sun4ichip->bus_clk)) in sun4i_pwm_probe() 422 return dev_err_probe(&pdev->dev, PTR_ERR(sun4ichip->bus_clk), in sun4i_pwm_probe() 442 ret = clk_prepare_enable(sun4ichip->bus_clk); in sun4i_pwm_probe() 444 dev_err(&pdev->dev, "cannot prepare and enable bus_clk %pe\n", in sun4i_pwm_probe() 462 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_probe() 476 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_remove()
|
/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() 541 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/gpio/ |
H A D | gpio-spacemit-k1.c | 242 struct clk *core_clk, *bus_clk; in spacemit_gpio_probe() local 264 bus_clk = devm_clk_get_enabled(dev, "bus"); in spacemit_gpio_probe() 265 if (IS_ERR(bus_clk)) in spacemit_gpio_probe() 266 return dev_err_probe(dev, PTR_ERR(bus_clk), "failed to get bus clock\n"); in spacemit_gpio_probe()
|
/linux/Documentation/devicetree/bindings/display/msm/ |
H A D | mdp4.yaml | 28 - const: bus_clk 90 "bus_clk",
|
/linux/drivers/mmc/host/ |
H A D | sdhci-of-dwcmshc.c | 223 struct clk *bus_clk; member 1398 priv->bus_clk = devm_clk_get(dev, "bus"); in dwcmshc_probe() 1399 if (!IS_ERR(priv->bus_clk)) in dwcmshc_probe() 1400 clk_prepare_enable(priv->bus_clk); in dwcmshc_probe() 1467 clk_disable_unprepare(priv->bus_clk); in dwcmshc_probe() 1498 clk_disable_unprepare(priv->bus_clk); in dwcmshc_remove() 1523 if (!IS_ERR(priv->bus_clk)) in dwcmshc_suspend() 1524 clk_disable_unprepare(priv->bus_clk); in dwcmshc_suspend() 1542 if (!IS_ERR(priv->bus_clk)) { in dwcmshc_resume() 1543 ret = clk_prepare_enable(priv->bus_clk); in dwcmshc_resume() [all …]
|
/linux/drivers/video/fbdev/ |
H A D | s3c-fb.c | 191 * @bus_clk: The clk (hclk) feeding our interface and possibly pixclk. 206 struct clk *bus_clk; member 352 clk = clk_get_rate(sfb->bus_clk); in s3c_fb_calc_pixclk() 1390 sfb->bus_clk = devm_clk_get(dev, "lcd"); in s3c_fb_probe() 1391 if (IS_ERR(sfb->bus_clk)) in s3c_fb_probe() 1392 return dev_err_probe(dev, PTR_ERR(sfb->bus_clk), in s3c_fb_probe() 1395 clk_prepare_enable(sfb->bus_clk); in s3c_fb_probe() 1495 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_probe() 1521 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_remove() 1548 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_suspend() [all …]
|