Lines Matching defs:pvr_file

76 	struct pvr_file *pvr_file = to_pvr_file(file);
120 err = pvr_gem_object_into_handle(pvr_obj, pvr_file, &args->handle);
167 struct pvr_file *pvr_file = to_pvr_file(file);
188 pvr_obj = pvr_gem_object_from_handle(pvr_file, args->handle);
683 struct pvr_file *pvr_file = file->driver_priv;
690 ret = pvr_context_create(pvr_file, args);
715 struct pvr_file *pvr_file = file->driver_priv;
720 return pvr_context_destroy(pvr_file, args->handle);
741 struct pvr_file *pvr_file = to_pvr_file(file);
749 free_list = pvr_free_list_create(pvr_file, args);
756 err = xa_alloc(&pvr_file->free_list_handles,
795 struct pvr_file *pvr_file = to_pvr_file(file);
801 free_list = xa_erase(&pvr_file->free_list_handles, args->handle);
827 struct pvr_file *pvr_file = to_pvr_file(file);
835 hwrt = pvr_hwrt_dataset_create(pvr_file, args);
842 err = xa_alloc(&pvr_file->hwrt_handles,
881 struct pvr_file *pvr_file = to_pvr_file(file);
887 hwrt = xa_erase(&pvr_file->hwrt_handles, args->handle);
913 struct pvr_file *pvr_file = to_pvr_file(file);
926 vm_ctx = pvr_vm_create_context(pvr_file->pvr_dev, true);
933 err = xa_alloc(&pvr_file->vm_ctx_handles,
972 struct pvr_file *pvr_file = to_pvr_file(file);
978 vm_ctx = xa_erase(&pvr_file->vm_ctx_handles, args->handle);
1015 struct pvr_file *pvr_file = to_pvr_file(file);
1041 vm_ctx = pvr_vm_context_lookup(pvr_file, args->vm_context_handle);
1047 pvr_obj = pvr_gem_object_from_handle(pvr_file, args->handle);
1109 struct pvr_file *pvr_file = to_pvr_file(file);
1117 vm_ctx = pvr_vm_context_lookup(pvr_file, args->vm_context_handle);
1147 struct pvr_file *pvr_file = to_pvr_file(file);
1154 err = pvr_submit_jobs(pvr_dev, pvr_file, args);
1298 * Allocates powervr-specific file private data (&struct pvr_file).
1311 struct pvr_file *pvr_file;
1313 pvr_file = kzalloc(sizeof(*pvr_file), GFP_KERNEL);
1314 if (!pvr_file)
1321 pvr_file->file = file;
1327 pvr_file->pvr_dev = pvr_dev;
1329 xa_init_flags(&pvr_file->ctx_handles, XA_FLAGS_ALLOC1);
1330 xa_init_flags(&pvr_file->free_list_handles, XA_FLAGS_ALLOC1);
1331 xa_init_flags(&pvr_file->hwrt_handles, XA_FLAGS_ALLOC1);
1332 xa_init_flags(&pvr_file->vm_ctx_handles, XA_FLAGS_ALLOC1);
1338 file->driver_priv = pvr_file;
1349 * Frees powervr-specific file private data (&struct pvr_file).
1357 struct pvr_file *pvr_file = to_pvr_file(file);
1360 pvr_destroy_contexts_for_file(pvr_file);
1363 pvr_destroy_free_lists_for_file(pvr_file);
1364 pvr_destroy_hwrt_datasets_for_file(pvr_file);
1365 pvr_destroy_vm_contexts_for_file(pvr_file);
1367 kfree(pvr_file);