Home
last modified time | relevance | path

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

/linux-3.4.99/arch/sparc/kernel/
Diommu.c135 1 << IO_PAGE_SHIFT); in iommu_range_alloc()
137 boundary_size = ALIGN(1UL << 32, 1 << IO_PAGE_SHIFT); in iommu_range_alloc()
140 iommu->page_table_map_base >> IO_PAGE_SHIFT, in iommu_range_alloc()
141 boundary_size >> IO_PAGE_SHIFT, 0); in iommu_range_alloc()
172 entry = (dma_addr - iommu->page_table_map_base) >> IO_PAGE_SHIFT; in iommu_range_free()
309 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent()
318 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent()
320 npages = size >> IO_PAGE_SHIFT; in dma_4u_alloc_coherent()
340 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in dma_4u_free_coherent()
375 npages >>= IO_PAGE_SHIFT; in dma_4u_map_page()
[all …]
Diommu_common.h23 #define IO_PAGE_SHIFT 13 macro
24 #define IO_PAGE_SIZE (1UL << IO_PAGE_SHIFT)
Dpci_sun4v.c146 npages = size >> IO_PAGE_SHIFT; in dma_4v_alloc_coherent()
166 (entry << IO_PAGE_SHIFT)); in dma_4v_alloc_coherent()
209 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in dma_4v_free_coherent()
213 entry = ((dvma - iommu->page_table_map_base) >> IO_PAGE_SHIFT); in dma_4v_free_coherent()
254 npages >>= IO_PAGE_SHIFT; in dma_4v_map_page()
264 (entry << IO_PAGE_SHIFT)); in dma_4v_map_page()
322 npages >>= IO_PAGE_SHIFT; in dma_4v_unmap_page()
329 entry = (bus_addr - iommu->page_table_map_base) >> IO_PAGE_SHIFT; in dma_4v_unmap_page()
380 IO_PAGE_SIZE) >> IO_PAGE_SHIFT; in dma_4v_map_sg()
381 base_shift = iommu->page_table_map_base >> IO_PAGE_SHIFT; in dma_4v_map_sg()
[all …]