Lines Matching refs:tbl
51 struct iommu *iommu = container_of(iommu_map_table, struct iommu, tbl); in iommu_flushall()
104 iommu->tbl.table_map_base = dma_offset; in iommu_table_init()
110 iommu->tbl.map = kmalloc_node(sz, GFP_KERNEL, numa_node); in iommu_table_init()
111 if (!iommu->tbl.map) in iommu_table_init()
113 memset(iommu->tbl.map, 0, sz); in iommu_table_init()
115 iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT, in iommu_table_init()
150 kfree(iommu->tbl.map); in iommu_table_init()
151 iommu->tbl.map = NULL; in iommu_table_init()
162 entry = iommu_tbl_range_alloc(dev, &iommu->tbl, npages, NULL, in alloc_npages()
230 *dma_addrp = (iommu->tbl.table_map_base + in dma_4u_alloc_coherent()
256 iommu_tbl_range_free(&iommu->tbl, dvma, npages, DMA_ERROR_CODE); in dma_4u_free_coherent()
296 bus_addr = (iommu->tbl.table_map_base + in dma_4u_map_page()
407 ((bus_addr - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT); in dma_4u_unmap_page()
429 iommu_tbl_range_free(&iommu->tbl, bus_addr, npages, DMA_ERROR_CODE); in dma_4u_unmap_page()
477 base_shift = iommu->tbl.table_map_base >> IO_PAGE_SHIFT; in dma_4u_map_sg()
491 entry = iommu_tbl_range_alloc(dev, &iommu->tbl, npages, in dma_4u_map_sg()
505 dma_addr = iommu->tbl.table_map_base + in dma_4u_map_sg()
566 entry = (vaddr - iommu->tbl.table_map_base) in dma_4u_map_sg()
573 iommu_tbl_range_free(&iommu->tbl, vaddr, npages, in dma_4u_map_sg()
597 struct iommu_map_table *tbl = &iommu->tbl; in fetch_sg_ctx() local
601 ((bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT); in fetch_sg_ctx()
638 entry = ((dma_handle - iommu->tbl.table_map_base) in dma_4u_unmap_sg()
650 iommu_tbl_range_free(&iommu->tbl, dma_handle, npages, in dma_4u_unmap_sg()
685 struct iommu_map_table *tbl = &iommu->tbl; in dma_4u_sync_single_for_cpu() local
688 ((bus_addr - tbl->table_map_base)>>IO_PAGE_SHIFT); in dma_4u_sync_single_for_cpu()
721 struct iommu_map_table *tbl = &iommu->tbl; in dma_4u_sync_sg_for_cpu() local
724 tbl->table_map_base) >> IO_PAGE_SHIFT); in dma_4u_sync_sg_for_cpu()