/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() 134 int reset_control_status(struct reset_control *rstc) in reset_control_status() argument [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 | 113 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/ |
D | sdhci-st.c | 30 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/ |
D | phy-stih407-usb.c | 40 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/ |
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/clocksource/ |
D | timer-stm32.c | 105 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()
|
D | timer-sun5i.c | 338 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/ |
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 | 147 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/ |
D | spi-sun6i.c | 86 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/ |
D | sunxi-rsb.c | 125 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/ |
D | mtk-pmic-wrap.c | 375 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/ |
D | sun6i-dma.c | 157 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/ |
D | coda.h | 81 struct reset_control *rstc; member
|
D | coda-common.c | 1846 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()
|
D | coda-bit.c | 117 if (!dev->rstc) in coda_hw_reset() 132 ret = reset_control_reset(dev->rstc); in coda_hw_reset()
|