/drivers/gpu/drm/ttm/ |
D | ttm_execbuf_util.c | 57 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/ |
D | virtgpu_ioctl.c | 55 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/ |
D | amdgpu_gem.c | 150 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()
|
D | amdgpu_uvd.c | 918 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()
|
D | amdgpu_cs.c | 532 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()
|
D | amdgpu.h | 1225 struct ww_acquire_ctx ticket; member
|
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gem_submit.c | 45 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()
|
D | etnaviv_gem.h | 106 struct ww_acquire_ctx ticket; member
|
/drivers/gpu/drm/msm/ |
D | msm_gem_submit.c | 59 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()
|
D | msm_gem.h | 106 struct ww_acquire_ctx ticket; member
|
/drivers/gpu/drm/qxl/ |
D | qxl_release.c | 264 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()
|
D | qxl_drv.h | 199 struct ww_acquire_ctx ticket; member
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_gem.c | 328 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/ |
D | radeon_gem.c | 544 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()
|
D | radeon_object.c | 527 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()
|
D | radeon_object.h | 144 struct ww_acquire_ctx *ticket,
|
D | radeon_cs.c | 181 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()
|
D | radeon.h | 1106 struct ww_acquire_ctx ticket; member
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_execbuf.c | 4015 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()
|