Lines Matching refs:filep

129 static int kfd_open(struct inode *inode, struct file *filep)
151 if (kfd_process_init_cwsr_apu(process, filep)) {
156 /* filep now owns the reference returned by kfd_create_process */
157 filep->private_data = process;
165 static int kfd_release(struct inode *inode, struct file *filep)
167 struct kfd_process *process = filep->private_data;
175 static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p,
299 static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p,
386 err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, &queue_id, wptr_bo,
554 static int kfd_ioctl_get_queue_wave_state(struct file *filep,
572 static int kfd_ioctl_set_memory_policy(struct file *filep,
626 static int kfd_ioctl_set_trap_handler(struct file *filep,
656 static int kfd_ioctl_dbg_register(struct file *filep,
662 static int kfd_ioctl_dbg_unregister(struct file *filep,
668 static int kfd_ioctl_dbg_address_watch(struct file *filep,
675 static int kfd_ioctl_dbg_wave_control(struct file *filep,
681 static int kfd_ioctl_get_clock_counters(struct file *filep,
899 static int kfd_ioctl_set_scratch_backing_va(struct file *filep,
938 static int kfd_ioctl_get_tile_config(struct file *filep,
982 static int kfd_ioctl_acquire_vm(struct file *filep, struct kfd_process *p,
1043 static int kfd_ioctl_get_available_memory(struct file *filep,
1057 static int kfd_ioctl_alloc_memory_of_gpu(struct file *filep,
1195 static int kfd_ioctl_free_memory_of_gpu(struct file *filep,
1247 static int kfd_ioctl_map_memory_to_gpu(struct file *filep,
1365 static int kfd_ioctl_unmap_memory_from_gpu(struct file *filep,
1467 static int kfd_ioctl_alloc_queue_gws(struct file *filep,
1512 static int kfd_ioctl_get_dmabuf_info(struct file *filep,
1565 static int kfd_ioctl_import_dmabuf(struct file *filep,
1615 static int kfd_ioctl_export_dmabuf(struct file *filep,
1668 static int kfd_ioctl_smi_events(struct file *filep,
1686 static int kfd_ioctl_set_xnack_mode(struct file *filep,
1719 static int kfd_ioctl_svm(struct file *filep, struct kfd_process *p, void *data)
1738 static int kfd_ioctl_set_xnack_mode(struct file *filep,
1743 static int kfd_ioctl_svm(struct file *filep, struct kfd_process *p, void *data)
2047 static int criu_checkpoint(struct file *filep,
2488 static int criu_restore_objects(struct file *filep,
2523 ret = kfd_criu_restore_event(filep, p, (uint8_t __user *)args->priv_data,
2544 static int criu_restore(struct file *filep,
2581 ret = criu_restore_objects(filep, p, args, &priv_offset, args->priv_data_size);
2600 static int criu_unpause(struct file *filep,
2624 static int criu_resume(struct file *filep,
2669 static int criu_process_info(struct file *filep,
2710 static int kfd_ioctl_criu(struct file *filep, struct kfd_process *p, void *data)
2718 ret = criu_process_info(filep, p, args);
2721 ret = criu_checkpoint(filep, p, args);
2724 ret = criu_unpause(filep, p, args);
2727 ret = criu_restore(filep, p, args);
2730 ret = criu_resume(filep, p, args);
2871 static int kfd_ioctl_runtime_enable(struct file *filep, struct kfd_process *p, void *data)
2889 static int kfd_ioctl_set_debug_trap(struct file *filep, struct kfd_process *p, void *data)
3228 static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
3259 /* Get the process struct from the filep. Only the process
3263 process = filep->private_data;
3323 retcode = func(filep, process, kdata);