/Linux-v5.10/drivers/gpu/drm/ttm/ |
D | ttm_execbuf_util.c | 46 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, in ttm_eu_backoff_reservation() argument 63 if (ticket) in ttm_eu_backoff_reservation() 64 ww_acquire_fini(ticket); in ttm_eu_backoff_reservation() 80 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, in ttm_eu_reserve_buffers() argument 90 if (ticket) in ttm_eu_reserve_buffers() 91 ww_acquire_init(ticket, &reservation_ww_class); in ttm_eu_reserve_buffers() 96 ret = ttm_bo_reserve(bo, intr, (ticket == NULL), ticket); in ttm_eu_reserve_buffers() 122 ret = ttm_bo_reserve_slowpath(bo, intr, ticket); in ttm_eu_reserve_buffers() 130 if (ticket) { in ttm_eu_reserve_buffers() 131 ww_acquire_done(ticket); in ttm_eu_reserve_buffers() [all …]
|
D | ttm_bo.c | 701 struct ww_acquire_ctx *ticket) in ttm_mem_evict_wait_busy() argument 705 if (!busy_bo || !ticket) in ttm_mem_evict_wait_busy() 710 ticket); in ttm_mem_evict_wait_busy() 712 r = dma_resv_lock(busy_bo->base.resv, ticket); in ttm_mem_evict_wait_busy() 729 struct ww_acquire_ctx *ticket) in ttm_mem_evict_first() argument 743 if (busy && !busy_bo && ticket != in ttm_mem_evict_first() 774 ret = ttm_mem_evict_wait_busy(busy_bo, ctx, ticket); in ttm_mem_evict_first() 844 struct ww_acquire_ctx *ticket; in ttm_bo_mem_force_space() local 847 ticket = dma_resv_locking_ctx(bo->base.resv); in ttm_bo_mem_force_space() 855 ticket); in ttm_bo_mem_force_space()
|
/Linux-v5.10/fs/btrfs/ |
D | space-info.c | 354 struct reserve_ticket *ticket) in remove_ticket() argument 356 if (!list_empty(&ticket->list)) { in remove_ticket() 357 list_del_init(&ticket->list); in remove_ticket() 358 ASSERT(space_info->reclaim_size >= ticket->bytes); in remove_ticket() 359 space_info->reclaim_size -= ticket->bytes; in remove_ticket() 378 struct reserve_ticket *ticket; in btrfs_try_granting_tickets() local 381 ticket = list_first_entry(head, struct reserve_ticket, list); in btrfs_try_granting_tickets() 384 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets() 385 btrfs_can_overcommit(fs_info, space_info, ticket->bytes, in btrfs_try_granting_tickets() 389 ticket->bytes); in btrfs_try_granting_tickets() [all …]
|
/Linux-v5.10/fs/xfs/ |
D | xfs_log.c | 49 struct xlog_ticket *ticket, 797 struct xlog_ticket *ticket, in xlog_write_unmount_record() argument 815 ticket->t_curr_res -= sizeof(ulf); in xlog_write_unmount_record() 816 return xlog_write(log, &vec, ticket, lsn, NULL, flags, false); in xlog_write_unmount_record() 1452 struct xlog_ticket *ticket, in xlog_commit_record() argument 1470 error = xlog_write(log, &vec, ticket, lsn, iclog, XLOG_COMMIT_TRANS, in xlog_commit_record() 1962 struct xlog_ticket *ticket) in xlog_print_tic_res() argument 1965 uint ophdr_spc = ticket->t_res_num_ophdrs * (uint)sizeof(xlog_op_header_t); in xlog_print_tic_res() 2002 ticket->t_unit_res); in xlog_print_tic_res() 2004 ticket->t_curr_res); in xlog_print_tic_res() [all …]
|
D | xfs_log_cil.c | 64 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery() 424 if (ctx->ticket->t_curr_res == 0) { in xlog_cil_insert_items() 425 ctx_res = ctx->ticket->t_unit_res; in xlog_cil_insert_items() 426 ctx->ticket->t_curr_res = ctx_res; in xlog_cil_insert_items() 437 ctx->ticket->t_unit_res += split_res; in xlog_cil_insert_items() 438 ctx->ticket->t_curr_res += split_res; in xlog_cil_insert_items() 661 new_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_push_work() 795 tic = ctx->ticket; in xlog_cil_push_work() 879 xfs_log_ticket_put(new_ctx->ticket); in xlog_cil_push_work() 937 trace_xfs_log_cil_wait(log, cil->xc_ctx->ticket); in xlog_cil_push_background() [all …]
|
D | xfs_log_priv.h | 236 struct xlog_ticket *ticket; /* chkpt ticket */ member 477 void xlog_print_tic_res(struct xfs_mount *mp, struct xlog_ticket *ticket); 483 int xlog_commit_record(struct xlog *log, struct xlog_ticket *ticket, 485 void xfs_log_ticket_ungrant(struct xlog *log, struct xlog_ticket *ticket); 486 void xfs_log_ticket_regrant(struct xlog *log, struct xlog_ticket *ticket);
|
D | xfs_log.h | 124 struct xlog_ticket **ticket, 131 struct xlog_ticket *xfs_log_ticket_get(struct xlog_ticket *ticket); 132 void xfs_log_ticket_put(struct xlog_ticket *ticket);
|
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_csa.c | 69 struct ww_acquire_ctx ticket; in amdgpu_map_static_csa() local 83 r = ttm_eu_reserve_buffers(&ticket, &list, true, NULL); in amdgpu_map_static_csa() 91 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_map_static_csa() 103 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_map_static_csa() 107 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_map_static_csa()
|
D | amdgpu_gem.c | 153 struct ww_acquire_ctx ticket; in amdgpu_gem_object_close() local 166 r = ttm_eu_reserve_buffers(&ticket, &list, false, &duplicates); in amdgpu_gem_object_close() 197 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_gem_object_close() 601 struct ww_acquire_ctx ticket; in amdgpu_gem_va_ioctl() local 673 r = ttm_eu_reserve_buffers(&ticket, &list, true, &duplicates); in amdgpu_gem_va_ioctl() 719 ttm_eu_backoff_reservation(&ticket, &list); in amdgpu_gem_va_ioctl()
|
D | amdgpu_dma_buf.c | 505 struct ww_acquire_ctx *ticket = dma_resv_locking_ctx(obj->resv); in amdgpu_dma_buf_move_notify() local 526 if (ticket) { in amdgpu_dma_buf_move_notify() 531 r = dma_resv_lock(resv, ticket); in amdgpu_dma_buf_move_notify()
|
/Linux-v5.10/include/drm/ttm/ |
D | ttm_bo_driver.h | 488 struct ww_acquire_ctx *ticket) in ttm_bo_reserve() argument 494 if (WARN_ON(ticket)) in ttm_bo_reserve() 502 ret = dma_resv_lock_interruptible(bo->base.resv, ticket); in ttm_bo_reserve() 504 ret = dma_resv_lock(bo->base.resv, ticket); in ttm_bo_reserve() 522 struct ww_acquire_ctx *ticket) in ttm_bo_reserve_slowpath() argument 526 ticket); in ttm_bo_reserve_slowpath() 531 dma_resv_lock_slow(bo->base.resv, ticket); in ttm_bo_reserve_slowpath()
|
D | ttm_execbuf_util.h | 61 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, 98 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, 114 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
|
/Linux-v5.10/arch/ia64/include/asm/ |
D | spinlock.h | 45 int *p = (int *)&lock->lock, ticket, serve; in __ticket_spin_lock() local 47 ticket = ia64_fetchadd(1, p, acq); in __ticket_spin_lock() 49 if (!(((ticket >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) in __ticket_spin_lock() 57 if (!(((serve >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) in __ticket_spin_lock()
|
/Linux-v5.10/net/rxrpc/ |
D | key.c | 132 memcpy(&token->kad->ticket, &xdr[8], tktlen); in rxrpc_preparse_xdr_rxkad() 146 token->kad->ticket[0], token->kad->ticket[1], in rxrpc_preparse_xdr_rxkad() 147 token->kad->ticket[2], token->kad->ticket[3], in rxrpc_preparse_xdr_rxkad() 148 token->kad->ticket[4], token->kad->ticket[5], in rxrpc_preparse_xdr_rxkad() 149 token->kad->ticket[6], token->kad->ticket[7]); in rxrpc_preparse_xdr_rxkad() 207 kfree(rxk5->ticket); in rxrpc_rxk5_free() 506 ret = rxrpc_krb5_decode_ticket(&rxk5->ticket, &rxk5->ticket_len, in rxrpc_preparse_xdr_rxk5() 748 v1->ticket[0], v1->ticket[1], in rxrpc_preparse() 749 v1->ticket[2], v1->ticket[3], in rxrpc_preparse() 750 v1->ticket[4], v1->ticket[5], in rxrpc_preparse() [all …]
|
D | rxkad.c | 741 iov[2].iov_base = (void *)s2->ticket; in rxkad_send_response() 896 void *ticket, size_t ticket_len, in rxkad_decrypt_ticket() argument 931 ASSERTCMP((unsigned long) ticket & 7UL, ==, 0); in rxkad_decrypt_ticket() 941 sg_init_one(&sg[0], ticket, ticket_len); in rxkad_decrypt_ticket() 947 p = ticket; in rxkad_decrypt_ticket() 1095 void *ticket; in rxkad_verify_response() local 1138 ticket = kmalloc(ticket_len, GFP_NOFS); in rxkad_verify_response() 1139 if (!ticket) in rxkad_verify_response() 1145 ticket, ticket_len) < 0) in rxkad_verify_response() 1148 ret = rxkad_decrypt_ticket(conn, skb, ticket, ticket_len, &session_key, in rxkad_verify_response() [all …]
|
/Linux-v5.10/include/keys/ |
D | rxrpc-type.h | 31 u8 ticket[]; /* the encrypted ticket */ member 76 u8 *ticket; /* krb5 ticket */ member 103 u8 ticket[]; member
|
/Linux-v5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_validation.h | 81 struct ww_acquire_ctx ticket; member 172 return ttm_eu_reserve_buffers(&ctx->ticket, &ctx->bo_list, intr, in vmw_validation_bo_reserve() 188 ttm_eu_fence_buffer_objects(&ctx->ticket, &ctx->bo_list, in vmw_validation_bo_fence()
|
D | vmwgfx_resource.c | 540 vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, in vmw_resource_check_buffer() argument 561 ret = ttm_eu_reserve_buffers(ticket, &val_list, interruptible, NULL); in vmw_resource_check_buffer() 579 ttm_eu_backoff_reservation(ticket, &val_list); in vmw_resource_check_buffer() 631 vmw_resource_backoff_reservation(struct ww_acquire_ctx *ticket, in vmw_resource_backoff_reservation() argument 641 ttm_eu_backoff_reservation(ticket, &val_list); in vmw_resource_backoff_reservation() 654 static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket, in vmw_resource_do_evict() argument 665 ret = vmw_resource_check_buffer(ticket, res, interruptible, &val_buf); in vmw_resource_do_evict() 680 vmw_resource_backoff_reservation(ticket, &val_buf); in vmw_resource_do_evict() 921 struct ww_acquire_ctx ticket; in vmw_resource_evict_type() local 936 ret = vmw_resource_do_evict(&ticket, evict_res, false); in vmw_resource_evict_type()
|
/Linux-v5.10/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gem_submit.c | 122 struct ww_acquire_ctx *ticket) in submit_lock_objects() argument 136 ret = dma_resv_lock_interruptible(obj->resv, ticket); in submit_lock_objects() 146 ww_acquire_done(ticket); in submit_lock_objects() 163 ret = dma_resv_lock_slow_interruptible(obj->resv, ticket); in submit_lock_objects() 436 struct ww_acquire_ctx ticket; in etnaviv_ioctl_gem_submit() local 521 ww_acquire_init(&ticket, &reservation_ww_class); in etnaviv_ioctl_gem_submit() 574 ret = submit_lock_objects(submit, &ticket); in etnaviv_ioctl_gem_submit() 610 ww_acquire_fini(&ticket); in etnaviv_ioctl_gem_submit()
|
/Linux-v5.10/arch/mips/include/asm/octeon/ |
D | cvmx-cmd-queue.h | 154 uint64_t ticket[(CVMX_CMD_QUEUE_END >> 16) * 256]; member 278 …[ticket_ptr] "=" GCC_OFF_SMALL_ASM()(__cvmx_cmd_queue_state_ptr->ticket[__cvmx_cmd_queue_get_index… in __cvmx_cmd_queue_lock() 279 [now_serving] "=m"(qptr->now_serving), [ticket] "=r"(tmp), in __cvmx_cmd_queue_lock()
|
/Linux-v5.10/drivers/gpu/drm/qxl/ |
D | qxl_release.c | 262 ret = ttm_eu_reserve_buffers(&release->ticket, &release->bos, in qxl_release_reserve_list() 272 ttm_eu_backoff_reservation(&release->ticket, &release->bos); in qxl_release_reserve_list() 286 ttm_eu_backoff_reservation(&release->ticket, &release->bos); in qxl_release_backoff_reserve_list() 463 ww_acquire_fini(&release->ticket); in qxl_release_fence_buffer_objects()
|
/Linux-v5.10/drivers/gpu/drm/msm/ |
D | msm_gem_submit.c | 186 &submit->ticket); in submit_lock_objects() 193 ww_acquire_done(&submit->ticket); in submit_lock_objects() 208 &submit->ticket); in submit_lock_objects() 698 ww_acquire_init(&submit->ticket, &reservation_ww_class); in msm_ioctl_gem_submit() 805 ww_acquire_fini(&submit->ticket); in msm_ioctl_gem_submit()
|
/Linux-v5.10/drivers/gpu/drm/virtio/ |
D | virtgpu_gem.c | 213 &objs->ticket); in virtio_gpu_array_lock_resv() 224 &objs->ticket); in virtio_gpu_array_unlock_resv()
|
/Linux-v5.10/arch/ia64/mm/ |
D | tlb.c | 112 unsigned long ticket; member 118 ss->ticket = 0; in spinaphore_init() 124 unsigned long t = ia64_fetchadd(1, &ss->ticket, acq), serve; in down_spin()
|
/Linux-v5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_gem.c | 320 struct ww_acquire_ctx ticket; member 365 ww_acquire_fini(&op->ticket); in validate_fini() 381 ww_acquire_init(&op->ticket, &reservation_ww_class); in validate_init() 414 ret = ttm_bo_reserve(&nvbo->bo, true, false, &op->ticket); in validate_init() 422 &op->ticket); in validate_init() 469 ww_acquire_done(&op->ticket); in validate_init()
|