Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iommu/amd/
Dinit.c109 u16 pci_seg; member
146 u16 pci_seg; member
232 static void init_device_table_dma(struct amd_iommu_pci_seg *pci_seg);
295 iommu->index, iommu->pci_seg->id, in get_global_efr()
413 u32 dev_table_size = iommu->pci_seg->dev_table_size; in iommu_set_device_table()
616 static int __init find_last_devid_acpi(struct acpi_table_header *table, u16 pci_seg) in find_last_devid_acpi() argument
627 if (h->pci_seg == pci_seg && in find_last_devid_acpi()
653 static inline int __init alloc_dev_table(struct amd_iommu_pci_seg *pci_seg) in alloc_dev_table() argument
655 pci_seg->dev_table = iommu_alloc_pages(GFP_KERNEL | GFP_DMA32, in alloc_dev_table()
656 get_order(pci_seg->dev_table_size)); in alloc_dev_table()
[all …]
Diommu.c141 struct amd_iommu_pci_seg *pci_seg = iommu->pci_seg; in get_dev_table() local
143 BUG_ON(pci_seg == NULL); in get_dev_table()
144 dev_table = pci_seg->dev_table; in get_dev_table()
170 struct amd_iommu_pci_seg *pci_seg = iommu->pci_seg; in amd_iommu_set_rlookup_table() local
172 pci_seg->rlookup_table[devid] = iommu; in amd_iommu_set_rlookup_table()
177 struct amd_iommu_pci_seg *pci_seg; in __rlookup_amd_iommu() local
179 for_each_pci_segment(pci_seg) { in __rlookup_amd_iommu()
180 if (pci_seg->id == seg) in __rlookup_amd_iommu()
181 return pci_seg->rlookup_table[devid]; in __rlookup_amd_iommu()
199 struct amd_iommu_pci_seg *pci_seg = iommu->pci_seg; in alloc_dev_data() local
[all …]
Dppr.c89 iommu->pci_seg->id, PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in ppr_is_valid()
97 iommu->pci_seg->id, PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in ppr_is_valid()
117 pdev = pci_get_domain_bus_and_slot(iommu->pci_seg->id, in iommu_call_iopf_notifier()
226 PCI_SEG_DEVID_TO_SBDF(iommu->pci_seg->id, iommu->devid)); in amd_iommu_iopf_init()
Damd_iommu_types.h502 #define for_each_pci_segment(pci_seg) \ argument
503 list_for_each_entry((pci_seg), &amd_iommu_pci_seg_list, list)
504 #define for_each_pci_segment_safe(pci_seg, next) \ argument
505 list_for_each_entry_safe((pci_seg), (next), &amd_iommu_pci_seg_list, list)
708 struct amd_iommu_pci_seg *pci_seg; member