Home
last modified time | relevance | path

Searched refs:is_connected (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/att/eatt/src/
Dcommon.c18 static volatile bool is_connected; variable
42 is_connected = true; in connected()
55 is_connected = false; in disconnected()
120 while (!is_connected) { in central_setup_and_connect()
148 while (!is_connected) { in peripheral_setup_and_connect()
160 while (is_connected) { in wait_for_disconnect()
174 while (is_connected) { in disconnect()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/send_on_connect/src/
Dmain_l2cap_send_on_connect.c18 CREATE_FLAG(is_connected);
135 SET_FLAG(is_connected); in connected()
147 UNSET_FLAG(is_connected); in disconnected()
196 WAIT_FOR_FLAG_SET(is_connected); in test_peripheral_main()
202 WAIT_FOR_FLAG_UNSET(is_connected); in test_peripheral_main()
221 WAIT_FOR_FLAG_SET(is_connected); in test_central_main()
234 WAIT_FOR_FLAG_UNSET(is_connected); in test_central_main()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/split/dut/src/
Dmain.c21 DEFINE_FLAG(is_connected);
136 SET_FLAG(is_connected); in connected()
147 UNSET_FLAG(is_connected); in disconnected()
191 UNSET_FLAG(is_connected); in connect()
198 WAIT_FOR_FLAG(is_connected); in connect()
205 SET_FLAG(is_connected); in disconnect_device()
211 WAIT_FOR_FLAG_UNSET(is_connected); in disconnect_device()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/misc/disconnect/dut/src/
Dmain.c26 DEFINE_FLAG(is_connected);
51 SET_FLAG(is_connected); in connected()
63 UNSET_FLAG(is_connected); in disconnected()
130 UNSET_FLAG(is_connected); in connect()
136 WAIT_FOR_FLAG(is_connected); in connect()
260 WAIT_FOR_FLAG_UNSET(is_connected); in test_procedure_0()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/credits/src/
Dmain.c16 CREATE_FLAG(is_connected);
181 SET_FLAG(is_connected); in connected()
192 UNSET_FLAG(is_connected); in disconnected()
204 SET_FLAG(is_connected); in disconnect_device()
210 WAIT_FOR_FLAG_UNSET(is_connected); in disconnect_device()
244 WAIT_FOR_FLAG_SET(is_connected); in test_peripheral_main()
310 UNSET_FLAG(is_connected); in connect_peripheral()
317 WAIT_FOR_FLAG_SET(is_connected); in connect_peripheral()
386 WAIT_FOR_FLAG_UNSET(is_connected); in test_central_main()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/misc/hfc/src/
Dmain.c28 DEFINE_FLAG(is_connected);
57 SET_FLAG(is_connected); in connected()
68 UNSET_FLAG(is_connected); in disconnected()
118 UNSET_FLAG(is_connected); in connect_as_peripheral()
124 WAIT_FOR_FLAG(is_connected); in connect_as_peripheral()
144 UNSET_FLAG(is_connected); in connect_as_central()
150 WAIT_FOR_FLAG(is_connected); in connect_as_central()
293 WAIT_FOR_FLAG_UNSET(is_connected); in disconnect()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/
Dmain.c14 CREATE_FLAG(is_connected);
198 SET_FLAG(is_connected); in connected()
209 UNSET_FLAG(is_connected); in disconnected()
221 SET_FLAG(is_connected); in disconnect_device()
227 WAIT_FOR_FLAG_UNSET(is_connected); in disconnect_device()
262 WAIT_FOR_FLAG_SET(is_connected); in test_peripheral_main()
328 UNSET_FLAG(is_connected); in connect_peripheral()
335 WAIT_FOR_FLAG_SET(is_connected); in connect_peripheral()
425 WAIT_FOR_FLAG_UNSET(is_connected); in test_central_main()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/many_conns/src/
Dmain.c16 CREATE_FLAG(is_connected);
205 SET_FLAG(is_connected); in connected()
216 UNSET_FLAG(is_connected); in disconnected()
229 SET_FLAG(is_connected); in disconnect_device()
235 WAIT_FOR_FLAG_UNSET(is_connected); in disconnect_device()
263 WAIT_FOR_FLAG_SET(is_connected); in test_peripheral_main()
276 WAIT_FOR_FLAG_UNSET(is_connected); in test_peripheral_main()
314 UNSET_FLAG(is_connected); in connect_peripheral()
321 WAIT_FOR_FLAG_SET(is_connected); in connect_peripheral()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/stress/src/
Dmain.c16 CREATE_FLAG(is_connected);
263 SET_FLAG(is_connected); in connected()
274 UNSET_FLAG(is_connected); in disconnected()
287 SET_FLAG(is_connected); in disconnect_device()
293 WAIT_FOR_FLAG_UNSET(is_connected); in disconnect_device()
327 WAIT_FOR_FLAG_SET(is_connected); in test_peripheral_main()
340 WAIT_FOR_FLAG_UNSET(is_connected); in test_peripheral_main()
384 UNSET_FLAG(is_connected); in connect_peripheral()
391 WAIT_FOR_FLAG_SET(is_connected); in connect_peripheral()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/userdata/src/
Dmain_l2cap_userdata.c23 CREATE_FLAG(is_connected);
125 SET_FLAG(is_connected); in connected()
137 UNSET_FLAG(is_connected); in disconnected()
184 WAIT_FOR_FLAG_SET(is_connected); in test_peripheral_main()
237 WAIT_FOR_FLAG_SET(is_connected); in test_central_main()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/att/pipeline/dut/src/
Dmain.c30 DEFINE_FLAG(is_connected);
55 SET_FLAG(is_connected); in connected()
66 UNSET_FLAG(is_connected); in disconnected()
134 UNSET_FLAG(is_connected); in connecc()
141 WAIT_FOR_FLAG(is_connected); in connecc()
155 UNSET_FLAG(is_connected); in connect()
161 WAIT_FOR_FLAG(is_connected); in connect()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/att/sequential/dut/src/
Dmain.c25 DEFINE_FLAG(is_connected);
54 SET_FLAG(is_connected); in connected()
66 UNSET_FLAG(is_connected); in disconnected()
133 UNSET_FLAG(is_connected); in connect()
139 WAIT_FOR_FLAG(is_connected); in connect()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/general/src/
Dmain_l2cap_ecred.c57 CREATE_FLAG(is_connected);
331 SET_FLAG(is_connected); in connected()
349 UNSET_FLAG(is_connected); in disconnected()
460 WAIT_FOR_FLAG_SET(is_connected); in test_peripheral_main()
498 WAIT_FOR_FLAG_UNSET(is_connected); in test_peripheral_main()
553 WAIT_FOR_FLAG_SET(is_connected); in test_central_main()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/att/pipeline/tester/src/
Dmain.c40 DEFINE_FLAG(is_connected);
145 SET_FLAG(is_connected); in handle_meta_event()
319 UNSET_FLAG(is_connected); in recv()
607 WAIT_FOR_FLAG(is_connected); in test_procedure_0()
640 WAIT_FOR_FLAG(is_connected); in test_procedure_1()
651 while (TEST_FLAG(is_connected)) { in test_procedure_1()
/Zephyr-Core-3.7.0/subsys/net/lib/sockets/
Dsocketpair.c615 bool is_connected; in spair_read() local
649 is_connected = sock_is_connected(spair); in spair_read()
653 if (!is_connected) { in spair_read()
735 if (is_connected) { in spair_read()
1068 bool is_connected; in spair_sendmsg() local
1079 is_connected = sock_is_connected(spair); in spair_sendmsg()
1080 avail = is_connected ? spair_write_avail(spair) : 0; in spair_sendmsg()
1089 if (!is_connected) { in spair_sendmsg()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/audio/src/
Dtbs_test.c27 CREATE_FLAG(is_connected);
110 SET_FLAG(is_connected); in connected()
355 WAIT_FOR_COND(is_connected); in test_main()
Dtbs_client_test.c30 CREATE_FLAG(is_connected);
340 is_connected = true; in connected()
509 WAIT_FOR_COND(is_connected); in test_main()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/l2cap/split/tester/src/
Dmain.c30 DEFINE_FLAG(is_connected);
130 SET_FLAG(is_connected); in handle_meta_event()
275 UNSET_FLAG(is_connected); in recv()
619 WAIT_FOR_FLAG(is_connected); in test_procedure_0()
641 WAIT_FOR_FLAG_UNSET(is_connected); in test_procedure_0()
/Zephyr-Core-3.7.0/drivers/modem/
Dmodem_socket.h49 bool is_connected; member
Dquectel-bg9x.c557 if (!sock->is_connected) { in offload_sendto()
708 if (sock->is_connected == true) { in offload_connect()
779 sock->is_connected = true; in offload_connect()
804 if (sock->is_connected) { in offload_close()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/misc/disconnect/tester/src/
Dmain.c41 DEFINE_FLAG(is_connected);
137 SET_FLAG(is_connected); in handle_meta_event()
273 UNSET_FLAG(is_connected); in recv()
554 WAIT_FOR_FLAG(is_connected); in test_procedure_0()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/att/sequential/tester/src/
Dmain.c39 DEFINE_FLAG(is_connected);
141 SET_FLAG(is_connected); in handle_meta_event()
295 UNSET_FLAG(is_connected); in recv()
604 WAIT_FOR_FLAG(is_connected); in test_procedure_0()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/
Dtester.c34 DEFINE_FLAG(is_connected);
145 SET_FLAG(is_connected); in handle_meta_event()
287 UNSET_FLAG(is_connected); in recv()
646 WAIT_FOR_FLAG(is_connected); in entrypoint_tester()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/ll/advx/src/
Dmain.c105 static bool volatile is_scanned, is_connected, is_disconnected; variable
116 is_connected = true; in connected()
196 while (!is_connected) { in test_advx_main()
347 is_connected = false; in test_advx_main()
365 while (!is_connected) { in test_advx_main()
1342 while (!is_connected) { in test_scanx_main()
1353 is_connected = false; in test_scanx_main()
1417 while (!is_connected) { in test_scanx_main()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/misc/conn_stress/central/src/
Dmain.c158 static bool is_connected(struct bt_conn *conn) in is_connected() function
170 if (is_connected(conn)) { in get_connected_conn_info_ref()
222 __ASSERT_NO_MSG(!is_connected(conn)); in discover_func()

12