Lines Matching defs:pdev
1279 static struct iommu_group *get_pci_alias_group(struct pci_dev *pdev, unsigned long *devfns);
1297 static struct iommu_group *get_pci_function_alias_group(struct pci_dev *pdev, unsigned long *devfns)
1302 if (!pdev->multifunction || pci_acs_enabled(pdev, REQ_ACS_FLAGS)) {
1308 if (tmp == pdev || tmp->bus != pdev->bus || PCI_SLOT(tmp->devfn) != PCI_SLOT(pdev->devfn) ||
1332 static struct iommu_group *get_pci_alias_group(struct pci_dev *pdev, unsigned long *devfns)
1337 if (test_and_set_bit(pdev->devfn & 0xff, devfns)) {
1341 group = iommu_group_get(&pdev->dev);
1348 if (tmp == pdev || tmp->bus != pdev->bus) {
1353 if (pci_devs_are_dma_aliases(pdev, tmp)) {
1372 struct pci_dev *pdev;
1380 static int get_pci_alias_or_group(struct pci_dev *pdev, u16 alias, void *opaque)
1384 data->pdev = pdev;
1385 data->group = iommu_group_get(&pdev->dev);
1406 struct pci_dev *pdev = to_pci_dev(dev);
1422 if (pci_for_each_dma_alias(pdev, get_pci_alias_or_group, &data)) {
1426 pdev = data.pdev;
1434 for (bus = pdev->bus; !pci_is_root_bus(bus); bus = bus->parent) {
1443 pdev = bus->self;
1445 group = iommu_group_get(&pdev->dev);
1455 group = get_pci_alias_group(pdev, (unsigned long *)devfns);
1465 group = get_pci_function_alias_group(pdev, (unsigned long *)devfns);