Home
last modified time | relevance | path

Searched refs:ticket (Results 1 – 11 of 11) sorted by relevance

/arch/ia64/include/asm/
Dspinlock.h42 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/
Dspinlock_types.h20 u16 ticket; member
24 u16 ticket;
Dspinlock.h47 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/
Dspinlock_64.h72 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/
Dcvmx-cmd-queue.h154 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/
Dspinlock.h58 __ticket_t ticket) in __ticket_lock_spinning() argument
62 __ticket_t ticket) in __ticket_unlock_kick() argument
Dparavirt.h717 __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()
Dparavirt_types.h341 void (*unlock_kick)(struct arch_spinlock *lock, __ticket_t ticket);
/arch/ia64/mm/
Dtlb.c104 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/
Dcvmx-cmd-queue.c192 ticket[__cvmx_cmd_queue_get_index(queue_id)] = 0; in cvmx_cmd_queue_initialize()
/arch/x86/kernel/
Dkvm.c839 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()