/Zephyr-latest/samples/bluetooth/peripheral_identity/src/ |
D | peripheral_identity.c | 19 static uint8_t volatile conn_count; variable 87 conn_count++; in connected() 88 if (conn_count < conn_count_max) { in connected() 94 printk("Connected (%u): %s\n", conn_count, addr); in connected() 105 if ((conn_count == 1U) && is_disconnecting) { in disconnected() 109 conn_count--; in disconnected() 291 uint8_t prev_count = conn_count; in init_peripheral() 295 if (conn_count == conn_count_max) { in init_peripheral() 330 if (prev_count != conn_count) { in init_peripheral() 331 prev_count = conn_count; in init_peripheral() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/unregister_conn_cb/src/ |
D | main.c | 101 int *conn_count = user_data; in connection_info() local 111 (*conn_count)++; in connection_info() 176 int conn_count = 0; in test_central_main() local 211 bt_conn_foreach(BT_CONN_TYPE_LE, connection_info, &conn_count); in test_central_main() 212 if (!conn_count) { in test_central_main()
|
/Zephyr-latest/samples/bluetooth/central_multilink/src/ |
D | central_multilink.c | 36 static uint8_t volatile conn_count; variable 160 conn_count++; in connected() 161 if (conn_count < conn_count_max) { in connected() 165 printk("Connected (%u): %s\n", conn_count, addr); in connected() 190 if ((conn_count == 1U) && (is_disconnecting || (reason == BT_HCI_ERR_CONN_FAIL_TO_ESTAB))) { in disconnected() 194 conn_count--; in disconnected() 340 while (conn_count < conn_count_max) { in init_central()
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/multilink_peripheral/src/ |
D | dut.c | 229 size_t *conn_count = user_data; in increment() local 231 (*conn_count)++; in increment() 236 size_t conn_count = 0; in have_free_conn() local 238 bt_conn_foreach(BT_CONN_TYPE_LE, increment, &conn_count); in have_free_conn() 240 return conn_count < CONFIG_BT_MAX_CONN; in have_free_conn()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | proxy_msg.c | 57 static int conn_count; variable 304 conn_count++; in bt_mesh_proxy_role_setup() 326 conn_count--; in bt_mesh_proxy_role_cleanup() 333 return conn_count < CONFIG_BT_MESH_MAX_CONN; in bt_mesh_proxy_has_avail_conn()
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | csip_set_coordinator.c | 387 int conn_count = 0; in cmd_csip_set_coordinator_lock_set() local 396 locked_members[conn_count++] = set_members[i]; in cmd_csip_set_coordinator_lock_set() 400 err = bt_csip_set_coordinator_lock(locked_members, conn_count, in cmd_csip_set_coordinator_lock_set() 413 int conn_count = 0; in cmd_csip_set_coordinator_release_set() local 422 locked_members[conn_count++] = set_members[i]; in cmd_csip_set_coordinator_release_set() 426 err = bt_csip_set_coordinator_release(locked_members, conn_count, in cmd_csip_set_coordinator_release_set()
|
/Zephyr-latest/tests/bsim/bluetooth/ll/cis/src/ |
D | main.c | 343 int conn_count; local 422 conn_count = 0; 481 conn_list[conn_count] = conn; 482 conn_index = chan = conn_count; 483 conn_count++; 489 (conn_index < conn_count) && (chan < CONFIG_BT_ISO_MAX_CHAN);
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/conn_stress/central/src/ |
D | main.c | 79 static atomic_t conn_count; variable 408 atomic_inc(&conn_count); in connected_cb() 409 LOG_DBG("connected to %u devices", atomic_get(&conn_count)); in connected_cb() 453 atomic_dec(&conn_count); in disconnected() 674 if (atomic_get(&conn_count) < CONFIG_BT_MAX_CONN && in test_central_main()
|
/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | bt.c | 3932 int *conn_count = user_data; in connection_info() local 3963 (*conn_count)++; in connection_info() 3968 int conn_count = 0; in cmd_connections() local 3971 bt_conn_foreach(BT_CONN_TYPE_ALL, connection_info, &conn_count); in cmd_connections() 3972 shell_print(sh, "Total %d", conn_count); in cmd_connections()
|
/Zephyr-latest/subsys/bluetooth/controller/hci/ |
D | hci.c | 196 static uint32_t conn_count; variable 462 conn_count = 0U; in reset() 495 if (!hci_hbuf_total || conn_count) { in set_ctl_to_host_flow() 563 } else if (!conn_count) { in host_num_completed_packets() 8358 conn_count++; 8449 conn_count--;
|