Searched refs:g_ctx (Results 1 – 4 of 4) sorted by relevance
27 static struct testlib_security_ctx *g_ctx; variable39 if (g_ctx && (g_ctx->conn == conn)) { in security_changed()40 g_ctx->result = err; in security_changed()44 if (err || level >= g_ctx->new_minimum) { in security_changed()45 k_condvar_signal(&g_ctx->done); in security_changed()93 g_ctx = &ctx; in bt_testlib_secure()95 g_ctx = NULL; in bt_testlib_secure()
24 static struct bt_scan_find_name_closure *g_ctx; variable50 __ASSERT_NO_MSG(g_ctx); in bt_scan_find_name_cb()51 __ASSERT_NO_MSG(g_ctx->wanted_name); in bt_scan_find_name_cb()53 wanted = g_ctx->wanted_name; in bt_scan_find_name_cb()59 *g_ctx->result = *addr; in bt_scan_find_name_cb()60 k_condvar_signal(&g_ctx->done); in bt_scan_find_name_cb()78 g_ctx = &ctx; in bt_testlib_scan_find_name()85 g_ctx = NULL; in bt_testlib_scan_find_name()
24 static struct bt_testlib_connect_closure *g_ctx; variable32 if (g_ctx && conn == *g_ctx->connp) { in on_conn_cb_connected()33 g_ctx->conn_cb_connected_err = conn_err; in on_conn_cb_connected()34 k_condvar_signal(&g_ctx->conn_cb_connected_match); in on_conn_cb_connected()63 g_ctx = &ctx; in bt_testlib_connect()74 g_ctx = NULL; in bt_testlib_connect()
24 static struct bt_testlib_adv_ctx *g_ctx; variable30 if (g_ctx->result) { in connected_cb()31 *g_ctx->result = bt_conn_ref(info->conn); in connected_cb()33 k_condvar_signal(&g_ctx->done); in connected_cb()59 g_ctx = &ctx; in bt_testlib_adv_conn()87 g_ctx = NULL; in bt_testlib_adv_conn()