Lines Matching full:clients
95 } clients[CONFIG_BT_MAX_PAIRED]; variable
120 for (size_t i = 0; i < ARRAY_SIZE(clients); i++) { in client_lookup_conn()
121 if (atomic_test_bit(clients[i].flags, FLAG_ACTIVE) && in client_lookup_conn()
122 bt_addr_le_eq(&clients[i].addr, bt_conn_get_dst(conn))) { in client_lookup_conn()
123 return &clients[i]; in client_lookup_conn()
132 for (size_t i = 0U; i < ARRAY_SIZE(clients); i++) { in pacs_set_notify_bit()
133 if (atomic_test_bit(clients[i].flags, FLAG_ACTIVE)) { in pacs_set_notify_bit()
134 atomic_set_bit(clients[i].flags, bit); in pacs_set_notify_bit()
939 for (size_t i = 0U; i < ARRAY_SIZE(clients); i++) { in pacs_auth_pairing_complete()
940 if (atomic_test_bit(clients[i].flags, FLAG_ACTIVE) && in pacs_auth_pairing_complete()
941 bt_addr_le_eq(bt_conn_get_dst(conn), &clients[i].addr)) { in pacs_auth_pairing_complete()
947 for (size_t i = 0U; i < ARRAY_SIZE(clients); i++) { in pacs_auth_pairing_complete()
948 if (!atomic_test_bit(clients[i].flags, FLAG_ACTIVE)) { in pacs_auth_pairing_complete()
949 atomic_set_bit(clients[i].flags, FLAG_ACTIVE); in pacs_auth_pairing_complete()
950 memcpy(&clients[i].addr, bt_conn_get_dst(conn), sizeof(bt_addr_le_t)); in pacs_auth_pairing_complete()
962 for (size_t i = 0U; i < ARRAY_SIZE(clients); i++) { in pacs_bond_deleted()
964 if (atomic_test_bit(clients[i].flags, FLAG_ACTIVE) && in pacs_bond_deleted()
965 bt_addr_le_eq(peer, &clients[i].addr)) { in pacs_bond_deleted()
967 atomic_clear_bit(clients[i].flags, j); in pacs_bond_deleted()
969 (void)memset(&clients[i].addr, 0, sizeof(bt_addr_le_t)); in pacs_bond_deleted()
988 for (size_t i = 0U; i < ARRAY_SIZE(clients); i++) { in pacs_security_changed()
990 if (atomic_test_bit(clients[i].flags, j)) { in pacs_security_changed()
1066 for (uint8_t i = 0; i < ARRAY_SIZE(clients); i++) { in add_bonded_addr_to_client_list()
1068 if (!atomic_test_bit(clients[i].flags, FLAG_ACTIVE)) { in add_bonded_addr_to_client_list()
1071 atomic_set_bit(clients[i].flags, FLAG_ACTIVE); in add_bonded_addr_to_client_list()
1072 memcpy(&clients[i].addr, &info->addr, sizeof(bt_addr_le_t)); in add_bonded_addr_to_client_list()
1073 bt_addr_le_to_str(&clients[i].addr, addr_str, sizeof(addr_str)); in add_bonded_addr_to_client_list()