Lines Matching defs:pvr_file
29 remap_priority(struct pvr_file *pvr_file, s32 uapi_priority,
40 if (!capable(CAP_SYS_NICE) && !drm_is_current_master(from_pvr_file(pvr_file)))
281 * @pvr_file: File to attach the created context to.
288 int pvr_context_create(struct pvr_file *pvr_file, struct drm_pvr_ioctl_create_context_args *args)
290 struct pvr_device *pvr_dev = pvr_file->pvr_dev;
313 err = remap_priority(pvr_file, args->priority, &ctx->priority);
317 ctx->vm_ctx = pvr_vm_context_lookup(pvr_file, args->vm_context_handle);
346 err = xa_alloc(&pvr_file->ctx_handles, &args->handle, ctx, xa_limit_32b, GFP_KERNEL);
404 * @pvr_file: Pointer to pvr_file structure.
415 pvr_context_destroy(struct pvr_file *pvr_file, u32 handle)
417 struct pvr_context *ctx = xa_erase(&pvr_file->ctx_handles, handle);
433 * @pvr_file: Pointer to pvr_file structure.
435 * Removes all contexts associated with @pvr_file from the device context list and drops initial
438 void pvr_destroy_contexts_for_file(struct pvr_file *pvr_file)
443 xa_for_each(&pvr_file->ctx_handles, handle, ctx)
444 pvr_context_destroy(pvr_file, handle);