Lines Matching defs:group
913 struct iommu_group *group;
915 group = iommu_group_get(dev);
916 if (!group)
917 group = iommu_group_alloc();
919 return group;
933 /* Get iommu group information from peer devices or devices on the parent bus */
937 struct iommu_group *group;
942 * the shared iommu group.
948 group = iommu_group_get(&tmp->dev);
949 if (group)
950 return group;
963 struct iommu_group *group = NULL;
967 /* We can partition PCIe devices so assign device group to the device */
969 group = pci_device_group(&pdev->dev);
980 * PCI controllers device group. If this is the first
982 * device group information from the PCI controller device
983 * node and remove the PCI controller iommu group.
984 * For subsequent devices, the iommu group information can
989 group = get_device_iommu_group(pci_ctl->parent);
992 group = get_shared_pci_device_group(pdev);
996 if (!group)
997 group = ERR_PTR(-ENODEV);
999 return group;
1004 struct iommu_group *group = ERR_PTR(-ENODEV);
1008 * For platform devices we allocate a separate group for
1012 group = get_pci_device_group(to_pci_dev(dev));
1014 group = get_device_iommu_group(dev);
1016 return group;