/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/edtt_ble_test_app/tests_scripts/ |
D | ll.set2.test_list | 13 LL/DDI/ADV/BV-01-C 14 LL/DDI/ADV/BV-02-C 15 LL/DDI/ADV/BV-03-C 16 LL/DDI/ADV/BV-04-C 17 LL/DDI/ADV/BV-05-C 18 LL/DDI/ADV/BV-06-C 19 LL/DDI/ADV/BV-07-C 20 LL/DDI/ADV/BV-08-C 21 LL/DDI/ADV/BV-09-C 22 LL/DDI/ADV/BV-11-C [all …]
|
D | gap.test_list | 4 GAP/ADV/BV-01-C 5 GAP/ADV/BV-02-C 6 GAP/ADV/BV-03-C 7 GAP/ADV/BV-04-C 8 GAP/ADV/BV-05-C 9 GAP/ADV/BV-08-C 10 GAP/ADV/BV-09-C 11 GAP/ADV/BV-10-C 12 GAP/ADV/BV-11-C 13 GAP/ADV/BV-12-C [all …]
|
/Zephyr-Core-2.7.6/tests/bluetooth/df/connectionless_cte_chains/src/ |
D | test_add_cte_to_chain.c | 46 struct ll_adv_set *adv; in test_add_number_of_cte_to_sigle_pdu_chain() local 51 adv = common_create_adv_set(TEST_ADV_SET_HANDLE); in test_add_number_of_cte_to_sigle_pdu_chain() 52 common_prepare_df_cfg(adv, TEST_CTE_COUNT); in test_add_number_of_cte_to_sigle_pdu_chain() 53 common_create_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); in test_add_number_of_cte_to_sigle_pdu_chain() 54 common_validate_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); in test_add_number_of_cte_to_sigle_pdu_chain() 56 handle = ull_adv_handle_get(adv); in test_add_number_of_cte_to_sigle_pdu_chain() 64 common_validate_chain_with_cte(adv, TEST_CTE_COUNT, TEST_PER_ADV_SINGLE_PDU); in test_add_number_of_cte_to_sigle_pdu_chain() 66 common_teardown(adv); in test_add_number_of_cte_to_sigle_pdu_chain() 71 struct ll_adv_set *adv; in test_add_cte_for_each_pdu_in_chain() local 76 adv = common_create_adv_set(TEST_ADV_SET_HANDLE); in test_add_cte_for_each_pdu_in_chain() [all …]
|
D | test_remove_cte_from_chain.c | 48 struct ll_adv_set *adv; in test_remove_cte_from_chain_extended_to_tx_all_cte() local 53 adv = common_create_adv_set(TEST_ADV_SET_HANDLE); in test_remove_cte_from_chain_extended_to_tx_all_cte() 54 common_prepare_df_cfg(adv, TEST_CTE_COUNT); in test_remove_cte_from_chain_extended_to_tx_all_cte() 55 common_create_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); in test_remove_cte_from_chain_extended_to_tx_all_cte() 57 handle = ull_adv_handle_get(adv); in test_remove_cte_from_chain_extended_to_tx_all_cte() 66 common_validate_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); in test_remove_cte_from_chain_extended_to_tx_all_cte() 68 common_teardown(adv); in test_remove_cte_from_chain_extended_to_tx_all_cte() 73 struct ll_adv_set *adv; in test_remove_cte_from_chain_where_each_pdu_includes_cte() local 78 adv = common_create_adv_set(TEST_ADV_SET_HANDLE); in test_remove_cte_from_chain_where_each_pdu_includes_cte() 80 common_prepare_df_cfg(adv, TEST_CTE_COUNT); in test_remove_cte_from_chain_where_each_pdu_includes_cte() [all …]
|
D | common.h | 18 void common_prepare_df_cfg(struct ll_adv_set *adv, uint8_t cte_count); 19 void common_validate_per_adv_chain(struct ll_adv_set *adv, uint8_t pdu_count); 20 void common_validate_chain_with_cte(struct ll_adv_set *adv, uint8_t cte_count, 22 void common_teardown(struct ll_adv_set *adv);
|
D | common.c | 38 /* Controller code uses static function sync_acquire to get adv. sync. 79 g_sync_set.lll.adv = &adv_set->lll; in common_create_adv_set() 236 /* Non-connectable and Non-scannable adv mode */ in common_validate_per_adv_pdu() 330 * @param adv Pointer to advertising set 333 void common_prepare_df_cfg(struct ll_adv_set *adv, uint8_t cte_count) in common_prepare_df_cfg() argument 340 adv->df_cfg = &g_df_cfg; in common_prepare_df_cfg() 348 * @param adv Pointer to advertising set 351 void common_validate_per_adv_chain(struct ll_adv_set *adv, uint8_t pdu_count) in common_validate_per_adv_chain() argument 356 pdu = lll_adv_sync_data_peek(adv->lll.sync, NULL); in common_validate_per_adv_chain() 399 * @param adv Pointer to advertising set [all …]
|
/Zephyr-Core-2.7.6/subsys/bluetooth/host/ |
D | adv.c | 30 enum adv_name_type get_adv_name_type(const struct bt_le_ext_adv *adv) in get_adv_name_type() argument 32 if (atomic_test_bit(adv->flags, BT_ADV_INCLUDE_NAME_SD)) { in get_adv_name_type() 36 if (atomic_test_bit(adv->flags, BT_ADV_INCLUDE_NAME_AD)) { in get_adv_name_type() 67 uint8_t bt_le_ext_adv_get_index(struct bt_le_ext_adv *adv) in bt_le_ext_adv_get_index() argument 69 ptrdiff_t index = adv - adv_pool; in bt_le_ext_adv_get_index() 78 struct bt_le_ext_adv *adv = NULL; in adv_new() local 83 adv = &adv_pool[i]; in adv_new() 88 if (!adv) { in adv_new() 92 (void)memset(adv, 0, sizeof(*adv)); in adv_new() 94 adv->handle = i; in adv_new() [all …]
|
D | id.c | 18 #include "adv.h" 54 static void adv_id_check_func(struct bt_le_ext_adv *adv, void *data) in adv_id_check_func() argument 62 if (check_data->id == adv->id) { in adv_id_check_func() 66 if (check_data->id == adv->id && in adv_id_check_func() 67 atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in adv_id_check_func() 74 static void adv_is_private_enabled(struct bt_le_ext_adv *adv, void *data) in adv_is_private_enabled() argument 78 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_private_enabled() 79 !atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY)) { in adv_is_private_enabled() 86 static void adv_is_limited_enabled(struct bt_le_ext_adv *adv, void *data) in adv_is_limited_enabled() argument 90 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_limited_enabled() [all …]
|
D | adv.h | 13 int bt_le_adv_set_enable(struct bt_le_ext_adv *adv, bool enable); 15 void bt_le_ext_adv_foreach(void (*func)(struct bt_le_ext_adv *adv, void *data), 18 int bt_le_adv_set_enable_ext(struct bt_le_ext_adv *adv, 21 int bt_le_adv_set_enable_legacy(struct bt_le_ext_adv *adv, bool enable); 22 int bt_le_lim_adv_cancel_timeout(struct bt_le_ext_adv *adv);
|
D | direction.c | 58 static int hci_df_set_cl_cte_tx_params(const struct bt_le_ext_adv *adv, in hci_df_set_cl_cte_tx_params() argument 105 cp->handle = adv->handle; in hci_df_set_cl_cte_tx_params() 173 * @param[in] adv Pointer to advertising set 178 static int hci_df_set_adv_cte_tx_enable(struct bt_le_ext_adv *adv, in hci_df_set_adv_cte_tx_enable() argument 193 cp->handle = adv->handle; in hci_df_set_adv_cte_tx_enable() 196 bt_hci_cmd_state_set_init(buf, &state, adv->flags, BT_PER_ADV_CTE_ENABLED, in hci_df_set_adv_cte_tx_enable() 459 int bt_df_set_adv_cte_tx_param(struct bt_le_ext_adv *adv, in bt_df_set_adv_cte_tx_param() argument 462 __ASSERT_NO_MSG(adv); in bt_df_set_adv_cte_tx_param() 474 if (!atomic_test_bit(adv->flags, BT_ADV_PARAMS_SET)) { in bt_df_set_adv_cte_tx_param() 478 if (atomic_test_bit(adv->flags, BT_PER_ADV_CTE_ENABLED)) { in bt_df_set_adv_cte_tx_param() [all …]
|
D | id.h | 33 int bt_id_set_adv_own_addr(struct bt_le_ext_adv *adv, uint32_t options, 40 int bt_id_set_adv_random_addr(struct bt_le_ext_adv *adv, 42 int bt_id_set_adv_private_addr(struct bt_le_ext_adv *adv);
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/ |
D | ull_adv.c | 61 inline uint16_t ull_adv_handle_get(struct ll_adv_set *adv); 81 static void conn_release(struct ll_adv_set *adv); 85 static void adv_max_events_duration_set(struct ll_adv_set *adv, 98 static uint8_t adv_scan_pdu_addr_update(struct ll_adv_set *adv, 101 static const uint8_t *adva_update(struct ll_adv_set *adv, struct pdu_adv *pdu); 102 static void tgta_update(struct ll_adv_set *adv, struct pdu_adv *pdu); 105 static void init_set(struct ll_adv_set *adv); 122 struct ll_adv_set *adv = &ll_adv[0]; in ll_adv_cmds_set() local 125 adv->hci_handle = 0; in ll_adv_cmds_set() 127 adv->is_created = 1; in ll_adv_cmds_set() [all …]
|
D | ull_adv_internal.h | 20 /* Return the adv set handle given the adv set instance */ 21 uint16_t ull_adv_handle_get(struct ll_adv_set *adv); 36 uint8_t ull_adv_data_set(struct ll_adv_set *adv, uint8_t len, 40 uint8_t ull_scan_rsp_set(struct ll_adv_set *adv, uint8_t len, 44 const uint8_t *ull_adv_pdu_update_addrs(struct ll_adv_set *adv, 48 uint8_t ull_adv_time_update(struct ll_adv_set *adv, struct pdu_adv *pdu, 65 /* helper function to handle adv done events */ 95 void ull_adv_aux_offset_get(struct ll_adv_set *adv); 119 uint8_t ull_adv_aux_hdr_set_clear(struct ll_adv_set *adv, 132 /* helper function to calculate common ext adv payload header length and [all …]
|
D | ull_adv_aux.c | 70 struct ll_adv_set *adv; in ll_adv_aux_random_addr_set() local 72 adv = ull_adv_is_created_get(handle); in ll_adv_aux_random_addr_set() 73 if (!adv) { in ll_adv_aux_random_addr_set() 82 (void)memcpy(adv->rnd_addr, addr, BDADDR_SIZE); in ll_adv_aux_random_addr_set() 90 struct ll_adv_set *adv; in ll_adv_aux_ad_data_set() local 113 adv = ull_adv_is_created_get(handle); in ll_adv_aux_ad_data_set() 114 if (!adv) { in ll_adv_aux_ad_data_set() 121 err = ull_adv_aux_hdr_set_clear(adv, ULL_ADV_PDU_HDR_FIELD_AD_DATA, in ll_adv_aux_ad_data_set() 127 if (!adv->lll.aux) { in ll_adv_aux_ad_data_set() 131 if (adv->is_enabled) { in ll_adv_aux_ad_data_set() [all …]
|
D | ull_adv_sync.c | 52 struct ll_adv_set *adv, uint8_t enable); 85 /* Non-connectable and Non-scannable adv mode */ in ull_adv_sync_pdu_init() 280 /* Periodic adv PDUs do not have AdvA/TargetA */ in ull_adv_sync_pdu_cte_info_set() 326 struct ll_adv_set *adv; in ll_adv_sync_param_set() local 329 adv = ull_adv_is_created_get(handle); in ll_adv_sync_param_set() 330 if (!adv) { in ll_adv_sync_param_set() 334 lll_sync = adv->lll.sync; in ll_adv_sync_param_set() 346 lll = &adv->lll; in ll_adv_sync_param_set() 349 lll_sync->adv = lll; in ll_adv_sync_param_set() 391 err = ull_adv_sync_pdu_alloc(adv, ULL_ADV_PDU_EXTRA_DATA_ALLOC_IF_EXIST, &pdu_prev, &pdu, in ll_adv_sync_param_set() [all …]
|
D | ull_adv_iso.c | 68 struct ll_adv_set *adv; in ll_big_create() local 76 if (!adv_iso || adv_iso->lll.adv) { in ll_big_create() 81 adv = ull_adv_is_created_get(adv_handle); in ll_big_create() 82 if (!adv) { in ll_big_create() 90 lll_adv_sync = adv->lll.sync; in ll_big_create() 141 err = ull_adv_sync_pdu_alloc(adv, ULL_ADV_PDU_EXTRA_DATA_ALLOC_IF_EXIST, &pdu_prev, &pdu, in ll_big_create() 185 lll_adv_iso->adv = &adv->lll; in ll_big_create() 233 struct ll_adv_set *adv; in ll_big_terminate() local 244 lll_adv = lll_adv_iso->adv; in ll_big_terminate() 250 adv = HDR_LLL2ULL(lll_adv); in ll_big_terminate() [all …]
|
D | ll_tx_pwr.c | 48 struct ll_adv_set *adv; in ll_tx_pwr_lvl_get() local 57 adv = ull_adv_set_get(handle); in ll_tx_pwr_lvl_get() 58 if (!adv) { in ll_tx_pwr_lvl_get() 61 *tx_pwr_lvl = adv->lll.tx_pwr_lvl; in ll_tx_pwr_lvl_get() 146 struct ll_adv_set *adv; in ll_tx_pwr_lvl_set() local 155 adv = ull_adv_set_get(handle); in ll_tx_pwr_lvl_set() 156 if (!adv) { in ll_tx_pwr_lvl_set() 159 adv->lll.tx_pwr_lvl = *tx_pwr_lvl; in ll_tx_pwr_lvl_set()
|
D | ull_df.c | 80 * Open question, should df_adv_cfg be released when Adv. CTE is disabled? 82 * before consecutive Adv CTE enable. 88 static uint8_t cte_info_clear(struct ll_adv_set *adv, struct lll_df_adv_cfg *df_cfg, 108 static uint8_t cte_info_set(struct ll_adv_set *adv, struct lll_df_adv_cfg *df_cfg, uint8_t *ter_idx, 137 struct ll_adv_set *adv; in ull_df_reset() local 142 adv = ull_adv_is_created_get(handle); in ull_df_reset() 143 if (!adv) { in ull_df_reset() 147 adv->df_cfg = NULL; in ull_df_reset() 206 struct ll_adv_set *adv; in ll_df_set_cl_cte_tx_params() local 209 adv = ull_adv_is_created_get(adv_handle); in ll_df_set_cl_cte_tx_params() [all …]
|
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/ |
D | adv_ext.c | 21 #include "adv.h" 44 /** Custom adv params have been set, we need to update the parameters on 49 /* Number of adv flags. */ 59 } adv; variable 68 if (!adv.instance) { in adv_start() 73 if (atomic_test_and_set_bit(adv.flags, ADV_FLAG_ACTIVE)) { in adv_start() 78 if (atomic_test_bit(adv.flags, ADV_FLAG_UPDATE_PARAMS)) { in adv_start() 79 err = bt_le_ext_adv_update_param(adv.instance, param); in adv_start() 81 BT_ERR("Failed updating adv params: %d", err); in adv_start() 82 atomic_clear_bit(adv.flags, ADV_FLAG_ACTIVE); in adv_start() [all …]
|
D | adv.h | 78 struct bt_mesh_adv *adv) in bt_mesh_adv_send_start() argument 80 if (!adv->started) { in bt_mesh_adv_send_start() 81 adv->started = 1; in bt_mesh_adv_send_start() 83 if (adv->cb && adv->cb->start) { in bt_mesh_adv_send_start() 84 adv->cb->start(duration, err, adv->cb_data); in bt_mesh_adv_send_start() 88 adv->cb = NULL; in bt_mesh_adv_send_start() 94 int err, struct bt_mesh_adv const *adv) in bt_mesh_adv_send_end() argument 96 if (adv->started && adv->cb && adv->cb->end) { in bt_mesh_adv_send_end() 97 adv->cb->end(err, adv->cb_data); in bt_mesh_adv_send_end()
|
D | adv.c | 22 #include "adv.h" 45 struct bt_mesh_adv adv = *BT_MESH_ADV(buf); in adv_buf_destroy() local 49 bt_mesh_adv_send_end(0, &adv); in adv_buf_destroy() 68 struct bt_mesh_adv *adv; in bt_mesh_adv_create_from_pool() local 81 adv = get_id(net_buf_id(buf)); in bt_mesh_adv_create_from_pool() 82 BT_MESH_ADV(buf) = adv; in bt_mesh_adv_create_from_pool() 84 (void)memset(adv, 0, sizeof(*adv)); in bt_mesh_adv_create_from_pool() 86 adv->type = type; in bt_mesh_adv_create_from_pool() 87 adv->xmit = xmit; in bt_mesh_adv_create_from_pool()
|
/Zephyr-Core-2.7.6/samples/bluetooth/periodic_adv/src/ |
D | main.c | 17 struct bt_le_ext_adv *adv; in main() local 30 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN_NAME, NULL, &adv); in main() 37 err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_DEFAULT); in main() 45 err = bt_le_per_adv_start(adv); in main() 52 err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT); in main() 64 err = bt_le_per_adv_set_data(adv, ad, ARRAY_SIZE(ad)); in main()
|
/Zephyr-Core-2.7.6/samples/bluetooth/iso_broadcast/src/ |
D | main.c | 66 struct bt_le_ext_adv *adv; in main() local 83 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN_NAME, NULL, &adv); in main() 90 err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_DEFAULT); in main() 98 err = bt_le_per_adv_start(adv); in main() 105 err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT); in main() 112 err = bt_iso_big_create(adv, &big_create_param, &big); in main() 165 err = bt_iso_big_create(adv, &big_create_param, &big); in main()
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/openisa/lll/ |
D | lll_adv.c | 62 static inline bool isr_rx_sr_check(struct lll_adv *lll, struct pdu_adv *adv, 65 static inline bool isr_rx_sr_adva_check(struct pdu_adv *adv, 71 static inline bool isr_rx_ci_check(struct lll_adv *lll, struct pdu_adv *adv, 75 struct pdu_adv *adv, struct pdu_adv *ci, 77 static inline bool isr_rx_ci_adva_check(struct pdu_adv *adv, 798 /* Copy the address from the adv packet we will send into the in chan_prepare() 865 0 /* TODO: extended adv. scan req notification enabled */) { in isr_rx_pdu() 962 static inline bool isr_rx_sr_check(struct lll_adv *lll, struct pdu_adv *adv, in isr_rx_sr_check() argument 973 isr_rx_sr_adva_check(adv, sr); in isr_rx_sr_check() 976 isr_rx_sr_adva_check(adv, sr); in isr_rx_sr_check() [all …]
|
/Zephyr-Core-2.7.6/include/bluetooth/ |
D | direction.h | 62 /** Number of CTE to transmit in each periodic adv interval. */ 113 * @param[in] adv Advertising set object. 118 int bt_df_set_adv_cte_tx_param(struct bt_le_ext_adv *adv, 128 * @param[in] adv Advertising set object. 132 int bt_df_adv_cte_tx_enable(struct bt_le_ext_adv *adv); 137 * @param[in] adv Advertising set object. 141 int bt_df_adv_cte_tx_disable(struct bt_le_ext_adv *adv);
|