Lines Matching defs:rstc
11 static struct tegra_bpmp *to_tegra_bpmp(struct reset_controller_dev *rstc)
13 return container_of(rstc, struct tegra_bpmp, rstc);
16 static int tegra_bpmp_reset_common(struct reset_controller_dev *rstc,
20 struct tegra_bpmp *bpmp = to_tegra_bpmp(rstc);
43 static int tegra_bpmp_reset_module(struct reset_controller_dev *rstc,
46 return tegra_bpmp_reset_common(rstc, CMD_RESET_MODULE, id);
49 static int tegra_bpmp_reset_assert(struct reset_controller_dev *rstc,
52 return tegra_bpmp_reset_common(rstc, CMD_RESET_ASSERT, id);
55 static int tegra_bpmp_reset_deassert(struct reset_controller_dev *rstc,
58 return tegra_bpmp_reset_common(rstc, CMD_RESET_DEASSERT, id);
69 bpmp->rstc.ops = &tegra_bpmp_reset_ops;
70 bpmp->rstc.owner = THIS_MODULE;
71 bpmp->rstc.of_node = bpmp->dev->of_node;
72 bpmp->rstc.nr_resets = bpmp->soc->num_resets;
74 return devm_reset_controller_register(bpmp->dev, &bpmp->rstc);