Lines Matching refs:thread
59 static struct kfd_process *find_process(const struct task_struct *thread);
60 static struct kfd_process *create_process(const struct task_struct *thread);
77 struct kfd_process *kfd_create_process(const struct task_struct *thread) in kfd_create_process() argument
83 if (thread->mm == NULL) in kfd_create_process()
87 if (thread->group_leader->mm != thread->mm) in kfd_create_process()
91 down_write(&thread->mm->mmap_sem); in kfd_create_process()
101 process = find_process(thread); in kfd_create_process()
106 process = create_process(thread); in kfd_create_process()
110 up_write(&thread->mm->mmap_sem); in kfd_create_process()
115 struct kfd_process *kfd_get_process(const struct task_struct *thread) in kfd_get_process() argument
119 if (thread->mm == NULL) in kfd_get_process()
123 if (thread->group_leader->mm != thread->mm) in kfd_get_process()
126 process = find_process(thread); in kfd_get_process()
143 static struct kfd_process *find_process(const struct task_struct *thread) in find_process() argument
149 p = find_process_by_mm(thread->mm); in find_process()
254 static struct kfd_process *create_process(const struct task_struct *thread) in create_process() argument
275 process->mm = thread->mm; in create_process()
286 process->lead_thread = thread->group_leader; in create_process()