Home
last modified time | relevance | path

Searched refs:connp (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/bluetooth/common/testlib/src/
Ddisconnect.c14 int bt_testlib_disconnect(struct bt_conn **connp, uint8_t reason) in bt_testlib_disconnect() argument
18 __ASSERT_NO_MSG(connp); in bt_testlib_disconnect()
19 __ASSERT_NO_MSG(*connp); in bt_testlib_disconnect()
21 err = bt_conn_disconnect(*connp, BT_HCI_ERR_REMOTE_USER_TERM_CONN); in bt_testlib_disconnect()
24 bt_testlib_wait_disconnected(*connp); in bt_testlib_disconnect()
25 bt_testlib_conn_unref(connp); in bt_testlib_disconnect()
Dconnect.c16 struct bt_conn **connp; member
32 if (g_ctx && conn == *g_ctx->connp) { in on_conn_cb_connected()
44 int bt_testlib_connect(const bt_addr_le_t *peer, struct bt_conn **connp) in bt_testlib_connect() argument
48 .connp = connp, in bt_testlib_connect()
52 __ASSERT_NO_MSG(connp); in bt_testlib_connect()
53 __ASSERT_NO_MSG(*connp == NULL); in bt_testlib_connect()
65 err = bt_conn_le_create(peer, BT_CONN_LE_CREATE_CONN, BT_LE_CONN_PARAM_DEFAULT, connp); in bt_testlib_connect()
68 conn_index = bt_conn_index(*connp); in bt_testlib_connect()
Dconn_ref.c33 void bt_testlib_conn_unref(struct bt_conn **connp) in bt_testlib_conn_unref() argument
37 __ASSERT_NO_MSG(connp); in bt_testlib_conn_unref()
38 conn = atomic_ptr_set((void **)connp, NULL); in bt_testlib_conn_unref()
/Zephyr-latest/tests/bluetooth/common/testlib/include/testlib/
Dconn.h43 int bt_testlib_connect(const bt_addr_le_t *peer, struct bt_conn **connp);
61 int bt_testlib_disconnect(struct bt_conn **connp, uint8_t reason);
91 void bt_testlib_conn_unref(struct bt_conn **connp);