Home
last modified time | relevance | path

Searched refs:usertask (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c768 struct task_struct *usertask; member
791 struct mm_struct *mm = gtt->usertask->mm; in amdgpu_ttm_tt_get_user_pages()
1197 if (gtt->usertask) in amdgpu_ttm_backend_destroy()
1198 put_task_struct(gtt->usertask); in amdgpu_ttm_backend_destroy()
1339 if (gtt->usertask) in amdgpu_ttm_tt_set_userptr()
1340 put_task_struct(gtt->usertask); in amdgpu_ttm_tt_set_userptr()
1341 gtt->usertask = current->group_leader; in amdgpu_ttm_tt_set_userptr()
1342 get_task_struct(gtt->usertask); in amdgpu_ttm_tt_set_userptr()
1357 if (gtt->usertask == NULL) in amdgpu_ttm_tt_get_usermm()
1360 return gtt->usertask->mm; in amdgpu_ttm_tt_get_usermm()
Damdgpu_amdkfd_gpuvm.c1881 struct task_struct *usertask; in amdgpu_amdkfd_restore_userptr_worker() local
1890 usertask = get_pid_task(process_info->pid, PIDTYPE_PID); in amdgpu_amdkfd_restore_userptr_worker()
1891 if (!usertask) in amdgpu_amdkfd_restore_userptr_worker()
1893 mm = get_task_mm(usertask); in amdgpu_amdkfd_restore_userptr_worker()
1895 put_task_struct(usertask); in amdgpu_amdkfd_restore_userptr_worker()
1933 put_task_struct(usertask); in amdgpu_amdkfd_restore_userptr_worker()