• Home
  • Raw
  • Download

Lines Matching refs:group

26 	struct iommu_group *group;  member
339 const struct tegra_smmu_swgroup *group = NULL; in tegra_smmu_find_swgroup() local
344 group = &smmu->soc->swgroups[i]; in tegra_smmu_find_swgroup()
349 return group; in tegra_smmu_find_swgroup()
355 const struct tegra_smmu_swgroup *group; in tegra_smmu_enable() local
359 group = tegra_smmu_find_swgroup(smmu, swgroup); in tegra_smmu_enable()
360 if (group) { in tegra_smmu_enable()
361 value = smmu_readl(smmu, group->reg); in tegra_smmu_enable()
365 smmu_writel(smmu, value, group->reg); in tegra_smmu_enable()
388 const struct tegra_smmu_swgroup *group; in tegra_smmu_disable() local
392 group = tegra_smmu_find_swgroup(smmu, swgroup); in tegra_smmu_disable()
393 if (group) { in tegra_smmu_disable()
394 value = smmu_readl(smmu, group->reg); in tegra_smmu_disable()
398 smmu_writel(smmu, value, group->reg); in tegra_smmu_disable()
889 struct tegra_smmu_group *group = iommu_data; in tegra_smmu_group_release() local
890 struct tegra_smmu *smmu = group->smmu; in tegra_smmu_group_release()
893 list_del(&group->list); in tegra_smmu_group_release()
903 struct tegra_smmu_group *group; in tegra_smmu_device_group() local
912 list_for_each_entry(group, &smmu->groups, list) in tegra_smmu_device_group()
913 if ((group->swgroup == swgroup) || (soc && group->soc == soc)) { in tegra_smmu_device_group()
914 grp = iommu_group_ref_get(group->group); in tegra_smmu_device_group()
919 group = devm_kzalloc(smmu->dev, sizeof(*group), GFP_KERNEL); in tegra_smmu_device_group()
920 if (!group) { in tegra_smmu_device_group()
925 INIT_LIST_HEAD(&group->list); in tegra_smmu_device_group()
926 group->swgroup = swgroup; in tegra_smmu_device_group()
927 group->smmu = smmu; in tegra_smmu_device_group()
928 group->soc = soc; in tegra_smmu_device_group()
931 group->group = pci_device_group(dev); in tegra_smmu_device_group()
933 group->group = generic_device_group(dev); in tegra_smmu_device_group()
935 if (IS_ERR(group->group)) { in tegra_smmu_device_group()
936 devm_kfree(smmu->dev, group); in tegra_smmu_device_group()
941 iommu_group_set_iommudata(group->group, group, tegra_smmu_group_release); in tegra_smmu_device_group()
943 iommu_group_set_name(group->group, soc->name); in tegra_smmu_device_group()
944 list_add_tail(&group->list, &smmu->groups); in tegra_smmu_device_group()
947 return group->group; in tegra_smmu_device_group()
1012 const struct tegra_smmu_swgroup *group = &smmu->soc->swgroups[i]; in tegra_smmu_swgroups_show() local
1016 value = smmu_readl(smmu, group->reg); in tegra_smmu_swgroups_show()
1025 seq_printf(s, "%-9s %-7s %#04x\n", group->name, status, in tegra_smmu_swgroups_show()