Home
last modified time | relevance | path

Searched refs:rstc (Results 1 – 25 of 135) sorted by relevance

123456

/linux-6.3-rc2/drivers/reset/
A Dcore.c218 rstc = resets->rstc[i]; in reset_control_array_rearm()
236 rstc = resets->rstc[i]; in reset_control_array_rearm()
238 if (rstc && rstc->shared) in reset_control_array_rearm()
354 ret = rstc->rcdev->ops->reset(rstc->rcdev, rstc->id); in reset_control_reset()
480 rcdev_name(rstc->rcdev), rstc->id); in reset_control_assert()
485 return rstc->rcdev->ops->assert(rstc->rcdev, rstc->id); in reset_control_assert()
565 return rstc->rcdev->ops->deassert(rstc->rcdev, rstc->id); in reset_control_deassert()
614 return rstc->rcdev->ops->status(rstc->rcdev, rstc->id); in reset_control_status()
661 if (rstc != rc && rstc->id == rc->id) { in reset_control_acquire()
718 if (!rstc || WARN_ON(IS_ERR(rstc))) in reset_control_release()
[all …]
A Dreset-meson-audio-arb.c15 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()
A Dreset-rzg2l-usbphy-ctrl.c33 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()
/linux-6.3-rc2/drivers/clk/hisilicon/
A Dreset.c56 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 Dclk-hi3519.c31 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()
/linux-6.3-rc2/drivers/reset/tegra/
A Dreset-bpmp.c13 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 …]
/linux-6.3-rc2/drivers/clk/meson/
A Dmeson-aoclk.c25 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 …]
/linux-6.3-rc2/Documentation/devicetree/bindings/reset/
A Datmel,at91sam9260-reset.yaml21 - atmel,at91sam9260-rstc
22 - atmel,at91sam9g45-rstc
23 - atmel,sama5d3-rstc
24 - microchip,sam9x60-rstc
25 - microchip,sama7g5-rstc
27 - const: atmel,sama5d3-rstc
28 - const: atmel,at91sam9g45-rstc
53 - microchip,sama7g5-rstc
65 compatible = "atmel,at91sam9260-rstc";
/linux-6.3-rc2/arch/arm/mach-meson/
A Dplatsmp.c158 struct reset_control *rstc; in meson8_smp_boot_secondary() local
162 if (IS_ERR(rstc)) { in meson8_smp_boot_secondary()
164 return PTR_ERR(rstc); in meson8_smp_boot_secondary()
170 ret = reset_control_assert(rstc); in meson8_smp_boot_secondary()
195 ret = reset_control_deassert(rstc); in meson8_smp_boot_secondary()
206 reset_control_put(rstc); in meson8_smp_boot_secondary()
214 struct reset_control *rstc; in meson8b_smp_boot_secondary() local
219 if (IS_ERR(rstc)) { in meson8b_smp_boot_secondary()
221 return PTR_ERR(rstc); in meson8b_smp_boot_secondary()
237 ret = reset_control_assert(rstc); in meson8b_smp_boot_secondary()
[all …]
/linux-6.3-rc2/include/linux/
A Dreset.h25 struct reset_control *rstc; member
30 int reset_control_reset(struct reset_control *rstc);
31 int reset_control_rearm(struct reset_control *rstc);
32 int reset_control_assert(struct reset_control *rstc);
33 int reset_control_deassert(struct reset_control *rstc);
34 int reset_control_status(struct reset_control *rstc);
35 int reset_control_acquire(struct reset_control *rstc);
36 void reset_control_release(struct reset_control *rstc);
50 void reset_control_put(struct reset_control *rstc);
74 static inline int reset_control_reset(struct reset_control *rstc) in reset_control_reset() argument
[all …]
/linux-6.3-rc2/drivers/soc/amlogic/
A Dmeson-gx-pwrc-vpu.c37 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()
277 struct reset_control *rstc; in meson_gx_pwrc_vpu_probe() local
310 rstc = devm_reset_control_array_get_exclusive(&pdev->dev); in meson_gx_pwrc_vpu_probe()
311 if (IS_ERR(rstc)) { in meson_gx_pwrc_vpu_probe()
312 if (PTR_ERR(rstc) != -EPROBE_DEFER) in meson_gx_pwrc_vpu_probe()
314 return PTR_ERR(rstc); in meson_gx_pwrc_vpu_probe()
[all …]
/linux-6.3-rc2/drivers/mmc/host/
A Dsdhci-st.c21 struct reset_control *rstc; member
352 struct reset_control *rstc; in sdhci_st_probe() local
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
448 reset_control_assert(rstc); in sdhci_st_remove()
468 reset_control_assert(pdata->rstc); in sdhci_st_suspend()
[all …]
/linux-6.3-rc2/arch/arm/boot/dts/
A Dsunplus-sp7021.dtsi57 resets = <&rstc RST_OTPRX>;
85 resets = <&rstc RST_GPIO>;
172 rstc: reset@54 { label
183 resets = <&rstc RST_RTC>;
196 resets = <&rstc RST_SPI_COMBO_0>;
213 resets = <&rstc RST_SPI_COMBO_1>;
248 resets = <&rstc RST_UA0>;
258 resets = <&rstc RST_UA1>;
269 resets = <&rstc RST_UA2>;
280 resets = <&rstc RST_UA3>;
[all …]
/linux-6.3-rc2/drivers/watchdog/
A Drzg2l_wdt.c54 struct reset_control *rstc; member
69 err = reset_control_assert(priv->rstc); in rzg2l_wdt_reset()
73 err = reset_control_deassert(priv->rstc); in rzg2l_wdt_reset()
78 priv->rstc); in rzg2l_wdt_reset()
80 err = reset_control_reset(priv->rstc); in rzg2l_wdt_reset()
233 reset_control_assert(priv->rstc); in rzg2l_wdt_reset_assert_pm_disable()
271 priv->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in rzg2l_wdt_probe()
272 if (IS_ERR(priv->rstc)) in rzg2l_wdt_probe()
273 return dev_err_probe(&pdev->dev, PTR_ERR(priv->rstc), in rzg2l_wdt_probe()
276 ret = reset_control_deassert(priv->rstc); in rzg2l_wdt_probe()
A Dsunplus_wdt.c48 struct reset_control *rstc; member
172 priv->rstc = devm_reset_control_get_shared(dev, NULL); in sp_wdt_probe()
173 if (IS_ERR(priv->rstc)) in sp_wdt_probe()
174 return dev_err_probe(dev, PTR_ERR(priv->rstc), "Failed to get reset\n"); in sp_wdt_probe()
176 reset_control_deassert(priv->rstc); in sp_wdt_probe()
178 ret = devm_add_action_or_reset(dev, sp_reset_control_assert, priv->rstc); in sp_wdt_probe()
/linux-6.3-rc2/arch/arm/mach-rockchip/
A Dplatsmp.c67 struct reset_control *rstc = rockchip_get_core_reset(pd); in pmu_set_power_domain() local
70 if (IS_ERR(rstc) && read_cpuid_part() != ARM_CPU_PART_CORTEX_A9) { in pmu_set_power_domain()
73 return PTR_ERR(rstc); in pmu_set_power_domain()
81 if (!IS_ERR(rstc) && !on) in pmu_set_power_domain()
82 reset_control_assert(rstc); in pmu_set_power_domain()
103 if (!IS_ERR(rstc)) { in pmu_set_power_domain()
105 reset_control_deassert(rstc); in pmu_set_power_domain()
106 reset_control_put(rstc); in pmu_set_power_domain()
/linux-6.3-rc2/drivers/pci/controller/dwc/
A Dpcie-bt1.c358 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 …]
/linux-6.3-rc2/drivers/clocksource/
A Drenesas-ostm.c164 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()
218 reset_control_assert(rstc); in ostm_init()
219 reset_control_put(rstc); in ostm_init()
A Ddw_apb_timer_of.c22 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()
/linux-6.3-rc2/drivers/phy/st/
A Dphy-stih407-usb.c36 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()
/linux-6.3-rc2/drivers/pwm/
A Dpwm-hibvt.c39 struct reset_control *rstc; member
221 pwm_chip->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in hibvt_pwm_probe()
222 if (IS_ERR(pwm_chip->rstc)) { in hibvt_pwm_probe()
224 return PTR_ERR(pwm_chip->rstc); in hibvt_pwm_probe()
227 reset_control_assert(pwm_chip->rstc); in hibvt_pwm_probe()
229 reset_control_deassert(pwm_chip->rstc); in hibvt_pwm_probe()
255 reset_control_assert(pwm_chip->rstc); in hibvt_pwm_remove()
257 reset_control_deassert(pwm_chip->rstc); in hibvt_pwm_remove()
/linux-6.3-rc2/drivers/thermal/
A Drzg2l_thermal.c61 struct reset_control *rstc; member
150 reset_control_assert(priv->rstc); in rzg2l_thermal_reset_assert_pm_disable_put()
179 priv->rstc = devm_reset_control_get_exclusive(dev, NULL); in rzg2l_thermal_probe()
180 if (IS_ERR(priv->rstc)) in rzg2l_thermal_probe()
181 return dev_err_probe(dev, PTR_ERR(priv->rstc), in rzg2l_thermal_probe()
184 ret = reset_control_deassert(priv->rstc); in rzg2l_thermal_probe()
/linux-6.3-rc2/drivers/i2c/busses/
A Di2c-sun6i-p2wi.c90 struct reset_control *rstc; member
257 p2wi->rstc = devm_reset_control_get_exclusive(dev, NULL); in p2wi_probe()
258 if (IS_ERR(p2wi->rstc)) { in p2wi_probe()
259 ret = PTR_ERR(p2wi->rstc); in p2wi_probe()
264 ret = reset_control_deassert(p2wi->rstc); in p2wi_probe()
308 reset_control_assert(p2wi->rstc); in p2wi_probe()
320 reset_control_assert(p2wi->rstc); in p2wi_remove()
/linux-6.3-rc2/drivers/spi/
A Dspi-dw-mmio.c33 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()
/linux-6.3-rc2/drivers/phy/sunplus/
A Dphy-sunplus-usb2.c71 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()

Completed in 51 milliseconds

123456