Searched refs:rstc (Results 1 – 13 of 13) sorted by relevance
/drivers/reset/ |
D | core.c | 93 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/ |
D | pinctrl-sun8i-a23-r.c | 100 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()
|
D | pinctrl-sun6i-a31-r.c | 101 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/ |
D | phy-stih407-usb.c | 37 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/ |
D | st_rc.c | 32 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/ |
D | i2c-sun6i-p2wi.c | 90 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()
|
D | i2c-mv64xxx.c | 151 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/ |
D | timer-sun5i.c | 147 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/ |
D | spi-sun6i.c | 86 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/ |
D | sun6i-dma.c | 155 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/ |
D | coda-common.c | 1583 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()
|
D | coda.h | 75 struct reset_control *rstc; member
|
D | coda-bit.c | 105 if (!dev->rstc) in coda_hw_reset() 120 ret = reset_control_reset(dev->rstc); in coda_hw_reset()
|