Lines Matching refs:ua
36 u64 ua; /* userspace address */ member
129 long mm_iommu_get(struct mm_struct *mm, unsigned long ua, unsigned long entries, in mm_iommu_get() argument
143 if ((mem->ua == ua) && (mem->entries == entries)) { in mm_iommu_get()
150 if ((mem->ua < (ua + (entries << PAGE_SHIFT))) && in mm_iommu_get()
151 (ua < (mem->ua + in mm_iommu_get()
176 mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT)); in mm_iommu_get()
185 cur_ua = ua + (i << PAGE_SHIFT); in mm_iommu_get()
241 mem->ua = ua; in mm_iommu_get()
336 unsigned long ua, unsigned long size) in mm_iommu_lookup() argument
341 if ((mem->ua <= ua) && in mm_iommu_lookup()
342 (ua + size <= mem->ua + in mm_iommu_lookup()
354 unsigned long ua, unsigned long size) in mm_iommu_lookup_rm() argument
360 if ((mem->ua <= ua) && in mm_iommu_lookup_rm()
361 (ua + size <= mem->ua + in mm_iommu_lookup_rm()
372 unsigned long ua, unsigned long entries) in mm_iommu_find() argument
377 if ((mem->ua == ua) && (mem->entries == entries)) { in mm_iommu_find()
388 unsigned long ua, unsigned int pageshift, unsigned long *hpa) in mm_iommu_ua_to_hpa() argument
390 const long entry = (ua - mem->ua) >> PAGE_SHIFT; in mm_iommu_ua_to_hpa()
399 *hpa = (*va & MM_IOMMU_TABLE_GROUP_PAGE_MASK) | (ua & ~PAGE_MASK); in mm_iommu_ua_to_hpa()
406 unsigned long ua, unsigned int pageshift, unsigned long *hpa) in mm_iommu_ua_to_hpa_rm() argument
408 const long entry = (ua - mem->ua) >> PAGE_SHIFT; in mm_iommu_ua_to_hpa_rm()
422 *hpa = (*pa & MM_IOMMU_TABLE_GROUP_PAGE_MASK) | (ua & ~PAGE_MASK); in mm_iommu_ua_to_hpa_rm()
427 extern void mm_iommu_ua_mark_dirty_rm(struct mm_struct *mm, unsigned long ua) in mm_iommu_ua_mark_dirty_rm() argument
434 mem = mm_iommu_lookup_rm(mm, ua, PAGE_SIZE); in mm_iommu_ua_mark_dirty_rm()
438 entry = (ua - mem->ua) >> PAGE_SHIFT; in mm_iommu_ua_mark_dirty_rm()