Lines Matching refs:tail
76 old.tickets.tail = new.tickets.head + TICKET_LOCK_INC; in __ticket_check_and_clear_slowpath()
77 new.tickets.tail = old.tickets.tail; in __ticket_check_and_clear_slowpath()
86 return __tickets_equal(lock.tickets.head, lock.tickets.tail); in arch_spin_value_unlocked()
104 register struct __raw_tickets inc = { .tail = TICKET_LOCK_INC }; in arch_spin_lock()
107 if (likely(inc.head == inc.tail)) in arch_spin_lock()
115 if (__tickets_equal(inc.head, inc.tail)) in arch_spin_lock()
119 __ticket_lock_spinning(lock, inc.tail); in arch_spin_lock()
132 if (!__tickets_equal(old.tickets.head, old.tickets.tail)) in arch_spin_trylock()
164 return !__tickets_equal(tmp.tail, tmp.head); in arch_spin_is_locked()
172 return (__ticket_t)(tmp.tail - tmp.head) > TICKET_LOCK_INC; in arch_spin_is_contended()
192 if (__tickets_equal(tmp.head, tmp.tail) || in arch_spin_unlock_wait()