Home
last modified time | relevance | path

Searched refs:pci_seg (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/iommu/amd/
H A Dinit.c108 u16 pci_seg; member
148 u16 pci_seg; member
232 static void init_device_table_dma(struct amd_iommu_pci_seg *pci_seg);
292 iommu->index, iommu->pci_seg->id, in get_global_efr()
388 u32 dev_table_size = iommu->pci_seg->dev_table_size; in iommu_set_device_table()
587 static int __init find_last_devid_acpi(struct acpi_table_header *table, u16 pci_seg) in find_last_devid_acpi() argument
598 if (h->pci_seg == pci_seg && in find_last_devid_acpi()
624 static inline int __init alloc_dev_table(struct amd_iommu_pci_seg *pci_seg) in alloc_dev_table() argument
626 pci_seg->dev_table = iommu_alloc_pages_sz(GFP_KERNEL | GFP_DMA32, in alloc_dev_table()
627 pci_seg->dev_table_size); in alloc_dev_table()
[all …]
H A Diommu.c318 struct amd_iommu_pci_seg *pci_seg = iommu->pci_seg; in get_dev_table() local
320 BUG_ON(pci_seg == NULL); in get_dev_table()
321 dev_table = pci_seg->dev_table; in get_dev_table()
347 struct amd_iommu_pci_seg *pci_seg = iommu->pci_seg; in amd_iommu_set_rlookup_table() local
349 pci_seg->rlookup_table[devid] = iommu; in amd_iommu_set_rlookup_table()
354 struct amd_iommu_pci_seg *pci_seg; in __rlookup_amd_iommu() local
356 for_each_pci_segment(pci_seg) { in __rlookup_amd_iommu()
357 if (pci_seg->id != seg) in __rlookup_amd_iommu()
360 if (devid > pci_seg->last_bdf) in __rlookup_amd_iommu()
362 return pci_seg->rlookup_table[devid]; in __rlookup_amd_iommu()
[all …]