Searched refs:ticket (Results 1 – 11 of 11) sorted by relevance
/arch/ia64/include/asm/ |
D | spinlock.h | 42 int *p = (int *)&lock->lock, ticket, serve; in __ticket_spin_lock() local 44 ticket = ia64_fetchadd(1, p, acq); in __ticket_spin_lock() 46 if (!(((ticket >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) in __ticket_spin_lock() 54 if (!(((serve >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) in __ticket_spin_lock() 79 int *p = (int *)&lock->lock, ticket; in __ticket_spin_unlock_wait() local 84 asm volatile ("ld4.c.nc %0=[%1]" : "=r"(ticket) : "r"(p) : "memory"); in __ticket_spin_unlock_wait() 85 if (!(((ticket >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) in __ticket_spin_unlock_wait()
|
/arch/mips/include/asm/ |
D | spinlock_types.h | 20 u16 ticket; member 24 u16 ticket;
|
D | spinlock.h | 47 return lock.h.serving_now == lock.h.ticket; in arch_spin_value_unlocked() 99 [ticket] "=&r" (tmp), in arch_spin_lock() 132 [ticket] "=&r" (tmp), in arch_spin_lock() 173 [ticket] "=&r" (tmp), in arch_spin_trylock() 197 [ticket] "=&r" (tmp), in arch_spin_trylock()
|
/arch/tile/include/asm/ |
D | spinlock_64.h | 72 u32 ticket = val & (__ARCH_SPIN_NEXT_MASK | __ARCH_SPIN_NEXT_OVERFLOW); in arch_spin_lock() local 73 if (unlikely(arch_spin_current(val) != ticket)) in arch_spin_lock() 74 arch_spin_lock_slow(lock, ticket); in arch_spin_lock()
|
/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()
|
/arch/x86/include/asm/ |
D | spinlock.h | 58 __ticket_t ticket) in __ticket_lock_spinning() argument 62 __ticket_t ticket) in __ticket_unlock_kick() argument
|
D | paravirt.h | 717 __ticket_t ticket) in __ticket_lock_spinning() argument 719 PVOP_VCALLEE2(pv_lock_ops.lock_spinning, lock, ticket); in __ticket_lock_spinning() 723 __ticket_t ticket) in __ticket_unlock_kick() argument 725 PVOP_VCALL2(pv_lock_ops.unlock_kick, lock, ticket); in __ticket_unlock_kick()
|
D | paravirt_types.h | 341 void (*unlock_kick)(struct arch_spinlock *lock, __ticket_t ticket);
|
/arch/ia64/mm/ |
D | tlb.c | 104 unsigned long ticket; member 110 ss->ticket = 0; in spinaphore_init() 116 unsigned long t = ia64_fetchadd(1, &ss->ticket, acq), serve; in down_spin()
|
/arch/mips/cavium-octeon/executive/ |
D | cvmx-cmd-queue.c | 192 ticket[__cvmx_cmd_queue_get_index(queue_id)] = 0; in cvmx_cmd_queue_initialize()
|
/arch/x86/kernel/ |
D | kvm.c | 839 static void kvm_unlock_kick(struct arch_spinlock *lock, __ticket_t ticket) in kvm_unlock_kick() argument 847 READ_ONCE(w->want) == ticket) { in kvm_unlock_kick()
|