Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 2 of 2) sorted by relevance

/sof-3.4.0/xtos/include/rtos/
Dmutex.h25 static inline int k_mutex_init(struct k_mutex *mutex) in k_mutex_init() argument
27 k_spinlock_init(&mutex->lock); in k_mutex_init()
31 static inline int k_mutex_lock(struct k_mutex *mutex, k_timeout_t timeout) in k_mutex_lock() argument
33 mutex->key = k_spin_lock(&mutex->lock); in k_mutex_lock()
37 static inline int k_mutex_unlock(struct k_mutex *mutex) in k_mutex_unlock() argument
39 k_spin_unlock(&mutex->lock, mutex->key); in k_mutex_unlock()
/sof-3.4.0/src/include/sof/
Dcoherent.h62 struct k_mutex mutex; member
220 k_mutex_lock(&c->mutex, K_FOREVER); in coherent_acquire_thread()
248 k_mutex_unlock(&uc->mutex); in coherent_release_thread()
265 k_mutex_init(&c->mutex); in __coherent_init_thread()
286 k_mutex_lock(&c->mutex, K_FOREVER); in __coherent_shared_thread()
289 k_mutex_unlock(&c->mutex); in __coherent_shared_thread()
383 k_mutex_lock(&c->mutex, K_FOREVER); in coherent_acquire_thread()
401 k_mutex_unlock(&uc->mutex); in coherent_release_thread()
418 k_mutex_init(&c->mutex); in __coherent_init_thread()
431 k_mutex_lock(&c->mutex, K_FOREVER); in __coherent_shared_thread()
[all …]