Lines Matching refs:tbl

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);
119 #define IOMMU_TABLE_USERSPACE_ENTRY_RO(tbl, entry) \
120 ((tbl)->it_ops->useraddrptr((tbl), (entry), false))
121 #define IOMMU_TABLE_USERSPACE_ENTRY(tbl, entry) \
122 ((tbl)->it_ops->useraddrptr((tbl), (entry), true))
126 int get_iommu_order(unsigned long size, struct iommu_table *tbl)
128 return __ilog2((size - 1) >> tbl->it_page_shift) + 1;
149 extern struct iommu_table *iommu_tce_table_get(struct iommu_table *tbl);
150 extern int iommu_tce_table_put(struct iommu_table *tbl);
155 extern struct iommu_table *iommu_init_table(struct iommu_table *tbl,
210 extern long iommu_tce_xchg(struct mm_struct *mm, struct iommu_table *tbl,
214 struct iommu_table *tbl,
217 extern void iommu_tce_kill(struct iommu_table *tbl,
252 extern int ppc_iommu_map_sg(struct device *dev, struct iommu_table *tbl,
257 extern void ppc_iommu_unmap_sg(struct iommu_table *tbl,
263 extern void *iommu_alloc_coherent(struct device *dev, struct iommu_table *tbl,
266 extern void iommu_free_coherent(struct iommu_table *tbl, size_t size,
268 extern dma_addr_t iommu_map_page(struct device *dev, struct iommu_table *tbl,
273 extern void iommu_unmap_page(struct iommu_table *tbl, dma_addr_t dma_handle,
302 #define iommu_tce_clear_param_check(tbl, ioba, tce_value, npages) \
303 (iommu_tce_check_ioba((tbl)->it_page_shift, \
304 (tbl)->it_offset, (tbl)->it_size, \
306 #define iommu_tce_put_param_check(tbl, ioba, gpa) \
307 (iommu_tce_check_ioba((tbl)->it_page_shift, \
308 (tbl)->it_offset, (tbl)->it_size, \
310 iommu_tce_check_gpa((tbl)->it_page_shift, (gpa)))
312 extern void iommu_flush_tce(struct iommu_table *tbl);
313 extern int iommu_take_ownership(struct iommu_table *tbl);
314 extern void iommu_release_ownership(struct iommu_table *tbl);