Lines Matching refs:pvr_file

33 remap_priority(struct pvr_file *pvr_file, s32 uapi_priority,  in remap_priority()  argument
44 if (!capable(CAP_SYS_NICE) && !drm_is_current_master(from_pvr_file(pvr_file))) in remap_priority()
292 int pvr_context_create(struct pvr_file *pvr_file, struct drm_pvr_ioctl_create_context_args *args) in pvr_context_create() argument
294 struct pvr_device *pvr_dev = pvr_file->pvr_dev; in pvr_context_create()
317 err = remap_priority(pvr_file, args->priority, &ctx->priority); in pvr_context_create()
321 ctx->vm_ctx = pvr_vm_context_lookup(pvr_file, args->vm_context_handle); in pvr_context_create()
350 err = xa_alloc(&pvr_file->ctx_handles, &args->handle, ctx, xa_limit_32b, GFP_KERNEL); in pvr_context_create()
362 list_add_tail(&ctx->file_link, &pvr_file->contexts); in pvr_context_create()
428 pvr_context_destroy(struct pvr_file *pvr_file, u32 handle) in pvr_context_destroy() argument
430 struct pvr_context *ctx = xa_erase(&pvr_file->ctx_handles, handle); in pvr_context_destroy()
451 void pvr_destroy_contexts_for_file(struct pvr_file *pvr_file) in pvr_destroy_contexts_for_file() argument
453 struct pvr_device *pvr_dev = pvr_file->pvr_dev; in pvr_destroy_contexts_for_file()
457 xa_for_each(&pvr_file->ctx_handles, handle, ctx) in pvr_destroy_contexts_for_file()
458 pvr_context_destroy(pvr_file, handle); in pvr_destroy_contexts_for_file()
461 ctx = list_first_entry(&pvr_file->contexts, struct pvr_context, file_link); in pvr_destroy_contexts_for_file()
463 while (!list_entry_is_head(ctx, &pvr_file->contexts, file_link)) { in pvr_destroy_contexts_for_file()
474 ctx = list_first_entry(&pvr_file->contexts, struct pvr_context, file_link); in pvr_destroy_contexts_for_file()