/Zephyr-latest/tests/bluetooth/host/id/mocks/ |
D | net_buf.h | 13 FAKE(net_buf_simple_add) \ 18 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t);
|
D | net_buf.c | 14 DEFINE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t);
|
/Zephyr-latest/tests/bluetooth/mesh/delayable_msg/src/ |
D | main.c | 142 payload = net_buf_simple_add(&buf, BT_MESH_TX_SDU_MAX); in ZTEST() 171 memcpy(net_buf_simple_add(&buf1, 20), tx_data, 20); in ZTEST() 173 memcpy(net_buf_simple_add(&buf2, 20), tx_data, 20); in ZTEST() 175 memcpy(net_buf_simple_add(&buf3, 20), tx_data, 20); in ZTEST() 177 memcpy(net_buf_simple_add(&buf4, 20), tx_data, 20); in ZTEST() 219 memcpy(net_buf_simple_add(&buf, 20), tx_data, 20); in ZTEST() 253 memcpy(net_buf_simple_add(&buf1, 20), tx_data, 20); in ZTEST() 254 memcpy(net_buf_simple_add(&buf2, BT_MESH_TX_SDU_MAX), tx_data, BT_MESH_TX_SDU_MAX); in ZTEST() 281 memcpy(net_buf_simple_add(&buf1, 20), tx_data, 20); in ZTEST() 282 memcpy(net_buf_simple_add(&buf2, 20), tx_data, 20); in ZTEST() [all …]
|
/Zephyr-latest/lib/net_buf/ |
D | buf_simple.c | 56 void *net_buf_simple_add(struct net_buf_simple *buf, size_t len) in net_buf_simple_add() function 73 return memcpy(net_buf_simple_add(buf, len), mem, len); in net_buf_simple_add_mem() 82 u8 = net_buf_simple_add(buf, 1); in net_buf_simple_add_u8() 92 sys_put_le16(val, net_buf_simple_add(buf, sizeof(val))); in net_buf_simple_add_le16() 99 sys_put_be16(val, net_buf_simple_add(buf, sizeof(val))); in net_buf_simple_add_be16() 106 sys_put_le24(val, net_buf_simple_add(buf, 3)); in net_buf_simple_add_le24() 113 sys_put_be24(val, net_buf_simple_add(buf, 3)); in net_buf_simple_add_be24() 120 sys_put_le32(val, net_buf_simple_add(buf, sizeof(val))); in net_buf_simple_add_le32() 127 sys_put_be32(val, net_buf_simple_add(buf, sizeof(val))); in net_buf_simple_add_be32() 134 sys_put_le40(val, net_buf_simple_add(buf, 5)); in net_buf_simple_add_le40() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_op_agg.c | 69 memset(net_buf_simple_add(&msg, BT_MESH_DUMMY_VND_MOD_MSG_MINLEN - 1), 0, in get_handler() 74 net_buf_simple_add(&msg, 1); in get_handler() 105 memset(net_buf_simple_add(&msg, BT_MESH_DUMMY_VND_MOD_MSG_MINLEN - 1), 0, in dummy_vnd_mod_get() 110 net_buf_simple_add(&msg, 1); in dummy_vnd_mod_get()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | health_srv.c | 44 test_id = net_buf_simple_add(msg, 1); in health_get_registered() 58 net_buf_simple_add(msg, fault_count); in health_get_registered() 77 test_id = net_buf_simple_add(msg, 1); in health_get_current() 78 company_ptr = net_buf_simple_add(msg, sizeof(company_id)); in health_get_current() 95 net_buf_simple_add(msg, fault_count); in health_get_current()
|
D | crypto.c | 404 net_buf_simple_add(buf, mic_len); in bt_mesh_net_encrypt() 473 net_buf_simple_add(buf, APP_MIC_LEN(ctx->aszmic)); in bt_mesh_app_encrypt() 497 net_buf_simple_add(out, buf->len); in bt_mesh_app_decrypt()
|
D | cfg_srv.c | 667 (void)memset(net_buf_simple_add(&msg, 7), 0, 7); in send_mod_pub_status() 681 memcpy(net_buf_simple_add(&msg, 4), mod_id, 4); in send_mod_pub_status() 683 memcpy(net_buf_simple_add(&msg, 2), mod_id, 2); in send_mod_pub_status() 933 memcpy(net_buf_simple_add(&msg, 4), mod_id, 4); in send_mod_sub_status() 935 memcpy(net_buf_simple_add(&msg, 2), mod_id, 2); in send_mod_sub_status() 1837 memcpy(net_buf_simple_add(msg, 4), mod_id, 4); in create_mod_app_status() 1839 memcpy(net_buf_simple_add(msg, 2), mod_id, 2); in create_mod_app_status() 2270 (void)memset(net_buf_simple_add(&msg, 7), 0, 7); in hb_pub_send_status()
|
D | delayable_msg.c | 185 memcpy(net_buf_simple_add(&buf, tmp), chunk->data, tmp); in push_msg_from_delayable_msgs()
|
D | friend.c | 575 upd = net_buf_simple_add(&sdu, sizeof(*upd)); in encode_update() 593 cfm = net_buf_simple_add(&sdu, sizeof(*cfm)); in enqueue_sub_cfm() 917 off = net_buf_simple_add(&sdu, sizeof(*off)); in enqueue_offer()
|
D | provisionee.c | 257 net_buf_simple_add(&cfm, auth_size))) { in send_confirm()
|
D | provisioner.c | 547 net_buf_simple_add(&pdu, 8); /* For MIC */ in send_prov_data()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | bap_broadcast_assistant.c | 1171 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_scan_start() 1234 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_scan_stop() 1388 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_add_src() 1424 subgroup = net_buf_simple_add(&att_buf, subgroup_size); in bt_bap_broadcast_assistant_add_src() 1515 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_mod_src() 1566 subgroup = net_buf_simple_add(&att_buf, subgroup_size); in bt_bap_broadcast_assistant_mod_src() 1617 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_set_broadcast_code() 1657 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_rem_src()
|
D | has_client.c | 306 hdr = net_buf_simple_add(&buf, sizeof(*hdr)); in read_presets_req() 308 req = net_buf_simple_add(&buf, sizeof(*req)); in read_presets_req() 338 hdr = net_buf_simple_add(&buf, sizeof(*hdr)); in preset_set() 340 req = net_buf_simple_add(&buf, sizeof(*req)); in preset_set() 354 hdr = net_buf_simple_add(&buf, sizeof(*hdr)); in preset_set_next_or_prev()
|
D | bap_unicast_client.c | 178 req = net_buf_simple_add(buf, sizeof(*req)); in unicast_client_send_start() 1900 hdr = net_buf_simple_add(&client->net_buf, sizeof(*hdr)); in bt_bap_unicast_client_ep_create_pdu() 1933 req = net_buf_simple_add(buf, sizeof(*req)); in unicast_client_ep_config() 1977 req = net_buf_simple_add(buf, sizeof(*req)); in bt_bap_unicast_client_ep_qos() 2011 req = net_buf_simple_add(buf, sizeof(*req)); in unicast_client_ep_enable() 2044 req = net_buf_simple_add(buf, sizeof(*req)); in unicast_client_ep_metadata() 3163 op = net_buf_simple_add(buf, sizeof(*op)); in bt_bap_unicast_client_config() 3260 op = net_buf_simple_add(buf, sizeof(*op)); in bt_bap_unicast_client_qos() 3322 req = net_buf_simple_add(buf, sizeof(*req)); in bt_bap_unicast_client_enable() 3355 req = net_buf_simple_add(buf, sizeof(*req)); in bt_bap_unicast_client_metadata() [all …]
|
D | has.c | 837 hdr = net_buf_simple_add(&buf, sizeof(*hdr)); in bt_has_cp_read_preset_rsp() 839 rsp = net_buf_simple_add(&buf, sizeof(*rsp)); in bt_has_cp_read_preset_rsp() 853 hdr = net_buf_simple_add(buf, sizeof(*hdr)); in preset_changed_prepare() 855 preset_changed = net_buf_simple_add(buf, sizeof(*preset_changed)); in preset_changed_prepare() 874 generic_update = net_buf_simple_add(&buf, sizeof(*generic_update)); in bt_has_cp_generic_update()
|
D | pacs.c | 153 pac_codec = net_buf_simple_add(buf, sizeof(*pac_codec)); in build_pac_records() 203 data.rsp = net_buf_simple_add(buf, sizeof(*data.rsp)); in get_pac_records()
|
D | ascs.c | 718 cfg = net_buf_simple_add(buf, sizeof(*cfg)); in ascs_ep_get_status_config() 746 qos = net_buf_simple_add(buf, sizeof(*qos)); in ascs_ep_get_status_qos() 768 enable = net_buf_simple_add(buf, sizeof(*enable)); in ascs_ep_get_status_enable() 1134 rsp = net_buf_simple_add(&cp_rsp_buf, sizeof(*rsp)); in ascs_cp_rsp_init() 1165 ase_rsp = net_buf_simple_add(&cp_rsp_buf, sizeof(*ase_rsp)); in ascs_cp_rsp_add()
|
/Zephyr-latest/subsys/bluetooth/services/ots/ |
D | ots_dir_list.c | 84 start = net_buf_simple_add(net_buf, sizeof(len)); in dir_list_object_encode()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp.c | 275 *data = net_buf_simple_add(rsp_buf, len); in tester_rsp_buffer_allocate()
|
D | btp_gap.c | 871 ev = net_buf_simple_add(adv_buf, sizeof(*ev)); 877 memcpy(net_buf_simple_add(adv_buf, buf_ad->len), buf_ad->data, buf_ad->len); 930 memcpy(net_buf_simple_add(adv_buf, buf_ad->len), buf_ad->data, buf_ad->len);
|
D | btp_gatt.c | 2182 gatt_attr = net_buf_simple_add(foreach->buf, sizeof(*gatt_attr)); in get_attrs_rp() 2271 rp = net_buf_simple_add(buf, sizeof(*rp)); in get_attr_val_rp() 2292 net_buf_simple_add(buf, read); in get_attr_val_rp()
|
/Zephyr-latest/include/zephyr/ |
D | net_buf.h | 202 void *net_buf_simple_add(struct net_buf_simple *buf, size_t len); 1618 return net_buf_simple_add(&buf->b, len); in net_buf_add()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_aics.c | 129 ev = net_buf_simple_add(rx_ev_buf, sizeof(*ev)); in btp_send_aics_description_ev()
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | shell.c | 1019 net_buf_simple_add(&msg, len); in cmd_net_send()
|