Searched refs:dma_ofs (Results 1 – 1 of 1) sorted by relevance
265 long npages, dma_ofs, i; in pci_map_single_1() local313 dma_ofs = iommu_arena_alloc(dev, arena, npages, align); in pci_map_single_1()314 if (dma_ofs < 0) { in pci_map_single_1()322 arena->ptes[i + dma_ofs] = mk_iommu_pte(paddr); in pci_map_single_1()324 ret = arena->dma_base + dma_ofs * PAGE_SIZE; in pci_map_single_1()386 long dma_ofs, npages; in alpha_pci_unmap_page() local410 dma_ofs = (dma_addr - arena->dma_base) >> PAGE_SHIFT; in alpha_pci_unmap_page()411 if (dma_ofs * PAGE_SIZE >= arena->size) { in alpha_pci_unmap_page()423 iommu_arena_free(arena, dma_ofs, npages); in alpha_pci_unmap_page()428 if (dma_ofs >= arena->next_entry) in alpha_pci_unmap_page()[all …]