Home
last modified time | relevance | path

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

/linux-6.1.9/arch/alpha/kernel/
Dpci_iommu.c236 long npages, dma_ofs, i; in pci_map_single_1() local
284 dma_ofs = iommu_arena_alloc(dev, arena, npages, align); in pci_map_single_1()
285 if (dma_ofs < 0) { in pci_map_single_1()
293 arena->ptes[i + dma_ofs] = mk_iommu_pte(paddr); in pci_map_single_1()
295 ret = arena->dma_base + dma_ofs * PAGE_SIZE; in pci_map_single_1()
357 long dma_ofs, npages; in alpha_pci_unmap_page() local
381 dma_ofs = (dma_addr - arena->dma_base) >> PAGE_SHIFT; in alpha_pci_unmap_page()
382 if (dma_ofs * PAGE_SIZE >= arena->size) { in alpha_pci_unmap_page()
394 iommu_arena_free(arena, dma_ofs, npages); in alpha_pci_unmap_page()
399 if (dma_ofs >= arena->next_entry) in alpha_pci_unmap_page()
[all …]