| /drivers/reset/ |
| A D | core.c | 244 rstc = resets->rstc[i]; in reset_control_array_rearm() 262 rstc = resets->rstc[i]; in reset_control_array_rearm() 264 if (rstc && rstc->shared) in reset_control_array_rearm() 380 ret = rstc->rcdev->ops->reset(rstc->rcdev, rstc->id); in reset_control_reset() 506 rcdev_name(rstc->rcdev), rstc->id); in reset_control_assert() 511 return rstc->rcdev->ops->assert(rstc->rcdev, rstc->id); in reset_control_assert() 591 return rstc->rcdev->ops->deassert(rstc->rcdev, rstc->id); in reset_control_deassert() 640 return rstc->rcdev->ops->status(rstc->rcdev, rstc->id); in reset_control_status() 687 if (rstc != rc && rstc->id == rc->id) { in reset_control_acquire() 744 if (!rstc || WARN_ON(IS_ERR(rstc))) in reset_control_release() [all …]
|
| A D | reset-k230.c | 165 guard(spinlock_irqsave)(&rstc->lock); in k230_rst_clear_done() 333 struct k230_rst *rstc; in k230_rst_probe() local 335 rstc = devm_kzalloc(dev, sizeof(*rstc), GFP_KERNEL); in k230_rst_probe() 336 if (!rstc) in k230_rst_probe() 340 if (IS_ERR(rstc->base)) in k230_rst_probe() 341 return PTR_ERR(rstc->base); in k230_rst_probe() 343 spin_lock_init(&rstc->lock); in k230_rst_probe() 345 rstc->rcdev.dev = dev; in k230_rst_probe() 346 rstc->rcdev.owner = THIS_MODULE; in k230_rst_probe() 347 rstc->rcdev.ops = &k230_rst_ops; in k230_rst_probe() [all …]
|
| A D | reset-rzg2l-usbphy-ctrl.c | 35 struct reset_control *rstc; member 135 priv->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in rzg2l_usbphy_ctrl_probe() 136 if (IS_ERR(priv->rstc)) in rzg2l_usbphy_ctrl_probe() 137 return dev_err_probe(dev, PTR_ERR(priv->rstc), in rzg2l_usbphy_ctrl_probe() 140 error = reset_control_deassert(priv->rstc); in rzg2l_usbphy_ctrl_probe() 192 reset_control_assert(priv->rstc); in rzg2l_usbphy_ctrl_probe() 203 reset_control_assert(priv->rstc); in rzg2l_usbphy_ctrl_remove()
|
| /drivers/clk/hisilicon/ |
| A D | reset.c | 56 reg = readl(rstc->membase + offset); in hisi_reset_assert() 77 reg = readl(rstc->membase + offset); in hisi_reset_deassert() 92 struct hisi_reset_controller *rstc; in hisi_reset_init() local 94 rstc = devm_kmalloc(&pdev->dev, sizeof(*rstc), GFP_KERNEL); in hisi_reset_init() 95 if (!rstc) in hisi_reset_init() 99 if (IS_ERR(rstc->membase)) in hisi_reset_init() 102 spin_lock_init(&rstc->lock); in hisi_reset_init() 103 rstc->rcdev.owner = THIS_MODULE; in hisi_reset_init() 104 rstc->rcdev.ops = &hisi_reset_ops; in hisi_reset_init() 106 rstc->rcdev.of_reset_n_cells = 2; in hisi_reset_init() [all …]
|
| A 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()
|
| /drivers/reset/tegra/ |
| A D | reset-bpmp.c | 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() 46 return tegra_bpmp_reset_common(rstc, CMD_RESET_MODULE, id); in tegra_bpmp_reset_module() 52 return tegra_bpmp_reset_common(rstc, CMD_RESET_ASSERT, id); in tegra_bpmp_reset_assert() 58 return tegra_bpmp_reset_common(rstc, CMD_RESET_DEASSERT, id); in tegra_bpmp_reset_deassert() 69 bpmp->rstc.ops = &tegra_bpmp_reset_ops; in tegra_bpmp_init_resets() 70 bpmp->rstc.owner = THIS_MODULE; in tegra_bpmp_init_resets() 71 bpmp->rstc.of_node = bpmp->dev->of_node; in tegra_bpmp_init_resets() 72 bpmp->rstc.nr_resets = bpmp->soc->num_resets; in tegra_bpmp_init_resets() [all …]
|
| /drivers/clk/meson/ |
| A D | meson-aoclk.c | 26 struct meson_aoclk_reset_controller *rstc = in meson_aoclk_do_reset() local 29 return regmap_write(rstc->regmap, rstc->data->reset_reg, in meson_aoclk_do_reset() 30 BIT(rstc->data->reset[id])); in meson_aoclk_do_reset() 39 struct meson_aoclk_reset_controller *rstc; in meson_aoclkc_probe() local 50 rstc = devm_kzalloc(dev, sizeof(*rstc), GFP_KERNEL); in meson_aoclkc_probe() 51 if (!rstc) in meson_aoclkc_probe() 63 rstc->data = data; in meson_aoclkc_probe() 64 rstc->regmap = regmap; in meson_aoclkc_probe() 65 rstc->reset.ops = &meson_aoclk_reset_ops; in meson_aoclkc_probe() 66 rstc->reset.nr_resets = data->num_reset; in meson_aoclkc_probe() [all …]
|
| /drivers/mmc/host/ |
| A D | sdhci-st.c | 21 struct reset_control *rstc; member 351 struct reset_control *rstc; in sdhci_st_probe() local 365 if (IS_ERR(rstc)) in sdhci_st_probe() 366 return PTR_ERR(rstc); in sdhci_st_probe() 367 reset_control_deassert(rstc); in sdhci_st_probe() 378 pdata->rstc = rstc; in sdhci_st_probe() 427 reset_control_assert(rstc); in sdhci_st_probe() 437 struct reset_control *rstc = pdata->rstc; in sdhci_st_remove() local 445 reset_control_assert(rstc); in sdhci_st_remove() 463 reset_control_assert(pdata->rstc); in sdhci_st_suspend() [all …]
|
| /drivers/reset/amlogic/ |
| A D | reset-meson-audio-arb.c | 16 struct reset_controller_dev rstc; member 65 container_of(rcdev, struct meson_audio_arb_data, rstc); in meson_audio_arb_update() 86 container_of(rcdev, struct meson_audio_arb_data, rstc); in meson_audio_arb_status() 159 arb->rstc.nr_resets = data->reset_num; in meson_audio_arb_probe() 160 arb->rstc.ops = &meson_audio_arb_rstc_ops; in meson_audio_arb_probe() 161 arb->rstc.of_node = dev->of_node; in meson_audio_arb_probe() 162 arb->rstc.owner = THIS_MODULE; in meson_audio_arb_probe() 172 ret = devm_reset_controller_register(dev, &arb->rstc); in meson_audio_arb_probe()
|
| /drivers/net/ethernet/stmicro/stmmac/ |
| A D | dwmac-renesas-gbeth.c | 26 struct reset_control *rstc; member 42 ret = reset_control_deassert(gbeth->rstc); in renesas_gbeth_init() 51 reset_control_assert(gbeth->rstc); in renesas_gbeth_init() 66 ret = reset_control_assert(gbeth->rstc); in renesas_gbeth_exit() 112 gbeth->rstc = devm_reset_control_get_exclusive(dev, NULL); in renesas_gbeth_probe() 113 if (IS_ERR(gbeth->rstc)) in renesas_gbeth_probe() 114 return PTR_ERR(gbeth->rstc); in renesas_gbeth_probe()
|
| /drivers/clk/renesas/ |
| A D | clk-vbattb.c | 67 struct reset_control *rstc = dev_get_drvdata(dev); in vbattb_clk_action() local 70 ret = reset_control_assert(rstc); in vbattb_clk_action() 88 struct reset_control *rstc; in vbattb_clk_probe() local 121 rstc = devm_reset_control_get_shared(dev, NULL); in vbattb_clk_probe() 122 if (IS_ERR(rstc)) in vbattb_clk_probe() 123 return PTR_ERR(rstc); in vbattb_clk_probe() 129 ret = reset_control_deassert(rstc); in vbattb_clk_probe() 135 dev_set_drvdata(dev, rstc); in vbattb_clk_probe()
|
| /drivers/watchdog/ |
| A D | rzv2h_wdt.c | 52 struct reset_control *rstc; member 93 ret = reset_control_deassert(priv->rstc); in rzv2h_wdt_start() 126 ret = reset_control_assert(priv->rstc); in rzv2h_wdt_stop() 159 ret = reset_control_deassert(priv->rstc); in rzv2h_wdt_restart() 172 ret = reset_control_reset(priv->rstc); in rzv2h_wdt_restart() 228 priv->rstc = devm_reset_control_get_exclusive(dev, NULL); in rzv2h_wdt_probe() 229 if (IS_ERR(priv->rstc)) in rzv2h_wdt_probe() 230 return dev_err_probe(dev, PTR_ERR(priv->rstc), in rzv2h_wdt_probe()
|
| A D | rzg2l_wdt.c | 54 struct reset_control *rstc; member 108 ret = reset_control_deassert(priv->rstc); in rzg2l_wdt_start() 131 ret = reset_control_assert(priv->rstc); in rzg2l_wdt_stop() 188 ret = reset_control_deassert(priv->rstc); in rzg2l_wdt_restart() 199 ret = reset_control_reset(priv->rstc); in rzg2l_wdt_restart() 286 priv->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in rzg2l_wdt_probe() 287 if (IS_ERR(priv->rstc)) in rzg2l_wdt_probe() 288 return dev_err_probe(&pdev->dev, PTR_ERR(priv->rstc), in rzg2l_wdt_probe()
|
| A D | sunplus_wdt.c | 48 struct reset_control *rstc; member 159 priv->rstc = devm_reset_control_get_shared(dev, NULL); in sp_wdt_probe() 160 if (IS_ERR(priv->rstc)) in sp_wdt_probe() 161 return dev_err_probe(dev, PTR_ERR(priv->rstc), "Failed to get reset\n"); in sp_wdt_probe() 163 reset_control_deassert(priv->rstc); in sp_wdt_probe() 165 ret = devm_add_action_or_reset(dev, sp_reset_control_assert, priv->rstc); in sp_wdt_probe()
|
| /drivers/pci/controller/dwc/ |
| A D | pcie-bt1.c | 358 if (!btpci->dw.app_rsts[bt1_pcie_app_rsts[i]].rstc) { in bt1_pcie_get_resources() 365 if (!btpci->dw.core_rsts[bt1_pcie_core_rsts[i]].rstc) { in bt1_pcie_get_resources() 421 ret = reset_control_deassert(pci->core_rsts[DW_PCIE_PWR_RST].rstc); in bt1_pcie_cold_start_bus() 427 ret = reset_control_deassert(pci->core_rsts[DW_PCIE_HOT_RST].rstc); in bt1_pcie_cold_start_bus() 442 ret = reset_control_deassert(pci->core_rsts[DW_PCIE_PHY_RST].rstc); in bt1_pcie_cold_start_bus() 512 reset_control_assert(pci->core_rsts[DW_PCIE_STICKY_RST].rstc); in bt1_pcie_cold_start_bus() 515 reset_control_assert(pci->core_rsts[DW_PCIE_CORE_RST].rstc); in bt1_pcie_cold_start_bus() 518 reset_control_assert(pci->core_rsts[DW_PCIE_PIPE_RST].rstc); in bt1_pcie_cold_start_bus() 527 reset_control_assert(pci->core_rsts[DW_PCIE_PHY_RST].rstc); in bt1_pcie_cold_start_bus() 530 reset_control_assert(pci->core_rsts[DW_PCIE_HOT_RST].rstc); in bt1_pcie_cold_start_bus() [all …]
|
| /drivers/clocksource/ |
| A D | renesas-ostm.c | 164 struct reset_control *rstc; in ostm_init() local 172 rstc = of_reset_control_get_optional_exclusive(np, NULL); in ostm_init() 173 if (IS_ERR(rstc)) { in ostm_init() 174 ret = PTR_ERR(rstc); in ostm_init() 178 reset_control_deassert(rstc); in ostm_init() 219 reset_control_assert(rstc); in ostm_init() 220 reset_control_put(rstc); in ostm_init()
|
| A 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()
|
| /drivers/i2c/busses/ |
| A D | i2c-sun6i-p2wi.c | 90 struct reset_control *rstc; member 256 p2wi->rstc = devm_reset_control_get_exclusive(dev, NULL); in p2wi_probe() 257 if (IS_ERR(p2wi->rstc)) { in p2wi_probe() 259 p2wi->rstc); in p2wi_probe() 260 return PTR_ERR(p2wi->rstc); in p2wi_probe() 263 ret = reset_control_deassert(p2wi->rstc); in p2wi_probe() 307 reset_control_assert(p2wi->rstc); in p2wi_probe() 316 reset_control_assert(p2wi->rstc); in p2wi_remove()
|
| /drivers/pwm/ |
| A D | pwm-hibvt.c | 38 struct reset_control *rstc; member 220 hi_pwm_chip->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in hibvt_pwm_probe() 221 if (IS_ERR(hi_pwm_chip->rstc)) { in hibvt_pwm_probe() 223 return PTR_ERR(hi_pwm_chip->rstc); in hibvt_pwm_probe() 226 reset_control_assert(hi_pwm_chip->rstc); in hibvt_pwm_probe() 228 reset_control_deassert(hi_pwm_chip->rstc); in hibvt_pwm_probe() 253 reset_control_assert(hi_pwm_chip->rstc); in hibvt_pwm_remove() 255 reset_control_deassert(hi_pwm_chip->rstc); in hibvt_pwm_remove()
|
| /drivers/phy/st/ |
| A 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/thermal/renesas/ |
| A D | rzg2l_thermal.c | 61 struct reset_control *rstc; member 150 reset_control_assert(priv->rstc); in rzg2l_thermal_reset_assert_pm_disable_put() 177 priv->rstc = devm_reset_control_get_exclusive(dev, NULL); in rzg2l_thermal_probe() 178 if (IS_ERR(priv->rstc)) in rzg2l_thermal_probe() 179 return dev_err_probe(dev, PTR_ERR(priv->rstc), in rzg2l_thermal_probe() 182 ret = reset_control_deassert(priv->rstc); in rzg2l_thermal_probe()
|
| /drivers/phy/starfive/ |
| A D | phy-jh7110-dphy-rx.c | 67 struct reset_control *rstc; member 125 reset_control_deassert(dphy->rstc); in stf_dphy_power_on() 134 reset_control_assert(dphy->rstc); in stf_dphy_power_off() 179 dphy->rstc = devm_reset_control_array_get_exclusive(&pdev->dev); in stf_dphy_probe() 180 if (IS_ERR(dphy->rstc)) in stf_dphy_probe() 181 return PTR_ERR(dphy->rstc); in stf_dphy_probe()
|
| /drivers/staging/media/sunxi/cedrus/ |
| A D | cedrus_hw.c | 183 reset_control_reset(dev->rstc); in cedrus_watchdog() 196 reset_control_assert(dev->rstc); in cedrus_hw_suspend() 206 ret = reset_control_reset(dev->rstc); in cedrus_hw_resume() 241 reset_control_assert(dev->rstc); in cedrus_hw_resume() 307 dev->rstc = devm_reset_control_get(dev->dev, NULL); in cedrus_hw_probe() 308 if (IS_ERR(dev->rstc)) { in cedrus_hw_probe() 311 ret = PTR_ERR(dev->rstc); in cedrus_hw_probe()
|
| /drivers/phy/sunplus/ |
| A D | phy-sunplus-usb2.c | 71 struct reset_control *rstc; member 121 ret = reset_control_deassert(usbphy->rstc); in sp_uphy_init() 162 reset_control_assert(usbphy->rstc); in sp_uphy_init() 219 reset_control_assert(usbphy->rstc); in sp_uphy_exit() 269 usbphy->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in sp_usb_phy_probe() 270 if (IS_ERR(usbphy->rstc)) in sp_usb_phy_probe() 271 return PTR_ERR(usbphy->rstc); in sp_usb_phy_probe()
|
| /drivers/rtc/ |
| A D | rtc-sunplus.c | 60 struct reset_control *rstc; member 259 sp_rtc->rstc = devm_reset_control_get_exclusive(&plat_dev->dev, NULL); in sp_rtc_probe() 260 if (IS_ERR(sp_rtc->rstc)) in sp_rtc_probe() 261 return dev_err_probe(&plat_dev->dev, PTR_ERR(sp_rtc->rstc), in sp_rtc_probe() 268 ret = reset_control_deassert(sp_rtc->rstc); in sp_rtc_probe() 299 reset_control_assert(sp_rtc->rstc); in sp_rtc_probe() 311 reset_control_assert(sp_rtc->rstc); in sp_rtc_remove()
|