Lines Matching refs:ua
27 u64 ua; /* userspace address */ member
75 long mm_iommu_get(unsigned long ua, unsigned long entries, in mm_iommu_get() argument
89 if ((mem->ua == ua) && (mem->entries == entries)) { in mm_iommu_get()
96 if ((mem->ua < (ua + (entries << PAGE_SHIFT))) && in mm_iommu_get()
97 (ua < (mem->ua + in mm_iommu_get()
125 if (1 != get_user_pages_fast(ua + (i << PAGE_SHIFT), in mm_iommu_get()
141 mem->ua = ua; in mm_iommu_get()
234 struct mm_iommu_table_group_mem_t *mm_iommu_lookup(unsigned long ua, in mm_iommu_lookup() argument
242 if ((mem->ua <= ua) && in mm_iommu_lookup()
243 (ua + size <= mem->ua + in mm_iommu_lookup()
254 struct mm_iommu_table_group_mem_t *mm_iommu_find(unsigned long ua, in mm_iommu_find() argument
262 if ((mem->ua == ua) && (mem->entries == entries)) { in mm_iommu_find()
273 unsigned long ua, unsigned long *hpa) in mm_iommu_ua_to_hpa() argument
275 const long entry = (ua - mem->ua) >> PAGE_SHIFT; in mm_iommu_ua_to_hpa()
281 *hpa = *va | (ua & ~PAGE_MASK); in mm_iommu_ua_to_hpa()