Lines Matching refs:lock
44 struct k_sem lock; member
64 struct k_mutex lock; member
205 k_sem_give(&ctx->lock); in mspi_context_release()
212 if (!k_sem_count_get(&ctx->lock)) { in mspi_context_unlock_unconditionally()
214 k_sem_give(&ctx->lock); in mspi_context_unlock_unconditionally()
227 if ((k_sem_count_get(&ctx->lock) == 0) && !lockon && in mspi_context_lock()
232 if (k_sem_take(&ctx->lock, K_MSEC(xfer->timeout))) { in mspi_context_lock()
269 return (k_sem_count_get(&data->ctx.lock) == 0); in mspi_is_inp()
307 if (k_mutex_lock(&data->lock, K_MSEC(CONFIG_MSPI_COMPLETION_TIMEOUT_TOLERANCE))) { in mspi_ambiq_deinit()
353 k_mutex_unlock(&data->lock); in mspi_ambiq_deinit()
514 k_mutex_unlock(&data->lock); in mspi_ambiq_config()
531 if (k_mutex_lock(&data->lock, K_MSEC(CONFIG_MSPI_COMPLETION_TIMEOUT_TOLERANCE))) { in mspi_ambiq_dev_config()
766 k_mutex_unlock(&data->lock); in mspi_ambiq_dev_config()
933 k_mutex_unlock(&data->lock); in mspi_ambiq_get_channel_status()
1412 .lock = Z_MUTEX_INITIALIZER(mspi_ambiq_data##n.lock), \
1418 .ctx.lock = Z_SEM_INITIALIZER(mspi_ambiq_data##n.ctx.lock, 0, 1), \