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

/linux-4.1.27/arch/mips/include/asm/
H A Dspinlock.h24 * These are fair FIFO ticket locks
68 "1: ll %[ticket], %[ticket_ptr] \n" arch_spin_lock()
69 " addu %[my_ticket], %[ticket], %[inc] \n" arch_spin_lock()
73 " srl %[my_ticket], %[ticket], 16 \n" arch_spin_lock()
74 " andi %[ticket], %[ticket], 0xffff \n" arch_spin_lock()
75 " bne %[ticket], %[my_ticket], 4f \n" arch_spin_lock()
76 " subu %[ticket], %[my_ticket], %[ticket] \n" arch_spin_lock()
79 "4: andi %[ticket], %[ticket], 0xffff \n" arch_spin_lock()
80 " sll %[ticket], 5 \n" arch_spin_lock()
82 "6: bnez %[ticket], 6b \n" arch_spin_lock()
83 " subu %[ticket], 1 \n" arch_spin_lock()
85 " lhu %[ticket], %[serving_now_ptr] \n" arch_spin_lock()
86 " beq %[ticket], %[my_ticket], 2b \n" arch_spin_lock()
87 " subu %[ticket], %[my_ticket], %[ticket] \n" arch_spin_lock()
89 " subu %[ticket], %[ticket], 1 \n" arch_spin_lock()
94 [ticket] "=&r" (tmp), arch_spin_lock()
102 "1: ll %[ticket], %[ticket_ptr] \n" arch_spin_lock()
103 " addu %[my_ticket], %[ticket], %[inc] \n" arch_spin_lock()
106 " srl %[my_ticket], %[ticket], 16 \n" arch_spin_lock()
107 " andi %[ticket], %[ticket], 0xffff \n" arch_spin_lock()
108 " bne %[ticket], %[my_ticket], 4f \n" arch_spin_lock()
109 " subu %[ticket], %[my_ticket], %[ticket] \n" arch_spin_lock()
112 "4: andi %[ticket], %[ticket], 0x1fff \n" arch_spin_lock()
113 " sll %[ticket], 5 \n" arch_spin_lock()
115 "6: bnez %[ticket], 6b \n" arch_spin_lock()
116 " subu %[ticket], 1 \n" arch_spin_lock()
118 " lhu %[ticket], %[serving_now_ptr] \n" arch_spin_lock()
119 " beq %[ticket], %[my_ticket], 2b \n" arch_spin_lock()
120 " subu %[ticket], %[my_ticket], %[ticket] \n" arch_spin_lock()
122 " subu %[ticket], %[ticket], 1 \n" arch_spin_lock()
127 [ticket] "=&r" (tmp), arch_spin_lock()
153 "1: ll %[ticket], %[ticket_ptr] \n" arch_spin_trylock()
154 " srl %[my_ticket], %[ticket], 16 \n" arch_spin_trylock()
155 " andi %[now_serving], %[ticket], 0xffff \n" arch_spin_trylock()
157 " addu %[ticket], %[ticket], %[inc] \n" arch_spin_trylock()
158 " sc %[ticket], %[ticket_ptr] \n" arch_spin_trylock()
159 " beqzl %[ticket], 1b \n" arch_spin_trylock()
160 " li %[ticket], 1 \n" arch_spin_trylock()
164 " li %[ticket], 0 \n" arch_spin_trylock()
168 [ticket] "=&r" (tmp), arch_spin_trylock()
177 "1: ll %[ticket], %[ticket_ptr] \n" arch_spin_trylock()
178 " srl %[my_ticket], %[ticket], 16 \n" arch_spin_trylock()
179 " andi %[now_serving], %[ticket], 0xffff \n" arch_spin_trylock()
181 " addu %[ticket], %[ticket], %[inc] \n" arch_spin_trylock()
182 " sc %[ticket], %[ticket_ptr] \n" arch_spin_trylock()
183 " beqz %[ticket], 1b \n" arch_spin_trylock()
184 " li %[ticket], 1 \n" arch_spin_trylock()
188 " li %[ticket], 0 \n" arch_spin_trylock()
192 [ticket] "=&r" (tmp), arch_spin_trylock()
H A Dspinlock_types.h15 * bits 16..31 : ticket
20 u16 ticket; member in struct:__anon2091::__anon2092
24 u16 ticket;
/linux-4.1.27/drivers/gpu/drm/ttm/
H A Dttm_execbuf_util.c57 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, ttm_eu_backoff_reservation() argument
78 if (ticket)
79 ww_acquire_fini(ticket);
95 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, ttm_eu_reserve_buffers() argument
109 if (ticket) ttm_eu_reserve_buffers()
110 ww_acquire_init(ticket, &reservation_ww_class); ttm_eu_reserve_buffers()
115 ret = __ttm_bo_reserve(bo, intr, (ticket == NULL), true, list_for_each_entry()
116 ticket); list_for_each_entry()
147 ticket); list_for_each_entry()
149 ww_mutex_lock_slow(&bo->resv->lock, ticket); list_for_each_entry()
159 if (ticket) { list_for_each_entry()
160 ww_acquire_done(ticket); list_for_each_entry()
161 ww_acquire_fini(ticket); list_for_each_entry()
173 if (ticket)
174 ww_acquire_done(ticket);
182 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, ttm_eu_fence_buffer_objects() argument
211 if (ticket)
212 ww_acquire_fini(ticket);
/linux-4.1.27/include/keys/
H A Drxrpc-type.h29 u32 start; /* time at which ticket starts */
30 u32 expiry; /* time at which ticket expires */
33 u16 ticket_len; /* length of ticket[] */
35 u8 ticket[0]; /* the encrypted ticket */ member in struct:rxkad_key
69 s32 is_skey; /* T if ticket is encrypted in another ticket's
74 u16 ticket_len; /* length of ticket */
75 u16 ticket2_len; /* length of second ticket */
80 u8 *ticket; /* krb5 ticket */ member in struct:rxk5_key
81 u8 *ticket2; /* second krb5 ticket, if related to ticket (via
107 u8 ticket[0]; member in struct:rxrpc_key_data_v1
120 #define AFSTOKEN_RK_TIX_MAX 12000 /* max RxKAD ticket size */
126 #define AFSTOKEN_K5_TIX_MAX 16384 /* max K5 ticket size */
/linux-4.1.27/arch/tile/include/asm/
H A Dspinlock_types.h41 /* Next ticket number to hand out. */
43 /* The ticket number that currently owns this lock. */
50 * Byte 0 for tns (only the low bit is used), byte 1 for ticket-lock "next",
51 * byte 2 for ticket-lock "current", byte 3 for reader count.
H A Dspinlock_64.h14 * 64-bit SMP ticket spinlocks, allowing only a single CPU anywhere
27 * Return the "current" portion of a ticket lock value,
36 * Return the "next" portion of a ticket lock value,
51 /* Bump the current ticket so the next task owns the lock. */ arch_spin_unlock()
62 /* Grab the "next" ticket number and bump it atomically.
63 * If the current ticket is not ours, go to the slow path.
69 u32 ticket = val & (__ARCH_SPIN_NEXT_MASK | __ARCH_SPIN_NEXT_OVERFLOW); arch_spin_lock() local
70 if (unlikely(arch_spin_current(val) != ticket)) arch_spin_lock()
71 arch_spin_lock_slow(lock, ticket); arch_spin_lock()
77 /* We cannot take an interrupt after getting a ticket, so don't enable them. */
H A Dspinlock_32.h25 * We only use even ticket numbers so the '1' inserted by a tns is
26 * an unambiguous "ticket is busy" flag.
32 * SMP ticket spinlocks, allowing only a single CPU anywhere
39 * Note that even if a new ticket is in the process of being arch_spin_is_locked()
50 /* We cannot take an interrupt after getting a ticket, so don't enable them. */
57 /* For efficiency, overlap fetching the old ticket with the wmb(). */ arch_spin_unlock()
/linux-4.1.27/net/ceph/
H A Dauth_x_protocol.h40 /* ticket blob */
59 * a - service id, ticket blob
H A Dauth_x.h12 * Handle ticket for a single service.
H A Dauth_x.c94 * get existing (or insert new) ticket handler
164 dout(" ticket type %d %s\n", type, ceph_entity_type_name(type)); process_one_ticket()
202 /* ticket blob for service */ process_one_ticket()
206 dout(" encrypted ticket\n"); process_one_ticket()
221 dout(" ticket blob is %d bytes\n", dlen); process_one_ticket()
229 /* all is well, update our ticket */ process_one_ticket()
239 dout(" got ticket service %d (%s) secret_id %lld len %d\n", process_one_ticket()
458 /* now encode the old ticket if exists */ ceph_x_build_request()
H A Dmon_client.c353 * included client ticket allows the client to talk to MDSs and OSDs.
/linux-4.1.27/arch/tile/lib/
H A Dspinlock_32.c31 /* Increment the next ticket number, implicitly releasing tns lock. */ arch_spin_lock()
43 * Grab a ticket; no need to retry if it's busy, we'll just arch_spin_trylock()
50 /* Not currently locked, so lock it by keeping this ticket. */ arch_spin_trylock()
76 * zeroes. The next byte holds the "next" writer value, i.e. the ticket
78 * the current writer value, i.e. the writer who holds the current ticket.
126 * a writer could instead take a ticket lock (just like a writer would),
127 * and atomically enter read mode (with 1 reader) when it gets the ticket.
181 * field and capture the ticket value. arch_write_lock()
193 /* Take out the next ticket and extract my ticket value. */ arch_write_lock()
197 /* Wait until the "current" field matches our ticket. */ arch_write_lock()
H A Dspinlock_64.c32 * Wait until the high bits (current) match my ticket.
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-cmd-queue.h65 * queues. The lock uses a "ticket / now serving" model to
129 /* You have lock when this is your ticket */
150 * ll/sc used to get a ticket. If this is not the case, the update
154 uint64_t ticket[(CVMX_CMD_QUEUE_END >> 16) * 256]; member in struct:__anon1935
251 "li %[ticket], 1\n" __cvmx_cmd_queue_lock()
253 "baddu %[ticket], %[my_ticket]\n" __cvmx_cmd_queue_lock()
254 "sc %[ticket], %[ticket_ptr]\n" __cvmx_cmd_queue_lock()
255 "beqz %[ticket], 1b\n" __cvmx_cmd_queue_lock()
257 /* Load the current now_serving ticket */ __cvmx_cmd_queue_lock()
258 "lbu %[ticket], %[now_serving]\n" __cvmx_cmd_queue_lock()
261 "beq %[ticket], %[my_ticket], 4f\n" __cvmx_cmd_queue_lock()
263 " subu %[ticket], %[my_ticket], %[ticket]\n" __cvmx_cmd_queue_lock()
265 "subu %[ticket], 1\n" __cvmx_cmd_queue_lock()
267 "cins %[ticket], %[ticket], 5, 7\n" __cvmx_cmd_queue_lock()
269 /* Loop here until our ticket might be up */ __cvmx_cmd_queue_lock()
270 "bnez %[ticket], 3b\n" __cvmx_cmd_queue_lock()
271 " subu %[ticket], 1\n" __cvmx_cmd_queue_lock()
272 /* Jump back up to check out ticket again */ __cvmx_cmd_queue_lock()
274 /* Load the current now_serving ticket */ __cvmx_cmd_queue_lock()
275 " lbu %[ticket], %[now_serving]\n" __cvmx_cmd_queue_lock()
278 [ticket_ptr] "=" GCC_OFF_SMALL_ASM()(__cvmx_cmd_queue_state_ptr->ticket[__cvmx_cmd_queue_get_index(queue_id)]), __cvmx_cmd_queue_lock()
279 [now_serving] "=m"(qptr->now_serving), [ticket] "=r"(tmp), __cvmx_cmd_queue_lock()
/linux-4.1.27/include/drm/ttm/
H A Dttm_execbuf_util.h54 * @ticket: ww_acquire_ctx from reserve call
61 extern 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 extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket,
105 * @ticket: ww_acquire_ctx from reserve call
115 extern void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
H A Dttm_bo_driver.h763 * it to become unreserved if @ticket->stamp is older.
775 * -EALREADY: Bo already reserved using @ticket. This error code will only
781 struct ww_acquire_ctx *ticket) __ttm_bo_reserve()
787 if (WARN_ON(ticket)) __ttm_bo_reserve()
795 ret = ww_mutex_lock_interruptible(&bo->resv->lock, ticket); __ttm_bo_reserve()
797 ret = ww_mutex_lock(&bo->resv->lock, ticket); __ttm_bo_reserve()
810 * it to become unreserved if @ticket->stamp is older.
824 * and call this function with @use_ticket == 1 and @ticket->stamp == the unique
845 * -EALREADY: Bo already reserved using @ticket. This error code will only
851 struct ww_acquire_ctx *ticket) ttm_bo_reserve()
857 ret = __ttm_bo_reserve(bo, interruptible, no_wait, use_ticket, ticket); ttm_bo_reserve()
876 struct ww_acquire_ctx *ticket) ttm_bo_reserve_slowpath()
884 ticket); ttm_bo_reserve_slowpath()
886 ww_mutex_lock_slow(&bo->resv->lock, ticket); ttm_bo_reserve_slowpath()
928 * @ticket: ww_acquire_ctx used for reserving
930 * Unreserve a previous reservation of @bo made with @ticket.
778 __ttm_bo_reserve(struct ttm_buffer_object *bo, bool interruptible, bool no_wait, bool use_ticket, struct ww_acquire_ctx *ticket) __ttm_bo_reserve() argument
848 ttm_bo_reserve(struct ttm_buffer_object *bo, bool interruptible, bool no_wait, bool use_ticket, struct ww_acquire_ctx *ticket) ttm_bo_reserve() argument
874 ttm_bo_reserve_slowpath(struct ttm_buffer_object *bo, bool interruptible, struct ww_acquire_ctx *ticket) ttm_bo_reserve_slowpath() argument
/linux-4.1.27/arch/ia64/include/asm/
H A Dspinlock.h42 int *p = (int *)&lock->lock, ticket, serve; __ticket_spin_lock() local
44 ticket = ia64_fetchadd(1, p, acq); __ticket_spin_lock()
46 if (!(((ticket >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) __ticket_spin_lock()
54 if (!(((serve >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) __ticket_spin_lock()
79 int *p = (int *)&lock->lock, ticket; __ticket_spin_unlock_wait() local
84 asm volatile ("ld4.c.nc %0=[%1]" : "=r"(ticket) : "r"(p) : "memory"); __ticket_spin_unlock_wait()
85 if (!(((ticket >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) __ticket_spin_unlock_wait()
/linux-4.1.27/fs/xfs/
H A Dxfs_log.c44 struct xlog_ticket *ticket,
78 struct xlog_ticket *ticket,
102 struct xlog_ticket *ticket);
106 struct xlog_ticket *ticket);
290 * Atomically get the log space required for a log ticket.
292 * Once a ticket gets put onto head->waiters, it will only return after the
301 * only need to take that lock if we are going to add the ticket to the queue
302 * and sleep. We can avoid taking the lock if the ticket was never added to
385 * This is a new transaction on the ticket, so we need to change the xfs_log_regrant()
414 * If we are failing, make sure the ticket doesn't have any current xfs_log_regrant()
415 * reservations. We don't want to add this back when the ticket/ xfs_log_regrant()
424 * Reserve log space and return a ticket corresponding the reservation.
480 * If we are failing, make sure the ticket doesn't have any current xfs_log_reserve()
481 * reservations. We don't want to add this back when the ticket/ xfs_log_reserve()
498 * This routine is called when a user of a log manager ticket is done with
499 * the reservation. If the ticket was ever used, then a commit record for
502 * a given ticket. If the ticket was one with a permanent reservation, then
514 struct xlog_ticket *ticket, xfs_log_done()
524 * If we get an error, just continue and give back the log ticket. xfs_log_done()
526 (((ticket->t_flags & XLOG_TIC_INITED) == 0) && xfs_log_done()
527 (xlog_commit_record(log, ticket, iclog, &lsn)))) { xfs_log_done()
529 if (ticket->t_flags & XLOG_TIC_PERM_RESERV) { xfs_log_done()
535 if ((ticket->t_flags & XLOG_TIC_PERM_RESERV) == 0 || xfs_log_done()
537 trace_xfs_log_done_nonperm(log, ticket); xfs_log_done()
540 * Release ticket if not permanent reservation or a specific xfs_log_done()
543 xlog_ungrant_log_space(log, ticket); xfs_log_done()
544 xfs_log_ticket_put(ticket); xfs_log_done()
546 trace_xfs_log_done_perm(log, ticket); xfs_log_done()
548 xlog_regrant_reserve_log_space(log, ticket); xfs_log_done()
549 /* If this ticket was a permanent reservation and we aren't xfs_log_done()
553 ticket->t_flags |= XLOG_TIC_INITED; xfs_log_done()
720 * space grant counters are, we can initialise the permanent ticket xfs_log_mount()
1501 * ticket. Return the lsn of the commit record.
1506 struct xlog_ticket *ticket, xlog_commit_record()
1523 error = xlog_write(log, &vec, ticket, commitlsnp, iclog, xlog_commit_record()
1964 struct xlog_ticket *ticket) xlog_print_tic_res()
1967 uint ophdr_spc = ticket->t_res_num_ophdrs * (uint)sizeof(xlog_op_header_t); xlog_print_tic_res()
2043 ((ticket->t_trans_type <= 0 || xlog_print_tic_res()
2044 ticket->t_trans_type > XFS_TRANS_TYPE_MAX) ? xlog_print_tic_res()
2045 "bad-trans-type" : trans_type_str[ticket->t_trans_type-1]), xlog_print_tic_res()
2046 ticket->t_trans_type, xlog_print_tic_res()
2047 ticket->t_unit_res, xlog_print_tic_res()
2048 ticket->t_curr_res, xlog_print_tic_res()
2049 ticket->t_res_arr_sum, ticket->t_res_o_flow, xlog_print_tic_res()
2050 ticket->t_res_num_ophdrs, ophdr_spc, xlog_print_tic_res()
2051 ticket->t_res_arr_sum + xlog_print_tic_res()
2052 ticket->t_res_o_flow + ophdr_spc, xlog_print_tic_res()
2053 ticket->t_res_num); xlog_print_tic_res()
2055 for (i = 0; i < ticket->t_res_num; i++) { xlog_print_tic_res()
2056 uint r_type = ticket->t_res_arr[i].r_type; xlog_print_tic_res()
2060 ticket->t_res_arr[i].r_len); xlog_print_tic_res()
2074 struct xlog_ticket *ticket, xlog_write_calc_vec_length()
2083 if (ticket->t_flags & XLOG_TIC_INITED) xlog_write_calc_vec_length()
2097 xlog_tic_add_region(ticket, vecp->i_len, vecp->i_type); xlog_write_calc_vec_length()
2101 ticket->t_res_num_ophdrs += headers; xlog_write_calc_vec_length()
2114 struct xlog_ticket *ticket) xlog_write_start_rec()
2116 if (!(ticket->t_flags & XLOG_TIC_INITED)) xlog_write_start_rec()
2119 ophdr->oh_tid = cpu_to_be32(ticket->t_tid); xlog_write_start_rec()
2120 ophdr->oh_clientid = ticket->t_clientid; xlog_write_start_rec()
2125 ticket->t_flags &= ~XLOG_TIC_INITED; xlog_write_start_rec()
2134 struct xlog_ticket *ticket, xlog_write_setup_ophdr()
2137 ophdr->oh_tid = cpu_to_be32(ticket->t_tid); xlog_write_setup_ophdr()
2138 ophdr->oh_clientid = ticket->t_clientid; xlog_write_setup_ophdr()
2156 "Bad XFS transaction clientid 0x%x in ticket 0x%p", xlog_write_setup_ophdr()
2157 ophdr->oh_clientid, ticket); xlog_write_setup_ophdr()
2172 struct xlog_ticket *ticket, xlog_write_setup_copy()
2207 ticket->t_curr_res -= sizeof(struct xlog_op_header); xlog_write_setup_copy()
2208 ticket->t_res_num_ophdrs++; xlog_write_setup_copy()
2302 struct xlog_ticket *ticket, xlog_write()
2321 len = xlog_write_calc_vec_length(ticket, log_vector); xlog_write()
2328 if (ticket->t_flags & XLOG_TIC_INITED) xlog_write()
2329 ticket->t_curr_res -= sizeof(xlog_op_header_t); xlog_write()
2336 ticket->t_curr_res -= sizeof(xlog_op_header_t); xlog_write()
2338 if (ticket->t_curr_res < 0) xlog_write()
2339 xlog_print_tic_res(log->l_mp, ticket); xlog_write()
2348 error = xlog_state_get_iclog_space(log, len, &iclog, ticket, xlog_write()
2383 start_rec_copy = xlog_write_start_rec(ptr, ticket); xlog_write()
2390 ophdr = xlog_write_setup_ophdr(log, ptr, ticket, flags); xlog_write()
2397 len += xlog_write_setup_copy(ticket, ophdr, xlog_write()
2878 struct xlog_ticket *ticket, xlog_state_get_iclog_space()
2914 ticket->t_curr_res -= log->l_iclog_hsize; xlog_state_get_iclog_space()
2915 xlog_tic_add_region(ticket, xlog_state_get_iclog_space()
2987 struct xlog_ticket *ticket) xlog_regrant_reserve_log_space()
2989 trace_xfs_log_regrant_reserve_enter(log, ticket); xlog_regrant_reserve_log_space()
2991 if (ticket->t_cnt > 0) xlog_regrant_reserve_log_space()
2992 ticket->t_cnt--; xlog_regrant_reserve_log_space()
2995 ticket->t_curr_res); xlog_regrant_reserve_log_space()
2997 ticket->t_curr_res); xlog_regrant_reserve_log_space()
2998 ticket->t_curr_res = ticket->t_unit_res; xlog_regrant_reserve_log_space()
2999 xlog_tic_reset_res(ticket); xlog_regrant_reserve_log_space()
3001 trace_xfs_log_regrant_reserve_sub(log, ticket); xlog_regrant_reserve_log_space()
3004 if (ticket->t_cnt > 0) xlog_regrant_reserve_log_space()
3008 ticket->t_unit_res); xlog_regrant_reserve_log_space()
3010 trace_xfs_log_regrant_reserve_exit(log, ticket); xlog_regrant_reserve_log_space()
3012 ticket->t_curr_res = ticket->t_unit_res; xlog_regrant_reserve_log_space()
3013 xlog_tic_reset_res(ticket); xlog_regrant_reserve_log_space()
3023 * space remaining in the current reservation part of the ticket. If the
3024 * ticket contains a permanent reservation, there may be left over space which
3034 struct xlog_ticket *ticket) xlog_ungrant_log_space()
3038 if (ticket->t_cnt > 0) xlog_ungrant_log_space()
3039 ticket->t_cnt--; xlog_ungrant_log_space()
3041 trace_xfs_log_ungrant_enter(log, ticket); xlog_ungrant_log_space()
3042 trace_xfs_log_ungrant_sub(log, ticket); xlog_ungrant_log_space()
3045 * If this is a permanent reservation ticket, we may be able to free xlog_ungrant_log_space()
3048 bytes = ticket->t_curr_res; xlog_ungrant_log_space()
3049 if (ticket->t_cnt > 0) { xlog_ungrant_log_space()
3050 ASSERT(ticket->t_flags & XLOG_TIC_PERM_RESERV); xlog_ungrant_log_space()
3051 bytes += ticket->t_unit_res*ticket->t_cnt; xlog_ungrant_log_space()
3057 trace_xfs_log_ungrant_exit(log, ticket); xlog_ungrant_log_space()
3494 * Free a used ticket when its refcount falls to zero.
3498 xlog_ticket_t *ticket) xfs_log_ticket_put()
3500 ASSERT(atomic_read(&ticket->t_ref) > 0); xfs_log_ticket_put()
3501 if (atomic_dec_and_test(&ticket->t_ref)) xfs_log_ticket_put()
3502 kmem_zone_free(xfs_log_ticket_zone, ticket); xfs_log_ticket_put()
3507 xlog_ticket_t *ticket) xfs_log_ticket_get()
3509 ASSERT(atomic_read(&ticket->t_ref) > 0); xfs_log_ticket_get()
3510 atomic_inc(&ticket->t_ref); xfs_log_ticket_get()
3511 return ticket; xfs_log_ticket_get()
3516 * required for a log ticket.
3612 * Allocate and initialise a new log ticket.
512 xfs_log_done( struct xfs_mount *mp, struct xlog_ticket *ticket, struct xlog_in_core **iclog, uint flags) xfs_log_done() argument
1504 xlog_commit_record( struct xlog *log, struct xlog_ticket *ticket, struct xlog_in_core **iclog, xfs_lsn_t *commitlsnp) xlog_commit_record() argument
1962 xlog_print_tic_res( struct xfs_mount *mp, struct xlog_ticket *ticket) xlog_print_tic_res() argument
2073 xlog_write_calc_vec_length( struct xlog_ticket *ticket, struct xfs_log_vec *log_vector) xlog_write_calc_vec_length() argument
2112 xlog_write_start_rec( struct xlog_op_header *ophdr, struct xlog_ticket *ticket) xlog_write_start_rec() argument
2131 xlog_write_setup_ophdr( struct xlog *log, struct xlog_op_header *ophdr, struct xlog_ticket *ticket, uint flags) xlog_write_setup_ophdr() argument
2171 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
2299 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) xlog_write() argument
2874 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 xlog_regrant_reserve_log_space( struct xlog *log, struct xlog_ticket *ticket) xlog_regrant_reserve_log_space() argument
3032 xlog_ungrant_log_space( struct xlog *log, struct xlog_ticket *ticket) xlog_ungrant_log_space() argument
3497 xfs_log_ticket_put( xlog_ticket_t *ticket) xfs_log_ticket_put() argument
3506 xfs_log_ticket_get( xlog_ticket_t *ticket) xfs_log_ticket_get() argument
H A Dxfs_log.h64 * CIL context ticket.
139 struct xlog_ticket *ticket,
170 struct xlog_ticket **ticket,
182 struct xlog_ticket *xfs_log_ticket_get(struct xlog_ticket *ticket);
183 void xfs_log_ticket_put(struct xlog_ticket *ticket);
H A Dxfs_log_cil.c35 * Allocate a new ticket. Failing to get a new ticket makes it really hard to
40 * We don't reserve any space for the ticket - we are going to steal whatever
42 * the space required, we need to set the current reservation of the ticket to
69 * Here we allocate a log ticket to track space usage during a CIL push. This
70 * ticket is passed to xlog_write() directly so that we don't slowly leak log
78 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); xlog_cil_init_post_recovery()
272 * consumed by the item. Add the space to the checkpoint ticket and calculate
274 * as well. Remove the amount of space we added to the checkpoint ticket from
275 * the current transaction ticket so that the accounting works out correctly.
322 * Now transfer enough transaction reservation to the context ticket xlog_cil_insert_items()
323 * for the checkpoint. The context ticket is special - the unit xlog_cil_insert_items()
328 if (ctx->ticket->t_curr_res == 0) { xlog_cil_insert_items()
329 ctx->ticket->t_curr_res = ctx->ticket->t_unit_res; xlog_cil_insert_items()
330 tp->t_ticket->t_curr_res -= ctx->ticket->t_unit_res; xlog_cil_insert_items()
342 ctx->ticket->t_unit_res += hdrs; xlog_cil_insert_items()
343 ctx->ticket->t_curr_res += hdrs; xlog_cil_insert_items()
446 new_ctx->ticket = xlog_cil_ticket_alloc(log); xlog_cil_push()
574 tic = ctx->ticket; xlog_cil_push()
626 /* xfs_log_done always frees the ticket on error. */ xlog_cil_push()
653 xfs_log_ticket_put(new_ctx->ticket); xlog_cil_push()
990 if (log->l_cilp->xc_ctx->ticket) xlog_cil_destroy()
991 xfs_log_ticket_put(log->l_cilp->xc_ctx->ticket); xlog_cil_destroy()
H A Dxfs_log_priv.h69 * Flags to log ticket
168 struct task_struct *t_task; /* task that owns this ticket */
170 atomic_t t_ref; /* ticket reference count : 4 */
253 struct xlog_ticket *ticket; /* chkpt ticket */ member in struct:xfs_cil_ctx
311 * logged in order to prevent checkpoint ticket overruns.
321 * transaction ticket is transferred to the CIL ctx commit ticket to cover the
325 * checkpoint transaction ticket is specific to the checkpoint context, rather
344 * ticket grant locks, queues and accounting have their own cachlines
452 void xlog_print_tic_res(struct xfs_mount *mp, struct xlog_ticket *ticket);
540 * Unmount record type is used as a pseudo transaction type for the ticket.
H A Dxfs_trans.h100 struct xlog_ticket *t_ticket; /* log mgr ticket */
H A Dxfs_trans.c1081 * transaction commit worked ok so we can drop the extra ticket xfs_trans_roll()
H A Dxfs_bmap_util.c109 * transaction commit worked ok so we can drop the extra ticket xfs_bmap_finish()
H A Dxfs_inode.c1011 * transaction commit worked ok so we can drop the extra ticket xfs_dir_ialloc()
1634 * Transaction commit worked ok so we can drop the extra ticket xfs_itruncate_extents()
/linux-4.1.27/net/rxrpc/
H A Dar-key.c131 memcpy(&token->kad->ticket, &xdr[8], tktlen); rxrpc_preparse_xdr_rxkad()
145 token->kad->ticket[0], token->kad->ticket[1], rxrpc_preparse_xdr_rxkad()
146 token->kad->ticket[2], token->kad->ticket[3], rxrpc_preparse_xdr_rxkad()
147 token->kad->ticket[4], token->kad->ticket[5], rxrpc_preparse_xdr_rxkad()
148 token->kad->ticket[6], token->kad->ticket[7]); rxrpc_preparse_xdr_rxkad()
205 kfree(rxk5->ticket); rxrpc_rxk5_free()
382 * extract a krb5 ticket
402 _debug("ticket len %u", len); rxrpc_krb5_decode_ticket()
499 ret = rxrpc_krb5_decode_ticket(&rxk5->ticket, &rxk5->ticket_len, rxrpc_preparse_xdr_rxk5()
676 * 6 2 ticket length
680 * 24 [len] ticket
739 v1->ticket[0], v1->ticket[1], rxrpc_preparse()
740 v1->ticket[2], v1->ticket[3], rxrpc_preparse()
741 v1->ticket[4], v1->ticket[5], rxrpc_preparse()
742 v1->ticket[6], v1->ticket[7]); rxrpc_preparse()
764 memcpy(&token->kad->ticket, v1->ticket, v1->ticket_length); rxrpc_preparse()
1112 default: /* we have a ticket we can't encode */ rxrpc_read()
1180 ENCODE_DATA(token->kad->ticket_len, token->kad->ticket); rxrpc_read()
1214 ENCODE_DATA(token->k5->ticket_len, token->k5->ticket); rxrpc_read()
H A Drxkad.c658 iov[2].iov_base = (void *) s2->ticket; rxkad_send_response()
817 * decrypt the kerberos IV ticket in the response
820 void *ticket, size_t ticket_len, rxkad_decrypt_ticket()
852 ASSERTCMP((unsigned long) ticket & 7UL, ==, 0); rxkad_decrypt_ticket()
860 sg_init_one(&sg[0], ticket, ticket_len); rxkad_decrypt_ticket()
863 p = ticket; rxkad_decrypt_ticket()
879 /* extract the ticket flags */ rxkad_decrypt_ticket()
899 /* get the IPv4 address of the entity that requested the ticket */ rxkad_decrypt_ticket()
904 /* get the session key from the ticket */ rxkad_decrypt_ticket()
910 /* get the ticket's lifetime */ rxkad_decrypt_ticket()
914 /* get the issue time of the ticket */ rxkad_decrypt_ticket()
928 /* check the ticket is in date */ rxkad_decrypt_ticket()
1007 void *ticket; rxkad_verify_response() local
1039 /* extract the kerberos ticket and decrypt and decode it */ rxkad_verify_response()
1040 ticket = kmalloc(ticket_len, GFP_NOFS); rxkad_verify_response()
1041 if (!ticket) rxkad_verify_response()
1045 if (skb_copy_bits(skb, 0, ticket, ticket_len) < 0) rxkad_verify_response()
1048 ret = rxkad_decrypt_ticket(conn, ticket, ticket_len, &session_key, rxkad_verify_response()
1052 kfree(ticket); rxkad_verify_response()
1056 /* use the session key from inside the ticket to decrypt the rxkad_verify_response()
1094 kfree(ticket); rxkad_verify_response()
1098 kfree(ticket); rxkad_verify_response()
1103 kfree(ticket); rxkad_verify_response()
819 rxkad_decrypt_ticket(struct rxrpc_connection *conn, void *ticket, size_t ticket_len, struct rxrpc_crypt *_session_key, time_t *_expiry, u32 *_abort_code) rxkad_decrypt_ticket() argument
/linux-4.1.27/include/rxrpc/
H A Dpacket.h167 __be32 ticket_len; /* Kerberos ticket length */
204 #define RXKADTICKETLEN 19270403 /* ticket length too short or too long */
208 #define RXKADBADTICKET 19270407 /* security object was passed a bad ticket */
209 #define RXKADUNKNOWNKEY 19270408 /* ticket contained unknown key version number */
/linux-4.1.27/drivers/gpu/drm/msm/
H A Dmsm_gem_submit.c52 ww_acquire_init(&submit->ticket, &reservation_ww_class); submit_create()
157 &submit->ticket); submit_validate_objects()
188 ww_acquire_done(&submit->ticket); submit_validate_objects()
203 &submit->ticket); submit_validate_objects()
316 ww_acquire_fini(&submit->ticket); submit_cleanup()
H A Dmsm_gem.h100 struct ww_acquire_ctx ticket; member in struct:msm_gem_submit
/linux-4.1.27/fs/xfs/libxfs/
H A Dxfs_trans_resv.h27 uint tr_logres; /* log space unit in bytes per log ticket */
28 int tr_logcount; /* number of log operations per log ticket */
/linux-4.1.27/arch/x86/include/asm/
H A Dspinlock.h18 * These are fair FIFO ticket locks, which support up to 2^16 CPUs.
54 __ticket_t ticket) __ticket_lock_spinning()
58 __ticket_t ticket) __ticket_unlock_kick()
53 __ticket_lock_spinning(arch_spinlock_t *lock, __ticket_t ticket) __ticket_lock_spinning() argument
57 __ticket_unlock_kick(arch_spinlock_t *lock, __ticket_t ticket) __ticket_unlock_kick() argument
H A Dparavirt.h716 __ticket_t ticket) __ticket_lock_spinning()
718 PVOP_VCALLEE2(pv_lock_ops.lock_spinning, lock, ticket); __ticket_lock_spinning()
722 __ticket_t ticket) __ticket_unlock_kick()
724 PVOP_VCALL2(pv_lock_ops.unlock_kick, lock, ticket); __ticket_unlock_kick()
715 __ticket_lock_spinning(struct arch_spinlock *lock, __ticket_t ticket) __ticket_lock_spinning() argument
721 __ticket_unlock_kick(struct arch_spinlock *lock, __ticket_t ticket) __ticket_unlock_kick() argument
H A Dparavirt_types.h338 void (*unlock_kick)(struct arch_spinlock *lock, __ticket_t ticket);
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_gem.c326 struct ww_acquire_ctx ticket; member in struct:validate_op
350 ttm_bo_unreserve_ticket(&nvbo->bo, &op->ticket); validate_fini_no_ticket()
360 ww_acquire_fini(&op->ticket); validate_fini()
377 ww_acquire_init(&op->ticket, &reservation_ww_class); validate_init()
410 ret = ttm_bo_reserve(&nvbo->bo, true, false, true, &op->ticket); validate_init()
418 &op->ticket); validate_init()
452 ww_acquire_done(&op->ticket); validate_init()
/linux-4.1.27/arch/x86/kernel/
H A Dkvm.c747 * may only be set non-NULL if the "want" ticket is correct. kvm_lock_spinning()
803 /* Kick vcpu waiting on @lock->head to reach value @ticket */ kvm_unlock_kick()
804 static void kvm_unlock_kick(struct arch_spinlock *lock, __ticket_t ticket) kvm_unlock_kick() argument
812 READ_ONCE(w->want) == ticket) { kvm_unlock_kick()
/linux-4.1.27/drivers/gpu/drm/qxl/
H A Dqxl_release.c267 ret = ttm_eu_reserve_buffers(&release->ticket, &release->bos, qxl_release_reserve_list()
277 ttm_eu_backoff_reservation(&release->ticket, &release->bos); qxl_release_reserve_list()
291 ttm_eu_backoff_reservation(&release->ticket, &release->bos); qxl_release_backoff_reserve_list()
474 ww_acquire_fini(&release->ticket); qxl_release_fence_buffer_objects()
H A Dqxl_drv.h198 struct ww_acquire_ctx ticket; member in struct:qxl_release
/linux-4.1.27/arch/mips/cavium-octeon/executive/
H A Dcvmx-cmd-queue.c189 * zero the ticket. cvmx_cmd_queue_initialize()
192 ticket[__cvmx_cmd_queue_get_index(queue_id)] = 0; cvmx_cmd_queue_initialize()
/linux-4.1.27/arch/ia64/mm/
H A Dtlb.c104 unsigned long ticket; member in struct:spinaphore
110 ss->ticket = 0; spinaphore_init()
116 unsigned long t = ia64_fetchadd(1, &ss->ticket, acq), serve; down_spin()
/linux-4.1.27/arch/arm64/include/asm/
H A Dspinlock.h40 /* Atomically increment the next ticket. */ arch_spin_lock()
/linux-4.1.27/arch/arm/include/asm/
H A Dspinlock.h46 * ARMv6 ticket-based spin-locking.
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_cs.c182 r = radeon_bo_list_validate(p->rdev, &p->ticket, &p->validated, p->ring); radeon_cs_parser_relocs()
413 ttm_eu_fence_buffer_objects(&parser->ticket, radeon_cs_parser_fini()
417 ttm_eu_backoff_reservation(&parser->ticket, radeon_cs_parser_fini()
H A Dradeon_gem.c539 struct ww_acquire_ctx ticket; radeon_gem_va_update_vm() local
554 r = ttm_eu_reserve_buffers(&ticket, &list, true, NULL); radeon_gem_va_update_vm()
578 ttm_eu_backoff_reservation(&ticket, &list); radeon_gem_va_update_vm()
H A Dradeon_object.c516 struct ww_acquire_ctx *ticket, radeon_bo_list_validate()
526 r = ttm_eu_reserve_buffers(ticket, head, true, &duplicates); radeon_bo_list_validate()
570 ttm_eu_backoff_reservation(ticket, head); list_for_each_entry()
515 radeon_bo_list_validate(struct radeon_device *rdev, struct ww_acquire_ctx *ticket, struct list_head *head, int ring) radeon_bo_list_validate() argument
H A Dradeon_object.h144 struct ww_acquire_ctx *ticket,
H A Dradeon.h1098 struct ww_acquire_ctx ticket; member in struct:radeon_cs_parser
/linux-4.1.27/arch/x86/xen/
H A Dspinlock.c138 * may only be set non-NULL if the "want" ticket is correct. xen_lock_spinning()
/linux-4.1.27/drivers/staging/olpc_dcon/
H A Dolpc_dcon.c356 * see http://dev.laptop.org/ticket/9664 dcon_source_switch()
755 * see http://dev.laptop.org/ticket/9869 dcon_interrupt()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_execbuf.c2437 struct ww_acquire_ctx ticket; vmw_execbuf_process() local
2494 ret = ttm_eu_reserve_buffers(&ticket, &sw_context->validate_nodes, vmw_execbuf_process()
2558 ttm_eu_fence_buffer_objects(&ticket, &sw_context->validate_nodes, vmw_execbuf_process()
2592 ttm_eu_backoff_reservation(&ticket, &sw_context->validate_nodes); vmw_execbuf_process()
2670 struct ww_acquire_ctx ticket; __vmw_execbuf_release_pinned_bo() local
2685 ret = ttm_eu_reserve_buffers(&ticket, &validate_list, __vmw_execbuf_release_pinned_bo()
2711 ttm_eu_fence_buffer_objects(&ticket, &validate_list, (void *) fence); __vmw_execbuf_release_pinned_bo()
2723 ttm_eu_backoff_reservation(&ticket, &validate_list); __vmw_execbuf_release_pinned_bo()
/linux-4.1.27/arch/x86/platform/olpc/
H A Dolpc.c343 * <http://dev.laptop.org/ticket/1835>. olpc_xo1_ec_suspend()
H A Dolpc-xo1-sci.c110 * odd, to say the least. See http://dev.laptop.org/ticket/5703 detect_lid_state()
/linux-4.1.27/kernel/rcu/
H A Dtree.h466 atomic_long_t expedited_start; /* Starting ticket. */
467 atomic_long_t expedited_done; /* Done ticket. */
H A Dtree.c3249 * This implementation can be thought of as an application of ticket
3252 * of the ticket-lock word. Each task atomically increments
3296 * Take a ticket. Note that atomic_inc_return() implies a synchronize_sched_expedited()
/linux-4.1.27/fs/jffs2/
H A Dsummary.c444 /* This should never happen, but https://dev.laptop.org/ticket/4184 */ jffs2_sum_process_sum_data()
H A Dwrite.c228 occasion: https://dev.laptop.org/ticket/4184 */ jffs2_write_dirent()
/linux-4.1.27/fs/afs/
H A Dinternal.h389 struct key *key; /* RxRPC ticket holding a security context */
H A Dfsclient.c64 EXTRACT(status->caller_access); /* call ticket dependent */ xdr_decode_AFSFetchStatus()
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Db44.c412 * see https://dev.openwrt.org/ticket/146 b44_wap54g10_workaround()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Dphy.c412 * "http://madwifi-project.org/ticket/1659"

Completed in 1461 milliseconds