Searched refs:IO_PAGE_SHIFT (Results 1 – 3 of 3) sorted by relevance
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()[all …]
23 #define IO_PAGE_SHIFT 13 macro24 #define IO_PAGE_SIZE (1UL << IO_PAGE_SHIFT)
199 npages = size >> IO_PAGE_SHIFT; in dma_4v_alloc_coherent()225 *dma_addrp = (tbl->table_map_base + (entry << IO_PAGE_SHIFT)); in dma_4v_alloc_coherent()333 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in dma_4v_free_coherent()346 entry = ((dvma - tbl->table_map_base) >> IO_PAGE_SHIFT); in dma_4v_free_coherent()377 npages >>= IO_PAGE_SHIFT; in dma_4v_map_page()391 bus_addr = (tbl->table_map_base + (entry << IO_PAGE_SHIFT)); in dma_4v_map_page()453 npages >>= IO_PAGE_SHIFT; in dma_4v_unmap_page()463 entry = (bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT; in dma_4v_unmap_page()512 seg_boundary_size = dma_get_seg_boundary_nr_pages(dev, IO_PAGE_SHIFT); in dma_4v_map_sg()520 base_shift = tbl->table_map_base >> IO_PAGE_SHIFT; in dma_4v_map_sg()[all …]