Lines Matching refs:iommu_page
201 unsigned long iommu_page; in dma_map_area() local
207 iommu_page = alloc_iommu(dev, npages, align_mask); in dma_map_area()
208 if (iommu_page == -1) { in dma_map_area()
218 iommu_gatt_base[iommu_page + i] = GPTE_ENCODE(phys_mem); in dma_map_area()
221 return iommu_bus_base + iommu_page*PAGE_SIZE + (phys_mem & ~PAGE_MASK); in dma_map_area()
249 unsigned long iommu_page; in gart_unmap_page() local
265 iommu_page = (dma_addr - iommu_bus_base)>>PAGE_SHIFT; in gart_unmap_page()
268 iommu_gatt_base[iommu_page + i] = gart_unmapped_entry; in gart_unmap_page()
270 free_iommu(iommu_page, npages); in gart_unmap_page()
327 unsigned long iommu_page = iommu_start; in __dma_map_cont() local
341 sout->dma_address += iommu_page*PAGE_SIZE + s->offset; in __dma_map_cont()
350 iommu_gatt_base[iommu_page] = GPTE_ENCODE(addr); in __dma_map_cont()
352 iommu_page++; in __dma_map_cont()
355 BUG_ON(iommu_page - iommu_start != pages); in __dma_map_cont()