Lines Matching refs:thread
63 static struct kfd_process *find_process(const struct task_struct *thread);
65 static struct kfd_process *create_process(const struct task_struct *thread);
270 struct task_struct *thread = current; in kfd_create_process() local
273 if (!thread->mm) in kfd_create_process()
277 if (thread->group_leader->mm != thread->mm) in kfd_create_process()
288 process = find_process(thread); in kfd_create_process()
292 process = create_process(thread); in kfd_create_process()
332 struct kfd_process *kfd_get_process(const struct task_struct *thread) in kfd_get_process() argument
336 if (!thread->mm) in kfd_get_process()
340 if (thread->group_leader->mm != thread->mm) in kfd_get_process()
343 process = find_process(thread); in kfd_get_process()
362 static struct kfd_process *find_process(const struct task_struct *thread) in find_process() argument
368 p = find_process_by_mm(thread->mm); in find_process()
622 static struct kfd_process *create_process(const struct task_struct *thread) in create_process() argument
633 process->mm = thread->mm; in create_process()
634 process->lead_thread = thread->group_leader; in create_process()