Lines Matching refs:mm
183 struct mm_struct *mm = get_task_mm(task); in cxllib_get_PE_attributes() local
184 if (mm == NULL) in cxllib_get_PE_attributes()
190 attr->pid = mm->context.id; in cxllib_get_PE_attributes()
191 mmput(mm); in cxllib_get_PE_attributes()
201 static int get_vma_info(struct mm_struct *mm, u64 addr, in get_vma_info() argument
208 mmap_read_lock(mm); in get_vma_info()
210 vma = find_vma(mm, addr); in get_vma_info()
219 mmap_read_unlock(mm); in get_vma_info()
223 int cxllib_handle_fault(struct mm_struct *mm, u64 addr, u64 size, u64 flags) in cxllib_handle_fault() argument
229 if (mm == NULL) in cxllib_handle_fault()
238 rc = get_vma_info(mm, addr, &vma_start, &vma_end, &page_size); in cxllib_handle_fault()
258 rc = get_vma_info(mm, dar, &vma_start, &vma_end, in cxllib_handle_fault()
264 rc = cxl_handle_mm_fault(mm, flags, dar); in cxllib_handle_fault()