Lines Matching refs:task_ref

66 int get_vas_user_win_ref(struct vas_user_win_ref *task_ref)  in get_vas_user_win_ref()  argument
76 task_ref->pid = get_task_pid(current, PIDTYPE_PID); in get_vas_user_win_ref()
80 task_ref->mm = get_task_mm(current); in get_vas_user_win_ref()
81 if (!task_ref->mm) { in get_vas_user_win_ref()
82 put_pid(task_ref->pid); in get_vas_user_win_ref()
88 mmgrab(task_ref->mm); in get_vas_user_win_ref()
89 mmput(task_ref->mm); in get_vas_user_win_ref()
97 task_ref->tgid = find_get_pid(task_tgid_vnr(current)); in get_vas_user_win_ref()
106 static bool ref_get_pid_and_task(struct vas_user_win_ref *task_ref, in ref_get_pid_and_task() argument
112 pid = task_ref->pid; in ref_get_pid_and_task()
115 pid = task_ref->tgid; in ref_get_pid_and_task()
149 struct vas_user_win_ref *task_ref) in vas_update_csb() argument
162 if (WARN_ON_ONCE(!task_ref->mm)) in vas_update_csb()
198 if (!ref_get_pid_and_task(task_ref, &tsk, &pid)) in vas_update_csb()
201 kthread_use_mm(task_ref->mm); in vas_update_csb()
213 kthread_unuse_mm(task_ref->mm); in vas_update_csb()
320 mutex_init(&txwin->task_ref.mmap_mutex); in coproc_ioc_tx_win_open()
423 if (txwin->task_ref.vma != vmf->vma) { in vas_mmap_fault()
428 mutex_lock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
440 mutex_unlock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
444 mutex_unlock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
510 mutex_lock(&txwin->task_ref.mmap_mutex); in coproc_mmap()
538 txwin->task_ref.vma = vma; in coproc_mmap()
542 mutex_unlock(&txwin->task_ref.mmap_mutex); in coproc_mmap()