/linux-master/arch/powerpc/include/asm/ |
H A D | device.h | 11 struct iommu_table; 24 * an iommu_table for remapped DMA. 29 struct iommu_table *iommu_table_base;
|
H A D | iommu.h | 43 int (*set)(struct iommu_table *tbl, 54 int (*xchg_no_kill)(struct iommu_table *tbl, 59 void (*tce_kill)(struct iommu_table *tbl, 63 __be64 *(*useraddrptr)(struct iommu_table *tbl, long index, bool alloc); 65 void (*clear)(struct iommu_table *tbl, 68 unsigned long (*get)(struct iommu_table *tbl, long index); 69 void (*flush)(struct iommu_table *tbl); 70 void (*free)(struct iommu_table *tbl); 94 struct iommu_table { struct 127 int get_iommu_order(unsigned long size, struct iommu_table *tb [all...] |
H A D | vio.h | 44 struct iommu_table;
|
H A D | pci-bridge.h | 198 struct iommu_table;
|
H A D | machdep.h | 15 struct iommu_table;
|
H A D | kvm_host.h | 183 struct iommu_table *tbl;
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | pci.h | 275 extern struct iommu_table *pnv_pci_table_alloc(int nid); 304 extern int pnv_tce_build(struct iommu_table *tbl, long index, long npages, 307 extern void pnv_tce_free(struct iommu_table *tbl, long index, long npages); 308 extern int pnv_tce_xchg(struct iommu_table *tbl, long index, 310 extern __be64 *pnv_tce_useraddrptr(struct iommu_table *tbl, long index, 312 extern unsigned long pnv_tce_get(struct iommu_table *tbl, long index); 316 bool alloc_userspace_copy, struct iommu_table *tbl); 317 extern void pnv_pci_ioda2_table_free_pages(struct iommu_table *tbl); 320 struct iommu_table *tbl, 322 extern void pnv_pci_unlink_table_and_group(struct iommu_table *tb [all...] |
H A D | pci-ioda-tce.c | 48 void pnv_pci_setup_iommu_table(struct iommu_table *tbl, 83 static __be64 *pnv_tce(struct iommu_table *tbl, bool user, long idx, bool alloc) 124 int pnv_tce_build(struct iommu_table *tbl, long index, long npages, 147 int pnv_tce_xchg(struct iommu_table *tbl, long index, 181 __be64 *pnv_tce_useraddrptr(struct iommu_table *tbl, long index, bool alloc) 190 void pnv_tce_free(struct iommu_table *tbl, long index, long npages) 206 unsigned long pnv_tce_get(struct iommu_table *tbl, long index) 240 void pnv_pci_ioda2_table_free_pages(struct iommu_table *tbl) 292 bool alloc_userspace_copy, struct iommu_table *tbl) 370 void pnv_pci_unlink_table_and_group(struct iommu_table *tb [all...] |
H A D | pci-ioda.c | 1165 static int pnv_ioda_tce_xchg_no_kill(struct iommu_table *tbl, long index, 1221 static void pnv_pci_ioda2_tce_invalidate(struct iommu_table *tbl, 1243 static int pnv_ioda2_tce_build(struct iommu_table *tbl, long index, 1257 static void pnv_ioda2_tce_free(struct iommu_table *tbl, long index, 1278 int num, struct iommu_table *tbl) 1346 bool alloc_userspace_copy, struct iommu_table **ptbl) 1353 struct iommu_table *tbl; 1376 struct iommu_table *tbl = NULL; 1401 /* iommu_table::it_map uses 1 bit per IOMMU page, hence 8 */ 1516 struct iommu_table **ptb [all...] |
H A D | pci.c | 733 struct iommu_table *pnv_pci_table_alloc(int nid) 735 struct iommu_table *tbl; 737 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, nid);
|
/linux-master/arch/powerpc/kernel/ |
H A D | iommu.c | 45 struct iommu_table *tbl = data; 51 static void iommu_debugfs_add(struct iommu_table *tbl) 68 static void iommu_debugfs_del(struct iommu_table *tbl) 76 static void iommu_debugfs_add(struct iommu_table *tbl){} 77 static void iommu_debugfs_del(struct iommu_table *tbl){} 82 static void __iommu_free(struct iommu_table *, dma_addr_t, unsigned int); 214 struct iommu_table *tbl, 345 static dma_addr_t iommu_alloc(struct device *dev, struct iommu_table *tbl, 388 static bool iommu_free_check(struct iommu_table *tbl, dma_addr_t dma_addr, 416 static struct iommu_pool *get_pool(struct iommu_table *tb [all...] |
H A D | dma-iommu.c | 147 struct iommu_table *tbl; 186 struct iommu_table *tbl = get_iommu_table_base(dev);
|
/linux-master/drivers/vfio/ |
H A D | vfio_iommu_spapr_tce.c | 70 struct iommu_table *tables[IOMMU_TABLE_GROUP_MAX_TABLES]; 204 phys_addr_t ioba, struct iommu_table **ptbl) 209 struct iommu_table *tbl = container->tables[i]; 339 struct iommu_table *tbl, 342 struct iommu_table *tbl); 362 struct iommu_table *tbl = container->tables[i]; 411 struct iommu_table *tbl, unsigned long entry) 433 struct iommu_table *tbl, 501 struct iommu_table *tbl, 549 struct iommu_table *tb [all...] |
/linux-master/arch/powerpc/sysdev/ |
H A D | dart_iommu.c | 48 static struct iommu_table iommu_table_dart; 163 static void dart_flush(struct iommu_table *tbl) 172 static int dart_build(struct iommu_table *tbl, long index, 209 static void dart_free(struct iommu_table *tbl, long index, long npages)
|
/linux-master/arch/powerpc/platforms/pasemi/ |
H A D | iommu.c | 74 static struct iommu_table iommu_table_iobmap; 77 static int iobmap_build(struct iommu_table *tbl, long index, 106 static void iobmap_free(struct iommu_table *tbl, long index,
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | iommu.c | 57 static struct iommu_table *iommu_pseries_alloc_table(int node) 59 struct iommu_table *tbl; 61 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, node); 116 static int tce_build_pSeries(struct iommu_table *tbl, long index, 146 static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) 156 static unsigned long tce_get_pseries(struct iommu_table *tbl, long index) 166 static void tce_freemulti_pSeriesLP(struct iommu_table*, long, long); 211 static int tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, 317 static void tce_freemulti_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) 346 static unsigned long tce_get_pSeriesLP(struct iommu_table *tb [all...] |
H A D | vio.c | 521 struct iommu_table *tbl = get_iommu_table_base(dev); 545 struct iommu_table *tbl = get_iommu_table_base(dev); 556 struct iommu_table *tbl = get_iommu_table_base(dev); 591 struct iommu_table *tbl = get_iommu_table_base(dev); 705 struct iommu_table *tbl; 1154 static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) 1157 struct iommu_table *tbl; 1318 struct iommu_table *tbl = get_iommu_table_base(dev);
|
/linux-master/arch/powerpc/kvm/ |
H A D | book3s_64_vio.c | 114 struct iommu_table *tbl = NULL; 143 struct iommu_table *tbltmp = table_group->tables[i]; 437 struct iommu_table *tbl, unsigned long entry) 452 struct iommu_table *tbl, unsigned long entry) 473 struct iommu_table *tbl, unsigned long entry) 494 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, 512 static long kvmppc_tce_iommu_do_map(struct kvm *kvm, struct iommu_table *tbl, 551 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl,
|
/linux-master/arch/powerpc/platforms/cell/ |
H A D | iommu.c | 108 struct iommu_table table; 126 * - on dev setup, assign iommu_table ptr 156 static int tce_build_cell(struct iommu_table *tbl, long index, long npages, 202 static void tce_free_cell(struct iommu_table *tbl, long index, long npages) 542 static struct iommu_table *cell_get_iommu_table(struct device *dev) 679 /* Setup the iommu_table */
|
/linux-master/drivers/net/ethernet/ibm/ |
H A D | ibmveth.c | 1577 struct iommu_table *tbl;
|
H A D | ibmvnic.c | 6587 struct iommu_table *tbl;
|