Home
last modified time | relevance | path

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

/arch/x86/kernel/
Damd_gart_64.c200 static dma_addr_t dma_map_area(struct device *dev, dma_addr_t phys_mem, in dma_map_area() argument
203 unsigned long npages = iommu_num_pages(phys_mem, size, PAGE_SIZE); in dma_map_area()
207 if (unlikely(phys_mem + size > GART_MAX_PHYS_ADDR)) in dma_map_area()
212 if (!nonforced_iommu(dev, phys_mem, size)) in dma_map_area()
213 return phys_mem; in dma_map_area()
221 iommu_gatt_base[iommu_page + i] = GPTE_ENCODE(phys_mem); in dma_map_area()
222 phys_mem += PAGE_SIZE; in dma_map_area()
224 return iommu_bus_base + iommu_page*PAGE_SIZE + (phys_mem & ~PAGE_MASK); in dma_map_area()