Home
last modified time | relevance | path

Searched refs:ticket (Results 1 - 25 of 82) sorted by relevance

1234

/kernel/linux/linux-5.10/fs/btrfs/
H A Dspace-info.c69 * wait on ticket->wait for ->bytes to be reduced to 0, or ->error to be set
70 * on the ticket.
81 * the ticket is woken up.
83 * -> ticket wakeup
91 * space_info->priority_tickets, and we do not use ticket->wait, we simply
354 struct reserve_ticket *ticket) in remove_ticket()
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 in remove_ticket()
353 remove_ticket(struct btrfs_space_info *space_info, struct reserve_ticket *ticket) remove_ticket() argument
378 struct reserve_ticket *ticket; btrfs_try_granting_tickets() local
576 struct reserve_ticket *ticket = NULL; may_commit_transaction() local
818 steal_from_global_rsv(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) steal_from_global_rsv() argument
864 struct reserve_ticket *ticket; maybe_fail_all_tickets() local
1138 priority_reclaim_metadata_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket, const enum btrfs_flush_state *states, int states_nr) priority_reclaim_metadata_space() argument
1168 priority_reclaim_data_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) priority_reclaim_data_space() argument
1183 wait_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) wait_reserve_ticket() argument
1227 handle_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket, enum btrfs_reserve_flush_enum flush) handle_reserve_ticket() argument
1317 struct reserve_ticket ticket; __reserve_bytes() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
H A Dttm_execbuf_util.c46 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()
148 ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, struct list_head *list, struct dma_fence *fence) ttm_eu_fence_buffer_objects() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/ttm/
H A Dttm_execbuf_util.c42 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, in ttm_eu_backoff_reservation() argument
57 if (ticket) in ttm_eu_backoff_reservation()
58 ww_acquire_fini(ticket); in ttm_eu_backoff_reservation()
74 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, in ttm_eu_reserve_buffers() argument
84 if (ticket) in ttm_eu_reserve_buffers()
85 ww_acquire_init(ticket, &reservation_ww_class); in ttm_eu_reserve_buffers()
91 ret = ttm_bo_reserve(bo, intr, (ticket == NULL), ticket); in ttm_eu_reserve_buffers()
115 ret = ttm_bo_reserve_slowpath(bo, intr, ticket); in ttm_eu_reserve_buffers()
123 if (ticket) { in ttm_eu_reserve_buffers()
141 ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, struct list_head *list, struct dma_fence *fence) ttm_eu_fence_buffer_objects() argument
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dspace-info.c73 * wait on ticket->wait for ->bytes to be reduced to 0, or ->error to be set
74 * on the ticket.
85 * the ticket is woken up.
87 * -> ticket wakeup
95 * space_info->priority_tickets, and we do not use ticket->wait, we simply
400 struct reserve_ticket *ticket) in remove_ticket()
402 if (!list_empty(&ticket->list)) { in remove_ticket()
403 list_del_init(&ticket->list); in remove_ticket()
404 ASSERT(space_info->reclaim_size >= ticket->bytes); in remove_ticket()
405 space_info->reclaim_size -= ticket in remove_ticket()
399 remove_ticket(struct btrfs_space_info *space_info, struct reserve_ticket *ticket) remove_ticket() argument
424 struct reserve_ticket *ticket; btrfs_try_granting_tickets() local
949 steal_from_global_rsv(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) steal_from_global_rsv() argument
998 struct reserve_ticket *ticket; maybe_fail_all_tickets() local
1368 priority_reclaim_metadata_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket, const enum btrfs_flush_state *states, int states_nr) priority_reclaim_metadata_space() argument
1427 priority_reclaim_data_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) priority_reclaim_data_space() argument
1455 wait_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) wait_reserve_ticket() argument
1502 handle_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket, u64 start_ns, u64 orig_bytes, enum btrfs_reserve_flush_enum flush) handle_reserve_ticket() argument
1612 struct reserve_ticket ticket; __reserve_bytes() local
[all...]
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_log.c49 struct xlog_ticket *ticket,
273 * Atomically get the log space required for a log ticket.
275 * Once a ticket gets put onto head->waiters, it will only return after the
284 * only need to take that lock if we are going to add the ticket to the queue
285 * and sleep. We can avoid taking the lock if the ticket was never added to
387 * This is a new transaction on the ticket, so we need to change the in xfs_log_regrant()
416 * If we are failing, make sure the ticket doesn't have any current in xfs_log_regrant()
417 * reservations. We don't want to add this back when the ticket/ in xfs_log_regrant()
426 * Reserve log space and return a ticket corresponding to the reservation.
476 * If we are failing, make sure the ticket does in xfs_log_reserve()
817 xlog_write_unmount_record( struct xlog *log, struct xlog_ticket *ticket, xfs_lsn_t *lsn, uint flags) xlog_write_unmount_record() argument
1465 xlog_commit_record( struct xlog *log, struct xlog_ticket *ticket, struct xlog_in_core **iclog, xfs_lsn_t *lsn) xlog_commit_record() argument
1975 xlog_print_tic_res( struct xfs_mount *mp, struct xlog_ticket *ticket) xlog_print_tic_res() argument
2094 xlog_write_calc_vec_length( struct xlog_ticket *ticket, struct xfs_log_vec *log_vector, bool need_start_rec) xlog_write_calc_vec_length() argument
2126 xlog_write_start_rec( struct xlog_op_header *ophdr, struct xlog_ticket *ticket) xlog_write_start_rec() argument
2138 xlog_write_setup_ophdr( struct xlog *log, struct xlog_op_header *ophdr, struct xlog_ticket *ticket, uint flags) xlog_write_setup_ophdr() argument
2178 xlog_write_setup_copy( struct xlog_ticket *ticket, struct xlog_op_header *ophdr, int space_available, int space_required, int *copy_off, int *copy_len, int *last_was_partial_copy, int *bytes_consumed) xlog_write_setup_copy() argument
2317 xlog_write( struct xlog *log, struct xfs_log_vec *log_vector, struct xlog_ticket *ticket, xfs_lsn_t *start_lsn, struct xlog_in_core **commit_iclog, uint flags, bool need_start_rec) xlog_write() argument
2877 xlog_state_get_iclog_space( struct xlog *log, int len, struct xlog_in_core **iclogp, struct xlog_ticket *ticket, int *continued_write, int *logoffsetp) xlog_state_get_iclog_space() argument
2985 xfs_log_ticket_regrant( struct xlog *log, struct xlog_ticket *ticket) xfs_log_ticket_regrant() argument
3031 xfs_log_ticket_ungrant( struct xlog *log, struct xlog_ticket *ticket) xfs_log_ticket_ungrant() argument
3322 xfs_log_ticket_put( xlog_ticket_t *ticket) xfs_log_ticket_put() argument
3331 xfs_log_ticket_get( xlog_ticket_t *ticket) xfs_log_ticket_get() argument
[all...]
H A Dxfs_log.h54 * CIL context ticket.
124 struct xlog_ticket **ticket,
132 struct xlog_ticket *xfs_log_ticket_get(struct xlog_ticket *ticket);
133 void xfs_log_ticket_put(struct xlog_ticket *ticket);
H A Dxfs_log_cil.c23 * Allocate a new ticket. Failing to get a new ticket makes it really hard to
28 * We don't reserve any space for the ticket - we are going to steal whatever
30 * the space required, we need to set the current reservation of the ticket to
55 * Here we allocate a log ticket to track space usage during a CIL push. This
56 * ticket is passed to xlog_write() directly so that we don't slowly leak log
64 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery()
380 * consumed by the item. Add the space to the checkpoint ticket and calculate
382 * as well. Remove the amount of space we added to the checkpoint ticket from
383 * the current transaction ticket s
[all...]
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_log.c51 struct xlog_ticket *ticket,
61 struct xlog_ticket *ticket);
96 * CIL context ticket.
323 * Atomically get the log space required for a log ticket.
325 * Once a ticket gets put onto head->waiters, it will only return after the
334 * only need to take that lock if we are going to add the ticket to the queue
335 * and sleep. We can avoid taking the lock if the ticket was never added to
415 * This is a new transaction on the ticket, so we need to change the in xfs_log_regrant()
442 * If we are failing, make sure the ticket doesn't have any current in xfs_log_regrant()
443 * reservations. We don't want to add this back when the ticket/ in xfs_log_regrant()
569 xlog_state_release_iclog( struct xlog *log, struct xlog_in_core *iclog, struct xlog_ticket *ticket) xlog_state_release_iclog() argument
908 xlog_write_unmount_record( struct xlog *log, struct xlog_ticket *ticket) xlog_write_unmount_record() argument
2032 xlog_sync( struct xlog *log, struct xlog_in_core *iclog, struct xlog_ticket *ticket) xlog_sync() argument
2151 xlog_print_tic_res( struct xfs_mount *mp, struct xlog_ticket *ticket) xlog_print_tic_res() argument
2238 xlog_write_full( struct xfs_log_vec *lv, struct xlog_ticket *ticket, struct xlog_in_core *iclog, uint32_t *log_offset, uint32_t *len, uint32_t *record_cnt, uint32_t *data_cnt) xlog_write_full() argument
2267 xlog_write_get_more_iclog_space( struct xlog_ticket *ticket, struct xlog_in_core **iclogp, uint32_t *log_offset, uint32_t len, uint32_t *record_cnt, uint32_t *data_cnt) xlog_write_get_more_iclog_space() argument
2304 xlog_write_partial( struct xfs_log_vec *lv, struct xlog_ticket *ticket, struct xlog_in_core **iclogp, uint32_t *log_offset, uint32_t *len, uint32_t *record_cnt, uint32_t *data_cnt) xlog_write_partial() argument
2475 xlog_write( struct xlog *log, struct xfs_cil_ctx *ctx, struct list_head *lv_chain, struct xlog_ticket *ticket, uint32_t len) xlog_write() argument
2895 xlog_state_get_iclog_space( struct xlog *log, int len, struct xlog_in_core **iclogp, struct xlog_ticket *ticket, int *logoffsetp) xlog_state_get_iclog_space() argument
2998 xfs_log_ticket_regrant( struct xlog *log, struct xlog_ticket *ticket) xfs_log_ticket_regrant() argument
3042 xfs_log_ticket_ungrant( struct xlog *log, struct xlog_ticket *ticket) xfs_log_ticket_ungrant() argument
3388 xfs_log_ticket_put( xlog_ticket_t *ticket) xfs_log_ticket_put() argument
3397 xfs_log_ticket_get( xlog_ticket_t *ticket) xfs_log_ticket_get() argument
[all...]
H A Dxfs_log_cil.c22 * Allocate a new ticket. Failing to get a new ticket makes it really hard to
27 * We don't reserve any space for the ticket - we are going to steal whatever
29 * the space required, we need to set the current reservation of the ticket to
129 ctx->ticket->t_curr_res += cilpcp->space_reserved; in xlog_cil_push_pcp_aggregate()
204 * Here we allocate a log ticket to track space usage during a CIL push. This
205 * ticket is passed to xlog_write() directly so that we don't slowly leak log
213 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery()
544 * consumed by the item. Add the space to the checkpoint ticket and calculate
546 * as well. Remove the amount of space we added to the checkpoint ticket fro
1137 struct xlog_ticket *ticket; xlog_cil_push_work() local
[all...]
H A Dxfs_log.h143 struct xlog_ticket **ticket, bool permanent);
148 struct xlog_ticket *xfs_log_ticket_get(struct xlog_ticket *ticket);
149 void xfs_log_ticket_put(struct xlog_ticket *ticket);
/kernel/linux/linux-6.6/net/rxrpc/
H A Dkey.c96 memcpy(&token->kad->ticket, &xdr[8], tktlen); in rxrpc_preparse_xdr_rxkad()
110 token->kad->ticket[0], token->kad->ticket[1], in rxrpc_preparse_xdr_rxkad()
111 token->kad->ticket[2], token->kad->ticket[3], in rxrpc_preparse_xdr_rxkad()
112 token->kad->ticket[4], token->kad->ticket[5], in rxrpc_preparse_xdr_rxkad()
113 token->kad->ticket[6], token->kad->ticket[7]); in rxrpc_preparse_xdr_rxkad()
269 * 6 2 ticket lengt
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_csa.c69 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()
/kernel/linux/linux-6.6/include/drm/ttm/
H A Dttm_bo.h222 * @ticket: ticket used to acquire the ww_mutex.
235 * -EALREADY: Bo already reserved using @ticket. This error code will only
240 struct ww_acquire_ctx *ticket) in ttm_bo_reserve()
247 if (WARN_ON(ticket)) in ttm_bo_reserve()
255 ret = dma_resv_lock_interruptible(bo->base.resv, ticket); in ttm_bo_reserve()
257 ret = dma_resv_lock(bo->base.resv, ticket); in ttm_bo_reserve()
275 struct ww_acquire_ctx *ticket) in ttm_bo_reserve_slowpath()
279 ticket); in ttm_bo_reserve_slowpath()
284 dma_resv_lock_slow(bo->base.resv, ticket); in ttm_bo_reserve_slowpath()
238 ttm_bo_reserve(struct ttm_buffer_object *bo, bool interruptible, bool no_wait, struct ww_acquire_ctx *ticket) ttm_bo_reserve() argument
273 ttm_bo_reserve_slowpath(struct ttm_buffer_object *bo, bool interruptible, struct ww_acquire_ctx *ticket) ttm_bo_reserve_slowpath() argument
[all...]
H A Dttm_execbuf_util.h57 * @ticket: ww_acquire_ctx from reserve call
63 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket,
69 * @ticket: [out] ww_acquire_ctx filled in by call, or NULL if only
100 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket,
107 * @ticket: ww_acquire_ctx from reserve call
116 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
/kernel/linux/linux-5.10/include/drm/ttm/
H A Dttm_execbuf_util.h55 * @ticket: ww_acquire_ctx from reserve call
61 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket,
67 * @ticket: [out] ww_acquire_ctx filled in by call, or NULL if only
98 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket,
105 * @ticket: ww_acquire_ctx from reserve call
114 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
H A Dttm_bo_driver.h470 * @ticket: ticket used to acquire the ww_mutex.
483 * -EALREADY: Bo already reserved using @ticket. This error code will only
488 struct ww_acquire_ctx *ticket) in ttm_bo_reserve()
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()
526 ticket); in ttm_bo_reserve_slowpath()
531 dma_resv_lock_slow(bo->base.resv, ticket); in ttm_bo_reserve_slowpath()
486 ttm_bo_reserve(struct ttm_buffer_object *bo, bool interruptible, bool no_wait, struct ww_acquire_ctx *ticket) ttm_bo_reserve() argument
520 ttm_bo_reserve_slowpath(struct ttm_buffer_object *bo, bool interruptible, struct ww_acquire_ctx *ticket) ttm_bo_reserve_slowpath() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_exec.c101 ww_acquire_fini(&exec->ticket); in drm_exec_fini()
117 ww_acquire_done(&exec->ticket); in drm_exec_cleanup()
123 ww_acquire_init(&exec->ticket, &reservation_ww_class); in drm_exec_cleanup()
168 &exec->ticket); in drm_exec_lock_contended()
172 dma_resv_lock_slow(obj->resv, &exec->ticket); in drm_exec_lock_contended()
216 ret = dma_resv_lock_interruptible(obj->resv, &exec->ticket); in drm_exec_lock_obj()
218 ret = dma_resv_lock(obj->resv, &exec->ticket); in drm_exec_lock_obj()
/kernel/linux/linux-5.10/arch/ia64/include/asm/
H A Dspinlock.h45 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()
/kernel/linux/linux-6.6/arch/ia64/include/asm/
H A Dspinlock.h45 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()
/kernel/linux/linux-6.6/include/asm-generic/
H A Dspinlock.h4 * 'Generic' ticket-lock implementation.
36 u16 ticket = val >> 16; in arch_spin_lock() local
38 if (ticket == (u16)val) in arch_spin_lock()
49 atomic_cond_read_acquire(lock, ticket == (u16)VAL); in arch_spin_lock()
/kernel/linux/linux-5.10/net/rxrpc/
H A Dkey.c132 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()
[all...]
/kernel/linux/linux-5.10/include/keys/
H A Drxrpc-type.h25 u32 start; /* time at which ticket starts */
26 u32 expiry; /* time at which ticket expires */
29 u16 ticket_len; /* length of ticket[] */
31 u8 ticket[]; /* the encrypted ticket */ member
65 s32 is_skey; /* T if ticket is encrypted in another ticket's
70 u16 ticket_len; /* length of ticket */
71 u16 ticket2_len; /* length of second ticket */
76 u8 *ticket; /* krb member
103 u8 ticket[]; global() member
[all...]
/kernel/linux/linux-6.6/include/keys/
H A Drxrpc-type.h25 u32 start; /* time at which ticket starts */
26 u32 expiry; /* time at which ticket expires */
29 u16 ticket_len; /* length of ticket[] */
31 u8 ticket[]; /* the encrypted ticket */ member
55 u8 ticket[]; member
68 #define AFSTOKEN_RK_TIX_MAX 12000 /* max RxKAD ticket size */
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_validation.h64 * @ticket: Ticked used for ww mutex locking
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()
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_validation.h49 * @ticket: Ticked used for ww mutex locking
66 struct ww_acquire_ctx ticket; member
129 return ttm_eu_reserve_buffers(&ctx->ticket, &ctx->bo_list, intr, in vmw_validation_bo_reserve()
145 ttm_eu_fence_buffer_objects(&ctx->ticket, &ctx->bo_list, in vmw_validation_bo_fence()

Completed in 16 milliseconds

1234