Lines Matching refs:kfd_process
68 static struct kfd_process *find_process(const struct task_struct *thread,
271 struct kfd_process *proc = NULL; in kfd_get_cu_occupancy()
522 struct kfd_process *proc; in kfd_procfs_add_queue()
561 static void kfd_procfs_add_sysfs_stats(struct kfd_process *p) in kfd_procfs_add_sysfs_stats()
608 static void kfd_procfs_add_sysfs_counters(struct kfd_process *p) in kfd_procfs_add_sysfs_counters()
653 static void kfd_procfs_add_sysfs_files(struct kfd_process *p) in kfd_procfs_add_sysfs_files()
827 int kfd_create_process_sysfs(struct kfd_process *process) in kfd_create_process_sysfs()
829 struct kfd_process *primary_process; in kfd_create_process_sysfs()
879 static int kfd_process_alloc_id(struct kfd_process *process) in kfd_process_alloc_id()
882 struct kfd_process *primary_process; in kfd_process_alloc_id()
907 static void kfd_process_free_id(struct kfd_process *process) in kfd_process_free_id()
909 struct kfd_process *primary_process; in kfd_process_free_id()
923 struct kfd_process *kfd_create_process(struct task_struct *thread) in kfd_create_process()
925 struct kfd_process *process; in kfd_create_process()
987 static struct kfd_process *find_process_by_mm(const struct mm_struct *mm) in find_process_by_mm()
989 struct kfd_process *process; in find_process_by_mm()
999 static struct kfd_process *find_process(const struct task_struct *thread, in find_process()
1002 struct kfd_process *p; in find_process()
1014 void kfd_unref_process(struct kfd_process *p) in kfd_unref_process()
1020 struct kfd_process *kfd_lookup_process_by_pid(struct pid *pid) in kfd_lookup_process_by_pid()
1023 struct kfd_process *p = NULL; in kfd_lookup_process_by_pid()
1042 struct kfd_process *p = pdd->process; in kfd_process_device_free_bos()
1072 static void kfd_process_kunmap_signal_bo(struct kfd_process *p) in kfd_process_kunmap_signal_bo()
1099 static void kfd_process_free_outstanding_kfd_bos(struct kfd_process *p) in kfd_process_free_outstanding_kfd_bos()
1107 static void kfd_process_destroy_pdds(struct kfd_process *p) in kfd_process_destroy_pdds()
1153 static void kfd_process_remove_sysfs(struct kfd_process *p) in kfd_process_remove_sysfs()
1200 static void kfd_process_wait_gpu_reset_complete(struct kfd_process *p) in kfd_process_wait_gpu_reset_complete()
1215 struct kfd_process *p = container_of(work, struct kfd_process, in kfd_process_wq_release()
1263 struct kfd_process *p = container_of(ref, struct kfd_process, ref); in kfd_process_ref_release()
1272 struct kfd_process *p = kfd_lookup_process_by_mm(mm); in kfd_process_alloc_notifier()
1279 kfd_unref_process(container_of(mn, struct kfd_process, mmu_notifier)); in kfd_process_free_notifier()
1282 static void kfd_process_table_remove(struct kfd_process *p) in kfd_process_table_remove()
1301 void kfd_process_notifier_release_internal(struct kfd_process *p) in kfd_process_notifier_release_internal()
1330 struct kfd_process *target; in kfd_process_notifier_release_internal()
1354 struct kfd_process *p; in kfd_process_notifier_release()
1360 p = container_of(mn, struct kfd_process, mmu_notifier); in kfd_process_notifier_release()
1381 struct kfd_process *p; in kfd_cleanup_processes()
1410 int kfd_process_init_cwsr_apu(struct kfd_process *p, struct file *filep) in kfd_process_init_cwsr_apu()
1520 bool kfd_process_xnack_mode(struct kfd_process *p, bool supported) in kfd_process_xnack_mode()
1589 struct kfd_process *create_process(const struct task_struct *thread, bool primary) in create_process()
1591 struct kfd_process *process; in create_process()
1693 struct kfd_process *p) in kfd_get_process_device_data()
1705 struct kfd_process *p) in kfd_create_process_device_data()
1765 struct kfd_process *p; in kfd_process_device_init_vm()
1834 struct kfd_process *p) in kfd_bind_process_to_device()
1904 struct kfd_process *p; in kfd_lookup_process_device_by_pasid()
1922 struct kfd_process *kfd_lookup_process_by_pasid(u32 pasid, in kfd_lookup_process_by_pasid()
1948 struct kfd_process *kfd_lookup_process_by_mm(const struct mm_struct *mm) in kfd_lookup_process_by_mm()
1950 struct kfd_process *p; in kfd_lookup_process_by_mm()
1964 struct kfd_process *kfd_lookup_process_by_id(const struct mm_struct *mm, u16 id) in kfd_lookup_process_by_id()
1966 struct kfd_process *p, *ret_p = NULL; in kfd_lookup_process_by_id()
1989 int kfd_process_evict_queues(struct kfd_process *p, uint32_t trigger) in kfd_process_evict_queues()
2043 int kfd_process_restore_queues(struct kfd_process *p) in kfd_process_restore_queues()
2066 int kfd_process_gpuidx_from_gpuid(struct kfd_process *p, uint32_t gpu_id) in kfd_process_gpuidx_from_gpuid()
2077 kfd_process_gpuid_from_node(struct kfd_process *p, struct kfd_node *node, in kfd_process_gpuid_from_node()
2091 static bool signal_eviction_fence(struct kfd_process *p) in signal_eviction_fence()
2111 struct kfd_process *p; in evict_process_worker()
2119 p = container_of(dwork, struct kfd_process, eviction_work); in evict_process_worker()
2138 static int restore_process_helper(struct kfd_process *p) in restore_process_helper()
2164 struct kfd_process *p; in restore_process_worker()
2172 p = container_of(dwork, struct kfd_process, restore_work); in restore_process_worker()
2199 struct kfd_process *p; in kfd_suspend_all_processes()
2214 struct kfd_process *p; in kfd_resume_all_processes()
2229 int kfd_reserved_mem_mmap(struct kfd_node *dev, struct kfd_process *process, in kfd_reserved_mem_mmap()
2306 struct kfd_process *p; in kfd_process_close_interrupt_drain()
2320 struct kfd_process *p;
2328 struct kfd_process *p; in send_exception_work_handler()
2368 int kfd_send_exception_to_runtime(struct kfd_process *p, in kfd_send_exception_to_runtime()
2387 struct kfd_process_device *kfd_process_device_data_by_id(struct kfd_process *p, uint32_t gpu_id) in kfd_process_device_data_by_id()
2402 int kfd_process_get_user_gpu_id(struct kfd_process *p, uint32_t actual_gpu_id) in kfd_process_get_user_gpu_id()
2422 struct kfd_process *p; in kfd_debugfs_mqds_by_process()