Lines Matching refs:lock

62 		ret = k_sem_take(&pm->lock, k_is_in_isr() ? K_NO_WAIT : K_FOREVER);  in runtime_suspend()
96 k_sem_give(&pm->lock); in runtime_suspend()
110 (void)k_sem_take(&pm->lock, K_FOREVER); in runtime_suspend_work()
118 k_sem_give(&pm->lock); in runtime_suspend_work()
186 k_spinlock_key_t k = k_spin_lock(&pm_sync->lock); in pm_device_runtime_get()
189 k_spin_unlock(&pm_sync->lock, k); in pm_device_runtime_get()
194 ret = k_sem_take(&pm->lock, k_is_in_isr() ? K_NO_WAIT : K_FOREVER); in pm_device_runtime_get()
246 k_sem_give(&pm->lock); in pm_device_runtime_get()
250 (void)k_sem_take(&pm->lock, K_FOREVER); in pm_device_runtime_get()
268 k_sem_give(&pm->lock); in pm_device_runtime_get()
328 k_spinlock_key_t k = k_spin_lock(&pm_sync->lock); in pm_device_runtime_put()
332 k_spin_unlock(&pm_sync->lock, k); in pm_device_runtime_put()
360 k_spinlock_key_t k = k_spin_lock(&pm_sync->lock); in pm_device_runtime_put_async()
364 k_spin_unlock(&pm_sync->lock, k); in pm_device_runtime_put_async()
389 k_spinlock_key_t k = k_spin_lock(&pm->lock); in runtime_enable_sync()
405 k_spin_unlock(&pm->lock, k); in runtime_enable_sync()
436 (void)k_sem_take(&pm->lock, K_FOREVER); in pm_device_runtime_enable()
459 k_sem_give(&pm->lock); in pm_device_runtime_enable()
471 k_spinlock_key_t k = k_spin_lock(&pm->lock); in runtime_disable_sync()
486 k_spin_unlock(&pm->lock, k); in runtime_disable_sync()
512 (void)k_sem_take(&pm->lock, K_FOREVER); in pm_device_runtime_disable()
525 k_sem_give(&pm->lock); in pm_device_runtime_disable()
529 (void)k_sem_take(&pm->lock, K_FOREVER); in pm_device_runtime_disable()
548 k_sem_give(&pm->lock); in pm_device_runtime_disable()