/kernel/linux/linux-5.10/drivers/reset/ |
H A D | core.c | 38 * only used for shared resets, which means that the value 198 static int reset_control_array_reset(struct reset_control_array *resets) in reset_control_array_reset() argument 202 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_reset() 203 ret = reset_control_reset(resets->rstc[i]); in reset_control_array_reset() 211 static int reset_control_array_assert(struct reset_control_array *resets) in reset_control_array_assert() argument 215 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_assert() 216 ret = reset_control_assert(resets->rstc[i]); in reset_control_array_assert() 225 reset_control_deassert(resets->rstc[i]); in reset_control_array_assert() 229 static int reset_control_array_deassert(struct reset_control_array *resets) in reset_control_array_deassert() argument 233 for (i = 0; i < resets in reset_control_array_deassert() 247 reset_control_array_acquire(struct reset_control_array *resets) reset_control_array_acquire() argument 267 reset_control_array_release(struct reset_control_array *resets) reset_control_array_release() argument 750 reset_control_array_put(struct reset_control_array *resets) reset_control_array_put() argument 879 struct reset_control_array *resets; of_reset_control_array_get() local [all...] |
H A D | reset-qcom-aoss.c | 19 const struct qcom_aoss_reset_map *resets; member 40 .resets = sdm845_aoss_resets, 54 const struct qcom_aoss_reset_map *map = &data->desc->resets[idx]; in qcom_aoss_control_assert() 66 const struct qcom_aoss_reset_map *map = &data->desc->resets[idx]; in qcom_aoss_control_deassert()
|
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
H A D | dwc3-of-simple.c | 29 struct reset_control *resets; member 55 simple->resets = of_reset_control_array_get(np, false, true, in dwc3_of_simple_probe() 57 if (IS_ERR(simple->resets)) { in dwc3_of_simple_probe() 58 ret = PTR_ERR(simple->resets); in dwc3_of_simple_probe() 59 dev_err(dev, "failed to get device resets, err=%d\n", ret); in dwc3_of_simple_probe() 63 ret = reset_control_deassert(simple->resets); in dwc3_of_simple_probe() 91 reset_control_assert(simple->resets); in dwc3_of_simple_probe() 94 reset_control_put(simple->resets); in dwc3_of_simple_probe() 106 reset_control_assert(simple->resets); in __dwc3_of_simple_teardown() 108 reset_control_put(simple->resets); in __dwc3_of_simple_teardown() [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc3/ |
H A D | dwc3-of-simple.c | 29 struct reset_control *resets; member 55 simple->resets = of_reset_control_array_get(np, false, true, in dwc3_of_simple_probe() 57 if (IS_ERR(simple->resets)) { in dwc3_of_simple_probe() 58 ret = PTR_ERR(simple->resets); in dwc3_of_simple_probe() 59 dev_err(dev, "failed to get device resets, err=%d\n", ret); in dwc3_of_simple_probe() 63 ret = reset_control_deassert(simple->resets); in dwc3_of_simple_probe() 91 reset_control_assert(simple->resets); in dwc3_of_simple_probe() 94 reset_control_put(simple->resets); in dwc3_of_simple_probe() 106 reset_control_assert(simple->resets); in __dwc3_of_simple_teardown() 108 reset_control_put(simple->resets); in __dwc3_of_simple_teardown() [all...] |
/kernel/linux/linux-6.6/drivers/reset/ |
H A D | core.c | 39 * only used for shared resets, which means that the value 199 static int reset_control_array_reset(struct reset_control_array *resets) in reset_control_array_reset() argument 203 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_reset() 204 ret = reset_control_reset(resets->rstc[i]); in reset_control_array_reset() 212 static int reset_control_array_rearm(struct reset_control_array *resets) in reset_control_array_rearm() argument 217 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_rearm() 218 rstc = resets->rstc[i]; in reset_control_array_rearm() 235 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_rearm() 236 rstc = resets->rstc[i]; in reset_control_array_rearm() 245 static int reset_control_array_assert(struct reset_control_array *resets) in reset_control_array_assert() argument 263 reset_control_array_deassert(struct reset_control_array *resets) reset_control_array_deassert() argument 281 reset_control_array_acquire(struct reset_control_array *resets) reset_control_array_acquire() argument 301 reset_control_array_release(struct reset_control_array *resets) reset_control_array_release() argument 984 reset_control_array_put(struct reset_control_array *resets) reset_control_array_put() argument 1177 struct reset_control_array *resets; of_reset_control_array_get() local [all...] |
H A D | reset-qcom-pdc.c | 22 const struct qcom_pdc_reset_map *resets; member 56 .resets = sdm845_pdc_resets, 77 .resets = sc7280_pdc_resets, 92 u32 mask = BIT(data->desc->resets[idx].bit); in qcom_pdc_control_assert() 101 u32 mask = BIT(data->desc->resets[idx].bit); in qcom_pdc_control_deassert()
|
H A D | reset-qcom-aoss.c | 19 const struct qcom_aoss_reset_map *resets; member 40 .resets = sdm845_aoss_resets, 54 const struct qcom_aoss_reset_map *map = &data->desc->resets[idx]; in qcom_aoss_control_assert() 66 const struct qcom_aoss_reset_map *map = &data->desc->resets[idx]; in qcom_aoss_control_deassert()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
H A D | gr2d.c | 36 struct reset_control_bulk_data resets[RST_GR2D_MAX]; member 217 gr2d->resets[RST_MC].id = "mc"; in gr2d_get_resets() 218 gr2d->resets[RST_GR2D].id = "2d"; in gr2d_get_resets() 222 dev, gr2d->nresets, gr2d->resets); in gr2d_get_resets() 228 if (WARN_ON(!gr2d->resets[RST_GR2D].rstc)) in gr2d_get_resets() 306 reset_control_bulk_release(gr2d->nresets, gr2d->resets); in gr2d_runtime_suspend() 320 err = reset_control_acquire(gr2d->resets[RST_MC].rstc); in gr2d_runtime_suspend() 326 err = reset_control_assert(gr2d->resets[RST_MC].rstc); in gr2d_runtime_suspend() 327 reset_control_release(gr2d->resets[RST_MC].rstc); in gr2d_runtime_suspend() 338 reset_control_bulk_acquire(gr2d->nresets, gr2d->resets); in gr2d_runtime_suspend() [all...] |
H A D | gr3d.c | 47 struct reset_control_bulk_data resets[RST_GR3D_MAX]; member 342 * We use array of resets, which includes MC resets, and MC in gr3d_power_up_legacy_domain() 466 gr3d->resets[RST_MC].id = "mc"; in gr3d_get_resets() 467 gr3d->resets[RST_MC2].id = "mc2"; in gr3d_get_resets() 468 gr3d->resets[RST_GR3D].id = "3d"; in gr3d_get_resets() 469 gr3d->resets[RST_GR3D2].id = "3d2"; in gr3d_get_resets() 473 dev, gr3d->nresets, gr3d->resets); in gr3d_get_resets() 479 if (WARN_ON(!gr3d->resets[RST_GR3D].rstc) || in gr3d_get_resets() 480 WARN_ON(!gr3d->resets[RST_GR3D in gr3d_get_resets() [all...] |
/kernel/linux/linux-5.10/drivers/phy/ |
H A D | phy-lgm-usb.c | 41 struct reset_control *resets[ARRAY_SIZE(PHY_RESETS)]; member 78 reset_control_deassert(ta->resets[i]); in phy_init() 115 reset_control_assert(ta->resets[i]); in phy_shutdown() 189 struct reset_control *resets[ARRAY_SIZE(CTL_RESETS)]; in phy_probe() local 221 resets[i] = devm_reset_control_get_exclusive(dev, CTL_RESETS[i]); in phy_probe() 222 if (IS_ERR(resets[i])) { in phy_probe() 224 return PTR_ERR(resets[i]); in phy_probe() 229 ta->resets[i] = devm_reset_control_get_exclusive(dev, PHY_RESETS[i]); in phy_probe() 230 if (IS_ERR(ta->resets[i])) { in phy_probe() 232 return PTR_ERR(ta->resets[ in phy_probe() [all...] |
/kernel/linux/linux-6.6/drivers/phy/ |
H A D | phy-lgm-usb.c | 41 struct reset_control *resets[ARRAY_SIZE(PHY_RESETS)]; member 78 reset_control_deassert(ta->resets[i]); in phy_init() 115 reset_control_assert(ta->resets[i]); in phy_shutdown() 189 struct reset_control *resets[ARRAY_SIZE(CTL_RESETS)]; in phy_probe() local 221 resets[i] = devm_reset_control_get_exclusive(dev, CTL_RESETS[i]); in phy_probe() 222 if (IS_ERR(resets[i])) { in phy_probe() 224 return PTR_ERR(resets[i]); in phy_probe() 229 ta->resets[i] = devm_reset_control_get_exclusive(dev, PHY_RESETS[i]); in phy_probe() 230 if (IS_ERR(ta->resets[i])) { in phy_probe() 232 return PTR_ERR(ta->resets[ in phy_probe() [all...] |
/kernel/linux/linux-6.6/drivers/clk/visconti/ |
H A D | reset.c | 26 const struct visconti_reset_data *data = &reset->resets[id]; in visconti_reset_assert() 41 const struct visconti_reset_data *data = &reset->resets[id]; in visconti_reset_deassert() 65 const struct visconti_reset_data *data = &reset->resets[id]; in visconti_reset_status() 88 const struct visconti_reset_data *resets, in visconti_register_reset_controller() 100 reset->resets = resets; in visconti_register_reset_controller() 86 visconti_register_reset_controller(struct device *dev, struct regmap *regmap, const struct visconti_reset_data *resets, unsigned int num_resets, const struct reset_control_ops *reset_ops, spinlock_t *lock) visconti_register_reset_controller() argument
|
H A D | reset.h | 24 const struct visconti_reset_data *resets; member 32 const struct visconti_reset_data *resets,
|
/kernel/linux/linux-6.6/drivers/usb/cdns3/ |
H A D | cdns3-starfive.c | 38 struct reset_control *resets; member 88 ret = reset_control_deassert(data->resets); in cdns_clk_rst_init() 103 reset_control_assert(data->resets); in cdns_clk_rst_deinit() 135 data->resets = devm_reset_control_array_get_exclusive(data->dev); in cdns_starfive_probe() 136 if (IS_ERR(data->resets)) in cdns_starfive_probe() 137 return dev_err_probe(data->dev, PTR_ERR(data->resets), in cdns_starfive_probe() 138 "Failed to get resets"); in cdns_starfive_probe()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ohci-platform.c | 40 struct reset_control *resets; member 158 priv->resets = devm_reset_control_array_get_optional_shared( in ohci_platform_probe() 160 if (IS_ERR(priv->resets)) { in ohci_platform_probe() 161 err = PTR_ERR(priv->resets); in ohci_platform_probe() 165 err = reset_control_deassert(priv->resets); in ohci_platform_probe() 228 reset_control_assert(priv->resets); in ohci_platform_probe() 254 reset_control_assert(priv->resets); in ohci_platform_remove()
|
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ohci-platform.c | 41 struct reset_control *resets; member 157 priv->resets = devm_reset_control_array_get_optional_shared( in ohci_platform_probe() 159 if (IS_ERR(priv->resets)) { in ohci_platform_probe() 160 err = PTR_ERR(priv->resets); in ohci_platform_probe() 164 err = reset_control_deassert(priv->resets); in ohci_platform_probe() 228 reset_control_assert(priv->resets); in ohci_platform_probe() 254 reset_control_assert(priv->resets); in ohci_platform_remove()
|
/kernel/linux/linux-6.6/drivers/pci/controller/dwc/ |
H A D | pcie-qcom.c | 166 struct reset_control_bulk_data resets[QCOM_PCIE_2_1_0_MAX_RESETS]; member 190 struct reset_control_bulk_data resets[QCOM_PCIE_2_4_0_MAX_RESETS]; member 331 res->resets[0].id = "pci"; in qcom_pcie_get_resources_2_1_0() 332 res->resets[1].id = "axi"; in qcom_pcie_get_resources_2_1_0() 333 res->resets[2].id = "ahb"; in qcom_pcie_get_resources_2_1_0() 334 res->resets[3].id = "por"; in qcom_pcie_get_resources_2_1_0() 335 res->resets[4].id = "phy"; in qcom_pcie_get_resources_2_1_0() 336 res->resets[5].id = "ext"; in qcom_pcie_get_resources_2_1_0() 340 ret = devm_reset_control_bulk_get_exclusive(dev, res->num_resets, res->resets); in qcom_pcie_get_resources_2_1_0() 352 reset_control_bulk_assert(res->num_resets, res->resets); in qcom_pcie_deinit_2_1_0() [all...] |
/kernel/linux/linux-5.10/arch/s390/kvm/ |
H A D | trace-s390.h | 203 * Trace point for resets that may be requested from userspace. 206 TP_PROTO(__u64 resets), 207 TP_ARGS(resets), 210 __field(__u64, resets) 214 __entry->resets = resets; 217 TP_printk("requesting userspace resets %llx", 218 __entry->resets)
|
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/ |
H A D | ccu-sun8i-de2.c | 227 .resets = sun8i_a83t_de2_resets, 237 .resets = sun8i_h3_de2_resets, 247 .resets = sun8i_a83t_de2_resets, 257 .resets = sun8i_a83t_de2_resets, 267 .resets = sun50i_a64_de2_resets, 277 .resets = sun50i_h5_de2_resets,
|
/kernel/linux/linux-6.6/arch/s390/kvm/ |
H A D | trace-s390.h | 203 * Trace point for resets that may be requested from userspace. 206 TP_PROTO(__u64 resets), 207 TP_ARGS(resets), 210 __field(__u64, resets) 214 __entry->resets = resets; 217 TP_printk("requesting userspace resets %llx", 218 __entry->resets)
|
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/ |
H A D | ccu-sun8i-de2.c | 188 .resets = sun8i_a83t_de2_resets, 198 .resets = sun8i_h3_de2_resets, 208 .resets = sun8i_a83t_de2_resets, 218 .resets = sun8i_a83t_de2_resets, 228 .resets = sun50i_a64_de2_resets, 238 .resets = sun50i_h5_de2_resets,
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | mtk_wdt.c | 12 #include <dt-bindings/reset/mt2712-resets.h> 13 #include <dt-bindings/reset/mediatek,mt6795-resets.h> 14 #include <dt-bindings/reset/mt7986-resets.h> 15 #include <dt-bindings/reset/mt8183-resets.h> 16 #include <dt-bindings/reset/mt8186-resets.h> 17 #include <dt-bindings/reset/mt8188-resets.h> 18 #include <dt-bindings/reset/mt8192-resets.h> 19 #include <dt-bindings/reset/mt8195-resets.h>
|
/kernel/linux/linux-6.6/drivers/gpu/host1x/ |
H A D | dev.c | 474 host->resets[0].id = "mc"; in host1x_get_resets() 475 host->resets[1].id = "host1x"; in host1x_get_resets() 476 host->nresets = ARRAY_SIZE(host->resets); in host1x_get_resets() 479 host->dev, host->nresets, host->resets); in host1x_get_resets() 661 err = reset_control_bulk_assert(host->nresets, host->resets); in host1x_runtime_suspend() 670 reset_control_bulk_release(host->nresets, host->resets); in host1x_runtime_suspend() 687 err = reset_control_bulk_acquire(host->nresets, host->resets); in host1x_runtime_resume() 699 err = reset_control_bulk_deassert(host->nresets, host->resets); in host1x_runtime_resume() 714 reset_control_bulk_release(host->nresets, host->resets); in host1x_runtime_resume()
|
/kernel/linux/linux-5.10/arch/arm/mach-davinci/ |
H A D | board-dm365-evm.c | 692 u8 mux, resets; in evm_init_cpld() local 737 resets = BIT(3) | BIT(2) | BIT(1) | BIT(0); in evm_init_cpld() 762 resets &= ~BIT(3); in evm_init_cpld() 765 resets &= ~BIT(1); in evm_init_cpld() 769 resets &= ~BIT(2); in evm_init_cpld() 774 resets &= ~BIT(0); in evm_init_cpld() 779 __raw_writeb(resets, cpld + CPLD_RESETS); in evm_init_cpld()
|
/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | hda_tegra.c | 80 struct reset_control_bulk_data resets[3]; member 181 rc = reset_control_bulk_assert(hda->nresets, hda->resets); in hda_tegra_runtime_resume() 198 rc = reset_control_bulk_deassert(hda->nresets, hda->resets); in hda_tegra_runtime_resume() 500 hda->resets[hda->nresets++].id = "hda"; in hda_tegra_probe() 507 hda->resets[hda->nresets++].id = "hda2hdmi"; in hda_tegra_probe() 515 hda->resets[hda->nresets++].id = "hda2codec_2x"; in hda_tegra_probe() 518 hda->resets); in hda_tegra_probe()
|