Lines Matching refs:lock
119 struct k_mutex *lock = NULL; in zep_shim_spinlock_alloc() local
121 lock = k_malloc(sizeof(*lock)); in zep_shim_spinlock_alloc()
123 if (!lock) { in zep_shim_spinlock_alloc()
127 return lock; in zep_shim_spinlock_alloc()
130 static void zep_shim_spinlock_free(void *lock) in zep_shim_spinlock_free() argument
132 k_free(lock); in zep_shim_spinlock_free()
135 static void zep_shim_spinlock_init(void *lock) in zep_shim_spinlock_init() argument
137 k_mutex_init(lock); in zep_shim_spinlock_init()
140 static void zep_shim_spinlock_take(void *lock) in zep_shim_spinlock_take() argument
142 k_mutex_lock(lock, K_FOREVER); in zep_shim_spinlock_take()
145 static void zep_shim_spinlock_rel(void *lock) in zep_shim_spinlock_rel() argument
147 k_mutex_unlock(lock); in zep_shim_spinlock_rel()
150 static void zep_shim_spinlock_irq_take(void *lock, unsigned long *flags) in zep_shim_spinlock_irq_take() argument
153 k_mutex_lock(lock, K_FOREVER); in zep_shim_spinlock_irq_take()
156 static void zep_shim_spinlock_irq_rel(void *lock, unsigned long *flags) in zep_shim_spinlock_irq_rel() argument
159 k_mutex_unlock(lock); in zep_shim_spinlock_irq_rel()