Lines Matching refs:aics_insts
38 static struct bt_aics aics_insts[CONFIG_BT_MAX_CONN * CONFIG_BT_AICS_CLIENT_MAX_INSTANCE_COUNT]; variable
44 for (int i = 0; i < ARRAY_SIZE(aics_insts); i++) { in lookup_aics_by_handle()
45 if (aics_insts[i].cli.conn == conn && in lookup_aics_by_handle()
46 atomic_test_bit(aics_insts[i].cli.flags, BT_AICS_CLIENT_FLAG_ACTIVE) && in lookup_aics_by_handle()
47 aics_insts[i].cli.start_handle <= handle && in lookup_aics_by_handle()
48 aics_insts[i].cli.end_handle >= handle) { in lookup_aics_by_handle()
49 return &aics_insts[i]; in lookup_aics_by_handle()
673 for (size_t i = 0; i < ARRAY_SIZE(aics_insts); i++) { in disconnected()
674 if (aics_insts[i].cli.conn == conn) { in disconnected()
675 aics_client_reset(&aics_insts[i]); in disconnected()
734 for (int i = 0; i < ARRAY_SIZE(aics_insts); i++) { in bt_aics_client_free_instance_get()
735 if (!atomic_test_and_set_bit(aics_insts[i].cli.flags, BT_AICS_CLIENT_FLAG_ACTIVE)) { in bt_aics_client_free_instance_get()
736 aics_insts[i].client_instance = true; in bt_aics_client_free_instance_get()
737 return &aics_insts[i]; in bt_aics_client_free_instance_get()