Searched refs:pci_seg (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/iommu/amd/ |
| H A D | init.c | 108 u16 pci_seg; member 148 u16 pci_seg; member 229 static void init_device_table_dma(struct amd_iommu_pci_seg *pci_seg); 289 iommu->index, iommu->pci_seg->id, in get_global_efr() 407 u32 dev_table_size = iommu->pci_seg->dev_table_size; in iommu_set_device_table() 606 static int __init find_last_devid_acpi(struct acpi_table_header *table, u16 pci_seg) in find_last_devid_acpi() argument 617 if (h->pci_seg == pci_seg && in find_last_devid_acpi() 643 static inline int __init alloc_dev_table(struct amd_iommu_pci_seg *pci_seg) in alloc_dev_table() argument 645 pci_seg->dev_table = iommu_alloc_pages_sz(GFP_KERNEL | GFP_DMA32, in alloc_dev_table() 646 pci_seg->dev_table_size); in alloc_dev_table() [all …]
|
| H A D | iommu.c | 315 struct amd_iommu_pci_seg *pci_seg = iommu->pci_seg; in get_dev_table() local 317 BUG_ON(pci_seg == NULL); in get_dev_table() 318 dev_table = pci_seg->dev_table; in get_dev_table() 344 struct amd_iommu_pci_seg *pci_seg = iommu->pci_seg; in amd_iommu_set_rlookup_table() local 346 pci_seg->rlookup_table[devid] = iommu; in amd_iommu_set_rlookup_table() 351 struct amd_iommu_pci_seg *pci_seg; in __rlookup_amd_iommu() local 353 for_each_pci_segment(pci_seg) { in __rlookup_amd_iommu() 354 if (pci_seg->id == seg) in __rlookup_amd_iommu() 355 return pci_seg->rlookup_table[devid]; in __rlookup_amd_iommu() 373 struct amd_iommu_pci_seg *pci_seg = iommu->pci_seg; in alloc_dev_data() local [all …]
|
| H A D | ppr.c | 91 iommu->pci_seg->id, PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in ppr_is_valid() 99 iommu->pci_seg->id, PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in ppr_is_valid() 119 pdev = pci_get_domain_bus_and_slot(iommu->pci_seg->id, in iommu_call_iopf_notifier() 228 PCI_SEG_DEVID_TO_SBDF(iommu->pci_seg->id, iommu->devid)); in amd_iommu_iopf_init()
|
| H A D | amd_iommu_types.h | 453 #define for_each_pci_segment(pci_seg) \ argument 454 list_for_each_entry((pci_seg), &amd_iommu_pci_seg_list, list) 455 #define for_each_pci_segment_safe(pci_seg, next) \ argument 456 list_for_each_entry_safe((pci_seg), (next), &amd_iommu_pci_seg_list, list) 686 struct amd_iommu_pci_seg *pci_seg; member
|
| H A D | amd_iommu.h | 217 initial_dte = amd_iommu_get_ivhd_dte_flags(iommu->pci_seg->id, dev_data->devid); in amd_iommu_make_clear_dte()
|