Lines Matching refs:tickets
53 set_bit(0, (volatile unsigned long *)&lock->tickets.head); in __ticket_enter_slowpath()
78 old.tickets.head = head; in __ticket_check_and_clear_slowpath()
79 new.tickets.head = head & ~TICKET_SLOWPATH_FLAG; in __ticket_check_and_clear_slowpath()
80 old.tickets.tail = new.tickets.head + TICKET_LOCK_INC; in __ticket_check_and_clear_slowpath()
81 new.tickets.tail = old.tickets.tail; in __ticket_check_and_clear_slowpath()
90 return __tickets_equal(lock.tickets.head, lock.tickets.tail); in arch_spin_value_unlocked()
110 inc = xadd(&lock->tickets, inc); in arch_spin_lock()
118 inc.head = READ_ONCE(lock->tickets.head); in arch_spin_lock()
135 old.tickets = READ_ONCE(lock->tickets); in arch_spin_trylock()
136 if (!__tickets_equal(old.tickets.head, old.tickets.tail)) in arch_spin_trylock()
154 head = xadd(&lock->tickets.head, TICKET_LOCK_INC); in arch_spin_unlock()
161 __add(&lock->tickets.head, TICKET_LOCK_INC, UNLOCK_LOCK_PREFIX); in arch_spin_unlock()
166 struct __raw_tickets tmp = READ_ONCE(lock->tickets); in arch_spin_is_locked()
173 struct __raw_tickets tmp = READ_ONCE(lock->tickets); in arch_spin_is_contended()
188 __ticket_t head = READ_ONCE(lock->tickets.head); in arch_spin_unlock_wait()
191 struct __raw_tickets tmp = READ_ONCE(lock->tickets); in arch_spin_unlock_wait()