Home
last modified time | relevance | path

Searched refs:tickets (Results 1 – 4 of 4) sorted by relevance

/arch/csky/include/asm/
Dspinlock.h29 while (lockval.tickets.next != lockval.tickets.owner) in arch_spin_lock()
30 lockval.tickets.owner = READ_ONCE(lock->tickets.owner); in arch_spin_lock()
66 WRITE_ONCE(lock->tickets.owner, lock->tickets.owner + 1); in arch_spin_unlock()
71 return lock.tickets.owner == lock.tickets.next; in arch_spin_value_unlocked()
81 struct __raw_tickets tickets = READ_ONCE(lock->tickets); in arch_spin_is_contended() local
83 return (tickets.next - tickets.owner) > 1; in arch_spin_is_contended()
Dspinlock_types.h19 } tickets; member
/arch/arm/include/asm/
Dspinlock.h73 while (lockval.tickets.next != lockval.tickets.owner) { in arch_spin_lock()
75 lockval.tickets.owner = READ_ONCE(lock->tickets.owner); in arch_spin_lock()
110 lock->tickets.owner++; in arch_spin_unlock()
116 return lock.tickets.owner == lock.tickets.next; in arch_spin_value_unlocked()
126 struct __raw_tickets tickets = READ_ONCE(lock->tickets); in arch_spin_is_contended() local
127 return (tickets.next - tickets.owner) > 1; in arch_spin_is_contended()
Dspinlock_types.h22 } tickets; member