Lines Matching defs:filep
128 static int kfd_open(struct inode *inode, struct file *filep)
150 if (kfd_process_init_cwsr_apu(process, filep)) {
155 /* filep now owns the reference returned by kfd_create_process */
156 filep->private_data = process;
164 static int kfd_release(struct inode *inode, struct file *filep)
166 struct kfd_process *process = filep->private_data;
174 static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p,
298 static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p,
385 err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, &queue_id, wptr_bo,
553 static int kfd_ioctl_get_queue_wave_state(struct file *filep,
571 static int kfd_ioctl_set_memory_policy(struct file *filep,
625 static int kfd_ioctl_set_trap_handler(struct file *filep,
655 static int kfd_ioctl_dbg_register(struct file *filep,
661 static int kfd_ioctl_dbg_unregister(struct file *filep,
667 static int kfd_ioctl_dbg_address_watch(struct file *filep,
674 static int kfd_ioctl_dbg_wave_control(struct file *filep,
680 static int kfd_ioctl_get_clock_counters(struct file *filep,
898 static int kfd_ioctl_set_scratch_backing_va(struct file *filep,
937 static int kfd_ioctl_get_tile_config(struct file *filep,
981 static int kfd_ioctl_acquire_vm(struct file *filep, struct kfd_process *p,
1042 static int kfd_ioctl_get_available_memory(struct file *filep,
1056 static int kfd_ioctl_alloc_memory_of_gpu(struct file *filep,
1194 static int kfd_ioctl_free_memory_of_gpu(struct file *filep,
1246 static int kfd_ioctl_map_memory_to_gpu(struct file *filep,
1364 static int kfd_ioctl_unmap_memory_from_gpu(struct file *filep,
1466 static int kfd_ioctl_alloc_queue_gws(struct file *filep,
1511 static int kfd_ioctl_get_dmabuf_info(struct file *filep,
1564 static int kfd_ioctl_import_dmabuf(struct file *filep,
1621 static int kfd_ioctl_export_dmabuf(struct file *filep,
1674 static int kfd_ioctl_smi_events(struct file *filep,
1692 static int kfd_ioctl_set_xnack_mode(struct file *filep,
1725 static int kfd_ioctl_svm(struct file *filep, struct kfd_process *p, void *data)
1744 static int kfd_ioctl_set_xnack_mode(struct file *filep,
1749 static int kfd_ioctl_svm(struct file *filep, struct kfd_process *p, void *data)
2053 static int criu_checkpoint(struct file *filep,
2494 static int criu_restore_objects(struct file *filep,
2529 ret = kfd_criu_restore_event(filep, p, (uint8_t __user *)args->priv_data,
2550 static int criu_restore(struct file *filep,
2587 ret = criu_restore_objects(filep, p, args, &priv_offset, args->priv_data_size);
2606 static int criu_unpause(struct file *filep,
2630 static int criu_resume(struct file *filep,
2675 static int criu_process_info(struct file *filep,
2716 static int kfd_ioctl_criu(struct file *filep, struct kfd_process *p, void *data)
2724 ret = criu_process_info(filep, p, args);
2727 ret = criu_checkpoint(filep, p, args);
2730 ret = criu_unpause(filep, p, args);
2733 ret = criu_restore(filep, p, args);
2736 ret = criu_resume(filep, p, args);
2877 static int kfd_ioctl_runtime_enable(struct file *filep, struct kfd_process *p, void *data)
2895 static int kfd_ioctl_set_debug_trap(struct file *filep, struct kfd_process *p, void *data)
3233 static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
3264 /* Get the process struct from the filep. Only the process
3268 process = filep->private_data;
3328 retcode = func(filep, process, kdata);