/drivers/reset/ |
D | core.c | 62 struct reset_control *rstc[]; member 194 rstc_to_array(struct reset_control *rstc) { in rstc_to_array() argument 195 return container_of(rstc, struct reset_control_array, base); in rstc_to_array() 203 ret = reset_control_reset(resets->rstc[i]); in reset_control_array_reset() 213 struct reset_control *rstc; in reset_control_array_rearm() local 217 rstc = resets->rstc[i]; in reset_control_array_rearm() 219 if (!rstc) in reset_control_array_rearm() 222 if (WARN_ON(IS_ERR(rstc))) in reset_control_array_rearm() 225 if (rstc->shared) { in reset_control_array_rearm() 226 if (WARN_ON(atomic_read(&rstc->deassert_count) != 0)) in reset_control_array_rearm() [all …]
|
D | reset-meson-audio-arb.c | 15 struct reset_controller_dev rstc; member 64 container_of(rcdev, struct meson_audio_arb_data, rstc); in meson_audio_arb_update() 85 container_of(rcdev, struct meson_audio_arb_data, rstc); in meson_audio_arb_status() 167 arb->rstc.nr_resets = data->reset_num; in meson_audio_arb_probe() 168 arb->rstc.ops = &meson_audio_arb_rstc_ops; in meson_audio_arb_probe() 169 arb->rstc.of_node = dev->of_node; in meson_audio_arb_probe() 170 arb->rstc.owner = THIS_MODULE; in meson_audio_arb_probe() 185 ret = devm_reset_controller_register(dev, &arb->rstc); in meson_audio_arb_probe()
|
D | reset-rzg2l-usbphy-ctrl.c | 33 struct reset_control *rstc; member 119 priv->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in rzg2l_usbphy_ctrl_probe() 120 if (IS_ERR(priv->rstc)) in rzg2l_usbphy_ctrl_probe() 121 return dev_err_probe(dev, PTR_ERR(priv->rstc), in rzg2l_usbphy_ctrl_probe() 124 error = reset_control_deassert(priv->rstc); in rzg2l_usbphy_ctrl_probe() 145 reset_control_assert(priv->rstc); in rzg2l_usbphy_ctrl_probe() 165 reset_control_assert(priv->rstc); in rzg2l_usbphy_ctrl_remove()
|
/drivers/clk/hisilicon/ |
D | reset.c | 46 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_assert() local 54 spin_lock_irqsave(&rstc->lock, flags); in hisi_reset_assert() 56 reg = readl(rstc->membase + offset); in hisi_reset_assert() 57 writel(reg | BIT(bit), rstc->membase + offset); in hisi_reset_assert() 59 spin_unlock_irqrestore(&rstc->lock, flags); in hisi_reset_assert() 67 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_deassert() local 75 spin_lock_irqsave(&rstc->lock, flags); in hisi_reset_deassert() 77 reg = readl(rstc->membase + offset); in hisi_reset_deassert() 78 writel(reg & ~BIT(bit), rstc->membase + offset); in hisi_reset_deassert() 80 spin_unlock_irqrestore(&rstc->lock, flags); in hisi_reset_deassert() [all …]
|
D | clk-hi3519.c | 31 struct hisi_reset_controller *rstc; member 151 crg->rstc = hisi_reset_init(pdev); in hi3519_clk_probe() 152 if (!crg->rstc) in hi3519_clk_probe() 157 hisi_reset_exit(crg->rstc); in hi3519_clk_probe() 169 hisi_reset_exit(crg->rstc); in hi3519_clk_remove()
|
D | reset.h | 14 void hisi_reset_exit(struct hisi_reset_controller *rstc); 21 static inline void hisi_reset_exit(struct hisi_reset_controller *rstc) in hisi_reset_exit() argument
|
D | crg-hi3516cv300.c | 273 crg->rstc = hisi_reset_init(pdev); in hi3516cv300_crg_probe() 274 if (!crg->rstc) in hi3516cv300_crg_probe() 279 hisi_reset_exit(crg->rstc); in hi3516cv300_crg_probe() 291 hisi_reset_exit(crg->rstc); in hi3516cv300_crg_remove()
|
D | crg-hi3798cv200.c | 356 crg->rstc = hisi_reset_init(pdev); in hi3798cv200_crg_probe() 357 if (!crg->rstc) in hi3798cv200_crg_probe() 362 hisi_reset_exit(crg->rstc); in hi3798cv200_crg_probe() 374 hisi_reset_exit(crg->rstc); in hi3798cv200_crg_remove()
|
/drivers/reset/tegra/ |
D | reset-bpmp.c | 11 static struct tegra_bpmp *to_tegra_bpmp(struct reset_controller_dev *rstc) in to_tegra_bpmp() argument 13 return container_of(rstc, struct tegra_bpmp, rstc); in to_tegra_bpmp() 16 static int tegra_bpmp_reset_common(struct reset_controller_dev *rstc, in tegra_bpmp_reset_common() argument 20 struct tegra_bpmp *bpmp = to_tegra_bpmp(rstc); in tegra_bpmp_reset_common() 43 static int tegra_bpmp_reset_module(struct reset_controller_dev *rstc, in tegra_bpmp_reset_module() argument 46 return tegra_bpmp_reset_common(rstc, CMD_RESET_MODULE, id); in tegra_bpmp_reset_module() 49 static int tegra_bpmp_reset_assert(struct reset_controller_dev *rstc, in tegra_bpmp_reset_assert() argument 52 return tegra_bpmp_reset_common(rstc, CMD_RESET_ASSERT, id); in tegra_bpmp_reset_assert() 55 static int tegra_bpmp_reset_deassert(struct reset_controller_dev *rstc, in tegra_bpmp_reset_deassert() argument 58 return tegra_bpmp_reset_common(rstc, CMD_RESET_DEASSERT, id); in tegra_bpmp_reset_deassert() [all …]
|
/drivers/clk/meson/ |
D | meson-aoclk.c | 25 struct meson_aoclk_reset_controller *rstc = in meson_aoclk_do_reset() local 28 return regmap_write(rstc->regmap, rstc->data->reset_reg, in meson_aoclk_do_reset() 29 BIT(rstc->data->reset[id])); in meson_aoclk_do_reset() 38 struct meson_aoclk_reset_controller *rstc; in meson_aoclkc_probe() local 49 rstc = devm_kzalloc(dev, sizeof(*rstc), GFP_KERNEL); in meson_aoclkc_probe() 50 if (!rstc) in meson_aoclkc_probe() 62 rstc->data = data; in meson_aoclkc_probe() 63 rstc->regmap = regmap; in meson_aoclkc_probe() 64 rstc->reset.ops = &meson_aoclk_reset_ops; in meson_aoclkc_probe() 65 rstc->reset.nr_resets = data->num_reset; in meson_aoclkc_probe() [all …]
|
/drivers/soc/amlogic/ |
D | meson-gx-pwrc-vpu.c | 37 struct reset_control *rstc; member 174 ret = reset_control_assert(pd->rstc); in meson_gx_pwrc_vpu_power_on() 181 ret = reset_control_deassert(pd->rstc); in meson_gx_pwrc_vpu_power_on() 228 ret = reset_control_assert(pd->rstc); in meson_g12a_pwrc_vpu_power_on() 235 ret = reset_control_deassert(pd->rstc); in meson_g12a_pwrc_vpu_power_on() 276 struct reset_control *rstc; in meson_gx_pwrc_vpu_probe() local 307 rstc = devm_reset_control_array_get_exclusive(&pdev->dev); in meson_gx_pwrc_vpu_probe() 308 if (IS_ERR(rstc)) { in meson_gx_pwrc_vpu_probe() 309 if (PTR_ERR(rstc) != -EPROBE_DEFER) in meson_gx_pwrc_vpu_probe() 311 return PTR_ERR(rstc); in meson_gx_pwrc_vpu_probe() [all …]
|
/drivers/mmc/host/ |
D | sdhci-st.c | 21 struct reset_control *rstc; member 352 struct reset_control *rstc; in sdhci_st_probe() local 365 rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL); in sdhci_st_probe() 366 if (IS_ERR(rstc)) in sdhci_st_probe() 367 return PTR_ERR(rstc); in sdhci_st_probe() 368 reset_control_deassert(rstc); in sdhci_st_probe() 379 pdata->rstc = rstc; in sdhci_st_probe() 432 reset_control_assert(rstc); in sdhci_st_probe() 442 struct reset_control *rstc = pdata->rstc; in sdhci_st_remove() local 449 reset_control_assert(rstc); in sdhci_st_remove() [all …]
|
/drivers/pinctrl/sunxi/ |
D | pinctrl-sun8i-a23-r.c | 101 struct reset_control *rstc; in sun8i_a23_r_pinctrl_probe() local 104 rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in sun8i_a23_r_pinctrl_probe() 105 if (IS_ERR(rstc)) { in sun8i_a23_r_pinctrl_probe() 106 ret = PTR_ERR(rstc); in sun8i_a23_r_pinctrl_probe() 113 ret = reset_control_deassert(rstc); in sun8i_a23_r_pinctrl_probe() 121 reset_control_assert(rstc); in sun8i_a23_r_pinctrl_probe()
|
D | pinctrl-sun6i-a31-r.c | 114 struct reset_control *rstc; in sun6i_a31_r_pinctrl_probe() local 117 rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in sun6i_a31_r_pinctrl_probe() 118 if (IS_ERR(rstc)) { in sun6i_a31_r_pinctrl_probe() 120 return PTR_ERR(rstc); in sun6i_a31_r_pinctrl_probe() 123 ret = reset_control_deassert(rstc); in sun6i_a31_r_pinctrl_probe() 131 reset_control_assert(rstc); in sun6i_a31_r_pinctrl_probe()
|
/drivers/pwm/ |
D | pwm-hibvt.c | 39 struct reset_control *rstc; member 220 pwm_chip->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in hibvt_pwm_probe() 221 if (IS_ERR(pwm_chip->rstc)) { in hibvt_pwm_probe() 223 return PTR_ERR(pwm_chip->rstc); in hibvt_pwm_probe() 226 reset_control_assert(pwm_chip->rstc); in hibvt_pwm_probe() 228 reset_control_deassert(pwm_chip->rstc); in hibvt_pwm_probe() 254 reset_control_assert(pwm_chip->rstc); in hibvt_pwm_remove() 256 reset_control_deassert(pwm_chip->rstc); in hibvt_pwm_remove()
|
/drivers/phy/st/ |
D | phy-stih407-usb.c | 36 struct reset_control *rstc; member 44 reset_control_deassert(phy_dev->rstc); in stih407_usb2_pico_ctrl() 104 phy_dev->rstc = devm_reset_control_get_shared(dev, "global"); in stih407_usb2_picophy_probe() 105 if (IS_ERR(phy_dev->rstc)) { in stih407_usb2_picophy_probe() 107 return PTR_ERR(phy_dev->rstc); in stih407_usb2_picophy_probe()
|
/drivers/clocksource/ |
D | dw_apb_timer_of.c | 22 struct reset_control *rstc; in timer_get_base_and_rate() local 34 rstc = of_reset_control_get(np, NULL); in timer_get_base_and_rate() 35 if (!IS_ERR(rstc)) { in timer_get_base_and_rate() 36 reset_control_assert(rstc); in timer_get_base_and_rate() 37 reset_control_deassert(rstc); in timer_get_base_and_rate()
|
D | timer-stm32.c | 290 struct reset_control *rstc; in stm32_timer_init() local 312 rstc = of_reset_control_get(node, NULL); in stm32_timer_init() 313 if (!IS_ERR(rstc)) { in stm32_timer_init() 314 reset_control_assert(rstc); in stm32_timer_init() 315 reset_control_deassert(rstc); in stm32_timer_init()
|
/drivers/i2c/busses/ |
D | i2c-sun6i-p2wi.c | 90 struct reset_control *rstc; member 262 p2wi->rstc = devm_reset_control_get_exclusive(dev, NULL); in p2wi_probe() 263 if (IS_ERR(p2wi->rstc)) { in p2wi_probe() 264 ret = PTR_ERR(p2wi->rstc); in p2wi_probe() 269 ret = reset_control_deassert(p2wi->rstc); in p2wi_probe() 313 reset_control_assert(p2wi->rstc); in p2wi_probe() 325 reset_control_assert(p2wi->rstc); in p2wi_remove()
|
/drivers/spi/ |
D | spi-dw-mmio.c | 33 struct reset_control *rstc; member 286 dwsmmio->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi"); in dw_spi_mmio_probe() 287 if (IS_ERR(dwsmmio->rstc)) { in dw_spi_mmio_probe() 288 ret = PTR_ERR(dwsmmio->rstc); in dw_spi_mmio_probe() 291 reset_control_deassert(dwsmmio->rstc); in dw_spi_mmio_probe() 326 reset_control_assert(dwsmmio->rstc); in dw_spi_mmio_probe() 339 reset_control_assert(dwsmmio->rstc); in dw_spi_mmio_remove()
|
/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_hw.c | 154 reset_control_assert(dev->rstc); in cedrus_hw_suspend() 164 ret = reset_control_reset(dev->rstc); in cedrus_hw_resume() 199 reset_control_assert(dev->rstc); in cedrus_hw_resume() 265 dev->rstc = devm_reset_control_get(dev->dev, NULL); in cedrus_hw_probe() 266 if (IS_ERR(dev->rstc)) { in cedrus_hw_probe() 269 ret = PTR_ERR(dev->rstc); in cedrus_hw_probe()
|
/drivers/clk/sunxi-ng/ |
D | ccu-sun9i-a80-de.c | 208 struct reset_control *rstc; in sun9i_a80_de_clk_probe() local 225 rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in sun9i_a80_de_clk_probe() 226 if (IS_ERR(rstc)) { in sun9i_a80_de_clk_probe() 227 ret = PTR_ERR(rstc); in sun9i_a80_de_clk_probe() 242 ret = reset_control_deassert(rstc); in sun9i_a80_de_clk_probe() 256 reset_control_assert(rstc); in sun9i_a80_de_clk_probe()
|
D | ccu-sun8i-de2.c | 285 struct reset_control *rstc; in sunxi_de2_clk_probe() local 315 rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in sunxi_de2_clk_probe() 316 if (IS_ERR(rstc)) { in sunxi_de2_clk_probe() 317 ret = PTR_ERR(rstc); in sunxi_de2_clk_probe() 338 ret = reset_control_deassert(rstc); in sunxi_de2_clk_probe() 352 reset_control_assert(rstc); in sunxi_de2_clk_probe()
|
/drivers/media/rc/ |
D | st_rc.c | 29 struct reset_control *rstc; member 168 reset_control_deassert(dev->rstc); in st_rc_hardware_init() 290 rc_dev->rstc = reset_control_get_optional_exclusive(dev, NULL); in st_rc_probe() 291 if (IS_ERR(rc_dev->rstc)) { in st_rc_probe() 292 ret = PTR_ERR(rc_dev->rstc); in st_rc_probe() 364 reset_control_assert(rc_dev->rstc); in st_rc_suspend()
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_device.c | 21 pfdev->rstc = devm_reset_control_array_get_optional_exclusive(pfdev->dev); in panfrost_reset_init() 22 if (IS_ERR(pfdev->rstc)) { in panfrost_reset_init() 23 dev_err(pfdev->dev, "get reset failed %ld\n", PTR_ERR(pfdev->rstc)); in panfrost_reset_init() 24 return PTR_ERR(pfdev->rstc); in panfrost_reset_init() 27 return reset_control_deassert(pfdev->rstc); in panfrost_reset_init() 32 reset_control_assert(pfdev->rstc); in panfrost_reset_fini()
|