/Zephyr-latest/tests/bsim/bluetooth/host/adv/long_ad/src/ |
D | advertiser.c | 63 size_t ad_len = 0; in ad_deserialize() local 78 output[ad_len].data = data; in ad_deserialize() 79 output[ad_len].type = type; in ad_deserialize() 80 output[ad_len].data_len = data_len; in ad_deserialize() 82 ad_len += 1; in ad_deserialize() 86 return ad_len; in ad_deserialize() 93 size_t ad_len = 0; in set_ad_data() local 98 ad_len = ad_deserialize(serialized_ad, serialized_ad_size, ad); in set_ad_data() 100 err = bt_le_ext_adv_set_data(adv, ad, ad_len, NULL, 0); in set_ad_data()
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | cap_acceptor.c | 339 size_t ad_len = 0; in cap_acceptor_ad_data_add() local 342 return ad_len; in cap_acceptor_ad_data_add() 349 ad_len += ad_cap_announcement_data_add(data, data_size); in cap_acceptor_ad_data_add() 366 __ASSERT(data_size > ad_len, "No space for AD_RSI"); in cap_acceptor_ad_data_add() 367 data[ad_len].type = BT_DATA_CSIS_RSI; in cap_acceptor_ad_data_add() 368 data[ad_len].data_len = ARRAY_SIZE(ad_rsi); in cap_acceptor_ad_data_add() 369 data[ad_len].data = &ad_rsi[0]; in cap_acceptor_ad_data_add() 370 ad_len++; in cap_acceptor_ad_data_add() 373 return ad_len; in cap_acceptor_ad_data_add()
|
D | csip_set_member.c | 318 size_t ad_len = 0; in csis_ad_data_add() local 339 __ASSERT(data_array_size > ad_len, "No space for AD_RSI"); in csis_ad_data_add() 340 data_array[ad_len].type = BT_DATA_CSIS_RSI; in csis_ad_data_add() 341 data_array[ad_len].data_len = ARRAY_SIZE(ad_rsi); in csis_ad_data_add() 342 data_array[ad_len].data = &ad_rsi[0]; in csis_ad_data_add() 343 ad_len++; in csis_ad_data_add() 346 return ad_len; in csis_ad_data_add()
|
D | bap.c | 4233 size_t ad_len = 0; in connectable_ad_data_add() local 4251 __ASSERT(data_array_size > ad_len, "No space for AD_BAP_ANNOUNCEMENT"); in connectable_ad_data_add() 4252 data_array[ad_len].type = BT_DATA_SVC_DATA16; in connectable_ad_data_add() 4253 data_array[ad_len].data_len = ARRAY_SIZE(ad_bap_announcement); in connectable_ad_data_add() 4254 data_array[ad_len].data = &ad_bap_announcement[0]; in connectable_ad_data_add() 4255 ad_len++; in connectable_ad_data_add() 4259 ad_len += bap_scan_delegator_ad_data_add(&data_array[ad_len], in connectable_ad_data_add() 4260 data_array_size - ad_len); in connectable_ad_data_add() 4264 ad_len += cap_acceptor_ad_data_add(&data_array[ad_len], data_array_size - ad_len, in connectable_ad_data_add() 4269 ad_len += gmap_ad_data_add(&data_array[ad_len], data_array_size - ad_len); in connectable_ad_data_add() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | adv_legacy.c | 48 const struct bt_data *ad, size_t ad_len, in bt_data_send() argument 98 err = bt_le_adv_start(¶m, ad, ad_len, NULL, 0); in bt_data_send() 127 const struct bt_data *ad, size_t ad_len) in bt_mesh_adv_bt_data_send() argument 129 return bt_data_send(num_events, adv_int, ad, ad_len, NULL); in bt_mesh_adv_bt_data_send() 274 const struct bt_data *ad, size_t ad_len, in bt_mesh_adv_gatt_start() argument 278 return bt_le_adv_start(param, ad, ad_len, sd, sd_len); in bt_mesh_adv_gatt_start()
|
D | adv_ext.c | 159 const struct bt_data *ad, size_t ad_len, in adv_start() argument 186 err = bt_le_ext_adv_set_data(ext_adv->instance, ad, ad_len, sd, sd_len); in adv_start() 205 const struct bt_data *ad, size_t ad_len) in bt_data_send() argument 220 return adv_start(ext_adv, &ext_adv->adv_param, &start, ad, ad_len, NULL, 0); in bt_data_send() 568 const struct bt_data *ad, size_t ad_len, in bt_mesh_adv_gatt_start() argument 581 return adv_start(ext_adv, param, &start, ad, ad_len, sd, sd_len); in bt_mesh_adv_gatt_start() 585 const struct bt_data *ad, size_t ad_len) in bt_mesh_adv_bt_data_send() argument 587 return bt_data_send(advs, num_events, adv_interval, ad, ad_len); in bt_mesh_adv_bt_data_send()
|
D | adv.h | 116 const struct bt_data *ad, size_t ad_len, 124 const struct bt_data *ad, size_t ad_len);
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | adv.c | 45 size_t ad_len; member 62 const struct bt_ad *ad, size_t ad_len) in ad_stream_new() argument 66 stream->ad_len = ad_len; in ad_stream_new() 68 for (size_t i = 0; i < ad_len; i++) { in ad_stream_new() 119 if (stream->ad_index == stream->ad_len) { in ad_stream_current_ltv_update() 497 const struct bt_ad *ad, size_t ad_len, uint8_t *data_len) in set_data_add_complete() argument 501 for (size_t i = 0; i < ad_len; i++) { in set_data_add_complete() 535 static int hci_set_ad(uint16_t hci_op, const struct bt_ad *ad, size_t ad_len) in hci_set_ad() argument 550 ad, ad_len, &set_data->len); in hci_set_ad() 560 size_t total_data_len, const struct bt_ad *ad, size_t ad_len) in hci_set_adv_ext_complete() argument [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_adv_aux.c | 127 uint8_t ad_len = 0U; in ll_adv_aux_ad_data_set() local 444 ad_len = len - ad_len_chain; 447 *val_ptr++ = ad_len; 450 *val_ptr++ = ad_len; 623 (void)memcpy(dptr_chain, &data[ad_len + ad_len_overflow], ad_len_chain); 1525 uint8_t ad_len; in ull_adv_aux_hdr_set_clear() local 1539 ad_len = *((uint8_t *)hdr_data); in ull_adv_aux_hdr_set_clear() 1540 hdr_data = (uint8_t *)hdr_data + sizeof(ad_len); in ull_adv_aux_hdr_set_clear() 1545 return ull_adv_data_set(adv, ad_len, ad_data); in ull_adv_aux_hdr_set_clear() 1833 ad_len = *(uint8_t *)hdr_data; in ull_adv_aux_hdr_set_clear() [all …]
|
D | ull_adv_sync.c | 80 const uint8_t *ad, uint8_t ad_len); 84 const uint8_t *ad, uint8_t ad_len); 1570 const uint8_t *ad, uint8_t ad_len, uint8_t max_ad_len) argument 1577 while (ad_len) { 1581 uint8_t pdu_add_len = ad_len; 1588 if (pdu_ad_len + ad_len > CONFIG_BT_CTLR_ADV_DATA_LEN_MAX) { 1593 if (pdu_ad_len + ad_len > max_ad_len || 1594 PDU_AC_EXT_PAYLOAD_SIZE_MAX - pdu->len < ad_len) { 1623 ad_len -= pdu_add_len; 1627 if (ad_len) { [all …]
|
D | ull_sync.c | 1441 uint16_t ad_len; local 1456 ad_len = acad[PDU_ADV_DATA_HEADER_LEN_OFFSET]; 1457 if (ad_len && 1464 ad_len += 1U; 1465 if (ad_len < acad_len) { 1466 acad_len -= ad_len; 1472 acad += ad_len; 1476 if (ad_len != (sizeof(*chm_upd_ind) + 1U)) {
|
D | ull_adv_iso.c | 1307 uint8_t ad_len; in adv_iso_chm_complete_commit() local 1335 ad_len = ad[PDU_ADV_DATA_HEADER_LEN_OFFSET]; in adv_iso_chm_complete_commit() 1336 if (ad_len && in adv_iso_chm_complete_commit() 1341 ad_len += 1U; in adv_iso_chm_complete_commit() 1343 LL_ASSERT(ad_len <= len); in adv_iso_chm_complete_commit() 1345 ad += ad_len; in adv_iso_chm_complete_commit() 1346 len -= ad_len; in adv_iso_chm_complete_commit()
|
/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | bt.c | 1894 size_t ad_len = 0; in ad_init() local 1913 __ASSERT(data_array_size > ad_len, "No space for AD_FLAGS"); in ad_init() 1914 data_array[ad_len].type = BT_DATA_FLAGS; in ad_init() 1915 data_array[ad_len].data_len = sizeof(ad_flags); in ad_init() 1916 data_array[ad_len].data = &ad_flags; in ad_init() 1917 ad_len++; in ad_init() 1924 __ASSERT(data_array_size > ad_len, "No space for appearance"); in ad_init() 1926 data_array[ad_len].type = BT_DATA_GAP_APPEARANCE; in ad_init() 1927 data_array[ad_len].data_len = sizeof(appearance_data); in ad_init() 1928 data_array[ad_len].data = appearance_data; in ad_init() [all …]
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_cc2520.c | 1159 nonce[0] = 0 | (apkt->ad_len ? 0x40 : 0) | (m << 3) | 1; in generate_nonce() 1195 if (!apkt->ad || !apkt->ad_len) { in insert_crypto_parameters() 1200 if (apkt->pkt->in_buf && apkt->pkt->in_buf - apkt->ad_len != apkt->ad) { in insert_crypto_parameters() 1212 in_len = apkt->ad_len; in insert_crypto_parameters() 1218 memcpy(in_buf, apkt->ad, apkt->ad_len); in insert_crypto_parameters() 1219 memcpy(in_buf + apkt->ad_len, in insert_crypto_parameters() 1221 in_len = apkt->ad_len + apkt->pkt->in_len; in insert_crypto_parameters() 1280 apkt->pkt->out_len = apkt->pkt->in_len + apkt->ad_len + in cc2520_crypto_ccm() 1291 0x000, apkt->ad_len, m) || in cc2520_crypto_ccm() 1329 apkt->pkt->out_len = apkt->pkt->in_len + apkt->ad_len; in cc2520_crypto_uccm() [all …]
|
/Zephyr-latest/include/zephyr/crypto/ |
D | cipher.h | 227 uint32_t ad_len; member
|
/Zephyr-latest/drivers/crypto/ |
D | crypto_tc_shim.c | 117 aead_op->ad, aead_op->ad_len, op->in_buf, in do_ccm_encrypt_mac() 166 aead_op->ad, aead_op->ad_len, in do_ccm_decrypt_auth()
|
D | crypto_mtls_shim.c | 189 apkt->ad, apkt->ad_len, in mtls_ccm_encrypt_auth() 218 apkt->ad, apkt->ad_len, in mtls_ccm_decrypt_auth() 251 apkt->ad, apkt->ad_len, in mtls_gcm_encrypt_auth() 278 apkt->ad, apkt->ad_len, in mtls_gcm_decrypt_auth()
|
D | crypto_ataes132a.c | 707 if (aead_op->ad != NULL || aead_op->ad_len != 0U) { in do_ccm_encrypt_mac() 752 if (aead_op->ad != NULL || aead_op->ad_len != 0U) { in do_ccm_decrypt_auth()
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | bluetooth.h | 1253 const struct bt_data *ad, size_t ad_len, 1268 int bt_le_adv_update_data(const struct bt_data *ad, size_t ad_len, 1385 const struct bt_data *ad, size_t ad_len, 1498 const struct bt_data *ad, size_t ad_len);
|
/Zephyr-latest/tests/bluetooth/tester/src/btp/ |
D | btp_gap.h | 454 const struct bt_data *ad, size_t ad_len, 459 int tester_gap_padv_set_data(struct bt_data *per_ad, uint8_t ad_len);
|
/Zephyr-latest/samples/drivers/crypto/src/ |
D | main.c | 417 .ad_len = sizeof(ccm_hdr), in ccm_mode() 529 .ad_len = sizeof(gcm_hdr), in gcm_mode()
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_security.c | 126 apkt->ad_len = auth_len; in prepare_cipher_aead_pkt()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_gap.c | 618 const struct bt_data *ad, size_t ad_len, in tester_gap_create_adv_instance() argument 684 err = bt_le_ext_adv_set_data(ext_adv, ad, ad_len, sd_len ? sd : NULL, sd_len); in tester_gap_create_adv_instance() 1583 int tester_gap_padv_set_data(struct bt_data *per_ad, uint8_t ad_len) argument 1592 err = bt_le_per_adv_set_data(ext_adv, per_ad, ad_len);
|