Lines Matching refs:thread
60 static struct kfd_process *find_process(const struct task_struct *thread);
61 static struct kfd_process *create_process(const struct task_struct *thread);
78 struct kfd_process *kfd_create_process(const struct task_struct *thread) in kfd_create_process() argument
84 if (thread->mm == NULL) in kfd_create_process()
88 if (thread->group_leader->mm != thread->mm) in kfd_create_process()
92 down_write(&thread->mm->mmap_sem); in kfd_create_process()
102 process = find_process(thread); in kfd_create_process()
107 process = create_process(thread); in kfd_create_process()
111 up_write(&thread->mm->mmap_sem); in kfd_create_process()
116 struct kfd_process *kfd_get_process(const struct task_struct *thread) in kfd_get_process() argument
120 if (thread->mm == NULL) in kfd_get_process()
124 if (thread->group_leader->mm != thread->mm) in kfd_get_process()
127 process = find_process(thread); in kfd_get_process()
144 static struct kfd_process *find_process(const struct task_struct *thread) in find_process() argument
150 p = find_process_by_mm(thread->mm); in find_process()
269 static struct kfd_process *create_process(const struct task_struct *thread) in create_process() argument
290 process->mm = thread->mm; in create_process()
301 process->lead_thread = thread->group_leader; in create_process()