Lines Matching refs:adv_pool
207 static struct bt_le_ext_adv adv_pool[CONFIG_BT_EXT_ADV_MAX_ADV_SET]; variable
214 ptrdiff_t index = adv - adv_pool; in bt_le_ext_adv_get_index()
216 __ASSERT(index >= 0 && index < ARRAY_SIZE(adv_pool), in bt_le_ext_adv_get_index()
226 for (i = 0; i < ARRAY_SIZE(adv_pool); i++) { in adv_new()
227 if (!atomic_test_bit(adv_pool[i].flags, BT_ADV_CREATED)) { in adv_new()
228 adv = &adv_pool[i]; in adv_new()
238 atomic_set_bit(adv_pool[i].flags, BT_ADV_CREATED); in adv_new()
252 if (handle < ARRAY_SIZE(adv_pool) && in bt_hci_adv_lookup_handle()
253 atomic_test_bit(adv_pool[handle].flags, BT_ADV_CREATED)) { in bt_hci_adv_lookup_handle()
254 return &adv_pool[handle]; in bt_hci_adv_lookup_handle()
266 for (size_t i = 0; i < ARRAY_SIZE(adv_pool); i++) { in bt_le_ext_adv_foreach()
267 if (atomic_test_bit(adv_pool[i].flags, BT_ADV_CREATED)) { in bt_le_ext_adv_foreach()
268 func(&adv_pool[i], data); in bt_le_ext_adv_foreach()
279 (void)memset(&adv_pool, 0, sizeof(adv_pool)); in bt_adv_reset_adv_pool()