Lines Matching refs:pdev
286 void amd_iommu_flush_iotlb(u8 devfn, const struct pci_dev *pdev, in amd_iommu_flush_iotlb() argument
296 if ( !pci_ats_enabled(pdev->seg, pdev->bus, pdev->devfn) ) in amd_iommu_flush_iotlb()
299 iommu = find_iommu_for_device(pdev->seg, PCI_BDF2(pdev->bus, pdev->devfn)); in amd_iommu_flush_iotlb()
304 __func__, pdev->seg, pdev->bus, in amd_iommu_flush_iotlb()
305 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in amd_iommu_flush_iotlb()
312 req_id = get_dma_requestor_id(iommu->seg, PCI_BDF2(pdev->bus, devfn)); in amd_iommu_flush_iotlb()
314 maxpend = pdev->ats.queue_depth & 0xff; in amd_iommu_flush_iotlb()
326 struct pci_dev *pdev; in amd_iommu_flush_all_iotlbs() local
331 for_each_pdev( d, pdev ) in amd_iommu_flush_all_iotlbs()
333 u8 devfn = pdev->devfn; in amd_iommu_flush_all_iotlbs()
336 amd_iommu_flush_iotlb(devfn, pdev, gaddr, order); in amd_iommu_flush_all_iotlbs()
337 devfn += pdev->phantom_stride; in amd_iommu_flush_all_iotlbs()
338 } while ( devfn != pdev->devfn && in amd_iommu_flush_all_iotlbs()
339 PCI_SLOT(devfn) == PCI_SLOT(pdev->devfn) ); in amd_iommu_flush_all_iotlbs()