Lines Matching refs:dma_ofs
238 long npages, dma_ofs, i; in pci_map_single_1() local
286 dma_ofs = iommu_arena_alloc(dev, arena, npages, align); in pci_map_single_1()
287 if (dma_ofs < 0) { in pci_map_single_1()
295 arena->ptes[i + dma_ofs] = mk_iommu_pte(paddr); in pci_map_single_1()
297 ret = arena->dma_base + dma_ofs * PAGE_SIZE; in pci_map_single_1()
359 long dma_ofs, npages; in alpha_pci_unmap_page() local
383 dma_ofs = (dma_addr - arena->dma_base) >> PAGE_SHIFT; in alpha_pci_unmap_page()
384 if (dma_ofs * PAGE_SIZE >= arena->size) { in alpha_pci_unmap_page()
396 iommu_arena_free(arena, dma_ofs, npages); in alpha_pci_unmap_page()
401 if (dma_ofs >= arena->next_entry) in alpha_pci_unmap_page()
543 long npages, dma_ofs, i; in sg_fill() local
577 dma_ofs = iommu_arena_alloc(dev, arena, npages, 0); in sg_fill()
578 if (dma_ofs < 0) { in sg_fill()
589 out->dma_address = arena->dma_base + dma_ofs*PAGE_SIZE + paddr; in sg_fill()
597 ptes = &arena->ptes[dma_ofs]; in sg_fill()