Home
last modified time | relevance | path

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

/openbmc/linux/arch/sparc/kernel/
H A Diommu.c283 npages = IO_PAGE_ALIGN(oaddr + sz) - (oaddr & IO_PAGE_MASK); in dma_4u_map_page()
298 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4u_map_page()
299 base_paddr = __pa(oaddr & IO_PAGE_MASK); in dma_4u_map_page()
408 bus_addr &= IO_PAGE_MASK; in dma_4u_unmap_page()
506 dma_addr |= (s->offset & ~IO_PAGE_MASK); in dma_4u_map_sg()
509 paddr &= IO_PAGE_MASK; in dma_4u_map_sg()
560 vaddr = s->dma_address & IO_PAGE_MASK; in dma_4u_map_sg()
596 bus_addr = sg->dma_address & IO_PAGE_MASK; in fetch_sg_ctx()
639 dma_handle &= IO_PAGE_MASK; in dma_4u_unmap_sg()
675 bus_addr &= IO_PAGE_MASK; in dma_4u_sync_single_for_cpu()
[all …]
H A Diommu_common.h25 #define IO_PAGE_MASK (~(IO_PAGE_SIZE-1)) macro
H A Dpci_sun4v.c377 npages = IO_PAGE_ALIGN(oaddr + sz) - (oaddr & IO_PAGE_MASK); in dma_4v_map_page()
393 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4v_map_page()
394 base_paddr = __pa(oaddr & IO_PAGE_MASK); in dma_4v_map_page()
453 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4v_unmap_page()
455 bus_addr &= IO_PAGE_MASK; in dma_4v_unmap_page()
549 dma_addr |= (s->offset & ~IO_PAGE_MASK); in dma_4v_map_sg()
552 paddr &= IO_PAGE_MASK; in dma_4v_map_sg()
608 vaddr = s->dma_address & IO_PAGE_MASK; in dma_4v_map_sg()
878 if ((vdma[0] | vdma[1]) & ~IO_PAGE_MASK) { in pci_sun4v_iommu_init()