Lines Matching refs:ad_len

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
584 ad, ad_len, &set_data->len); in hci_set_adv_ext_complete()
598 const struct bt_ad *ad, size_t ad_len) in hci_set_adv_ext_fragmented() argument
604 err = ad_stream_new(&stream, ad, ad_len); in hci_set_adv_ext_fragmented()
648 const struct bt_ad *ad, size_t ad_len) in hci_set_ad_ext() argument
652 for (size_t i = 0; i < ad_len; i++) { in hci_set_ad_ext()
676 return hci_set_adv_ext_complete(adv, hci_op, total_len_bytes, ad, ad_len); in hci_set_ad_ext()
678 return hci_set_adv_ext_fragmented(adv, hci_op, ad, ad_len); in hci_set_ad_ext()
685 size_t ad_len) in set_ad() argument
690 ad, ad_len); in set_ad()
693 return hci_set_ad(BT_HCI_OP_LE_SET_ADV_DATA, ad, ad_len); in set_ad()
710 const struct bt_data *ad, size_t ad_len) in hci_set_per_adv_data() argument
714 struct bt_ad d = { .data = ad, .len = ad_len }; in hci_set_per_adv_data()
761 static inline bool ad_has_name(const struct bt_data *ad, size_t ad_len) in ad_has_name() argument
765 for (i = 0; i < ad_len; i++) { in ad_has_name()
775 static bool ad_is_limited(const struct bt_data *ad, size_t ad_len) in ad_is_limited() argument
779 for (i = 0; i < ad_len; i++) { in ad_is_limited()
793 const struct bt_data *ad, size_t ad_len, in le_adv_update() argument
806 if ((ad && ad_has_name(ad, ad_len)) || in le_adv_update()
820 d[0].len = ad_len; in le_adv_update()
855 int bt_le_adv_update_data(const struct bt_data *ad, size_t ad_len, in bt_le_adv_update_data() argument
871 return le_adv_update(adv, ad, ad_len, sd, sd_len, false, scannable, in bt_le_adv_update_data()
972 const struct bt_data *ad, size_t ad_len, in bt_le_adv_start_legacy() argument
1059 err = le_adv_update(adv, ad, ad_len, sd, sd_len, false, in bt_le_adv_start_legacy()
1272 const struct bt_data *ad, size_t ad_len, in bt_le_adv_start_ext() argument
1303 err = bt_le_ext_adv_set_data(adv, ad, ad_len, sd, sd_len); in bt_le_adv_start_ext()
1365 const struct bt_data *ad, size_t ad_len, in bt_le_adv_start() argument
1380 err = bt_le_adv_start_ext(adv, param, ad, ad_len, sd, sd_len); in bt_le_adv_start()
1382 err = bt_le_adv_start_legacy(adv, param, ad, ad_len, sd, sd_len); in bt_le_adv_start()
1389 if (ad_is_limited(ad, ad_len)) { in bt_le_adv_start()
1735 const struct bt_data *ad, size_t ad_len, in bt_le_ext_adv_set_data() argument
1750 if ((scannable && ad_len) || in bt_le_ext_adv_set_data()
1756 return le_adv_update(adv, ad, ad_len, sd, sd_len, ext_adv, scannable, in bt_le_ext_adv_set_data()
1925 const struct bt_data *ad, size_t ad_len) in bt_le_per_adv_set_data() argument
1943 if (ad_len != 0 && ad == NULL) { in bt_le_per_adv_set_data()
1947 for (size_t i = 0; i < ad_len; i++) { in bt_le_per_adv_set_data()
1959 return hci_set_per_adv_data(adv, ad, ad_len); in bt_le_per_adv_set_data()