Home
last modified time | relevance | path

Searched refs:ticket (Results 1 – 19 of 19) sorted by relevance

/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c57 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, in ttm_eu_backoff_reservation() argument
78 if (ticket) in ttm_eu_backoff_reservation()
79 ww_acquire_fini(ticket); in ttm_eu_backoff_reservation()
95 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, in ttm_eu_reserve_buffers() argument
109 if (ticket) in ttm_eu_reserve_buffers()
110 ww_acquire_init(ticket, &reservation_ww_class); in ttm_eu_reserve_buffers()
115 ret = __ttm_bo_reserve(bo, intr, (ticket == NULL), ticket); in ttm_eu_reserve_buffers()
146 ticket); in ttm_eu_reserve_buffers()
148 ww_mutex_lock_slow(&bo->resv->lock, ticket); in ttm_eu_reserve_buffers()
158 if (ticket) { in ttm_eu_reserve_buffers()
[all …]
/drivers/gpu/drm/virtio/
Dvirtgpu_ioctl.c55 static int virtio_gpu_object_list_validate(struct ww_acquire_ctx *ticket, in virtio_gpu_object_list_validate() argument
63 ret = ttm_eu_reserve_buffers(ticket, head, true, NULL); in virtio_gpu_object_list_validate()
72 ttm_eu_backoff_reservation(ticket, head); in virtio_gpu_object_list_validate()
113 struct ww_acquire_ctx ticket; in virtio_gpu_execbuffer_ioctl() local
157 ret = virtio_gpu_object_list_validate(&ticket, &validate_list); in virtio_gpu_execbuffer_ioctl()
170 ttm_eu_fence_buffer_objects(&ticket, &validate_list, &fence->f); in virtio_gpu_execbuffer_ioctl()
179 ttm_eu_backoff_reservation(&ticket, &validate_list); in virtio_gpu_execbuffer_ioctl()
221 struct ww_acquire_ctx ticket; in virtio_gpu_resource_create_ioctl() local
266 ret = virtio_gpu_object_list_validate(&ticket, &validate_list); in virtio_gpu_resource_create_ioctl()
287 ttm_eu_backoff_reservation(&ticket, &validate_list); in virtio_gpu_resource_create_ioctl()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gem.c150 struct ww_acquire_ctx ticket; in amdgpu_gem_object_close() local
163 r = ttm_eu_reserve_buffers(&ticket, &list, false, &duplicates); in amdgpu_gem_object_close()
175 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_gem_object_close()
485 struct ww_acquire_ctx ticket; in amdgpu_gem_va_update_vm() local
500 r = ttm_eu_reserve_buffers(&ticket, &list, true, &duplicates); in amdgpu_gem_va_update_vm()
532 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_gem_va_update_vm()
551 struct ww_acquire_ctx ticket; in amdgpu_gem_va_ioctl() local
599 r = ttm_eu_reserve_buffers(&ticket, &list, true, &duplicates); in amdgpu_gem_va_ioctl()
607 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_gem_va_ioctl()
630 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_gem_va_ioctl()
Damdgpu_uvd.c918 struct ww_acquire_ctx ticket; in amdgpu_uvd_send_msg() local
933 r = ttm_eu_reserve_buffers(&ticket, &head, true, NULL); in amdgpu_uvd_send_msg()
978 ttm_eu_fence_buffer_objects(&ticket, &head, f); in amdgpu_uvd_send_msg()
991 ttm_eu_backoff_reservation(&ticket, &head); in amdgpu_uvd_send_msg()
Damdgpu_cs.c532 r = ttm_eu_reserve_buffers(&p->ticket, &p->validated, true, in amdgpu_cs_parser_bos()
576 ttm_eu_backoff_reservation(&p->ticket, &p->validated); in amdgpu_cs_parser_bos()
672 ttm_eu_backoff_reservation(&p->ticket, &p->validated); in amdgpu_cs_parser_bos()
729 ttm_eu_fence_buffer_objects(&parser->ticket, in amdgpu_cs_parser_fini()
733 ttm_eu_backoff_reservation(&parser->ticket, in amdgpu_cs_parser_fini()
Damdgpu.h1225 struct ww_acquire_ctx ticket; member
/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c45 ww_acquire_init(&submit->ticket, &reservation_ww_class); in submit_create()
124 &submit->ticket); in submit_lock_objects()
134 ww_acquire_done(&submit->ticket); in submit_lock_objects()
152 &submit->ticket); in submit_lock_objects()
291 ww_acquire_fini(&submit->ticket); in submit_cleanup()
Detnaviv_gem.h106 struct ww_acquire_ctx ticket; member
/drivers/gpu/drm/msm/
Dmsm_gem_submit.c59 ww_acquire_init(&submit->ticket, &reservation_ww_class); in submit_create()
191 &submit->ticket); in submit_lock_objects()
198 ww_acquire_done(&submit->ticket); in submit_lock_objects()
213 &submit->ticket); in submit_lock_objects()
379 ww_acquire_fini(&submit->ticket); in submit_cleanup()
Dmsm_gem.h106 struct ww_acquire_ctx ticket; member
/drivers/gpu/drm/qxl/
Dqxl_release.c264 ret = ttm_eu_reserve_buffers(&release->ticket, &release->bos, in qxl_release_reserve_list()
274 ttm_eu_backoff_reservation(&release->ticket, &release->bos); in qxl_release_reserve_list()
288 ttm_eu_backoff_reservation(&release->ticket, &release->bos); in qxl_release_backoff_reserve_list()
474 ww_acquire_fini(&release->ticket); in qxl_release_fence_buffer_objects()
Dqxl_drv.h199 struct ww_acquire_ctx ticket; member
/drivers/gpu/drm/nouveau/
Dnouveau_gem.c328 struct ww_acquire_ctx ticket; member
352 ttm_bo_unreserve_ticket(&nvbo->bo, &op->ticket); in validate_fini_no_ticket()
362 ww_acquire_fini(&op->ticket); in validate_fini()
378 ww_acquire_init(&op->ticket, &reservation_ww_class); in validate_init()
411 ret = ttm_bo_reserve(&nvbo->bo, true, false, &op->ticket); in validate_init()
419 &op->ticket); in validate_init()
453 ww_acquire_done(&op->ticket); in validate_init()
/drivers/gpu/drm/radeon/
Dradeon_gem.c544 struct ww_acquire_ctx ticket; in radeon_gem_va_update_vm() local
559 r = ttm_eu_reserve_buffers(&ticket, &list, true, NULL); in radeon_gem_va_update_vm()
583 ttm_eu_backoff_reservation(&ticket, &list); in radeon_gem_va_update_vm()
Dradeon_object.c527 struct ww_acquire_ctx *ticket, in radeon_bo_list_validate() argument
537 r = ttm_eu_reserve_buffers(ticket, head, true, &duplicates); in radeon_bo_list_validate()
581 ttm_eu_backoff_reservation(ticket, head); in radeon_bo_list_validate()
Dradeon_object.h144 struct ww_acquire_ctx *ticket,
Dradeon_cs.c181 r = radeon_bo_list_validate(p->rdev, &p->ticket, &p->validated, p->ring); in radeon_cs_parser_relocs()
412 ttm_eu_fence_buffer_objects(&parser->ticket, in radeon_cs_parser_fini()
416 ttm_eu_backoff_reservation(&parser->ticket, in radeon_cs_parser_fini()
Dradeon.h1106 struct ww_acquire_ctx ticket; member
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c4015 struct ww_acquire_ctx ticket; in vmw_execbuf_process() local
4107 ret = ttm_eu_reserve_buffers(&ticket, &sw_context->validate_nodes, in vmw_execbuf_process()
4159 ttm_eu_fence_buffer_objects(&ticket, &sw_context->validate_nodes, in vmw_execbuf_process()
4193 ttm_eu_backoff_reservation(&ticket, &sw_context->validate_nodes); in vmw_execbuf_process()
4276 struct ww_acquire_ctx ticket; in __vmw_execbuf_release_pinned_bo() local
4291 ret = ttm_eu_reserve_buffers(&ticket, &validate_list, in __vmw_execbuf_release_pinned_bo()
4318 ttm_eu_fence_buffer_objects(&ticket, &validate_list, (void *) fence); in __vmw_execbuf_release_pinned_bo()
4329 ttm_eu_backoff_reservation(&ticket, &validate_list); in __vmw_execbuf_release_pinned_bo()