Home
last modified time | relevance | path

Searched full:bus_clk (Results 1 – 25 of 185) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-of-dwcmshc.c28 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-6.6/drivers/gpu/drm/sun4i/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
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()
/kernel/linux/linux-5.10/drivers/watchdog/
Dmv64x60_wdt.c57 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()
267 /* Since bus_clk is truncated MHz, actual frequency could be in mv64x60_wdt_probe()
271 bus_clk++; in mv64x60_wdt_probe()
272 bus_clk *= 1000000; /* convert to Hz */ in mv64x60_wdt_probe()
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()
/kernel/linux/linux-6.6/arch/mips/ar7/
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()
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 …]
/kernel/linux/linux-5.10/arch/mips/ar7/
Dclock.c87 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/
Dccu-sun9i-a80-usb.c96 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()
Dccu-sun9i-a80-de.c207 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()
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/
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 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()
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 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()
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/
Dclock-cpg.c19 static struct clk bus_clk = { variable
35 &bus_clk,
43 CLKDEV_CON_ID("bus_clk", &bus_clk),
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/
Dclock-cpg.c19 static struct clk bus_clk = { variable
35 &bus_clk,
43 CLKDEV_CON_ID("bus_clk", &bus_clk),
/kernel/linux/linux-6.6/drivers/i2c/busses/
Di2c-bcm2835.c66 struct clk *bus_clk; member
431 i2c_dev->bus_clk = bcm2835_i2c_register_div(&pdev->dev, mclk, i2c_dev); in bcm2835_i2c_probe()
433 if (IS_ERR(i2c_dev->bus_clk)) in bcm2835_i2c_probe()
434 return dev_err_probe(&pdev->dev, PTR_ERR(i2c_dev->bus_clk), in bcm2835_i2c_probe()
445 ret = clk_set_rate_exclusive(i2c_dev->bus_clk, bus_clk_rate); in bcm2835_i2c_probe()
450 ret = clk_prepare_enable(i2c_dev->bus_clk); in bcm2835_i2c_probe()
497 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_probe()
499 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_probe()
508 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_remove()
509 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_remove()
/kernel/linux/linux-6.6/drivers/mmc/host/
Dsdhci-of-dwcmshc.c92 struct clk *bus_clk; member
509 priv->bus_clk = devm_clk_get(dev, "bus"); in dwcmshc_probe()
510 if (!IS_ERR(priv->bus_clk)) in dwcmshc_probe()
511 clk_prepare_enable(priv->bus_clk); in dwcmshc_probe()
578 clk_disable_unprepare(priv->bus_clk); in dwcmshc_probe()
614 clk_disable_unprepare(priv->bus_clk); in dwcmshc_remove()
637 if (!IS_ERR(priv->bus_clk)) in dwcmshc_suspend()
638 clk_disable_unprepare(priv->bus_clk); in dwcmshc_suspend()
659 if (!IS_ERR(priv->bus_clk)) { in dwcmshc_resume()
660 ret = clk_prepare_enable(priv->bus_clk); in dwcmshc_resume()
[all …]
/kernel/linux/linux-6.6/drivers/watchdog/
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()
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/display/bridge/
Dsamsung,mipi-dsim.yaml158 - const: bus_clk
186 - const: bus_clk
206 - const: bus_clk
226 - const: bus_clk
254 clock-names = "bus_clk",
/kernel/linux/linux-5.10/drivers/usb/host/
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()
/kernel/linux/linux-6.6/drivers/usb/host/
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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/
Drockchip,dwc3.txt10 "bus_clk" Master/Core clock, have to be >= 62.5 MHz for SS
29 "bus_clk", "grf_clk";
46 "bus_clk", "grf_clk";
/kernel/linux/linux-6.6/drivers/pci/controller/dwc/
Dpcie-histb.c57 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()
/kernel/linux/linux-6.6/sound/soc/fsl/
Dfsl_aud2htx.c222 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()
270 clk_disable_unprepare(aud2htx->bus_clk); in fsl_aud2htx_runtime_suspend()
280 ret = clk_prepare_enable(aud2htx->bus_clk); in fsl_aud2htx_runtime_resume()
/kernel/linux/linux-6.6/drivers/pwm/
Dpwm-sun4i.c85 struct clk *bus_clk; member
426 sun4ichip->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe()
427 if (IS_ERR(sun4ichip->bus_clk)) in sun4i_pwm_probe()
428 return dev_err_probe(&pdev->dev, PTR_ERR(sun4ichip->bus_clk), in sun4i_pwm_probe()
448 ret = clk_prepare_enable(sun4ichip->bus_clk); in sun4i_pwm_probe()
450 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()
485 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_remove()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-bcm2835.c66 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-6.6/drivers/interconnect/qcom/
Dicc-rpm.c356 if (!qp->bus_clk_desc && !qp->bus_clk) in qcom_icc_set()
367 if (qp->bus_clk) { in qcom_icc_set()
371 return clk_set_rate(qp->bus_clk, active_rate); in qcom_icc_set()
451 qp->bus_clk = devm_clk_get_optional(dev, "bus"); in qnoc_probe()
452 if (IS_ERR(qp->bus_clk)) in qnoc_probe()
453 return PTR_ERR(qp->bus_clk); in qnoc_probe()
494 ret = clk_prepare_enable(qp->bus_clk); in qnoc_probe()
572 clk_disable_unprepare(qp->bus_clk); in qnoc_probe()
584 clk_disable_unprepare(qp->bus_clk); in qnoc_remove()

12345678