Home
last modified time | relevance | path

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

/linux-6.12.1/arch/alpha/kernel/
Dpci_iommu.c238 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()
[all …]