Lines Matching refs:lock
40 struct k_sem lock; member
51 struct k_mutex lock; member
118 return (k_sem_count_get(&data->ctx.lock) == 0); in mspi_is_inp()
140 if (k_sem_take(&ctx->lock, K_MSEC(xfer->timeout))) { in mspi_context_lock()
174 k_sem_give(&ctx->lock); in mspi_context_release()
471 if (k_mutex_lock(&data->lock, K_MSEC(CONFIG_MSPI_COMPLETION_TIMEOUT_TOLERANCE))) { in mspi_emul_config()
482 if (!k_sem_count_get(&data->ctx.lock)) { in mspi_emul_config()
484 k_sem_give(&data->ctx.lock); in mspi_emul_config()
488 k_mutex_unlock(&data->lock); in mspi_emul_config()
517 if (k_mutex_lock(&data->lock, K_MSEC(CONFIG_MSPI_COMPLETION_TIMEOUT_TOLERANCE))) { in mspi_emul_dev_config()
563 k_mutex_unlock(&data->lock); in mspi_emul_dev_config()
679 k_mutex_unlock(&data->lock); in mspi_emul_get_channel_status()
890 .lock = Z_MUTEX_INITIALIZER(mspi_emul_data_##n.lock), \
896 .ctx.lock = Z_SEM_INITIALIZER(mspi_emul_data_##n.ctx.lock, 0, 1), \