Lines Matching refs:dev_hpa
47 u64 dev_hpa; /* Device memory base address */ member
57 unsigned long entries, unsigned long dev_hpa, in mm_iommu_do_alloc() argument
65 if (dev_hpa == MM_IOMMU_TABLE_INVALID_HPA) { in mm_iommu_do_alloc()
79 if (dev_hpa != MM_IOMMU_TABLE_INVALID_HPA) { in mm_iommu_do_alloc()
80 mem->pageshift = __ffs(dev_hpa | (entries << PAGE_SHIFT)); in mm_iommu_do_alloc()
81 mem->dev_hpa = dev_hpa; in mm_iommu_do_alloc()
84 mem->dev_hpa = MM_IOMMU_TABLE_INVALID_HPA; in mm_iommu_do_alloc()
144 if (mem->dev_hpa == MM_IOMMU_TABLE_INVALID_HPA) { in mm_iommu_do_alloc()
195 unsigned long entries, unsigned long dev_hpa, in mm_iommu_newdev() argument
198 return mm_iommu_do_alloc(mm, ua, entries, dev_hpa, pmem); in mm_iommu_newdev()
273 if (mem->dev_hpa == MM_IOMMU_TABLE_INVALID_HPA) in mm_iommu_put()
343 *hpa = mem->dev_hpa + (ua - mem->ua); in mm_iommu_ua_to_hpa()
362 if (mem->dev_hpa == MM_IOMMU_TABLE_INVALID_HPA) in mm_iommu_is_devmem()
365 end = mem->dev_hpa + (mem->entries << PAGE_SHIFT); in mm_iommu_is_devmem()
366 if ((mem->dev_hpa <= hpa) && (hpa < end)) { in mm_iommu_is_devmem()