Home
last modified time | relevance | path

Searched refs:clk_ipg (Results 1 – 25 of 25) sorted by relevance

/linux-6.1.9/drivers/pwm/
Dpwm-imx1.c29 struct clk *clk_ipg; member
42 ret = clk_prepare_enable(imx->clk_ipg); in pwm_imx1_clk_prepare_enable()
48 clk_disable_unprepare(imx->clk_ipg); in pwm_imx1_clk_prepare_enable()
60 clk_disable_unprepare(imx->clk_ipg); in pwm_imx1_clk_disable_unprepare()
167 imx->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in pwm_imx1_probe()
168 if (IS_ERR(imx->clk_ipg)) in pwm_imx1_probe()
169 return dev_err_probe(&pdev->dev, PTR_ERR(imx->clk_ipg), in pwm_imx1_probe()
Dpwm-imx27.c83 struct clk *clk_ipg; member
102 ret = clk_prepare_enable(imx->clk_ipg); in pwm_imx27_clk_prepare_enable()
108 clk_disable_unprepare(imx->clk_ipg); in pwm_imx27_clk_prepare_enable()
118 clk_disable_unprepare(imx->clk_ipg); in pwm_imx27_clk_disable_unprepare()
316 imx->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in pwm_imx27_probe()
317 if (IS_ERR(imx->clk_ipg)) in pwm_imx27_probe()
318 return dev_err_probe(&pdev->dev, PTR_ERR(imx->clk_ipg), in pwm_imx27_probe()
/linux-6.1.9/drivers/gpu/ipu-v3/
Dipu-prg.c74 struct clk *clk_ipg, *clk_axi; member
376 prg->clk_ipg = devm_clk_get(dev, "ipg"); in ipu_prg_probe()
377 if (IS_ERR(prg->clk_ipg)) in ipu_prg_probe()
378 return PTR_ERR(prg->clk_ipg); in ipu_prg_probe()
395 ret = clk_prepare_enable(prg->clk_ipg); in ipu_prg_probe()
401 clk_disable_unprepare(prg->clk_ipg); in ipu_prg_probe()
442 clk_disable_unprepare(prg->clk_ipg); in prg_suspend()
452 ret = clk_prepare_enable(prg->clk_ipg); in prg_resume()
458 clk_disable_unprepare(prg->clk_ipg); in prg_resume()
/linux-6.1.9/drivers/net/can/mscan/
Dmpc5xxx_can.c121 struct clk *clk_ipg; in mpc512x_can_get_clock() local
237 clk_ipg = devm_clk_get(&ofdev->dev, "ipg"); in mpc512x_can_get_clock()
238 if (IS_ERR(clk_ipg)) in mpc512x_can_get_clock()
240 if (clk_prepare_enable(clk_ipg)) in mpc512x_can_get_clock()
243 priv->clk_ipg = clk_ipg; in mpc512x_can_get_clock()
269 if (priv->clk_ipg) in mpc512x_can_put_clock()
270 clk_disable_unprepare(priv->clk_ipg); in mpc512x_can_put_clock()
Dmscan.c546 ret = clk_prepare_enable(priv->clk_ipg); in mscan_open()
587 clk_disable_unprepare(priv->clk_ipg); in mscan_open()
607 clk_disable_unprepare(priv->clk_ipg); in mscan_close()
Dmscan.h275 struct clk *clk_ipg; /* clock for registers */ member
/linux-6.1.9/drivers/mmc/host/
Dsdhci-esdhc-mcf.c26 struct clk *clk_ipg; member
426 mcf_data->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in sdhci_esdhc_mcf_probe()
427 if (IS_ERR(mcf_data->clk_ipg)) { in sdhci_esdhc_mcf_probe()
428 err = PTR_ERR(mcf_data->clk_ipg); in sdhci_esdhc_mcf_probe()
450 err = clk_prepare_enable(mcf_data->clk_ipg); in sdhci_esdhc_mcf_probe()
483 clk_disable_unprepare(mcf_data->clk_ipg); in sdhci_esdhc_mcf_probe()
500 clk_disable_unprepare(mcf_data->clk_ipg); in sdhci_esdhc_mcf_remove()
Dmxcmmc.c143 struct clk *clk_ipg; member
1061 host->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in mxcmci_probe()
1062 if (IS_ERR(host->clk_ipg)) { in mxcmci_probe()
1063 ret = PTR_ERR(host->clk_ipg); in mxcmci_probe()
1077 ret = clk_prepare_enable(host->clk_ipg); in mxcmci_probe()
1157 clk_disable_unprepare(host->clk_ipg); in mxcmci_probe()
1181 clk_disable_unprepare(host->clk_ipg); in mxcmci_remove()
1194 clk_disable_unprepare(host->clk_ipg); in mxcmci_suspend()
1208 ret = clk_prepare_enable(host->clk_ipg); in mxcmci_resume()
Dsdhci-esdhc-imx.c336 struct clk *clk_ipg; member
1616 imx_data->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in sdhci_esdhc_imx_probe()
1617 if (IS_ERR(imx_data->clk_ipg)) { in sdhci_esdhc_imx_probe()
1618 err = PTR_ERR(imx_data->clk_ipg); in sdhci_esdhc_imx_probe()
1639 err = clk_prepare_enable(imx_data->clk_ipg); in sdhci_esdhc_imx_probe()
1738 clk_disable_unprepare(imx_data->clk_ipg); in sdhci_esdhc_imx_probe()
1763 clk_disable_unprepare(imx_data->clk_ipg); in sdhci_esdhc_imx_remove()
1860 clk_disable_unprepare(imx_data->clk_ipg); in sdhci_esdhc_runtime_suspend()
1890 err = clk_prepare_enable(imx_data->clk_ipg); in sdhci_esdhc_runtime_resume()
1906 clk_disable_unprepare(imx_data->clk_ipg); in sdhci_esdhc_runtime_resume()
/linux-6.1.9/drivers/usb/chipidea/
Dci_hdrc_imx.c100 struct clk *clk_ipg; member
187 data->clk_ipg = devm_clk_get(dev, "ipg"); in imx_get_clks()
188 if (IS_ERR(data->clk_ipg)) { in imx_get_clks()
195 PTR_ERR(data->clk), PTR_ERR(data->clk_ipg)); in imx_get_clks()
227 ret = clk_prepare_enable(data->clk_ipg); in imx_prepare_enable_clks()
240 clk_disable_unprepare(data->clk_ipg); in imx_prepare_enable_clks()
250 clk_disable_unprepare(data->clk_ipg); in imx_prepare_enable_clks()
273 clk_disable_unprepare(data->clk_ipg); in imx_disable_unprepare_clks()
/linux-6.1.9/drivers/clocksource/
Dtimer-imx-gpt.c67 struct clk *clk_ipg; member
401 if (!IS_ERR(imxtm->clk_ipg)) in _mxc_timer_init()
402 clk_prepare_enable(imxtm->clk_ipg); in _mxc_timer_init()
431 imxtm->clk_ipg = clk_get_sys("imx-gpt.0", "ipg"); in mxc_timer_init()
464 imxtm->clk_ipg = of_clk_get_by_name(np, "ipg"); in mxc_timer_init_dt()
/linux-6.1.9/drivers/video/fbdev/
Dimxfb.c156 struct clk *clk_ipg; member
521 ret = clk_prepare_enable(fbi->clk_ipg); in imxfb_enable_controller()
539 clk_disable_unprepare(fbi->clk_ipg); in imxfb_enable_controller()
555 clk_disable_unprepare(fbi->clk_ipg); in imxfb_disable_controller()
940 fbi->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in imxfb_probe()
941 if (IS_ERR(fbi->clk_ipg)) { in imxfb_probe()
942 ret = PTR_ERR(fbi->clk_ipg); in imxfb_probe()
956 ret = clk_prepare_enable(fbi->clk_ipg); in imxfb_probe()
959 clk_disable_unprepare(fbi->clk_ipg); in imxfb_probe()
/linux-6.1.9/drivers/rtc/
Drtc-mxc.c68 struct clk *clk_ipg; member
336 pdata->clk_ipg = devm_clk_get_enabled(&pdev->dev, "ipg"); in mxc_rtc_probe()
337 if (IS_ERR(pdata->clk_ipg)) { in mxc_rtc_probe()
339 return PTR_ERR(pdata->clk_ipg); in mxc_rtc_probe()
/linux-6.1.9/drivers/tty/serial/
Dimx.c207 struct clk *clk_ipg; member
1401 retval = clk_prepare_enable(sport->clk_ipg); in imx_uart_startup()
1564 clk_disable_unprepare(sport->clk_ipg); in imx_uart_shutdown()
1836 retval = clk_prepare_enable(sport->clk_ipg); in imx_uart_poll_init()
1841 clk_disable_unprepare(sport->clk_ipg); in imx_uart_poll_init()
2106 retval = clk_prepare_enable(sport->clk_ipg); in imx_uart_console_setup()
2120 clk_disable_unprepare(sport->clk_ipg); in imx_uart_console_setup()
2126 clk_disable_unprepare(sport->clk_ipg); in imx_uart_console_setup()
2138 clk_disable_unprepare(sport->clk_ipg); in imx_uart_console_exit()
2296 sport->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in imx_uart_probe()
[all …]
/linux-6.1.9/drivers/dma/
Dimx-sdma.c525 struct clk *clk_ipg; member
1449 ret = clk_enable(sdmac->sdma->clk_ipg); in sdma_alloc_chan_resources()
1465 clk_disable(sdmac->sdma->clk_ipg); in sdma_alloc_chan_resources()
1487 clk_disable(sdma->clk_ipg); in sdma_free_chan_resources()
1949 clk_enable(sdma->clk_ipg); in sdma_load_firmware()
1955 clk_disable(sdma->clk_ipg); in sdma_load_firmware()
2053 ret = clk_enable(sdma->clk_ipg); in sdma_init()
2061 (clk_get_rate(sdma->clk_ahb) == clk_get_rate(sdma->clk_ipg))) in sdma_init()
2110 clk_disable(sdma->clk_ipg); in sdma_init()
2118 clk_disable(sdma->clk_ipg); in sdma_init()
[all …]
/linux-6.1.9/drivers/spi/
Dspi-mpc512x-psc.c63 struct clk *clk_ipg; member
542 mps->clk_ipg = clk; in mpc512x_psc_spi_do_probe()
555 clk_disable_unprepare(mps->clk_ipg); in mpc512x_psc_spi_do_probe()
570 clk_disable_unprepare(mps->clk_ipg); in mpc512x_psc_spi_do_remove()
Dspi-fsl-lpspi.c98 struct clk *clk_ipg; member
782 ret = clk_prepare_enable(fsl_lpspi->clk_ipg); in fsl_lpspi_runtime_resume()
799 clk_disable_unprepare(fsl_lpspi->clk_ipg); in fsl_lpspi_runtime_suspend()
884 fsl_lpspi->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in fsl_lpspi_probe()
885 if (IS_ERR(fsl_lpspi->clk_ipg)) { in fsl_lpspi_probe()
886 ret = PTR_ERR(fsl_lpspi->clk_ipg); in fsl_lpspi_probe()
Dspi-imx.c102 struct clk *clk_ipg; member
1785 spi_imx->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in spi_imx_probe()
1786 if (IS_ERR(spi_imx->clk_ipg)) { in spi_imx_probe()
1787 ret = PTR_ERR(spi_imx->clk_ipg); in spi_imx_probe()
1801 ret = clk_prepare_enable(spi_imx->clk_ipg); in spi_imx_probe()
1850 clk_disable_unprepare(spi_imx->clk_ipg); in spi_imx_probe()
1896 ret = clk_prepare_enable(spi_imx->clk_ipg); in spi_imx_runtime_resume()
1913 clk_disable_unprepare(spi_imx->clk_ipg); in spi_imx_runtime_suspend()
/linux-6.1.9/drivers/net/can/flexcan/
Dflexcan.h100 struct clk *clk_ipg; member
Dflexcan-core.c586 if (priv->clk_ipg) { in flexcan_clks_enable()
587 err = clk_prepare_enable(priv->clk_ipg); in flexcan_clks_enable()
595 clk_disable_unprepare(priv->clk_ipg); in flexcan_clks_enable()
604 clk_disable_unprepare(priv->clk_ipg); in flexcan_clks_disable()
2025 struct clk *clk_ipg = NULL, *clk_per = NULL; in flexcan_probe() local
2054 clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in flexcan_probe()
2055 if (IS_ERR(clk_ipg)) { in flexcan_probe()
2057 return PTR_ERR(clk_ipg); in flexcan_probe()
2140 priv->clk_ipg = clk_ipg; in flexcan_probe()
/linux-6.1.9/drivers/media/platform/nxp/imx-jpeg/
Dmxc-jpeg.h117 struct clk *clk_ipg; member
Dmxc-jpeg.c2205 jpeg->clk_ipg = devm_clk_get(dev, "ipg"); in mxc_jpeg_probe()
2206 if (IS_ERR(jpeg->clk_ipg)) { in mxc_jpeg_probe()
2208 ret = PTR_ERR(jpeg->clk_ipg); in mxc_jpeg_probe()
2314 ret = clk_prepare_enable(jpeg->clk_ipg); in mxc_jpeg_runtime_resume()
2329 clk_disable_unprepare(jpeg->clk_ipg); in mxc_jpeg_runtime_resume()
2338 clk_disable_unprepare(jpeg->clk_ipg); in mxc_jpeg_runtime_suspend()
/linux-6.1.9/drivers/crypto/
Dsahara.c197 struct clk *clk_ipg; member
1393 dev->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in sahara_probe()
1394 if (IS_ERR(dev->clk_ipg)) { in sahara_probe()
1396 return PTR_ERR(dev->clk_ipg); in sahara_probe()
1463 err = clk_prepare_enable(dev->clk_ipg); in sahara_probe()
1509 clk_disable_unprepare(dev->clk_ipg); in sahara_probe()
1522 clk_disable_unprepare(dev->clk_ipg); in sahara_remove()
/linux-6.1.9/drivers/net/ethernet/freescale/
Dfec_main.c2297 mii_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), bus_freq * 2); in fec_enet_mii_init()
2303 clk_get_rate(fep->clk_ipg)); in fec_enet_mii_init()
2320 holdtime = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), 100000000) - 1; in fec_enet_mii_init()
3991 fep->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); in fec_probe()
3992 if (IS_ERR(fep->clk_ipg)) { in fec_probe()
3993 ret = PTR_ERR(fep->clk_ipg); in fec_probe()
4041 ret = clk_prepare_enable(fep->clk_ipg); in fec_probe()
4145 clk_disable_unprepare(fep->clk_ipg); in fec_probe()
4187 clk_disable_unprepare(fep->clk_ipg); in fec_drv_remove()
4309 clk_disable_unprepare(fep->clk_ipg); in fec_runtime_suspend()
[all …]
Dfec.h575 struct clk *clk_ipg; member