Home
last modified time | relevance | path

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

/linux/drivers/iommu/amd/
H A Dinit.c108 u16 pci_seg; member
145 u16 pci_seg; member
226 static void init_device_table_dma(struct amd_iommu_pci_seg *pci_seg);
286 iommu->index, iommu->pci_seg->id, in get_global_efr()
404 u32 dev_table_size = iommu->pci_seg->dev_table_size; in iommu_set_device_table()
603 static int __init find_last_devid_acpi(struct acpi_table_header *table, u16 pci_seg) in find_last_devid_acpi() argument
614 if (h->pci_seg == pci_seg && in find_last_devid_acpi()
640 static inline int __init alloc_dev_table(struct amd_iommu_pci_seg *pci_seg) in alloc_dev_table() argument
642 pci_seg->dev_table = iommu_alloc_pages_sz(GFP_KERNEL | GFP_DMA32, in alloc_dev_table()
643 pci_seg->dev_table_size); in alloc_dev_table()
[all …]
H A Ddebugfs.c141 struct amd_iommu_pci_seg *pci_seg; in devid_write() local
170 for_each_pci_segment(pci_seg) { in devid_write()
171 if (pci_seg->id != seg) in devid_write()
173 if (devid > pci_seg->last_bdf) { in devid_write()
177 iommu = pci_seg->rlookup_table[devid]; in devid_write()
185 if (pci_seg->id != seg) { in devid_write()
212 static void dump_dte(struct seq_file *m, struct amd_iommu_pci_seg *pci_seg, u16 devid) in dump_dte() argument
217 iommu = pci_seg->rlookup_table[devid]; in dump_dte()
229 seq_printf(m, "%04x:%02x:%02x.%x ", pci_seg->id, PCI_BUS_NUM(devid), in dump_dte()
238 struct amd_iommu_pci_seg *pci_seg; in iommu_devtbl_show() local
[all …]
H A Diommu.c315 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 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()
H A Damd_iommu_types.h448 #define for_each_pci_segment(pci_seg) \ argument
449 list_for_each_entry((pci_seg), &amd_iommu_pci_seg_list, list)
450 #define for_each_pci_segment_safe(pci_seg, next) \ argument
451 list_for_each_entry_safe((pci_seg), (next), &amd_iommu_pci_seg_list, list)
681 struct amd_iommu_pci_seg *pci_seg; member
H A Damd_iommu.h214 initial_dte = amd_iommu_get_ivhd_dte_flags(iommu->pci_seg->id, dev_data->devid); in amd_iommu_make_clear_dte()