Lines Matching refs:tbl
43 int (*set)(struct iommu_table *tbl,
54 int (*xchg_no_kill)(struct iommu_table *tbl,
59 void (*tce_kill)(struct iommu_table *tbl,
63 __be64 *(*useraddrptr)(struct iommu_table *tbl, long index, bool alloc);
65 void (*clear)(struct iommu_table *tbl,
68 unsigned long (*get)(struct iommu_table *tbl, long index);
69 void (*flush)(struct iommu_table *tbl);
70 void (*free)(struct iommu_table *tbl);
120 #define IOMMU_TABLE_USERSPACE_ENTRY_RO(tbl, entry) \ argument
121 ((tbl)->it_ops->useraddrptr((tbl), (entry), false))
122 #define IOMMU_TABLE_USERSPACE_ENTRY(tbl, entry) \ argument
123 ((tbl)->it_ops->useraddrptr((tbl), (entry), true))
127 int get_iommu_order(unsigned long size, struct iommu_table *tbl) in get_iommu_order() argument
129 return __ilog2((size - 1) >> tbl->it_page_shift) + 1; in get_iommu_order()
150 extern struct iommu_table *iommu_tce_table_get(struct iommu_table *tbl);
151 extern int iommu_tce_table_put(struct iommu_table *tbl);
156 extern struct iommu_table *iommu_init_table(struct iommu_table *tbl,
158 bool iommu_table_in_use(struct iommu_table *tbl);
211 extern long iommu_tce_xchg(struct mm_struct *mm, struct iommu_table *tbl,
215 struct iommu_table *tbl,
218 extern void iommu_tce_kill(struct iommu_table *tbl,
251 extern int ppc_iommu_map_sg(struct device *dev, struct iommu_table *tbl,
256 extern void ppc_iommu_unmap_sg(struct iommu_table *tbl,
262 extern void *iommu_alloc_coherent(struct device *dev, struct iommu_table *tbl,
265 extern void iommu_free_coherent(struct iommu_table *tbl, size_t size,
267 extern dma_addr_t iommu_map_page(struct device *dev, struct iommu_table *tbl,
272 extern void iommu_unmap_page(struct iommu_table *tbl, dma_addr_t dma_handle,
295 #define iommu_tce_clear_param_check(tbl, ioba, tce_value, npages) \ argument
296 (iommu_tce_check_ioba((tbl)->it_page_shift, \
297 (tbl)->it_offset, (tbl)->it_size, \
299 #define iommu_tce_put_param_check(tbl, ioba, gpa) \ argument
300 (iommu_tce_check_ioba((tbl)->it_page_shift, \
301 (tbl)->it_offset, (tbl)->it_size, \
303 iommu_tce_check_gpa((tbl)->it_page_shift, (gpa)))
305 extern void iommu_flush_tce(struct iommu_table *tbl);