Searched refs:TICKET_SHIFT (Results 1 – 3 of 3) sorted by relevance
39 #define TICKET_SHIFT 17 macro49 if (!(((ticket >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) in __ticket_spin_lock()57 if (!(((serve >> TICKET_SHIFT) ^ ticket) & TICKET_MASK)) in __ticket_spin_lock()67 if (!(((tmp >> TICKET_SHIFT) ^ tmp) & TICKET_MASK)) in __ticket_spin_trylock()86 return !!(((tmp >> TICKET_SHIFT) ^ tmp) & TICKET_MASK); in __ticket_spin_is_locked()93 return ((tmp - (tmp >> TICKET_SHIFT)) & TICKET_MASK) > 1; in __ticket_spin_is_contended()98 return !(((lock.lock >> TICKET_SHIFT) ^ lock.lock) & TICKET_MASK); in arch_spin_value_unlocked()
70 : "r" (&lock->slock), "I" (1 << TICKET_SHIFT) in arch_spin_lock()95 : "r" (&lock->slock), "I" (1 << TICKET_SHIFT) in arch_spin_trylock()
9 #define TICKET_SHIFT 16 macro