Lines Matching refs:IO_PAGE_SHIFT
115 iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT, in iommu_table_init()
223 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent()
231 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent()
233 npages = size >> IO_PAGE_SHIFT; in dma_4u_alloc_coherent()
253 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in dma_4u_free_coherent()
284 npages >>= IO_PAGE_SHIFT; in dma_4u_map_page()
297 ((base - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_map_page()
405 npages >>= IO_PAGE_SHIFT; in dma_4u_unmap_page()
407 ((bus_addr - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT); in dma_4u_unmap_page()
475 seg_boundary_size = dma_get_seg_boundary_nr_pages(dev, IO_PAGE_SHIFT); in dma_4u_map_sg()
476 base_shift = iommu->tbl.table_map_base >> IO_PAGE_SHIFT; in dma_4u_map_sg()
505 (entry << IO_PAGE_SHIFT); in dma_4u_map_sg()
565 >> IO_PAGE_SHIFT; in dma_4u_map_sg()
598 ((bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT); in fetch_sg_ctx()
636 >> IO_PAGE_SHIFT); in dma_4u_unmap_sg()
674 npages >>= IO_PAGE_SHIFT; in dma_4u_sync_single_for_cpu()
685 ((bus_addr - tbl->table_map_base)>>IO_PAGE_SHIFT); in dma_4u_sync_single_for_cpu()
721 tbl->table_map_base) >> IO_PAGE_SHIFT); in dma_4u_sync_sg_for_cpu()
735 - bus_addr) >> IO_PAGE_SHIFT; in dma_4u_sync_sg_for_cpu()