Lines Matching refs:swgroup
26 unsigned int swgroup;
343 tegra_smmu_find_swgroup(struct tegra_smmu *smmu, unsigned int swgroup)
349 if (smmu->soc->swgroups[i].swgroup == swgroup) {
358 static void tegra_smmu_enable(struct tegra_smmu *smmu, unsigned int swgroup,
365 group = tegra_smmu_find_swgroup(smmu, swgroup);
373 pr_warn("%s group from swgroup %u not found\n", __func__,
374 swgroup);
382 if (client->swgroup != swgroup)
391 static void tegra_smmu_disable(struct tegra_smmu *smmu, unsigned int swgroup,
398 group = tegra_smmu_find_swgroup(smmu, swgroup);
410 if (client->swgroup != swgroup)
488 unsigned int swgroup = args.args[0];
501 tegra_smmu_enable(smmu, swgroup, as->id);
521 unsigned int swgroup = args.args[0];
530 tegra_smmu_disable(smmu, swgroup, as->id);
884 tegra_smmu_find_group(struct tegra_smmu *smmu, unsigned int swgroup)
890 if (smmu->soc->groups[i].swgroups[j] == swgroup)
907 unsigned int swgroup)
913 /* Find group_soc associating with swgroup */
914 soc = tegra_smmu_find_group(smmu, swgroup);
918 /* Find existing iommu_group associating with swgroup or group_soc */
920 if ((group->swgroup == swgroup) || (soc && group->soc == soc)) {
933 group->swgroup = swgroup;
1011 seq_printf(s, "swgroup enabled ASID\n");