Home
last modified time | relevance | path

Searched refs:rstc (Results 1 – 13 of 13) 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()
140 struct reset_control *rstc = ERR_PTR(-EPROBE_DEFER); in of_reset_control_get() local
[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.c101 struct reset_control *rstc; in sun6i_a31_r_pinctrl_probe() local
104 rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_a31_r_pinctrl_probe()
105 if (IS_ERR(rstc)) { in sun6i_a31_r_pinctrl_probe()
107 return PTR_ERR(rstc); in sun6i_a31_r_pinctrl_probe()
110 ret = reset_control_deassert(rstc); in sun6i_a31_r_pinctrl_probe()
118 reset_control_assert(rstc); in sun6i_a31_r_pinctrl_probe()
/drivers/phy/
Dphy-stih407-usb.c37 struct reset_control *rstc; member
45 reset_control_deassert(phy_dev->rstc); in stih407_usb2_pico_ctrl()
105 phy_dev->rstc = devm_reset_control_get(dev, "global"); in stih407_usb2_picophy_probe()
106 if (IS_ERR(phy_dev->rstc)) { in stih407_usb2_picophy_probe()
108 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/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.c151 struct reset_control *rstc; member
759 drv_data->rstc = devm_reset_control_get_optional(dev, NULL); in mv64xxx_of_config()
760 if (IS_ERR(drv_data->rstc)) { in mv64xxx_of_config()
761 if (PTR_ERR(drv_data->rstc) == -EPROBE_DEFER) { in mv64xxx_of_config()
766 reset_control_deassert(drv_data->rstc); in mv64xxx_of_config()
891 if (!IS_ERR_OR_NULL(drv_data->rstc)) in mv64xxx_i2c_probe()
892 reset_control_assert(drv_data->rstc); in mv64xxx_i2c_probe()
911 if (!IS_ERR_OR_NULL(drv_data->rstc)) in mv64xxx_i2c_remove()
912 reset_control_assert(drv_data->rstc); in mv64xxx_i2c_remove()
/drivers/clocksource/
Dtimer-sun5i.c147 struct reset_control *rstc; in sun5i_timer_init() local
167 rstc = of_reset_control_get(node, NULL); in sun5i_timer_init()
168 if (!IS_ERR(rstc)) in sun5i_timer_init()
169 reset_control_deassert(rstc); in sun5i_timer_init()
/drivers/spi/
Dspi-sun6i.c86 struct reset_control *rstc; member
328 ret = reset_control_deassert(sspi->rstc); in sun6i_spi_runtime_resume()
352 reset_control_assert(sspi->rstc); in sun6i_spi_runtime_suspend()
421 sspi->rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_spi_probe()
422 if (IS_ERR(sspi->rstc)) { in sun6i_spi_probe()
424 ret = PTR_ERR(sspi->rstc); in sun6i_spi_probe()
/drivers/dma/
Dsun6i-dma.c155 struct reset_control *rstc; member
886 sdc->rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_dma_probe()
887 if (IS_ERR(sdc->rstc)) { in sun6i_dma_probe()
889 return PTR_ERR(sdc->rstc); in sun6i_dma_probe()
947 ret = reset_control_deassert(sdc->rstc); in sun6i_dma_probe()
988 reset_control_assert(sdc->rstc); in sun6i_dma_probe()
1004 reset_control_assert(sdc->rstc); in sun6i_dma_remove()
/drivers/media/platform/coda/
Dcoda-common.c1583 if (dev->rstc) in coda_hw_init()
1584 reset_control_reset(dev->rstc); in coda_hw_init()
1893 dev->rstc = devm_reset_control_get_optional(&pdev->dev, NULL); in coda_probe()
1894 if (IS_ERR(dev->rstc)) { in coda_probe()
1895 ret = PTR_ERR(dev->rstc); in coda_probe()
1897 dev->rstc = NULL; in coda_probe()
Dcoda.h75 struct reset_control *rstc; member
Dcoda-bit.c105 if (!dev->rstc) in coda_hw_reset()
120 ret = reset_control_reset(dev->rstc); in coda_hw_reset()