Home
last modified time | relevance | path

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

/arch/sparc/kernel/
Diommu.c116 iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT, in iommu_table_init()
224 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent()
232 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent()
234 npages = size >> IO_PAGE_SHIFT; in dma_4u_alloc_coherent()
254 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in dma_4u_free_coherent()
285 npages >>= IO_PAGE_SHIFT; in dma_4u_map_page()
298 ((base - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_map_page()
406 npages >>= IO_PAGE_SHIFT; in dma_4u_unmap_page()
408 ((bus_addr - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT); in dma_4u_unmap_page()
477 IO_PAGE_SIZE) >> IO_PAGE_SHIFT; in dma_4u_map_sg()
[all …]
Diommu_common.h23 #define IO_PAGE_SHIFT 13 macro
24 #define IO_PAGE_SIZE (1UL << IO_PAGE_SHIFT)
Dpci_sun4v.c194 npages = size >> IO_PAGE_SHIFT; in dma_4v_alloc_coherent()
222 *dma_addrp = (tbl->table_map_base + (entry << IO_PAGE_SHIFT)); in dma_4v_alloc_coherent()
330 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in dma_4v_free_coherent()
343 entry = ((dvma - tbl->table_map_base) >> IO_PAGE_SHIFT); in dma_4v_free_coherent()
374 npages >>= IO_PAGE_SHIFT; in dma_4v_map_page()
388 bus_addr = (tbl->table_map_base + (entry << IO_PAGE_SHIFT)); in dma_4v_map_page()
450 npages >>= IO_PAGE_SHIFT; in dma_4v_unmap_page()
460 entry = (bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT; in dma_4v_unmap_page()
510 IO_PAGE_SIZE) >> IO_PAGE_SHIFT; in dma_4v_map_sg()
518 base_shift = tbl->table_map_base >> IO_PAGE_SHIFT; in dma_4v_map_sg()
[all …]