Searched refs:IO_PAGE_SHIFT (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/arch/sparc/kernel/
H A Diommu_common.h23 #define IO_PAGE_SHIFT 13 macro
24 #define IO_PAGE_SIZE (1UL << IO_PAGE_SHIFT)
H A Diommu.c115 iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT, iommu_table_init()
223 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); dma_4u_alloc_coherent()
231 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); dma_4u_alloc_coherent()
233 npages = size >> IO_PAGE_SHIFT; dma_4u_alloc_coherent()
253 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; dma_4u_free_coherent()
284 npages >>= IO_PAGE_SHIFT; dma_4u_map_page() local
297 ((base - iommu->page_table) << IO_PAGE_SHIFT)); dma_4u_map_page()
405 npages >>= IO_PAGE_SHIFT; dma_4u_unmap_page() local
407 ((bus_addr - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT); dma_4u_unmap_page()
476 IO_PAGE_SIZE) >> IO_PAGE_SHIFT; dma_4u_map_sg()
477 base_shift = iommu->tbl.table_map_base >> IO_PAGE_SHIFT; for_each_sg()
506 (entry << IO_PAGE_SHIFT); for_each_sg()
567 >> IO_PAGE_SHIFT; for_each_sg()
601 ((bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT); fetch_sg_ctx()
639 >> IO_PAGE_SHIFT); dma_4u_unmap_sg()
677 npages >>= IO_PAGE_SHIFT; dma_4u_sync_single_for_cpu() local
688 ((bus_addr - tbl->table_map_base)>>IO_PAGE_SHIFT); dma_4u_sync_single_for_cpu()
724 tbl->table_map_base) >> IO_PAGE_SHIFT); dma_4u_sync_sg_for_cpu()
738 - bus_addr) >> IO_PAGE_SHIFT;
H A Dpci_sun4v.c147 npages = size >> IO_PAGE_SHIFT; dma_4v_alloc_coherent()
165 *dma_addrp = (iommu->tbl.table_map_base + (entry << IO_PAGE_SHIFT)); dma_4v_alloc_coherent()
223 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; dma_4v_free_coherent()
227 entry = ((dvma - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT); dma_4v_free_coherent()
254 npages >>= IO_PAGE_SHIFT; dma_4v_map_page() local
262 bus_addr = (iommu->tbl.table_map_base + (entry << IO_PAGE_SHIFT)); dma_4v_map_page()
316 npages >>= IO_PAGE_SHIFT; dma_4v_unmap_page() local
318 entry = (bus_addr - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT; dma_4v_unmap_page()
361 IO_PAGE_SIZE) >> IO_PAGE_SHIFT; dma_4v_map_sg()
362 base_shift = iommu->tbl.table_map_base >> IO_PAGE_SHIFT; for_each_sg()
389 dma_addr = iommu->tbl.table_map_base + (entry << IO_PAGE_SHIFT); for_each_sg()
491 unsigned long shift = IO_PAGE_SHIFT; dma_4v_unmap_sg()
596 iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT, pci_sun4v_iommu_init()

Completed in 178 milliseconds