Searched refs:IO_PAGE_ALIGN (Results 1 – 3 of 3) sorted by relevance
211 size = IO_PAGE_ALIGN(size); in pci_alloc_consistent()272 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in pci_free_consistent()348 npages = IO_PAGE_ALIGN(oaddr + sz) - (oaddr & IO_PAGE_MASK); in pci_map_single()399 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in pci_unmap_single()638 npages = (IO_PAGE_ALIGN(sglist[i].dma_address + sglist[i].dma_length) - bus_addr) >> IO_PAGE_SHIFT; in pci_unmap_sg()708 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in pci_dma_sync_single()801 …npages = (IO_PAGE_ALIGN(sglist[i].dma_address + sglist[i].dma_length) - bus_addr) >> IO_PAGE_SHIFT; in pci_dma_sync_sg()
21 #define IO_PAGE_ALIGN(addr) (((addr)+IO_PAGE_SIZE-1)&IO_PAGE_MASK) macro
302 size = IO_PAGE_ALIGN(size); in sbus_alloc_consistent()344 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in sbus_free_consistent()370 size = (IO_PAGE_ALIGN(pbase + size) - (pbase & IO_PAGE_MASK)); in sbus_map_single()404 size = (IO_PAGE_ALIGN(dma_addr + size) - dma_base); in sbus_unmap_single()570 size = IO_PAGE_ALIGN(sg[i].dma_address + sg[i].dma_length) - dvma_base; in sbus_unmap_sg()584 size = (IO_PAGE_ALIGN(base + size) - (base & IO_PAGE_MASK)); in sbus_dma_sync_single()604 size = IO_PAGE_ALIGN(sg[i].dma_address + sg[i].dma_length) - base; in sbus_dma_sync_sg()