Lines Matching refs:tickets
49 set_bit(0, (volatile unsigned long *)&lock->tickets.head); in __ticket_enter_slowpath()
74 old.tickets.head = head; in __ticket_check_and_clear_slowpath()
75 new.tickets.head = head & ~TICKET_SLOWPATH_FLAG; in __ticket_check_and_clear_slowpath()
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()
106 inc = xadd(&lock->tickets, inc); in arch_spin_lock()
114 inc.head = READ_ONCE(lock->tickets.head); in arch_spin_lock()
131 old.tickets = READ_ONCE(lock->tickets); in arch_spin_trylock()
132 if (!__tickets_equal(old.tickets.head, old.tickets.tail)) in arch_spin_trylock()
150 head = xadd(&lock->tickets.head, TICKET_LOCK_INC); in arch_spin_unlock()
157 __add(&lock->tickets.head, TICKET_LOCK_INC, UNLOCK_LOCK_PREFIX); in arch_spin_unlock()
162 struct __raw_tickets tmp = READ_ONCE(lock->tickets); in arch_spin_is_locked()
169 struct __raw_tickets tmp = READ_ONCE(lock->tickets); in arch_spin_is_contended()
184 __ticket_t head = READ_ONCE(lock->tickets.head); in arch_spin_unlock_wait()
187 struct __raw_tickets tmp = READ_ONCE(lock->tickets); in arch_spin_unlock_wait()