Lines Matching refs:per_adv_sync_pool
97 static struct bt_le_per_adv_sync per_adv_sync_pool[CONFIG_BT_PER_ADV_SYNC_MAX]; variable
929 for (int i = 0; i < ARRAY_SIZE(per_adv_sync_pool); i++) { in per_adv_sync_new()
930 if (!atomic_test_bit(per_adv_sync_pool[i].flags, in per_adv_sync_new()
932 per_adv_sync = &per_adv_sync_pool[i]; in per_adv_sync_new()
956 for (int i = 0; i < ARRAY_SIZE(per_adv_sync_pool); i++) { in get_pending_per_adv_sync()
957 if (atomic_test_bit(per_adv_sync_pool[i].flags, in get_pending_per_adv_sync()
959 return &per_adv_sync_pool[i]; in get_pending_per_adv_sync()
968 for (size_t i = 0; i < ARRAY_SIZE(per_adv_sync_pool); i++) { in bt_periodic_sync_disable()
969 per_adv_sync_delete(&per_adv_sync_pool[i]); in bt_periodic_sync_disable()
975 for (int i = 0; i < ARRAY_SIZE(per_adv_sync_pool); i++) { in bt_hci_per_adv_sync_lookup_handle()
976 if (per_adv_sync_pool[i].handle == handle && in bt_hci_per_adv_sync_lookup_handle()
977 atomic_test_bit(per_adv_sync_pool[i].flags, in bt_hci_per_adv_sync_lookup_handle()
979 return &per_adv_sync_pool[i]; in bt_hci_per_adv_sync_lookup_handle()
1812 ptrdiff_t index = per_adv_sync - per_adv_sync_pool; in bt_le_per_adv_sync_get_index()
1814 __ASSERT(index >= 0 && ARRAY_SIZE(per_adv_sync_pool) > index, in bt_le_per_adv_sync_get_index()
1821 if (index >= ARRAY_SIZE(per_adv_sync_pool)) { in bt_le_per_adv_sync_lookup_index()
1825 return &per_adv_sync_pool[index]; in bt_le_per_adv_sync_lookup_index()
1846 for (int i = 0; i < ARRAY_SIZE(per_adv_sync_pool); i++) { in bt_le_per_adv_sync_lookup_addr()
1847 struct bt_le_per_adv_sync *sync = &per_adv_sync_pool[i]; in bt_le_per_adv_sync_lookup_addr()
1849 if (!atomic_test_bit(per_adv_sync_pool[i].flags, in bt_le_per_adv_sync_lookup_addr()