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()
143 if (mem->dev_hpa == MM_IOMMU_TABLE_INVALID_HPA) { in mm_iommu_do_alloc()
194 unsigned long entries, unsigned long dev_hpa, in mm_iommu_newdev() argument
197 return mm_iommu_do_alloc(mm, ua, entries, dev_hpa, pmem); in mm_iommu_newdev()
272 if (mem->dev_hpa == MM_IOMMU_TABLE_INVALID_HPA) in mm_iommu_put()
357 *hpa = mem->dev_hpa + (ua - mem->ua); in mm_iommu_ua_to_hpa()
381 *hpa = mem->dev_hpa + (ua - mem->ua); in mm_iommu_ua_to_hpa_rm()
405 if (mem->dev_hpa != MM_IOMMU_TABLE_INVALID_HPA) in mm_iommu_ua_mark_dirty_rm()
425 if (mem->dev_hpa == MM_IOMMU_TABLE_INVALID_HPA) in mm_iommu_is_devmem()
428 end = mem->dev_hpa + (mem->entries << PAGE_SHIFT); in mm_iommu_is_devmem()
429 if ((mem->dev_hpa <= hpa) && (hpa < end)) { in mm_iommu_is_devmem()