Home
last modified time | relevance | path

Searched refs:IO_PAGE_SIZE (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/arch/sparc64/kernel/
Diommu_common.h19 #define IO_PAGE_SIZE (1UL << IO_PAGE_SHIFT) macro
20 #define IO_PAGE_MASK (~(IO_PAGE_SIZE-1))
21 #define IO_PAGE_ALIGN(addr) (((addr)+IO_PAGE_SIZE-1)&IO_PAGE_MASK)
Diommu_common.c42 end = (end + (IO_PAGE_SIZE - 1)) & IO_PAGE_MASK; in verify_lengths()
100 next_page = (sgaddr + IO_PAGE_SIZE) & IO_PAGE_MASK; in verify_one_map()
211 & (IO_PAGE_SIZE - 1UL)); in prepare_sg()
226 (IO_PAGE_SIZE - 1UL)) >> IO_PAGE_SHIFT); in prepare_sg()
228 dent_addr += addr & (IO_PAGE_SIZE - 1UL); in prepare_sg()
239 (IO_PAGE_SIZE - 1UL)) >> IO_PAGE_SHIFT; in prepare_sg()
Dpci_iommu.c245 first_page += IO_PAGE_SIZE; in pci_alloc_consistent()
255 daddr += IO_PAGE_SIZE; in pci_alloc_consistent()
370 for (i = 0; i < npages; i++, base++, base_paddr += IO_PAGE_SIZE) in pci_map_single()
432 for (i = 0; i < npages; i++, vaddr += IO_PAGE_SIZE) in pci_unmap_single()
467 dma_npages = ((dma_sg->dma_address & (IO_PAGE_SIZE - 1UL)) + in fill_sg()
469 ((IO_PAGE_SIZE - 1UL))) >> IO_PAGE_SHIFT; in fill_sg()
486 offset = tmp & (IO_PAGE_SIZE - 1UL); in fill_sg()
490 pteval = (tmp + IO_PAGE_SIZE) & IO_PAGE_MASK; in fill_sg()
492 len -= (IO_PAGE_SIZE - (tmp & (IO_PAGE_SIZE - 1UL))); in fill_sg()
501 pteval += IO_PAGE_SIZE; in fill_sg()
[all …]
Dsbus.c328 first_page += IO_PAGE_SIZE; in sbus_alloc_consistent()
385 pbase += IO_PAGE_SIZE; in sbus_map_single()
427 dma_npages = ((dma_sg->dma_address & (IO_PAGE_SIZE - 1UL)) + in fill_sg()
429 ((IO_PAGE_SIZE - 1UL))) >> IO_PAGE_SHIFT; in fill_sg()
446 offset = tmp & (IO_PAGE_SIZE - 1UL); in fill_sg()
450 pteval = (tmp + IO_PAGE_SIZE) & IO_PAGE_MASK; in fill_sg()
452 len -= (IO_PAGE_SIZE - (tmp & (IO_PAGE_SIZE - 1UL))); in fill_sg()
461 pteval += IO_PAGE_SIZE; in fill_sg()
462 len -= (IO_PAGE_SIZE - offset); in fill_sg()