/arch/powerpc/include/asm/ |
D | iommu.h | 40 int (*set)(struct iommu_table *tbl, 51 int (*xchg_no_kill)(struct iommu_table *tbl, 57 void (*tce_kill)(struct iommu_table *tbl, 62 __be64 *(*useraddrptr)(struct iommu_table *tbl, long index, bool alloc); 64 void (*clear)(struct iommu_table *tbl, 67 unsigned long (*get)(struct iommu_table *tbl, long index); 68 void (*flush)(struct iommu_table *tbl); 69 void (*free)(struct iommu_table *tbl); 93 struct iommu_table { struct 126 int get_iommu_order(unsigned long size, struct iommu_table *tbl) in get_iommu_order() argument [all …]
|
D | device.h | 11 struct iommu_table; 29 struct iommu_table *iommu_table_base;
|
D | vio.h | 44 struct iommu_table;
|
D | machdep.h | 21 struct iommu_table;
|
D | pci-bridge.h | 185 struct iommu_table;
|
D | kvm_host.h | 177 struct iommu_table *tbl;
|
/arch/powerpc/platforms/powernv/ |
D | pci.h | 280 extern struct iommu_table *pnv_pci_table_alloc(int nid); 309 extern int pnv_tce_build(struct iommu_table *tbl, long index, long npages, 312 extern void pnv_tce_free(struct iommu_table *tbl, long index, long npages); 313 extern int pnv_tce_xchg(struct iommu_table *tbl, long index, 316 extern __be64 *pnv_tce_useraddrptr(struct iommu_table *tbl, long index, 318 extern unsigned long pnv_tce_get(struct iommu_table *tbl, long index); 322 bool alloc_userspace_copy, struct iommu_table *tbl); 323 extern void pnv_pci_ioda2_table_free_pages(struct iommu_table *tbl); 326 struct iommu_table *tbl, 328 extern void pnv_pci_unlink_table_and_group(struct iommu_table *tbl, [all …]
|
D | pci-ioda-tce.c | 48 void pnv_pci_setup_iommu_table(struct iommu_table *tbl, in pnv_pci_setup_iommu_table() 83 static __be64 *pnv_tce(struct iommu_table *tbl, bool user, long idx, bool alloc) in pnv_tce() 124 int pnv_tce_build(struct iommu_table *tbl, long index, long npages, in pnv_tce_build() 147 int pnv_tce_xchg(struct iommu_table *tbl, long index, in pnv_tce_xchg() 182 __be64 *pnv_tce_useraddrptr(struct iommu_table *tbl, long index, bool alloc) in pnv_tce_useraddrptr() 191 void pnv_tce_free(struct iommu_table *tbl, long index, long npages) in pnv_tce_free() 207 unsigned long pnv_tce_get(struct iommu_table *tbl, long index) in pnv_tce_get() 241 void pnv_pci_ioda2_table_free_pages(struct iommu_table *tbl) in pnv_pci_ioda2_table_free_pages() 293 bool alloc_userspace_copy, struct iommu_table *tbl) in pnv_pci_ioda2_table_alloc_pages() 371 void pnv_pci_unlink_table_and_group(struct iommu_table *tbl, in pnv_pci_unlink_table_and_group() [all …]
|
D | pci-ioda.c | 1277 static void pnv_pci_p7ioc_tce_invalidate(struct iommu_table *tbl, in pnv_pci_p7ioc_tce_invalidate() 1314 static int pnv_ioda1_tce_build(struct iommu_table *tbl, long index, in pnv_ioda1_tce_build() 1330 static int pnv_ioda_tce_xchg_no_kill(struct iommu_table *tbl, long index, in pnv_ioda_tce_xchg_no_kill() 1338 static void pnv_ioda1_tce_free(struct iommu_table *tbl, long index, in pnv_ioda1_tce_free() 1409 static void pnv_pci_ioda2_tce_invalidate(struct iommu_table *tbl, in pnv_pci_ioda2_tce_invalidate() 1431 static int pnv_ioda2_tce_build(struct iommu_table *tbl, long index, in pnv_ioda2_tce_build() 1445 static void pnv_ioda2_tce_free(struct iommu_table *tbl, long index, in pnv_ioda2_tce_free() 1518 struct iommu_table *tbl; in pnv_pci_ioda1_setup_dma_pe() 1638 int num, struct iommu_table *tbl) in pnv_pci_ioda2_set_window() 1706 bool alloc_userspace_copy, struct iommu_table **ptbl) in pnv_pci_ioda2_create_table() [all …]
|
D | pci.c | 734 struct iommu_table *pnv_pci_table_alloc(int nid) in pnv_pci_table_alloc() 736 struct iommu_table *tbl; in pnv_pci_table_alloc() 738 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, nid); in pnv_pci_table_alloc()
|
/arch/powerpc/kernel/ |
D | iommu.c | 45 struct iommu_table *tbl = data; in iommu_debugfs_weight_get() 51 static void iommu_debugfs_add(struct iommu_table *tbl) in iommu_debugfs_add() 68 static void iommu_debugfs_del(struct iommu_table *tbl) in iommu_debugfs_del() 76 static void iommu_debugfs_add(struct iommu_table *tbl){} in iommu_debugfs_add() 77 static void iommu_debugfs_del(struct iommu_table *tbl){} in iommu_debugfs_del() 82 static void __iommu_free(struct iommu_table *, dma_addr_t, unsigned int); 214 struct iommu_table *tbl, in iommu_range_alloc() 345 static dma_addr_t iommu_alloc(struct device *dev, struct iommu_table *tbl, in iommu_alloc() 388 static bool iommu_free_check(struct iommu_table *tbl, dma_addr_t dma_addr, in iommu_free_check() 416 static struct iommu_pool *get_pool(struct iommu_table *tbl, in get_pool() [all …]
|
D | dma-iommu.c | 147 struct iommu_table *tbl; in dma_iommu_dma_supported() 186 struct iommu_table *tbl = get_iommu_table_base(dev); in dma_iommu_get_required_mask()
|
/arch/powerpc/platforms/pseries/ |
D | iommu.c | 56 static struct iommu_table *iommu_pseries_alloc_table(int node) in iommu_pseries_alloc_table() 58 struct iommu_table *tbl; in iommu_pseries_alloc_table() 60 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, node); in iommu_pseries_alloc_table() 110 static int tce_build_pSeries(struct iommu_table *tbl, long index, in tce_build_pSeries() 140 static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) in tce_free_pSeries() 150 static unsigned long tce_get_pseries(struct iommu_table *tbl, long index) in tce_get_pseries() 160 static void tce_freemulti_pSeriesLP(struct iommu_table*, long, long); 205 static int tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, in tce_buildmulti_pSeriesLP() 311 static void tce_freemulti_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) in tce_freemulti_pSeriesLP() 340 static unsigned long tce_get_pSeriesLP(struct iommu_table *tbl, long tcenum) in tce_get_pSeriesLP() [all …]
|
D | vio.c | 520 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dma_iommu_map_page() 544 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dma_iommu_unmap_page() 555 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dma_iommu_map_sg() 590 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dma_iommu_unmap_sg() 704 struct iommu_table *tbl; in vio_cmo_bus_probe() 1169 static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) in vio_build_iommu_table() 1172 struct iommu_table *tbl; in vio_build_iommu_table() 1333 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dev_release()
|
/arch/powerpc/kvm/ |
D | book3s_64_vio_hv.c | 221 struct iommu_table *tbl, in iommu_tce_xchg_no_kill_rm() 243 static void iommu_tce_kill_rm(struct iommu_table *tbl, in iommu_tce_kill_rm() 251 struct iommu_table *tbl, unsigned long entry) in kvmppc_rm_clear_tce() 266 struct iommu_table *tbl, unsigned long entry) in kvmppc_rm_tce_iommu_mapped_dec() 288 struct iommu_table *tbl, unsigned long entry) in kvmppc_rm_tce_iommu_do_unmap() 312 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, in kvmppc_rm_tce_iommu_unmap() 330 static long kvmppc_rm_tce_iommu_do_map(struct kvm *kvm, struct iommu_table *tbl, in kvmppc_rm_tce_iommu_do_map() 373 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, in kvmppc_rm_tce_iommu_map()
|
D | book3s_64_vio.c | 101 struct iommu_table *tbl = NULL; in kvm_spapr_tce_attach_iommu_group() 130 struct iommu_table *tbltmp = table_group->tables[i]; in kvm_spapr_tce_attach_iommu_group() 425 struct iommu_table *tbl, unsigned long entry) in kvmppc_clear_tce() 440 struct iommu_table *tbl, unsigned long entry) in kvmppc_tce_iommu_mapped_dec() 461 struct iommu_table *tbl, unsigned long entry) in kvmppc_tce_iommu_do_unmap() 482 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, in kvmppc_tce_iommu_unmap() 500 static long kvmppc_tce_iommu_do_map(struct kvm *kvm, struct iommu_table *tbl, in kvmppc_tce_iommu_do_map() 539 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, in kvmppc_tce_iommu_map()
|
/arch/powerpc/sysdev/ |
D | dart_iommu.c | 48 static struct iommu_table iommu_table_dart; 163 static void dart_flush(struct iommu_table *tbl) in dart_flush() 172 static int dart_build(struct iommu_table *tbl, long index, in dart_build() 209 static void dart_free(struct iommu_table *tbl, long index, long npages) in dart_free()
|
/arch/powerpc/platforms/pasemi/ |
D | iommu.c | 73 static struct iommu_table iommu_table_iobmap; 76 static int iobmap_build(struct iommu_table *tbl, long index, in iobmap_build() 105 static void iobmap_free(struct iommu_table *tbl, long index, in iobmap_free()
|
/arch/x86/kernel/ |
D | vmlinux.lds.S | 338 .iommu_table : AT(ADDR(.iommu_table) - LOAD_OFFSET) { 340 *(.iommu_table) argument
|
D | Makefile | 74 obj-y += pci-iommu_table.o
|
/arch/powerpc/platforms/cell/ |
D | iommu.c | 106 struct iommu_table table; 154 static int tce_build_cell(struct iommu_table *tbl, long index, long npages, in tce_build_cell() 200 static void tce_free_cell(struct iommu_table *tbl, long index, long npages) in tce_free_cell() 540 static struct iommu_table *cell_get_iommu_table(struct device *dev) in cell_get_iommu_table()
|