Lines Matching refs:l
36 static inline size_t posix_spinlock_to_offset(struct k_spinlock *l) in posix_spinlock_to_offset() argument
38 return (union _spinlock_storage *)l - posix_spinlock_pool; in posix_spinlock_to_offset()
99 struct k_spinlock *l; in pthread_spin_destroy() local
101 l = get_posix_spinlock(lock); in pthread_spin_destroy()
102 if (l == NULL) { in pthread_spin_destroy()
107 bit = posix_spinlock_to_offset(l); in pthread_spin_destroy()
117 struct k_spinlock *l; in pthread_spin_lock() local
119 l = get_posix_spinlock(lock); in pthread_spin_lock()
120 if (l == NULL) { in pthread_spin_lock()
125 bit = posix_spinlock_to_offset(l); in pthread_spin_lock()
126 posix_spinlock_key[bit] = k_spin_lock(l); in pthread_spin_lock()
134 struct k_spinlock *l; in pthread_spin_trylock() local
136 l = get_posix_spinlock(lock); in pthread_spin_trylock()
137 if (l == NULL) { in pthread_spin_trylock()
142 bit = posix_spinlock_to_offset(l); in pthread_spin_trylock()
143 return k_spin_trylock(l, &posix_spinlock_key[bit]); in pthread_spin_trylock()
149 struct k_spinlock *l; in pthread_spin_unlock() local
151 l = get_posix_spinlock(lock); in pthread_spin_unlock()
152 if (l == NULL) { in pthread_spin_unlock()
157 bit = posix_spinlock_to_offset(l); in pthread_spin_unlock()
158 k_spin_unlock(l, posix_spinlock_key[bit]); in pthread_spin_unlock()