Lines Matching refs:primary_process
829 struct kfd_process *primary_process; in kfd_create_process_sysfs() local
848 primary_process = kfd_lookup_process_by_mm(process->lead_thread->mm); in kfd_create_process_sysfs()
849 if (!primary_process) in kfd_create_process_sysfs()
853 primary_process->kobj, "context_%u", in kfd_create_process_sysfs()
855 kfd_unref_process(primary_process); in kfd_create_process_sysfs()
882 struct kfd_process *primary_process; in kfd_process_alloc_id() local
888 primary_process = kfd_lookup_process_by_mm(process->lead_thread->mm); in kfd_process_alloc_id()
889 if (!primary_process) in kfd_process_alloc_id()
893 ret = ida_alloc_range(&primary_process->id_table, KFD_CONTEXT_ID_MIN, in kfd_process_alloc_id()
902 kfd_unref_process(primary_process); in kfd_process_alloc_id()
909 struct kfd_process *primary_process; in kfd_process_free_id() local
914 primary_process = kfd_lookup_process_by_mm(process->lead_thread->mm); in kfd_process_free_id()
915 if (!primary_process) in kfd_process_free_id()
918 ida_free(&primary_process->id_table, process->context_id); in kfd_process_free_id()
920 kfd_unref_process(primary_process); in kfd_process_free_id()