Home
last modified time | relevance | path

Searched refs:adv_pool (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/bluetooth/host/
Dadv.c207 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()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dfriend.c77 static struct friend_adv adv_pool[FRIEND_BUF_COUNT]; variable
83 adv_pool[id].app_idx = BT_MESH_KEY_UNUSED; in adv_alloc()
84 adv_pool[id].seg = false; in adv_alloc()
85 return &adv_pool[id]; in adv_alloc()