/Zephyr-Core-2.7.6/tests/bluetooth/adv/src/ |
D | main.c | 18 static const struct bt_data ad[] = { variable 40 err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), in test_adv_fast_ad_data_update() 47 err = bt_le_adv_update_data(ad, ARRAY_SIZE(ad), in test_adv_fast_ad_data_update()
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_mesh/src/ |
D | test_scanner.c | 74 struct bt_data ad; in test_tx_send_ad_type_msg() local 80 ad.type = type; in test_tx_send_ad_type_msg() 81 ad.data_len = len; in test_tx_send_ad_type_msg() 82 ad.data = data; in test_tx_send_ad_type_msg() 88 LOG_DBG("ad.type %u len %u", ad.type, ad.data_len); in test_tx_send_ad_type_msg() 89 LOG_HEXDUMP_DBG(ad.data, ad.data_len, "ad.data"); in test_tx_send_ad_type_msg() 93 err = bt_le_adv_start(¶m, &ad, 1, NULL, 0); in test_tx_send_ad_type_msg()
|
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/ |
D | adv_legacy.c | 50 struct bt_data ad; in adv_send() local 85 ad.type = bt_mesh_adv_type[BT_MESH_ADV(buf)->type]; in adv_send() 86 ad.data_len = buf->len; in adv_send() 87 ad.data = buf->data; in adv_send() 103 err = bt_le_adv_start(¶m, &ad, 1, NULL, 0); in adv_send() 196 const struct bt_data *ad, size_t ad_len, in bt_mesh_adv_start() argument 200 return bt_le_adv_start(param, ad, ad_len, sd, sd_len); in bt_mesh_adv_start()
|
D | adv_ext.c | 63 const struct bt_data *ad, size_t ad_len, in adv_start() argument 90 err = bt_le_ext_adv_set_data(adv.instance, ad, ad_len, sd, sd_len); in adv_start() 115 struct bt_data ad; in buf_send() local 129 ad.type = bt_mesh_adv_type[BT_MESH_ADV(buf)->type]; in buf_send() 130 ad.data_len = buf->len; in buf_send() 131 ad.data = buf->data; in buf_send() 140 err = adv_start(&adv_param, &start, &ad, 1, NULL, 0); in buf_send() 269 const struct bt_data *ad, size_t ad_len, in bt_mesh_adv_start() argument 281 return adv_start(param, &start, ad, ad_len, sd, sd_len); in bt_mesh_adv_start()
|
/Zephyr-Core-2.7.6/samples/bluetooth/ibeacon/src/ |
D | main.c | 28 static const struct bt_data ad[] = { variable 53 err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), in bt_ready()
|
/Zephyr-Core-2.7.6/samples/bluetooth/scan_adv/src/ |
D | main.c | 19 static const struct bt_data ad[] = { variable 60 err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), in main()
|
/Zephyr-Core-2.7.6/samples/bluetooth/periodic_adv/src/ |
D | main.c | 11 static const struct bt_data ad[] = { variable 64 err = bt_le_per_adv_set_data(adv, ad, ARRAY_SIZE(ad)); in main()
|
/Zephyr-Core-2.7.6/samples/bluetooth/beacon/src/ |
D | main.c | 25 static const struct bt_data ad[] = { variable 57 err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), in bt_ready()
|
/Zephyr-Core-2.7.6/subsys/bluetooth/host/ |
D | adv.c | 348 const struct bt_ad *ad, size_t ad_len, uint8_t *data_len) in set_data_add_complete() argument 353 const struct bt_data *data = ad[i].data; in set_data_add_complete() 355 for (size_t j = 0; j < ad[i].len; j++) { in set_data_add_complete() 386 static int hci_set_ad(uint16_t hci_op, const struct bt_ad *ad, size_t ad_len) in hci_set_ad() argument 401 ad, ad_len, &set_data->len); in hci_set_ad() 411 const struct bt_ad *ad, size_t ad_len) in hci_set_adv_ext_complete() argument 432 err = set_data_add_complete(set_data->data, max_data_size, ad, ad_len, in hci_set_adv_ext_complete() 448 const struct bt_ad *ad, size_t ad_len) in hci_set_adv_ext_fragmented() argument 456 const struct bt_data *data = ad[i].data; in hci_set_adv_ext_fragmented() 458 for (size_t j = 0; j < ad[i].len; j++) { in hci_set_adv_ext_fragmented() [all …]
|
/Zephyr-Core-2.7.6/samples/subsys/mgmt/mcumgr/smp_svr/src/ |
D | bluetooth.c | 19 static const struct bt_data ad[] = { variable 32 rc = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0); in advertise()
|
/Zephyr-Core-2.7.6/samples/bluetooth/peripheral_dis/src/ |
D | main.c | 24 static const struct bt_data ad[] = { variable 99 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0); in main()
|
/Zephyr-Core-2.7.6/samples/bluetooth/peripheral_ht/src/ |
D | main.c | 26 static const struct bt_data ad[] = { variable 61 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0); in bt_ready()
|
/Zephyr-Core-2.7.6/samples/bluetooth/peripheral_hr/src/ |
D | main.c | 25 static const struct bt_data ad[] = { variable 58 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0); in bt_ready()
|
/Zephyr-Core-2.7.6/samples/boards/bbc_microbit/pong/src/ |
D | ble.c | 40 static const struct bt_data ad[] = { variable 363 struct net_buf_simple *ad) in device_found() argument 369 while (ad->len > 1) { in device_found() 370 uint8_t len = net_buf_simple_pull_u8(ad); in device_found() 378 if (len > ad->len) { in device_found() 383 type = net_buf_simple_pull_u8(ad); in device_found() 385 pong_uuid_match(ad->data, len - 1)) { in device_found() 391 net_buf_simple_pull(ad, len - 1); in device_found() 470 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), in ble_timeout()
|
/Zephyr-Core-2.7.6/tests/bluetooth/shell/src/ |
D | main.c | 37 static const struct bt_data ad[] = { variable 55 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, in cmd_hrs_simulate() 56 ARRAY_SIZE(ad), NULL, 0); in cmd_hrs_simulate()
|
/Zephyr-Core-2.7.6/samples/bluetooth/eddystone/src/ |
D | main.c | 33 static const struct bt_data ad[] = { variable 141 struct bt_data ad[3]; member 152 .ad = { 409 slot->ad[2].data + EDS_URL_READ_OFFSET, in read_adv_data() 410 slot->ad[2].data_len - EDS_URL_READ_OFFSET); in read_adv_data() 430 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), in eds_slot_restart() 436 err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, slot->ad, in eds_slot_restart() 437 ARRAY_SIZE(slot->ad), NULL, 0); in eds_slot_restart() 491 slot->ad[2].data_len = MIN(slot->ad[2].data_len, in write_adv_data() 493 memcpy(&slot->ad[2].data + EDS_URL_WRITE_OFFSET, buf, in write_adv_data() [all …]
|
/Zephyr-Core-2.7.6/subsys/net/l2/bluetooth/ |
D | bluetooth.c | 356 static const struct bt_data ad[] = { variable 369 return bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), in bt_advertise() 448 static bool ad_parse(struct net_buf_simple *ad, in ad_parse() argument 453 while (ad->len > 1) { in ad_parse() 454 uint8_t len = net_buf_simple_pull_u8(ad); in ad_parse() 462 if (len > ad->len) { in ad_parse() 467 type = net_buf_simple_pull_u8(ad); in ad_parse() 469 if (func(type, ad->data, len - 1, user_data)) { in ad_parse() 473 net_buf_simple_pull(ad, len - 1); in ad_parse() 480 struct net_buf_simple *ad) in device_found() argument [all …]
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_app/src/ |
D | test_connect2.c | 72 static const struct bt_data ad[] = { variable 111 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0); in bt_ready()
|
/Zephyr-Core-2.7.6/tests/bluetooth/tester/src/ |
D | gap.c | 462 static struct bt_data ad[10] = { variable 530 if (adv_len >= ARRAY_SIZE(ad)) { in start_advertising() 535 ad[adv_len].type = cmd->adv_sr_data[i++]; in start_advertising() 536 ad[adv_len].data_len = cmd->adv_sr_data[i++]; in start_advertising() 537 ad[adv_len].data = &cmd->adv_sr_data[i]; in start_advertising() 538 i += ad[adv_len].data_len; in start_advertising() 557 ad, adv_len, sd_len ? sd : NULL, sd_len) < 0) { in start_advertising() 638 static uint8_t get_ad_flags(struct net_buf_simple *ad) in get_ad_flags() argument 643 for (i = 0U; i < ad->len; i += len - 1) { in get_ad_flags() 644 len = ad->data[i++]; in get_ad_flags() [all …]
|
/Zephyr-Core-2.7.6/samples/bluetooth/peripheral_hids/src/ |
D | main.c | 27 static const struct bt_data ad[] = { variable 97 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0); in bt_ready()
|
/Zephyr-Core-2.7.6/subsys/bluetooth/shell/ |
D | ll.c | 150 uint8_t ad = 0; in cmd_advx() local 188 ad = 1; in cmd_advx() 203 ad = 1; in cmd_advx() 216 ad = 1; in cmd_advx() 227 ad = 1; in cmd_advx() 258 if (ad) { in cmd_advx()
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_audio/src/ |
D | common.h | 56 extern const struct bt_data ad[AD_SIZE]; 59 struct net_buf_simple *ad);
|
D | common.c | 13 const struct bt_data ad[AD_SIZE] = { variable 18 struct net_buf_simple *ad) in device_found() argument
|
/Zephyr-Core-2.7.6/samples/bluetooth/peripheral_sc_only/src/ |
D | main.c | 23 static const struct bt_data ad[] = { variable 140 err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0); in main()
|
/Zephyr-Core-2.7.6/samples/bluetooth/peripheral_identity/src/ |
D | peripheral_identity.c | 20 static const struct bt_data ad[] = { variable 55 err = bt_le_adv_start(&adv_param, ad, ARRAY_SIZE(ad), NULL, 0); in adv_start() 174 struct net_buf_simple *ad) in device_found() argument
|