Home
last modified time | relevance | path

Searched refs:iommu_table (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/arch/powerpc/include/asm/
H A Diommu.h43 int (*set)(struct iommu_table *tbl,
65 void (*clear)(struct iommu_table *tbl,
69 void (*flush)(struct iommu_table *tbl);
70 void (*free)(struct iommu_table *tbl);
94 struct iommu_table { struct
138 struct iommu_table *base) in set_iommu_table_base()
150 extern struct iommu_table *iommu_tce_table_get(struct iommu_table *tbl);
156 extern struct iommu_table *iommu_init_table(struct iommu_table *tbl,
174 struct iommu_table **ptbl);
177 struct iommu_table *tblnew);
[all …]
H A Ddevice.h11 struct iommu_table;
29 struct iommu_table *iommu_table_base;
H A Dvio.h44 struct iommu_table;
H A Dmachdep.h15 struct iommu_table;
H A Dpci-bridge.h198 struct iommu_table;
H A Dkvm_host.h184 struct iommu_table *tbl;
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dpci.h275 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 *tbl,
[all …]
H A Dpci-ioda-tce.c48 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 Dpci-ioda.c1165 static int pnv_ioda_tce_xchg_no_kill(struct iommu_table *tbl, long index, in pnv_ioda_tce_xchg_no_kill()
1221 static void pnv_pci_ioda2_tce_invalidate(struct iommu_table *tbl, in pnv_pci_ioda2_tce_invalidate()
1243 static int pnv_ioda2_tce_build(struct iommu_table *tbl, long index, in pnv_ioda2_tce_build()
1257 static void pnv_ioda2_tce_free(struct iommu_table *tbl, long index, in pnv_ioda2_tce_free()
1278 int num, struct iommu_table *tbl) in pnv_pci_ioda2_set_window()
1346 bool alloc_userspace_copy, struct iommu_table **ptbl) in pnv_pci_ioda2_create_table()
1353 struct iommu_table *tbl; in pnv_pci_ioda2_create_table()
1376 struct iommu_table *tbl = NULL; in pnv_pci_ioda2_setup_default_config()
1516 struct iommu_table **ptbl) in pnv_pci_ioda2_create_table_userspace()
1545 struct iommu_table *tbl = pe->table_group.tables[0]; in pnv_ioda2_take_ownership()
[all …]
H A Dpci.c733 struct iommu_table *pnv_pci_table_alloc(int nid) in pnv_pci_table_alloc()
735 struct iommu_table *tbl; in pnv_pci_table_alloc()
737 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, nid); in pnv_pci_table_alloc()
/openbmc/linux/arch/powerpc/kernel/
H A Diommu.c45 struct iommu_table *tbl = data; in iommu_debugfs_weight_get()
214 struct iommu_table *tbl, in iommu_range_alloc()
724 struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid, in iommu_init_table()
781 bool iommu_table_in_use(struct iommu_table *tbl) in iommu_table_in_use()
804 struct iommu_table *tbl; in iommu_table_free()
829 struct iommu_table *iommu_tce_table_get(struct iommu_table *tbl) in iommu_tce_table_get()
1035 void iommu_flush_tce(struct iommu_table *tbl) in iommu_flush_tce()
1078 struct iommu_table *tbl, in iommu_tce_xchg_no_kill()
1096 void iommu_tce_kill(struct iommu_table *tbl, in iommu_tce_kill()
1207 struct iommu_table **ptbl) in spapr_tce_create_table()
[all …]
H A Ddma-iommu.c147 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()
/openbmc/linux/drivers/vfio/
H A Dvfio_iommu_spapr_tce.c339 struct iommu_table *tbl,
342 struct iommu_table *tbl);
433 struct iommu_table *tbl, in tce_iommu_clear()
501 struct iommu_table *tbl, in tce_iommu_build()
549 struct iommu_table *tbl, in tce_iommu_build_v2()
613 struct iommu_table **ptbl) in tce_iommu_create_table()
636 struct iommu_table *tbl) in tce_iommu_free_table()
650 struct iommu_table *tbl = NULL; in tce_iommu_create_window()
713 struct iommu_table *tbl; in tce_iommu_remove_window()
907 struct iommu_table *tbl = NULL; in tce_iommu_ioctl()
[all …]
/openbmc/linux/arch/powerpc/sysdev/
H A Ddart_iommu.c48 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()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Diommu.c57 static struct iommu_table *iommu_pseries_alloc_table(int node) in iommu_pseries_alloc_table()
59 struct iommu_table *tbl; in iommu_pseries_alloc_table()
61 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, node); in iommu_pseries_alloc_table()
116 static int tce_build_pSeries(struct iommu_table *tbl, long index, in tce_build_pSeries()
166 static void tce_freemulti_pSeriesLP(struct iommu_table*, long, long);
544 struct iommu_table *tbl) in iommu_table_setparms()
586 struct iommu_table *tbl; in pci_dma_bus_setup_pSeries()
773 struct iommu_table *tbl; in pci_dma_bus_setup_pSeriesLP()
835 struct iommu_table *tbl; in pci_dma_dev_setup_pSeries()
1485 struct iommu_table *newtbl; in enable_ddw()
[all …]
H A Dvio.c521 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()
1170 static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) in vio_build_iommu_table()
1173 struct iommu_table *tbl; in vio_build_iommu_table()
1334 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dev_release()
/openbmc/linux/arch/powerpc/platforms/pasemi/
H A Diommu.c74 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()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_64_vio.c113 struct iommu_table *tbl = NULL; in kvm_spapr_tce_attach_iommu_group()
142 struct iommu_table *tbltmp = table_group->tables[i]; in kvm_spapr_tce_attach_iommu_group()
436 struct iommu_table *tbl, unsigned long entry) in kvmppc_clear_tce()
451 struct iommu_table *tbl, unsigned long entry) in kvmppc_tce_iommu_mapped_dec()
472 struct iommu_table *tbl, unsigned long entry) in kvmppc_tce_iommu_do_unmap()
493 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, in kvmppc_tce_iommu_unmap()
511 static long kvmppc_tce_iommu_do_map(struct kvm *kvm, struct iommu_table *tbl, in kvmppc_tce_iommu_do_map()
550 struct kvmppc_spapr_tce_table *stt, struct iommu_table *tbl, in kvmppc_tce_iommu_map()
/openbmc/linux/arch/powerpc/platforms/cell/
H A Diommu.c108 struct iommu_table table;
156 static int tce_build_cell(struct iommu_table *tbl, long index, long npages, in tce_build_cell()
202 static void tce_free_cell(struct iommu_table *tbl, long index, long npages) in tce_free_cell()
542 static struct iommu_table *cell_get_iommu_table(struct device *dev) in cell_get_iommu_table()
/openbmc/qemu/hw/s390x/
H A Ds390-pci-bus.c605 S390PCIIOMMUTable *table = g_hash_table_lookup(s->iommu_table, &key); in s390_pci_get_iommu()
611 g_hash_table_insert(s->iommu_table, &table->key, table); in s390_pci_get_iommu()
738 S390PCIIOMMUTable *table = g_hash_table_lookup(s->iommu_table, &key); in s390_pci_iommu_free()
847 s->iommu_table = g_hash_table_new_full(g_int64_hash, g_int64_equal, in s390_pcihost_realize()
/openbmc/qemu/include/hw/s390x/
H A Ds390-pci-bus.h377 GHashTable *iommu_table; member
/openbmc/u-boot/doc/uImage.FIT/
H A Dx86-fit-boot.txt116 19 .iommu_table 00000014 81677cb8 01677cb8 00678cb8 2**2
/openbmc/linux/drivers/net/ethernet/ibm/
H A Dibmveth.c1577 struct iommu_table *tbl; in ibmveth_get_desired_dma()
H A Dibmvnic.c6586 struct iommu_table *tbl; in ibmvnic_get_desired_dma()