Lines Matching refs:key
77 static ALWAYS_INLINE unsigned int do_swap(unsigned int key, in do_swap() argument
98 __ASSERT(arch_irq_unlocked(key) || in do_swap()
172 arch_irq_unlock(key); in do_swap()
174 irq_unlock(key); in do_swap()
180 static inline int z_swap_irqlock(unsigned int key) in z_swap_irqlock() argument
182 return do_swap(key, NULL, false); in z_swap_irqlock()
185 static inline int z_swap(struct k_spinlock *lock, k_spinlock_key_t key) in z_swap() argument
187 return do_swap(key.key, lock, true); in z_swap()
197 extern int arch_swap(unsigned int key);
204 static inline int z_swap_irqlock(unsigned int key) in z_swap_irqlock() argument
208 ret = arch_swap(key); in z_swap_irqlock()
216 static ALWAYS_INLINE int z_swap(struct k_spinlock *lock, k_spinlock_key_t key) in z_swap() argument
219 return z_swap_irqlock(key.key); in z_swap()