Home
last modified time | relevance | path

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

/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/
A Dadv.c107 static struct bt_mesh_adv adv_pool[CONFIG_BT_MESH_ADV_BUF_COUNT]; variable
119 return &adv_pool[id]; in adv_alloc()
A Dfriend.c71 } adv_pool[FRIEND_BUF_COUNT]; variable
75 return &adv_pool[id].adv; in adv_alloc()
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dhci_core.c425 u8_t index = adv - adv_pool; in bt_le_ext_adv_get_index()
436 for (i = 0; i < ARRAY_SIZE(adv_pool); i++) { in adv_new()
437 if (!atomic_test_bit(adv_pool[i].flags, BT_ADV_CREATED)) { in adv_new()
438 adv = &adv_pool[i]; in adv_new()
448 atomic_set_bit(adv_pool[i].flags, BT_ADV_CREATED); in adv_new()
462 if (handle < ARRAY_SIZE(adv_pool) && in bt_adv_lookup_handle()
463 atomic_test_bit(adv_pool[handle].flags, BT_ADV_CREATED)) { in bt_adv_lookup_handle()
464 return &adv_pool[handle]; in bt_adv_lookup_handle()
476 for (size_t i = 0; i < ARRAY_SIZE(adv_pool); i++) { in bt_adv_foreach()
477 if (atomic_test_bit(adv_pool[i].flags, BT_ADV_CREATED)) { in bt_adv_foreach()
[all …]

Completed in 18 milliseconds