/linux-4.4.14/arch/powerpc/include/asm/ |
D | iommu.h | 52 int (*set)(struct iommu_table *tbl, 63 int (*exchange)(struct iommu_table *tbl, 68 void (*clear)(struct iommu_table *tbl, 71 unsigned long (*get)(struct iommu_table *tbl, long index); 72 void (*flush)(struct iommu_table *tbl); 73 void (*free)(struct iommu_table *tbl); 97 struct iommu_table { struct 126 int get_iommu_order(unsigned long size, struct iommu_table *tbl) in get_iommu_order() argument 137 struct iommu_table *base) in set_iommu_table_base() 150 extern void iommu_free_table(struct iommu_table *tbl, const char *node_name); [all …]
|
D | device.h | 13 struct iommu_table; 34 struct iommu_table *iommu_table_base;
|
D | vio.h | 48 struct iommu_table;
|
D | pci-bridge.h | 189 struct iommu_table;
|
D | machdep.h | 27 struct iommu_table;
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
D | pci.h | 120 struct iommu_table iommu_table; member 205 extern int pnv_tce_build(struct iommu_table *tbl, long index, long npages, 208 extern void pnv_tce_free(struct iommu_table *tbl, long index, long npages); 209 extern int pnv_tce_xchg(struct iommu_table *tbl, long index, 211 extern unsigned long pnv_tce_get(struct iommu_table *tbl, long index); 219 extern struct iommu_table *pnv_pci_table_alloc(int nid); 222 struct iommu_table *tbl, 224 extern void pnv_pci_unlink_table_and_group(struct iommu_table *tbl, 226 extern void pnv_pci_setup_iommu_table(struct iommu_table *tbl, 232 extern void pnv_pci_ioda_tce_invalidate(struct iommu_table *tbl,
|
D | pci.c | 576 static __be64 *pnv_tce(struct iommu_table *tbl, long idx) in pnv_tce() 596 int pnv_tce_build(struct iommu_table *tbl, long index, long npages, in pnv_tce_build() 619 int pnv_tce_xchg(struct iommu_table *tbl, long index, in pnv_tce_xchg() 639 void pnv_tce_free(struct iommu_table *tbl, long index, long npages) in pnv_tce_free() 650 unsigned long pnv_tce_get(struct iommu_table *tbl, long index) in pnv_tce_get() 655 struct iommu_table *pnv_pci_table_alloc(int nid) in pnv_pci_table_alloc() 657 struct iommu_table *tbl; in pnv_pci_table_alloc() 659 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, nid); in pnv_pci_table_alloc() 666 struct iommu_table *tbl, in pnv_pci_link_table_and_group() 695 void pnv_pci_unlink_table_and_group(struct iommu_table *tbl, in pnv_pci_unlink_table_and_group() [all …]
|
D | pci-p5ioc2.c | 98 struct iommu_table *tbl = phb->p5ioc2.table_group.tables[0]; in pnv_pci_p5ioc2_dma_dev_setup() 131 struct iommu_table *tbl; in pnv_pci_init_p5ioc2_phb() 198 pnv_pci_setup_iommu_table(&phb->p5ioc2.iommu_table, in pnv_pci_init_p5ioc2_phb() 206 tbl = phb->p5ioc2.table_group.tables[0] = &phb->p5ioc2.iommu_table; in pnv_pci_init_p5ioc2_phb()
|
D | pci-ioda.c | 57 static void pnv_pci_ioda2_table_free_pages(struct iommu_table *tbl); 1267 struct iommu_table *tbl; in pnv_pci_ioda2_release_dma_pe() 1640 static void pnv_pci_ioda1_tce_invalidate(struct iommu_table *tbl, in pnv_pci_ioda1_tce_invalidate() 1692 static int pnv_ioda1_tce_build(struct iommu_table *tbl, long index, in pnv_ioda1_tce_build() 1707 static int pnv_ioda1_tce_xchg(struct iommu_table *tbl, long index, in pnv_ioda1_tce_xchg() 1720 static void pnv_ioda1_tce_free(struct iommu_table *tbl, long index, in pnv_ioda1_tce_free() 1777 static void pnv_pci_ioda2_tce_invalidate(struct iommu_table *tbl, in pnv_pci_ioda2_tce_invalidate() 1795 static int pnv_ioda2_tce_build(struct iommu_table *tbl, long index, in pnv_ioda2_tce_build() 1810 static int pnv_ioda2_tce_xchg(struct iommu_table *tbl, long index, in pnv_ioda2_tce_xchg() 1823 static void pnv_ioda2_tce_free(struct iommu_table *tbl, long index, in pnv_ioda2_tce_free() [all …]
|
/linux-4.4.14/arch/x86/include/asm/ |
D | calgary.h | 33 struct iommu_table { struct 47 void (*handle_quirks)(struct iommu_table *tbl, struct pci_dev *dev); argument 48 void (*tce_cache_blast)(struct iommu_table *tbl); 49 void (*dump_error_regs)(struct iommu_table *tbl);
|
D | tce.h | 28 struct iommu_table; 41 extern void tce_build(struct iommu_table *tbl, unsigned long index, 43 extern void tce_free(struct iommu_table *tbl, long index, unsigned int npages);
|
/linux-4.4.14/arch/x86/kernel/ |
D | pci-calgary_64.c | 174 static void calgary_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev); 175 static void calgary_tce_cache_blast(struct iommu_table *tbl); 176 static void calgary_dump_error_regs(struct iommu_table *tbl); 177 static void calioc2_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev); 178 static void calioc2_tce_cache_blast(struct iommu_table *tbl); 179 static void calioc2_dump_error_regs(struct iommu_table *tbl); 180 static void calgary_init_bitmap_from_tce_table(struct iommu_table *tbl); 197 static inline int translation_enabled(struct iommu_table *tbl) in translation_enabled() 203 static void iommu_range_reserve(struct iommu_table *tbl, in iommu_range_reserve() 228 struct iommu_table *tbl, in iommu_range_alloc() [all …]
|
D | tce_64.c | 49 void tce_build(struct iommu_table *tbl, unsigned long index, in tce_build() 75 void tce_free(struct iommu_table *tbl, long index, unsigned int npages) in tce_free() 98 static int tce_table_setparms(struct pci_dev *dev, struct iommu_table *tbl) in tce_table_setparms() 137 struct iommu_table *tbl; in build_tce_table() 146 tbl = kzalloc(sizeof(struct iommu_table), GFP_KERNEL); in build_tce_table()
|
D | vmlinux.lds.S | 255 .iommu_table : AT(ADDR(.iommu_table) - LOAD_OFFSET) { 257 *(.iommu_table) argument
|
D | Makefile | 42 obj-y += pci-iommu_table.o
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | iommu.c | 55 static void __iommu_free(struct iommu_table *, dma_addr_t, unsigned int); 177 struct iommu_table *tbl, in iommu_range_alloc() 306 static dma_addr_t iommu_alloc(struct device *dev, struct iommu_table *tbl, in iommu_alloc() 349 static bool iommu_free_check(struct iommu_table *tbl, dma_addr_t dma_addr, in iommu_free_check() 377 static struct iommu_pool *get_pool(struct iommu_table *tbl, in get_pool() 396 static void __iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr, in __iommu_free() 418 static void iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr, in iommu_free() 431 int ppc_iommu_map_sg(struct device *dev, struct iommu_table *tbl, in ppc_iommu_map_sg() 575 void ppc_iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, in ppc_iommu_unmap_sg() 607 static void iommu_table_clear(struct iommu_table *tbl) in iommu_table_clear() [all …]
|
D | dma-iommu.c | 78 struct iommu_table *tbl = get_iommu_table_base(dev); in dma_iommu_dma_supported() 97 struct iommu_table *tbl = get_iommu_table_base(dev); in dma_iommu_get_required_mask()
|
D | vio.c | 521 struct iommu_table *tbl; in vio_dma_iommu_map_page() 545 struct iommu_table *tbl; in vio_dma_iommu_unmap_page() 558 struct iommu_table *tbl; in vio_dma_iommu_map_sg() 594 struct iommu_table *tbl; in vio_dma_iommu_unmap_sg() 717 struct iommu_table *tbl; in vio_cmo_bus_probe() 1172 static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) in vio_build_iommu_table() 1175 struct iommu_table *tbl; in vio_build_iommu_table() 1318 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dev_release()
|
D | dma.c | 137 struct iommu_table *iommu; in dma_direct_alloc_coherent() 161 struct iommu_table *iommu; in dma_direct_free_coherent()
|
/linux-4.4.14/drivers/vfio/ |
D | vfio_iommu_spapr_tce.c | 101 struct iommu_table *tables[IOMMU_TABLE_GROUP_MAX_TABLES]; 140 static long tce_iommu_userspace_view_alloc(struct iommu_table *tbl) in tce_iommu_userspace_view_alloc() 163 static void tce_iommu_userspace_view_free(struct iommu_table *tbl) in tce_iommu_userspace_view_free() 192 phys_addr_t ioba, struct iommu_table **ptbl) in tce_iommu_find_table() 197 struct iommu_table *tbl = container->tables[i]; in tce_iommu_find_table() 327 struct iommu_table *tbl, 329 static void tce_iommu_free_table(struct iommu_table *tbl); 350 struct iommu_table *tbl = container->tables[i]; in tce_iommu_release() 393 static void tce_iommu_unuse_page_v2(struct iommu_table *tbl, in tce_iommu_unuse_page_v2() 416 struct iommu_table *tbl, in tce_iommu_clear() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/pseries/ |
D | iommu.c | 59 struct iommu_table *tbl = NULL; in iommu_pseries_alloc_group() 67 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, node); in iommu_pseries_alloc_group() 95 struct iommu_table *tbl; in iommu_pseries_free_group() 123 static void tce_invalidate_pSeries_sw(struct iommu_table *tbl, in tce_invalidate_pSeries_sw() 152 static int tce_build_pSeries(struct iommu_table *tbl, long index, in tce_build_pSeries() 183 static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) in tce_free_pSeries() 196 static unsigned long tce_get_pseries(struct iommu_table *tbl, long index) in tce_get_pseries() 205 static void tce_free_pSeriesLP(struct iommu_table*, long, long); 206 static void tce_freemulti_pSeriesLP(struct iommu_table*, long, long); 208 static int tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum, in tce_build_pSeriesLP() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/pasemi/ |
D | iommu.c | 85 static struct iommu_table iommu_table_iobmap; 88 static int iobmap_build(struct iommu_table *tbl, long index, in iobmap_build() 117 static void iobmap_free(struct iommu_table *tbl, long index, in iobmap_free()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | dart_iommu.c | 67 static struct iommu_table iommu_table_dart; 154 static void dart_flush(struct iommu_table *tbl) in dart_flush() 163 static int dart_build(struct iommu_table *tbl, long index, in dart_build() 204 static void dart_free(struct iommu_table *tbl, long index, long npages) in dart_free()
|
/linux-4.4.14/arch/powerpc/platforms/cell/ |
D | iommu.c | 119 struct iommu_table table; 167 static int tce_build_cell(struct iommu_table *tbl, long index, long npages, in tce_build_cell() 213 static void tce_free_cell(struct iommu_table *tbl, long index, long npages) in tce_free_cell() 551 static struct iommu_table *cell_get_iommu_table(struct device *dev) in cell_get_iommu_table()
|
/linux-4.4.14/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1411 struct iommu_table *tbl; in ibmveth_get_desired_dma()
|