Home
last modified time | relevance | path

Searched refs:rstc (Results 1 – 17 of 17) sorted by relevance

/drivers/reset/
Dcore.c93 int reset_control_reset(struct reset_control *rstc) in reset_control_reset() argument
95 if (rstc->rcdev->ops->reset) in reset_control_reset()
96 return rstc->rcdev->ops->reset(rstc->rcdev, rstc->id); in reset_control_reset()
106 int reset_control_assert(struct reset_control *rstc) in reset_control_assert() argument
108 if (rstc->rcdev->ops->assert) in reset_control_assert()
109 return rstc->rcdev->ops->assert(rstc->rcdev, rstc->id); in reset_control_assert()
119 int reset_control_deassert(struct reset_control *rstc) in reset_control_deassert() argument
121 if (rstc->rcdev->ops->deassert) in reset_control_deassert()
122 return rstc->rcdev->ops->deassert(rstc->rcdev, rstc->id); in reset_control_deassert()
134 int reset_control_status(struct reset_control *rstc) in reset_control_status() argument
[all …]
/drivers/pinctrl/sunxi/
Dpinctrl-sun8i-a23-r.c100 struct reset_control *rstc; in sun8i_a23_r_pinctrl_probe() local
103 rstc = devm_reset_control_get(&pdev->dev, NULL); in sun8i_a23_r_pinctrl_probe()
104 if (IS_ERR(rstc)) { in sun8i_a23_r_pinctrl_probe()
106 return PTR_ERR(rstc); in sun8i_a23_r_pinctrl_probe()
109 ret = reset_control_deassert(rstc); in sun8i_a23_r_pinctrl_probe()
117 reset_control_assert(rstc); in sun8i_a23_r_pinctrl_probe()
Dpinctrl-sun6i-a31-r.c113 struct reset_control *rstc; in sun6i_a31_r_pinctrl_probe() local
116 rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_a31_r_pinctrl_probe()
117 if (IS_ERR(rstc)) { in sun6i_a31_r_pinctrl_probe()
119 return PTR_ERR(rstc); in sun6i_a31_r_pinctrl_probe()
122 ret = reset_control_deassert(rstc); in sun6i_a31_r_pinctrl_probe()
130 reset_control_assert(rstc); in sun6i_a31_r_pinctrl_probe()
/drivers/mmc/host/
Dsdhci-st.c30 struct reset_control *rstc; member
371 pdata->rstc = devm_reset_control_get(&pdev->dev, NULL); in sdhci_st_probe()
372 if (IS_ERR(pdata->rstc)) in sdhci_st_probe()
373 pdata->rstc = NULL; in sdhci_st_probe()
375 reset_control_deassert(pdata->rstc); in sdhci_st_probe()
430 if (pdata->rstc) in sdhci_st_probe()
431 reset_control_assert(pdata->rstc); in sdhci_st_probe()
445 if (pdata->rstc) in sdhci_st_remove()
446 reset_control_assert(pdata->rstc); in sdhci_st_remove()
462 if (pdata->rstc) in sdhci_st_suspend()
[all …]
/drivers/phy/
Dphy-stih407-usb.c40 struct reset_control *rstc; member
48 reset_control_deassert(phy_dev->rstc); in stih407_usb2_pico_ctrl()
108 phy_dev->rstc = devm_reset_control_get(dev, "global"); in stih407_usb2_picophy_probe()
109 if (IS_ERR(phy_dev->rstc)) { in stih407_usb2_picophy_probe()
111 return PTR_ERR(phy_dev->rstc); in stih407_usb2_picophy_probe()
/drivers/media/rc/
Dst_rc.c32 struct reset_control *rstc; member
167 if (dev->rstc) in st_rc_hardware_init()
168 reset_control_deassert(dev->rstc); in st_rc_hardware_init()
281 rc_dev->rstc = reset_control_get_optional(dev, NULL); in st_rc_probe()
282 if (IS_ERR(rc_dev->rstc)) in st_rc_probe()
283 rc_dev->rstc = NULL; in st_rc_probe()
352 if (rc_dev->rstc) in st_rc_suspend()
353 reset_control_assert(rc_dev->rstc); in st_rc_suspend()
/drivers/clocksource/
Dtimer-stm32.c105 struct reset_control *rstc; in stm32_clockevent_init() local
125 rstc = of_reset_control_get(np, NULL); in stm32_clockevent_init()
126 if (!IS_ERR(rstc)) { in stm32_clockevent_init()
127 reset_control_assert(rstc); in stm32_clockevent_init()
128 reset_control_deassert(rstc); in stm32_clockevent_init()
Dtimer-sun5i.c338 struct reset_control *rstc; in sun5i_timer_init() local
355 rstc = of_reset_control_get(node, NULL); in sun5i_timer_init()
356 if (!IS_ERR(rstc)) in sun5i_timer_init()
357 reset_control_deassert(rstc); in sun5i_timer_init()
/drivers/i2c/busses/
Di2c-sun6i-p2wi.c90 struct reset_control *rstc; member
261 p2wi->rstc = devm_reset_control_get(dev, NULL); in p2wi_probe()
262 if (IS_ERR(p2wi->rstc)) { in p2wi_probe()
263 ret = PTR_ERR(p2wi->rstc); in p2wi_probe()
268 ret = reset_control_deassert(p2wi->rstc); in p2wi_probe()
312 reset_control_assert(p2wi->rstc); in p2wi_probe()
324 reset_control_assert(p2wi->rstc); in p2wi_remove()
Di2c-mv64xxx.c147 struct reset_control *rstc; member
832 drv_data->rstc = devm_reset_control_get_optional(dev, NULL); in mv64xxx_of_config()
833 if (IS_ERR(drv_data->rstc)) { in mv64xxx_of_config()
834 if (PTR_ERR(drv_data->rstc) == -EPROBE_DEFER) { in mv64xxx_of_config()
839 reset_control_deassert(drv_data->rstc); in mv64xxx_of_config()
968 if (!IS_ERR_OR_NULL(drv_data->rstc)) in mv64xxx_i2c_probe()
969 reset_control_assert(drv_data->rstc); in mv64xxx_i2c_probe()
988 if (!IS_ERR_OR_NULL(drv_data->rstc)) in mv64xxx_i2c_remove()
989 reset_control_assert(drv_data->rstc); in mv64xxx_i2c_remove()
/drivers/spi/
Dspi-sun6i.c86 struct reset_control *rstc; member
332 ret = reset_control_deassert(sspi->rstc); in sun6i_spi_runtime_resume()
356 reset_control_assert(sspi->rstc); in sun6i_spi_runtime_suspend()
425 sspi->rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_spi_probe()
426 if (IS_ERR(sspi->rstc)) { in sun6i_spi_probe()
428 ret = PTR_ERR(sspi->rstc); in sun6i_spi_probe()
/drivers/bus/
Dsunxi-rsb.c125 struct reset_control *rstc; member
674 rsb->rstc = devm_reset_control_get(dev, NULL); in sunxi_rsb_probe()
675 if (IS_ERR(rsb->rstc)) { in sunxi_rsb_probe()
676 ret = PTR_ERR(rsb->rstc); in sunxi_rsb_probe()
681 ret = reset_control_deassert(rsb->rstc); in sunxi_rsb_probe()
733 reset_control_assert(rsb->rstc); in sunxi_rsb_probe()
746 reset_control_assert(rsb->rstc); in sunxi_rsb_remove()
/drivers/soc/mediatek/
Dmtk-pmic-wrap.c375 struct reset_control *rstc; member
656 reset_control_reset(wrp->rstc); in pwrap_init()
832 wrp->rstc = devm_reset_control_get(wrp->dev, "pwrap"); in pwrap_probe()
833 if (IS_ERR(wrp->rstc)) { in pwrap_probe()
834 ret = PTR_ERR(wrp->rstc); in pwrap_probe()
/drivers/dma/
Dsun6i-dma.c157 struct reset_control *rstc; member
946 sdc->rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_dma_probe()
947 if (IS_ERR(sdc->rstc)) { in sun6i_dma_probe()
949 return PTR_ERR(sdc->rstc); in sun6i_dma_probe()
1016 ret = reset_control_deassert(sdc->rstc); in sun6i_dma_probe()
1066 reset_control_assert(sdc->rstc); in sun6i_dma_probe()
1082 reset_control_assert(sdc->rstc); in sun6i_dma_remove()
/drivers/media/platform/coda/
Dcoda.h81 struct reset_control *rstc; member
Dcoda-common.c1846 if (dev->rstc) in coda_hw_init()
1847 reset_control_reset(dev->rstc); in coda_hw_init()
2167 dev->rstc = devm_reset_control_get_optional(&pdev->dev, NULL); in coda_probe()
2168 if (IS_ERR(dev->rstc)) { in coda_probe()
2169 ret = PTR_ERR(dev->rstc); in coda_probe()
2171 dev->rstc = NULL; in coda_probe()
Dcoda-bit.c117 if (!dev->rstc) in coda_hw_reset()
132 ret = reset_control_reset(dev->rstc); in coda_hw_reset()