Searched refs:IO_PAGE_MASK (Results 1 – 4 of 4) sorted by relevance
39 start = start & IO_PAGE_MASK; in verify_lengths()42 end = (end + (IO_PAGE_SIZE - 1)) & IO_PAGE_MASK; in verify_lengths()76 if ((sgaddr & ~IO_PAGE_MASK) != (daddr & ~IO_PAGE_MASK)) { in verify_one_map()86 if ((paddr + PAGE_OFFSET) != (sgaddr & IO_PAGE_MASK)) { in verify_one_map()89 iopte_val(*iopte), (sgaddr & IO_PAGE_MASK) - PAGE_OFFSET); in verify_one_map()97 if ((sgaddr & IO_PAGE_MASK) ^ ((sgaddr + sglen - 1) & IO_PAGE_MASK)) { in verify_one_map()100 next_page = (sgaddr + IO_PAGE_SIZE) & IO_PAGE_MASK; in verify_one_map()115 if (dlen > 0 && ((daddr & ~IO_PAGE_MASK) == 0)) in verify_one_map()183 printk("%016lx.\n", sg->dma_address & IO_PAGE_MASK); in verify_sglist()
20 #define IO_PAGE_MASK (~(IO_PAGE_SIZE-1)) macro21 #define IO_PAGE_ALIGN(addr) (((addr)+IO_PAGE_SIZE-1)&IO_PAGE_MASK)
348 npages = IO_PAGE_ALIGN(oaddr + sz) - (oaddr & IO_PAGE_MASK); in pci_map_single()358 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in pci_map_single()359 base_paddr = __pa(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()408 bus_addr &= IO_PAGE_MASK; in pci_unmap_single()485 pteval = tmp & IO_PAGE_MASK; in fill_sg()490 pteval = (tmp + IO_PAGE_SIZE) & IO_PAGE_MASK; in fill_sg()632 bus_addr = sglist->dma_address & IO_PAGE_MASK; in pci_unmap_sg()708 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in pci_dma_sync_single()710 bus_addr &= IO_PAGE_MASK; in pci_dma_sync_single()[all …]
369 offset = (u32) (pbase & ~IO_PAGE_MASK); in sbus_map_single()370 size = (IO_PAGE_ALIGN(pbase + size) - (pbase & IO_PAGE_MASK)); in sbus_map_single()371 pbase = (unsigned long) __pa(pbase & IO_PAGE_MASK); in sbus_map_single()401 u32 dma_base = dma_addr & IO_PAGE_MASK; in sbus_unmap_single()445 pteval = tmp & IO_PAGE_MASK; in fill_sg()450 pteval = (tmp + IO_PAGE_SIZE) & IO_PAGE_MASK; in fill_sg()564 dvma_base = sg[0].dma_address & IO_PAGE_MASK; in sbus_unmap_sg()584 size = (IO_PAGE_ALIGN(base + size) - (base & IO_PAGE_MASK)); in sbus_dma_sync_single()587 strbuf_flush(iommu, base & IO_PAGE_MASK, size >> IO_PAGE_SHIFT); in sbus_dma_sync_single()598 base = sg[0].dma_address & IO_PAGE_MASK; in sbus_dma_sync_sg()