Lines Matching refs:lock
27 struct k_mutex lock; member
45 k_mutex_lock(&ctx->lock, K_FOREVER); in att_read_cb()
75 k_mutex_unlock(&ctx->lock); in att_read_cb()
80 k_mutex_unlock(&ctx->lock); in att_read_cb()
100 k_mutex_init(&ctx->lock); in bt_testlib_sync_bt_gatt_read()
103 k_mutex_lock(&ctx->lock, K_FOREVER); in bt_testlib_sync_bt_gatt_read()
108 k_condvar_wait(&ctx->done, &ctx->lock, K_FOREVER); in bt_testlib_sync_bt_gatt_read()
111 k_mutex_unlock(&ctx->lock); in bt_testlib_sync_bt_gatt_read()
206 struct k_mutex lock; member
216 k_mutex_lock(&ctx->lock, K_FOREVER); in gatt_discover_service_cb()
237 k_mutex_unlock(&ctx->lock); in gatt_discover_service_cb()
261 k_mutex_init(&ctx->lock); in bt_testlib_gatt_discover_primary()
270 k_mutex_lock(&ctx->lock, K_FOREVER); in bt_testlib_gatt_discover_primary()
275 k_condvar_wait(&ctx->done, &ctx->lock, K_FOREVER); in bt_testlib_gatt_discover_primary()
278 k_mutex_unlock(&ctx->lock); in bt_testlib_gatt_discover_primary()
295 struct k_mutex lock; member
306 k_mutex_lock(&ctx->lock, K_FOREVER); in gatt_discover_char_cb()
337 k_mutex_unlock(&ctx->lock); in gatt_discover_char_cb()
368 k_mutex_init(&ctx->lock); in bt_testlib_gatt_discover_characteristic()
377 k_mutex_lock(&ctx->lock, K_FOREVER); in bt_testlib_gatt_discover_characteristic()
382 k_condvar_wait(&ctx->done, &ctx->lock, K_FOREVER); in bt_testlib_gatt_discover_characteristic()
385 k_mutex_unlock(&ctx->lock); in bt_testlib_gatt_discover_characteristic()