| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | iommu.h | 45 int (*set)(struct iommu_table *tbl, 67 void (*clear)(struct iommu_table *tbl, 71 void (*flush)(struct iommu_table *tbl); 72 void (*free)(struct iommu_table *tbl); 96 struct iommu_table { struct 140 struct iommu_table *base) in set_iommu_table_base() 152 extern struct iommu_table *iommu_tce_table_get(struct iommu_table *tbl); 158 extern struct iommu_table *iommu_init_table(struct iommu_table *tbl, 179 struct iommu_table **ptbl); 182 struct iommu_table *tblnew); [all …]
|
| H A D | device.h | 11 struct iommu_table; 29 struct iommu_table *iommu_table_base;
|
| H A D | vio.h | 44 struct iommu_table;
|
| H A D | machdep.h | 17 struct iommu_table;
|
| H A D | pci-bridge.h | 198 struct iommu_table;
|
| H A D | kvm_host.h | 183 struct iommu_table *tbl;
|
| /linux-6.15/arch/powerpc/platforms/powernv/ |
| H A D | pci.h | 274 extern struct iommu_table *pnv_pci_table_alloc(int nid); 301 extern int pnv_tce_build(struct iommu_table *tbl, long index, long npages, 304 extern void pnv_tce_free(struct iommu_table *tbl, long index, long npages); 305 extern int pnv_tce_xchg(struct iommu_table *tbl, long index, 307 extern __be64 *pnv_tce_useraddrptr(struct iommu_table *tbl, long index, 309 extern unsigned long pnv_tce_get(struct iommu_table *tbl, long index); 313 bool alloc_userspace_copy, struct iommu_table *tbl); 314 extern void pnv_pci_ioda2_table_free_pages(struct iommu_table *tbl); 317 struct iommu_table *tbl, 319 extern void pnv_pci_unlink_table_and_group(struct iommu_table *tbl, [all …]
|
| H A 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() 181 __be64 *pnv_tce_useraddrptr(struct iommu_table *tbl, long index, bool alloc) in pnv_tce_useraddrptr() 190 void pnv_tce_free(struct iommu_table *tbl, long index, long npages) in pnv_tce_free() 206 unsigned long pnv_tce_get(struct iommu_table *tbl, long index) in pnv_tce_get() 240 void pnv_pci_ioda2_table_free_pages(struct iommu_table *tbl) in pnv_pci_ioda2_table_free_pages() 292 bool alloc_userspace_copy, struct iommu_table *tbl) in pnv_pci_ioda2_table_alloc_pages() 370 void pnv_pci_unlink_table_and_group(struct iommu_table *tbl, in pnv_pci_unlink_table_and_group() [all …]
|
| H A D | pci-ioda.c | 1163 static int pnv_ioda_tce_xchg_no_kill(struct iommu_table *tbl, long index, in pnv_ioda_tce_xchg_no_kill() 1219 static void pnv_pci_ioda2_tce_invalidate(struct iommu_table *tbl, in pnv_pci_ioda2_tce_invalidate() 1241 static int pnv_ioda2_tce_build(struct iommu_table *tbl, long index, in pnv_ioda2_tce_build() 1255 static void pnv_ioda2_tce_free(struct iommu_table *tbl, long index, in pnv_ioda2_tce_free() 1276 int num, struct iommu_table *tbl) in pnv_pci_ioda2_set_window() 1344 bool alloc_userspace_copy, struct iommu_table **ptbl) in pnv_pci_ioda2_create_table() 1351 struct iommu_table *tbl; in pnv_pci_ioda2_create_table() 1374 struct iommu_table *tbl = NULL; in pnv_pci_ioda2_setup_default_config() 1514 struct iommu_table **ptbl) in pnv_pci_ioda2_create_table_userspace() 1544 struct iommu_table *tbl = pe->table_group.tables[0]; in pnv_ioda2_take_ownership() [all …]
|
| H A D | pci.c | 730 struct iommu_table *pnv_pci_table_alloc(int nid) in pnv_pci_table_alloc() 732 struct iommu_table *tbl; in pnv_pci_table_alloc() 734 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, nid); in pnv_pci_table_alloc()
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A D | iommu.c | 46 struct iommu_table *tbl = data; in iommu_debugfs_weight_get() 215 struct iommu_table *tbl, in iommu_range_alloc() 646 void iommu_table_clear(struct iommu_table *tbl) in iommu_table_clear() 725 struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid, in iommu_init_table() 782 bool iommu_table_in_use(struct iommu_table *tbl) in iommu_table_in_use() 805 struct iommu_table *tbl; in iommu_table_free() 830 struct iommu_table *iommu_tce_table_get(struct iommu_table *tbl) in iommu_tce_table_get() 839 int iommu_tce_table_put(struct iommu_table *tbl) in iommu_tce_table_put() 1053 void iommu_flush_tce(struct iommu_table *tbl) in iommu_flush_tce() 1096 struct iommu_table *tbl, in iommu_tce_xchg_no_kill() [all …]
|
| H A 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()
|
| /linux-6.15/drivers/vfio/ |
| H A D | vfio_iommu_spapr_tce.c | 339 struct iommu_table *tbl, 342 struct iommu_table *tbl); 432 struct iommu_table *tbl, in tce_iommu_clear() 500 struct iommu_table *tbl, in tce_iommu_build() 548 struct iommu_table *tbl, in tce_iommu_build_v2() 612 struct iommu_table **ptbl) in tce_iommu_create_table() 635 struct iommu_table *tbl) in tce_iommu_free_table() 649 struct iommu_table *tbl = NULL; in tce_iommu_create_window() 712 struct iommu_table *tbl; in tce_iommu_remove_window() 907 struct iommu_table *tbl = NULL; in tce_iommu_ioctl() [all …]
|
| /linux-6.15/arch/powerpc/platforms/pseries/ |
| H A D | iommu.c | 61 struct iommu_table *tbl; in iommu_pseries_alloc_table() 583 struct iommu_table *tbl) in iommu_table_setparms() 625 struct iommu_table *tbl; in pci_dma_bus_setup_pSeries() 842 struct iommu_table *tbl; in pci_dma_bus_setup_pSeriesLP() 897 struct iommu_table *tbl; in pci_dma_dev_setup_pSeries() 1689 struct iommu_table *newtbl; in enable_ddw() 1853 struct iommu_table *tbl; in pci_dma_dev_setup_pSeriesLP() 2011 struct iommu_table *tbl; in pseries_setup_default_iommu_config() 2060 struct iommu_table **ptbl) in spapr_tce_create_table() 2072 struct iommu_table *tbl; in spapr_tce_create_table() [all …]
|
| H A D | vio.c | 521 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dma_iommu_map_page() 545 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dma_iommu_unmap_page() 556 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dma_iommu_map_sg() 591 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dma_iommu_unmap_sg() 705 struct iommu_table *tbl; in vio_cmo_bus_probe() 1154 static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) in vio_build_iommu_table() 1157 struct iommu_table *tbl; in vio_build_iommu_table() 1318 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dev_release()
|
| /linux-6.15/arch/powerpc/sysdev/ |
| H A D | dart_iommu.c | 47 static struct iommu_table iommu_table_dart; 162 static void dart_flush(struct iommu_table *tbl) in dart_flush() 171 static int dart_build(struct iommu_table *tbl, long index, in dart_build() 208 static void dart_free(struct iommu_table *tbl, long index, long npages) in dart_free()
|
| /linux-6.15/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, in iobmap_build() 106 static void iobmap_free(struct iommu_table *tbl, long index, in iobmap_free()
|
| /linux-6.15/arch/powerpc/kvm/ |
| H A D | book3s_64_vio.c | 114 struct iommu_table *tbl = NULL; in kvm_spapr_tce_attach_iommu_group() 140 struct iommu_table *tbltmp = table_group->tables[i]; in kvm_spapr_tce_attach_iommu_group() 434 struct iommu_table *tbl, unsigned long entry) in kvmppc_clear_tce() 449 struct iommu_table *tbl, unsigned long entry) in kvmppc_tce_iommu_mapped_dec() 470 struct iommu_table *tbl, unsigned long entry) in kvmppc_tce_iommu_do_unmap() 491 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, in kvmppc_tce_iommu_unmap() 509 static long kvmppc_tce_iommu_do_map(struct kvm *kvm, struct iommu_table *tbl, in kvmppc_tce_iommu_do_map() 548 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, in kvmppc_tce_iommu_map()
|
| /linux-6.15/drivers/net/ethernet/ibm/ |
| H A D | ibmveth.c | 1555 struct iommu_table *tbl; in ibmveth_get_desired_dma()
|
| H A D | ibmvnic.c | 6653 struct iommu_table *tbl; in ibmvnic_get_desired_dma()
|