Searched refs:mutex (Results 1 – 2 of 2) sorted by relevance
25 static inline int k_mutex_init(struct k_mutex *mutex) in k_mutex_init() argument27 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() argument33 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() argument39 k_spin_unlock(&mutex->lock, mutex->key); in k_mutex_unlock()
62 struct k_mutex mutex; member220 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 …]