Home
last modified time | relevance | path

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

/linux-3.4.99/arch/powerpc/include/asm/
Diommu.h56 struct iommu_table { struct
84 extern void iommu_free_table(struct iommu_table *tbl, const char *node_name); argument
89 extern struct iommu_table *iommu_init_table(struct iommu_table * tbl,
92 extern int iommu_map_sg(struct device *dev, struct iommu_table *tbl,
96 extern void iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist,
100 extern void *iommu_alloc_coherent(struct device *dev, struct iommu_table *tbl,
103 extern void iommu_free_coherent(struct iommu_table *tbl, size_t size,
105 extern dma_addr_t iommu_map_page(struct device *dev, struct iommu_table *tbl,
110 extern void iommu_unmap_page(struct iommu_table *tbl, dma_addr_t dma_handle,
Dmachdep.h27 struct iommu_table;
63 int (*tce_build)(struct iommu_table *tbl,
69 void (*tce_free)(struct iommu_table *tbl,
72 unsigned long (*tce_get)(struct iommu_table *tbl,
74 void (*tce_flush)(struct iommu_table *tbl);
Dpci-bridge.h144 struct iommu_table;
151 struct iommu_table *iommu_table; /* for phb's or bridges */ member
Dvio.h47 struct iommu_table;
/linux-3.4.99/arch/powerpc/platforms/pseries/
Diommu.c55 static void tce_invalidate_pSeries_sw(struct iommu_table *tbl, in tce_invalidate_pSeries_sw()
84 static int tce_build_pSeries(struct iommu_table *tbl, long index, in tce_build_pSeries()
115 static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) in tce_free_pSeries()
128 static unsigned long tce_get_pseries(struct iommu_table *tbl, long index) in tce_get_pseries()
137 static void tce_free_pSeriesLP(struct iommu_table*, long, long);
138 static void tce_freemulti_pSeriesLP(struct iommu_table*, long, long);
140 static int tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum, in tce_build_pSeriesLP()
183 static int tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, in tce_buildmulti_pSeriesLP()
260 static void tce_free_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) in tce_free_pSeriesLP()
279 static void tce_freemulti_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) in tce_freemulti_pSeriesLP()
[all …]
/linux-3.4.99/arch/x86/include/asm/
Dcalgary.h33 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);
Dtce.h28 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-3.4.99/arch/x86/kernel/
Dpci-calgary_64.c172 static void calgary_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev);
173 static void calgary_tce_cache_blast(struct iommu_table *tbl);
174 static void calgary_dump_error_regs(struct iommu_table *tbl);
175 static void calioc2_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev);
176 static void calioc2_tce_cache_blast(struct iommu_table *tbl);
177 static void calioc2_dump_error_regs(struct iommu_table *tbl);
178 static void calgary_init_bitmap_from_tce_table(struct iommu_table *tbl);
195 static inline int translation_enabled(struct iommu_table *tbl) in translation_enabled()
201 static void iommu_range_reserve(struct iommu_table *tbl, in iommu_range_reserve()
226 struct iommu_table *tbl, in iommu_range_alloc()
[all …]
Dtce_64.c49 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()
Dvmlinux.lds.S258 .iommu_table : AT(ADDR(.iommu_table) - LOAD_OFFSET) {
260 *(.iommu_table) argument
DMakefile35 obj-y += pci-iommu_table.o
/linux-3.4.99/arch/powerpc/kernel/
Diommu.c48 static void __iommu_free(struct iommu_table *, dma_addr_t, unsigned int);
62 struct iommu_table *tbl, in iommu_range_alloc()
162 static dma_addr_t iommu_alloc(struct device *dev, struct iommu_table *tbl, in iommu_alloc()
213 static void __iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr, in __iommu_free()
241 static void iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr, in iommu_free()
260 int iommu_map_sg(struct device *dev, struct iommu_table *tbl, in iommu_map_sg()
410 void iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, in iommu_unmap_sg()
447 static void iommu_table_clear(struct iommu_table *tbl) in iommu_table_clear()
492 struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid) in iommu_init_table()
533 void iommu_free_table(struct iommu_table *tbl, const char *node_name) in iommu_free_table()
[all …]
Ddma-iommu.c78 struct iommu_table *tbl = get_iommu_table_base(dev); in dma_iommu_dma_supported()
98 struct iommu_table *tbl = get_iommu_table_base(dev); in dma_iommu_get_required_mask()
Dvio.c1053 static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) in vio_build_iommu_table()
1056 struct iommu_table *tbl; in vio_build_iommu_table()
1193 struct iommu_table *tbl = get_iommu_table_base(dev); in vio_dev_release()
/linux-3.4.99/arch/powerpc/platforms/powernv/
Dpci.h51 struct iommu_table tce32_table;
89 struct iommu_table iommu_table; member
141 extern void pnv_pci_setup_iommu_table(struct iommu_table *tbl,
Dpci.c367 static void pnv_tce_invalidate(struct iommu_table *tbl, in pnv_tce_invalidate()
408 static int pnv_tce_build(struct iommu_table *tbl, long index, long npages, in pnv_tce_build()
437 static void pnv_tce_free(struct iommu_table *tbl, long index, long npages) in pnv_tce_free()
450 void pnv_pci_setup_iommu_table(struct iommu_table *tbl, in pnv_pci_setup_iommu_table()
463 static struct iommu_table * __devinit
466 struct iommu_table *tbl; in pnv_pci_setup_bml_iommu()
477 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, hose->node); in pnv_pci_setup_bml_iommu()
504 if (!pdn->iommu_table) in pnv_pci_dma_fallback_setup()
505 pdn->iommu_table = pnv_pci_setup_bml_iommu(hose); in pnv_pci_dma_fallback_setup()
506 if (!pdn->iommu_table) in pnv_pci_dma_fallback_setup()
[all …]
Dpci-p5ioc2.c91 if (phb->p5ioc2.iommu_table.it_map == NULL) in pnv_pci_p5ioc2_dma_dev_setup()
92 iommu_init_table(&phb->p5ioc2.iommu_table, phb->hose->node); in pnv_pci_p5ioc2_dma_dev_setup()
94 set_iommu_table_base(&pdev->dev, &phb->p5ioc2.iommu_table); in pnv_pci_p5ioc2_dma_dev_setup()
172 pnv_pci_setup_iommu_table(&phb->p5ioc2.iommu_table, in pnv_pci_init_p5ioc2_phb()
Dpci-ioda.c901 struct iommu_table *tbl; in pnv_pci_ioda_setup_dma_pe()
/linux-3.4.99/arch/powerpc/sysdev/
Ddart_iommu.c68 static struct iommu_table iommu_table_dart;
143 static void dart_flush(struct iommu_table *tbl) in dart_flush()
152 static int dart_build(struct iommu_table *tbl, long index, in dart_build()
193 static void dart_free(struct iommu_table *tbl, long index, long npages) in dart_free()
/linux-3.4.99/arch/powerpc/platforms/pasemi/
Diommu.c83 static struct iommu_table iommu_table_iobmap;
86 static int iobmap_build(struct iommu_table *tbl, long index, in iobmap_build()
115 static void iobmap_free(struct iommu_table *tbl, long index, in iobmap_free()
/linux-3.4.99/arch/powerpc/platforms/cell/
Diommu.c118 struct iommu_table table;
166 static int tce_build_cell(struct iommu_table *tbl, long index, long npages, in tce_build_cell()
212 static void tce_free_cell(struct iommu_table *tbl, long index, long npages) in tce_free_cell()
543 static struct iommu_table *cell_get_iommu_table(struct device *dev) in cell_get_iommu_table()
/linux-3.4.99/arch/powerpc/platforms/wsp/
Dwsp_pci.c45 struct iommu_table table;
231 static int tce_build_wsp(struct iommu_table *tbl, long index, long npages, in tce_build_wsp()
271 static void tce_free_wsp(struct iommu_table *tbl, long index, long npages) in tce_free_wsp()