Lines Matching refs:pvr_file
77 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_create_bo() local
121 err = pvr_gem_object_into_handle(pvr_obj, pvr_file, &args->handle); in pvr_ioctl_create_bo()
168 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_get_bo_mmap_offset() local
189 pvr_obj = pvr_gem_object_from_handle(pvr_file, args->handle); in pvr_ioctl_get_bo_mmap_offset()
684 struct pvr_file *pvr_file = file->driver_priv; in pvr_ioctl_create_context() local
691 ret = pvr_context_create(pvr_file, args); in pvr_ioctl_create_context()
716 struct pvr_file *pvr_file = file->driver_priv; in pvr_ioctl_destroy_context() local
721 return pvr_context_destroy(pvr_file, args->handle); in pvr_ioctl_destroy_context()
742 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_create_free_list() local
750 free_list = pvr_free_list_create(pvr_file, args); in pvr_ioctl_create_free_list()
757 err = xa_alloc(&pvr_file->free_list_handles, in pvr_ioctl_create_free_list()
796 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_destroy_free_list() local
802 free_list = xa_erase(&pvr_file->free_list_handles, args->handle); in pvr_ioctl_destroy_free_list()
828 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_create_hwrt_dataset() local
836 hwrt = pvr_hwrt_dataset_create(pvr_file, args); in pvr_ioctl_create_hwrt_dataset()
843 err = xa_alloc(&pvr_file->hwrt_handles, in pvr_ioctl_create_hwrt_dataset()
882 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_destroy_hwrt_dataset() local
888 hwrt = xa_erase(&pvr_file->hwrt_handles, args->handle); in pvr_ioctl_destroy_hwrt_dataset()
914 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_create_vm_context() local
927 vm_ctx = pvr_vm_create_context(pvr_file->pvr_dev, true); in pvr_ioctl_create_vm_context()
934 err = xa_alloc(&pvr_file->vm_ctx_handles, in pvr_ioctl_create_vm_context()
973 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_destroy_vm_context() local
979 vm_ctx = xa_erase(&pvr_file->vm_ctx_handles, args->handle); in pvr_ioctl_destroy_vm_context()
1016 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_vm_map() local
1042 vm_ctx = pvr_vm_context_lookup(pvr_file, args->vm_context_handle); in pvr_ioctl_vm_map()
1048 pvr_obj = pvr_gem_object_from_handle(pvr_file, args->handle); in pvr_ioctl_vm_map()
1110 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_vm_unmap() local
1118 vm_ctx = pvr_vm_context_lookup(pvr_file, args->vm_context_handle); in pvr_ioctl_vm_unmap()
1148 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_ioctl_submit_jobs() local
1155 err = pvr_submit_jobs(pvr_dev, pvr_file, args); in pvr_ioctl_submit_jobs()
1312 struct pvr_file *pvr_file; in pvr_drm_driver_open() local
1314 pvr_file = kzalloc(sizeof(*pvr_file), GFP_KERNEL); in pvr_drm_driver_open()
1315 if (!pvr_file) in pvr_drm_driver_open()
1322 pvr_file->file = file; in pvr_drm_driver_open()
1328 pvr_file->pvr_dev = pvr_dev; in pvr_drm_driver_open()
1330 INIT_LIST_HEAD(&pvr_file->contexts); in pvr_drm_driver_open()
1332 xa_init_flags(&pvr_file->ctx_handles, XA_FLAGS_ALLOC1); in pvr_drm_driver_open()
1333 xa_init_flags(&pvr_file->free_list_handles, XA_FLAGS_ALLOC1); in pvr_drm_driver_open()
1334 xa_init_flags(&pvr_file->hwrt_handles, XA_FLAGS_ALLOC1); in pvr_drm_driver_open()
1335 xa_init_flags(&pvr_file->vm_ctx_handles, XA_FLAGS_ALLOC1); in pvr_drm_driver_open()
1341 file->driver_priv = pvr_file; in pvr_drm_driver_open()
1360 struct pvr_file *pvr_file = to_pvr_file(file); in pvr_drm_driver_postclose() local
1363 pvr_destroy_contexts_for_file(pvr_file); in pvr_drm_driver_postclose()
1366 pvr_destroy_free_lists_for_file(pvr_file); in pvr_drm_driver_postclose()
1367 pvr_destroy_hwrt_datasets_for_file(pvr_file); in pvr_drm_driver_postclose()
1368 pvr_destroy_vm_contexts_for_file(pvr_file); in pvr_drm_driver_postclose()
1370 kfree(pvr_file); in pvr_drm_driver_postclose()