Home
last modified time | relevance | path

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

/linux-6.1.9/arch/sparc/kernel/
Diommu_common.h45 int nr = iommu_num_pages(paddr, outs->dma_length + sg->length, in is_span_boundary()
Diommu.c489 npages = iommu_num_pages(paddr, slen, IO_PAGE_SIZE); in dma_4u_map_sg()
561 npages = iommu_num_pages(s->dma_address, s->dma_length, in dma_4u_map_sg()
633 npages = iommu_num_pages(dma_handle, len, IO_PAGE_SIZE); in dma_4u_unmap_sg()
Dpci_sun4v.c533 npages = iommu_num_pages(paddr, slen, IO_PAGE_SIZE); in dma_4v_map_sg()
608 npages = iommu_num_pages(s->dma_address, s->dma_length, in dma_4v_map_sg()
654 npages = iommu_num_pages(dma_handle, len, IO_PAGE_SIZE); in dma_4v_unmap_sg()
/linux-6.1.9/include/linux/
Diommu-helper.h35 static inline unsigned long iommu_num_pages(unsigned long addr, in iommu_num_pages() function
/linux-6.1.9/arch/alpha/kernel/
Dpci_iommu.c279 npages = iommu_num_pages(paddr, size, PAGE_SIZE); in pci_map_single_1()
390 npages = iommu_num_pages(dma_addr, size, PAGE_SIZE); in alpha_pci_unmap_page()
574 npages = iommu_num_pages(paddr, size, PAGE_SIZE); in sg_fill()
610 npages = iommu_num_pages(paddr, size, PAGE_SIZE); in sg_fill()
769 npages = iommu_num_pages(addr, size, PAGE_SIZE); in alpha_pci_unmap_sg()
/linux-6.1.9/arch/x86/kernel/
Damd_gart_64.c200 unsigned long npages = iommu_num_pages(phys_mem, size, PAGE_SIZE); in dma_map_area()
266 npages = iommu_num_pages(dma_addr, size, PAGE_SIZE); in gart_unmap_page()
348 pages = iommu_num_pages(s->offset, s->length, PAGE_SIZE); in __dma_map_cont()
431 pages += iommu_num_pages(s->offset, s->length, PAGE_SIZE); in gart_map_sg()
/linux-6.1.9/arch/powerpc/kernel/
Diommu.c499 npages = iommu_num_pages(vaddr, slen, IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg()
591 npages = iommu_num_pages(s->dma_address, s->dma_length, in ppc_iommu_map_sg()
621 npages = iommu_num_pages(dma_handle, sg->dma_length, in ppc_iommu_unmap_sg()
858 npages = iommu_num_pages(uaddr, size, IOMMU_PAGE_SIZE(tbl)); in iommu_map_page()
890 npages = iommu_num_pages(dma_handle, size, in iommu_unmap_page()
/linux-6.1.9/arch/s390/pci/
Dpci_dma.c348 nr_pages = iommu_num_pages(pa, size, PAGE_SIZE); in s390_dma_map_pages()
383 npages = iommu_num_pages(dma_addr, size, PAGE_SIZE); in s390_dma_unmap_pages()
/linux-6.1.9/drivers/iommu/amd/
Diommu.c957 pages = iommu_num_pages(address, size, PAGE_SIZE); in build_inv_address()