/Zephyr-Core-3.5.0/tests/bluetooth/df/connectionless_cte_chains/src/ |
D | test_add_cte_to_chain.c | 51 struct ll_adv_set *adv; in ZTEST() local 56 adv = common_create_adv_set(TEST_ADV_SET_HANDLE); in ZTEST() 57 common_prepare_df_cfg(adv, TEST_CTE_COUNT); in ZTEST() 58 common_create_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); in ZTEST() 59 common_validate_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); in ZTEST() 61 handle = ull_adv_handle_get(adv); in ZTEST() 69 common_validate_chain_with_cte(adv, TEST_CTE_COUNT, TEST_PER_ADV_SINGLE_PDU); in ZTEST() 71 common_teardown(adv); in ZTEST() 76 struct ll_adv_set *adv; in ZTEST() local 81 adv = common_create_adv_set(TEST_ADV_SET_HANDLE); in ZTEST() [all …]
|
D | test_remove_cte_from_chain.c | 53 struct ll_adv_set *adv; in ZTEST() local 58 adv = common_create_adv_set(TEST_ADV_SET_HANDLE); in ZTEST() 59 common_prepare_df_cfg(adv, TEST_CTE_COUNT); in ZTEST() 60 common_create_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); in ZTEST() 62 handle = ull_adv_handle_get(adv); in ZTEST() 71 common_validate_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); in ZTEST() 73 common_teardown(adv); in ZTEST() 78 struct ll_adv_set *adv; in ZTEST() local 83 adv = common_create_adv_set(TEST_ADV_SET_HANDLE); in ZTEST() 85 common_prepare_df_cfg(adv, TEST_CTE_COUNT); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/ |
D | adv_ext.c | 70 static bool schedule_send(struct bt_mesh_ext_adv *adv); 140 static int adv_start(struct bt_mesh_ext_adv *adv, in adv_start() argument 148 if (!adv->instance) { in adv_start() 153 if (atomic_test_and_set_bit(adv->flags, ADV_FLAG_ACTIVE)) { in adv_start() 158 if (atomic_test_bit(adv->flags, ADV_FLAG_UPDATE_PARAMS)) { in adv_start() 159 err = bt_le_ext_adv_update_param(adv->instance, param); in adv_start() 162 atomic_clear_bit(adv->flags, ADV_FLAG_ACTIVE); in adv_start() 166 atomic_set_bit_to(adv->flags, ADV_FLAG_UPDATE_PARAMS, in adv_start() 167 param != &adv->adv_param); in adv_start() 170 err = bt_le_ext_adv_set_data(adv->instance, ad, ad_len, sd, sd_len); in adv_start() [all …]
|
D | statistic.c | 25 void bt_mesh_stat_planned_count(struct bt_mesh_adv *adv) in bt_mesh_stat_planned_count() argument 27 if (adv->tag & BT_MESH_LOCAL_ADV) { in bt_mesh_stat_planned_count() 29 } else if (adv->tag & BT_MESH_RELAY_ADV) { in bt_mesh_stat_planned_count() 31 } else if (adv->tag & BT_MESH_FRIEND_ADV) { in bt_mesh_stat_planned_count() 36 void bt_mesh_stat_succeeded_count(struct bt_mesh_adv *adv) in bt_mesh_stat_succeeded_count() argument 38 if (adv->tag & BT_MESH_LOCAL_ADV) { in bt_mesh_stat_succeeded_count() 40 } else if (adv->tag & BT_MESH_RELAY_ADV) { in bt_mesh_stat_succeeded_count() 42 } else if (adv->tag & BT_MESH_FRIEND_ADV) { in bt_mesh_stat_succeeded_count()
|
D | adv.c | 50 void bt_mesh_adv_send_start(uint16_t duration, int err, struct bt_mesh_adv *adv) in bt_mesh_adv_send_start() argument 52 if (!adv->started) { in bt_mesh_adv_send_start() 53 adv->started = 1; in bt_mesh_adv_send_start() 55 if (adv->cb && adv->cb->start) { in bt_mesh_adv_send_start() 56 adv->cb->start(duration, err, adv->cb_data); in bt_mesh_adv_send_start() 60 adv->cb = NULL; in bt_mesh_adv_send_start() 62 bt_mesh_stat_succeeded_count(adv); in bt_mesh_adv_send_start() 67 static void bt_mesh_adv_send_end(int err, struct bt_mesh_adv const *adv) in bt_mesh_adv_send_end() argument 69 if (adv->started && adv->cb && adv->cb->end) { in bt_mesh_adv_send_end() 70 adv->cb->end(err, adv->cb_data); in bt_mesh_adv_send_end() [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/host/ |
D | adv.c | 174 enum adv_name_type get_adv_name_type(const struct bt_le_ext_adv *adv) in get_adv_name_type() argument 176 if (atomic_test_bit(adv->flags, BT_ADV_INCLUDE_NAME_SD)) { in get_adv_name_type() 180 if (atomic_test_bit(adv->flags, BT_ADV_INCLUDE_NAME_AD)) { in get_adv_name_type() 211 uint8_t bt_le_ext_adv_get_index(struct bt_le_ext_adv *adv) in bt_le_ext_adv_get_index() argument 213 ptrdiff_t index = adv - adv_pool; in bt_le_ext_adv_get_index() 222 struct bt_le_ext_adv *adv = NULL; in adv_new() local 227 adv = &adv_pool[i]; in adv_new() 232 if (!adv) { in adv_new() 236 (void)memset(adv, 0, sizeof(*adv)); in adv_new() 238 adv->handle = i; in adv_new() [all …]
|
D | id.c | 67 static void adv_id_check_func(struct bt_le_ext_adv *adv, void *data) in adv_id_check_func() argument 75 if (check_data->id == adv->id) { in adv_id_check_func() 79 if (check_data->id == adv->id && in adv_id_check_func() 80 atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in adv_id_check_func() 86 static void adv_is_private_enabled(struct bt_le_ext_adv *adv, void *data) in adv_is_private_enabled() argument 90 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_private_enabled() 91 !atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY)) { in adv_is_private_enabled() 97 static void adv_is_limited_enabled(struct bt_le_ext_adv *adv, void *data) in adv_is_limited_enabled() argument 101 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_limited_enabled() 102 atomic_test_bit(adv->flags, BT_ADV_LIMITED)) { 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);
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/ |
D | ull_adv.c | 71 inline uint16_t ull_adv_handle_get(struct ll_adv_set *adv); 91 static void conn_release(struct ll_adv_set *adv); 96 static void adv_max_events_duration_set(struct ll_adv_set *adv, 109 static uint8_t adv_scan_pdu_addr_update(struct ll_adv_set *adv, 112 static const uint8_t *adva_update(struct ll_adv_set *adv, struct pdu_adv *pdu); 113 static void tgta_update(struct ll_adv_set *adv, struct pdu_adv *pdu); 116 static void init_set(struct ll_adv_set *adv); 133 struct ll_adv_set *adv = &ll_adv[0]; in ll_adv_cmds_set() local 136 adv->hci_handle = 0; in ll_adv_cmds_set() 138 adv->is_created = 1; in ll_adv_cmds_set() [all …]
|
D | ll_tx_pwr.c | 53 struct ll_adv_set *adv; in ll_tx_pwr_lvl_get() local 62 adv = ull_adv_set_get(handle); in ll_tx_pwr_lvl_get() 63 if (!adv) { in ll_tx_pwr_lvl_get() 66 *tx_pwr_lvl = adv->lll.tx_pwr_lvl; in ll_tx_pwr_lvl_get() 151 struct ll_adv_set *adv; in ll_tx_pwr_lvl_set() local 160 adv = ull_adv_set_get(handle); in ll_tx_pwr_lvl_set() 161 if (!adv) { in ll_tx_pwr_lvl_set() 164 adv->lll.tx_pwr_lvl = *tx_pwr_lvl; in ll_tx_pwr_lvl_set()
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_set_adv_own_addr/src/ |
D | test_suite_invalid_inputs.c | 48 struct bt_le_ext_adv adv; in ZTEST() local 51 bt_id_set_adv_own_addr(&adv, 0x00, false, NULL); in ZTEST() 71 struct bt_le_ext_adv adv = {0}; in ZTEST() local 79 err = bt_id_set_adv_own_addr(&adv, options, true, &own_addr_type); in ZTEST() 102 struct bt_le_ext_adv adv = {0}; in ZTEST() local 109 err = bt_id_set_adv_own_addr(&adv, options, true, &own_addr_type); in ZTEST() 133 struct bt_le_ext_adv adv = {0}; in ZTEST() local 142 adv.id = 0; in ZTEST() 143 bt_addr_le_copy(&bt_dev.id_addr[adv.id], BT_RPA_LE_ADDR); in ZTEST() 145 err = bt_id_set_adv_own_addr(&adv, options, true, &own_addr_type); in ZTEST() [all …]
|
D | main.c | 50 struct bt_le_ext_adv adv = {0}; in ZTEST() local 62 err = bt_id_set_adv_own_addr(&adv, options, dir_adv_test_lut[i], &own_addr_type); in ZTEST() 73 err = bt_id_set_adv_own_addr(&adv, options, true, &own_addr_type); in ZTEST() 97 struct bt_le_ext_adv adv = {0}; in ZTEST() local 107 adv.id = 0; in ZTEST() 108 bt_addr_le_copy(&bt_dev.id_addr[adv.id], BT_RPA_LE_ADDR); in ZTEST() 114 err = bt_id_set_adv_own_addr(&adv, options, dir_adv_test_lut[i], &own_addr_type); in ZTEST() 125 err = bt_id_set_adv_own_addr(&adv, options, true, &own_addr_type); in ZTEST() 151 struct bt_le_ext_adv adv = {0}; in ZTEST() local 161 adv.id = 0; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_le_ext_adv_oob_get_local/src/ |
D | test_suite_invalid_inputs.c | 55 struct bt_le_ext_adv adv = {0}; in ZTEST() local 58 bt_le_ext_adv_oob_get_local(&adv, NULL); in ZTEST() 76 struct bt_le_ext_adv adv = {0}; in ZTEST() local 80 err = bt_le_ext_adv_oob_get_local(&adv, &oob); in ZTEST() 103 struct bt_le_ext_adv adv = {0}; in ZTEST() local 111 atomic_clear_bit(adv.flags, BT_ADV_LIMITED); in ZTEST() 112 atomic_clear_bit(adv.flags, BT_ADV_USE_IDENTITY); in ZTEST() 116 err = bt_le_ext_adv_oob_get_local(&adv, &oob); in ZTEST() 140 struct bt_le_ext_adv adv = {0}; in ZTEST() local 151 err = bt_le_ext_adv_oob_get_local(&adv, &oob); in ZTEST() [all …]
|
D | main.c | 48 struct bt_le_ext_adv adv = {0}; in ZTEST() local 59 err = bt_le_ext_adv_oob_get_local(&adv, &oob); in ZTEST() 84 struct bt_le_ext_adv adv = {0}; in ZTEST() local 92 atomic_clear_bit(adv.flags, BT_ADV_USE_IDENTITY); in ZTEST() 93 bt_addr_le_copy(&adv.random_addr, BT_RPA_LE_ADDR); in ZTEST() 95 err = bt_le_ext_adv_oob_get_local(&adv, &oob); in ZTEST()
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_scan_random_addr_check/src/ |
D | main.c | 114 struct bt_le_ext_adv adv = {0}; in ZTEST() local 119 atomic_clear_bit(adv.flags, BT_ADV_ENABLED); in ZTEST() 120 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST() 143 struct bt_le_ext_adv adv = {0}; in ZTEST() local 149 atomic_set_bit(adv.flags, BT_ADV_ENABLED); in ZTEST() 150 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST() 175 struct bt_le_ext_adv adv = {0}; in ZTEST() local 181 atomic_set_bit(adv.flags, BT_ADV_ENABLED); in ZTEST() 182 atomic_set_bit(adv.flags, BT_ADV_USE_IDENTITY); in ZTEST() 183 bt_dev.id_addr[adv.id].type = BT_ADDR_LE_RANDOM; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/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() 53 err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT); in main() 67 err = bt_le_per_adv_set_data(adv, ad, ARRAY_SIZE(ad)); in main() 78 err = bt_le_ext_adv_stop(adv); in main()
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_le_oob_get_local/src/ |
D | test_suite_invalid_inputs.c | 188 struct bt_le_ext_adv adv = {0}; in ZTEST() local 197 adv.id = 1; in ZTEST() 198 atomic_set_bit(adv.flags, BT_ADV_ENABLED); in ZTEST() 199 atomic_set_bit(adv.flags, BT_ADV_USE_IDENTITY); in ZTEST() 202 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST() 240 struct bt_le_ext_adv adv = {0}; in ZTEST() local 249 adv.id = BT_ID_DEFAULT; in ZTEST() 250 atomic_clear_bit(adv.flags, BT_ADV_ENABLED); in ZTEST() 251 atomic_set_bit(adv.flags, BT_ADV_USE_IDENTITY); in ZTEST() 254 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/src/ |
D | peripheral.c | 11 static void create_adv(struct bt_le_ext_adv **adv) in create_adv() argument 26 err = bt_le_ext_adv_create(¶ms, NULL, adv); in create_adv() 32 static void start_adv(struct bt_le_ext_adv *adv) in start_adv() argument 43 err = bt_le_ext_adv_start(adv, &start_params); in start_adv() 51 static void set_ad_data(struct bt_le_ext_adv *adv) in set_ad_data() argument 88 err = bt_le_ext_adv_set_data(adv, &ead_struct, 1, NULL, 0); in set_ad_data() 99 struct bt_le_ext_adv *adv = NULL; in test_peripheral() local 110 create_adv(&adv); in test_peripheral() 111 start_adv(adv); in test_peripheral() 113 set_ad_data(adv); in test_peripheral()
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/security/ccc_update/src/ |
D | peripheral.c | 58 static void create_adv(struct bt_le_ext_adv **adv) in create_adv() argument 72 err = bt_le_ext_adv_create(¶ms, NULL, adv); in create_adv() 78 static void start_adv(struct bt_le_ext_adv *adv) in start_adv() argument 89 err = bt_le_ext_adv_start(adv, &start_params); in start_adv() 97 static void stop_adv(struct bt_le_ext_adv *adv) in stop_adv() argument 101 err = bt_le_ext_adv_stop(adv); in stop_adv() 164 static void connect_pair_check_subscribtion(struct bt_le_ext_adv *adv) in connect_pair_check_subscribtion() argument 166 start_adv(adv); in connect_pair_check_subscribtion() 181 stop_adv(adv); in connect_pair_check_subscribtion() 187 static void connect_wait_unsubscribtion(struct bt_le_ext_adv *adv) in connect_wait_unsubscribtion() argument [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/adv/periodic/src/ |
D | per_adv_advertiser.c | 87 static void create_per_adv_set(struct bt_le_ext_adv **adv) in create_per_adv_set() argument 92 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN_NAME, NULL, adv); in create_per_adv_set() 100 err = bt_le_per_adv_set_param(*adv, BT_LE_PER_ADV_DEFAULT); in create_per_adv_set() 109 static void create_conn_adv_set(struct bt_le_ext_adv **adv) in create_conn_adv_set() argument 114 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN_NAME, NULL, adv); in create_conn_adv_set() 122 static void start_ext_adv_set(struct bt_le_ext_adv *adv) in start_ext_adv_set() argument 127 err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT); in start_ext_adv_set() 135 static void start_per_adv_set(struct bt_le_ext_adv *adv) in start_per_adv_set() argument 140 err = bt_le_per_adv_start(adv); in start_per_adv_set() 149 static void set_per_adv_data(struct bt_le_ext_adv *adv) in set_per_adv_data() argument [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/encrypted_advertising/peripheral/src/ |
D | peripheral_ead.c | 49 static int update_ad_data(struct bt_le_ext_adv *adv) in update_ad_data() argument 96 err = bt_le_ext_adv_set_data(adv, ad_structs, ARRAY_SIZE(ad_structs), NULL, 0); in update_ad_data() 107 static int set_ad_data(struct bt_le_ext_adv *adv) in set_ad_data() argument 109 return update_ad_data(adv); in set_ad_data() 112 static bool rpa_expired_cb(struct bt_le_ext_adv *adv) in rpa_expired_cb() argument 122 update_ad_data(adv); in rpa_expired_cb() 127 static int create_adv(struct bt_le_ext_adv **adv) in create_adv() argument 144 err = bt_le_ext_adv_create(¶ms, &adv_cb, adv); in create_adv() 153 static int start_adv(struct bt_le_ext_adv *adv) in start_adv() argument 164 err = bt_le_ext_adv_start(adv, &start_params); in start_adv() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/gatt/ccc_store/src/ |
D | peripheral.c | 57 static void create_adv(struct bt_le_ext_adv **adv) in create_adv() argument 71 err = bt_le_ext_adv_create(¶ms, NULL, adv); in create_adv() 77 static void start_adv(struct bt_le_ext_adv *adv) in start_adv() argument 88 err = bt_le_ext_adv_start(adv, &start_params); in start_adv() 96 static void stop_adv(struct bt_le_ext_adv *adv) in stop_adv() argument 100 err = bt_le_ext_adv_stop(adv); in stop_adv() 163 static void connect_pair_check_subscribtion(struct bt_le_ext_adv *adv) in connect_pair_check_subscribtion() argument 165 start_adv(adv); in connect_pair_check_subscribtion() 180 stop_adv(adv); in connect_pair_check_subscribtion() 186 static void connect_restore_sec_check_subscribtion(struct bt_le_ext_adv *adv) in connect_restore_sec_check_subscribtion() argument [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/ |
D | bap_bass_broadcaster_test.c | 18 struct bt_le_ext_adv *adv; in test_main() local 35 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN_NAME, NULL, &adv); in test_main() 42 err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_DEFAULT); in test_main() 49 err = bt_le_ext_adv_set_data(adv, ad, ARRAY_SIZE(ad), NULL, 0); in test_main() 56 err = bt_le_per_adv_start(adv); in test_main() 63 err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT); in test_main()
|
D | cap_initiator_broadcast_test.c | 120 static void setup_extended_adv(struct bt_le_ext_adv **adv) in setup_extended_adv() argument 125 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN_NAME, NULL, adv); in setup_extended_adv() 132 err = bt_le_per_adv_set_param(*adv, BT_LE_PER_ADV_DEFAULT); in setup_extended_adv() 140 struct bt_le_ext_adv *adv) in setup_extended_adv_data() argument 162 err = bt_le_ext_adv_set_data(adv, &ext_ad, 1, NULL, 0); in setup_extended_adv_data() 178 err = bt_le_per_adv_set_data(adv, &per_ad, 1); in setup_extended_adv_data() 185 static void start_extended_adv(struct bt_le_ext_adv *adv) in start_extended_adv() argument 190 err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT); in start_extended_adv() 197 err = bt_le_per_adv_start(adv); in start_extended_adv() 204 static void stop_and_delete_extended_adv(struct bt_le_ext_adv *adv) in stop_and_delete_extended_adv() argument [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/att/read_fill_buf/testlib/ |
D | adv.c | 26 static void connected_cb(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_connected_info *info) in connected_cb() argument 41 struct bt_le_ext_adv *adv = NULL; in bt_testlib_adv_conn() local 62 api_err = bt_le_ext_adv_create(¶m, &cb, &adv); in bt_testlib_adv_conn() 64 api_err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT); in bt_testlib_adv_conn() 74 if (adv) { in bt_testlib_adv_conn() 75 bt_le_ext_adv_delete(adv); in bt_testlib_adv_conn()
|