Home
last modified time | relevance | path

Searched refs:net_buf_simple_add (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-Core-3.4.0/tests/bluetooth/host/ecc/mocks/
Dnet_buf.h11 #define NET_BUF_FFF_FAKES_LIST(FAKE) FAKE(net_buf_simple_add)
13 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t);
Dnet_buf.c13 DEFINE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t);
/Zephyr-Core-3.4.0/tests/bluetooth/host/id/mocks/
Dnet_buf.h13 FAKE(net_buf_simple_add) \
18 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t);
Dnet_buf.c14 DEFINE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t);
/Zephyr-Core-3.4.0/subsys/net/
Dbuf_simple.c56 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_le48(val, net_buf_simple_add(buf, 6)); in net_buf_simple_add_le48()
[all …]
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/mesh/src/
Dtest_op_agg.c76 memset(net_buf_simple_add(&msg, BT_MESH_DUMMY_VND_MOD_MSG_MINLEN - 1), 0, in get_handler()
81 net_buf_simple_add(&msg, 1); in get_handler()
111 memset(net_buf_simple_add(&msg, BT_MESH_DUMMY_VND_MOD_MSG_MINLEN - 1), 0, in dummy_vnd_mod_get()
116 net_buf_simple_add(&msg, 1); in dummy_vnd_mod_get()
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/
Dhealth_srv.c45 test_id = net_buf_simple_add(msg, 1); in health_get_registered()
59 net_buf_simple_add(msg, fault_count); in health_get_registered()
78 test_id = net_buf_simple_add(msg, 1); in health_get_current()
79 company_ptr = net_buf_simple_add(msg, sizeof(company_id)); in health_get_current()
96 net_buf_simple_add(msg, fault_count); in health_get_current()
Dcrypto.c358 net_buf_simple_add(buf, mic_len); in bt_mesh_net_encrypt()
427 net_buf_simple_add(buf, APP_MIC_LEN(ctx->aszmic)); in bt_mesh_app_encrypt()
452 net_buf_simple_add(out, buf->len); in bt_mesh_app_decrypt()
Dcfg_srv.c672 (void)memset(net_buf_simple_add(&msg, 7), 0, 7); in send_mod_pub_status()
686 memcpy(net_buf_simple_add(&msg, 4), mod_id, 4); in send_mod_pub_status()
688 memcpy(net_buf_simple_add(&msg, 2), mod_id, 2); in send_mod_pub_status()
937 memcpy(net_buf_simple_add(&msg, 4), mod_id, 4); in send_mod_sub_status()
939 memcpy(net_buf_simple_add(&msg, 2), mod_id, 2); in send_mod_sub_status()
1809 memcpy(net_buf_simple_add(msg, 4), mod_id, 4); in create_mod_app_status()
1811 memcpy(net_buf_simple_add(msg, 2), mod_id, 2); in create_mod_app_status()
Dfriend.c564 upd = net_buf_simple_add(&sdu, sizeof(*upd)); in encode_update()
582 cfm = net_buf_simple_add(&sdu, sizeof(*cfm)); in enqueue_sub_cfm()
906 off = net_buf_simple_add(&sdu, sizeof(*off)); in enqueue_offer()
Dprov_device.c243 net_buf_simple_add(&cfm, auth_size))) { in send_confirm()
Dprovisioner.c538 net_buf_simple_add(&pdu, 8); /* For MIC */ in send_prov_data()
/Zephyr-Core-3.4.0/subsys/bluetooth/audio/
Dbap_broadcast_assistant.c670 cp = net_buf_simple_add(&cp_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_scan_start()
709 cp = net_buf_simple_add(&cp_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_scan_stop()
737 cp = net_buf_simple_add(&cp_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_add_src()
769 subgroup = net_buf_simple_add(&cp_buf, subgroup_size); in bt_bap_broadcast_assistant_add_src()
815 cp = net_buf_simple_add(&cp_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_mod_src()
861 subgroup = net_buf_simple_add(&cp_buf, subgroup_size); in bt_bap_broadcast_assistant_mod_src()
905 cp = net_buf_simple_add(&cp_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_set_broadcast_code()
938 cp = net_buf_simple_add(&cp_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_rem_src()
Dpacs.c92 ltv = net_buf_simple_add(buf, sizeof(*ltv)); in pac_data_add()
124 pac_codec = net_buf_simple_add(buf, sizeof(*pac_codec)); in build_pac_records()
133 cc = net_buf_simple_add(buf, sizeof(*cc)); in build_pac_records()
146 meta = net_buf_simple_add(buf, sizeof(*meta)); in build_pac_records()
186 data.rsp = net_buf_simple_add(buf, sizeof(*data.rsp)); in get_pac_records()
Dhas_client.c335 hdr = net_buf_simple_add(&buf, sizeof(*hdr)); in read_presets_req()
337 req = net_buf_simple_add(&buf, sizeof(*req)); in read_presets_req()
369 hdr = net_buf_simple_add(&buf, sizeof(*hdr)); in preset_set()
371 req = net_buf_simple_add(&buf, sizeof(*req)); in preset_set()
385 hdr = net_buf_simple_add(&buf, sizeof(*hdr)); in preset_set_next_or_prev()
Dhas.c540 hdr = net_buf_simple_add(&buf, sizeof(*hdr)); in bt_has_cp_read_preset_rsp()
542 rsp = net_buf_simple_add(&buf, sizeof(*rsp)); in bt_has_cp_read_preset_rsp()
573 hdr = net_buf_simple_add(buf, sizeof(*hdr)); in preset_changed_prepare()
575 preset_changed = net_buf_simple_add(buf, sizeof(*preset_changed)); in preset_changed_prepare()
591 generic_update = net_buf_simple_add(&buf, sizeof(*generic_update)); in bt_has_cp_generic_update()
Dbap_unicast_client.c142 req = net_buf_simple_add(buf, sizeof(*req)); in unicast_client_send_start()
1113 cc = net_buf_simple_add(buf, sizeof(*cc)); in unicast_client_codec_data_add()
1711 hdr = net_buf_simple_add(&client->net_buf, sizeof(*hdr)); in bt_bap_unicast_client_ep_create_pdu()
1745 req = net_buf_simple_add(buf, sizeof(*req)); in unicast_client_ep_config()
1790 req = net_buf_simple_add(buf, sizeof(*req)); in bt_bap_unicast_client_ep_qos()
1824 req = net_buf_simple_add(buf, sizeof(*req)); in unicast_client_ep_enable()
1858 req = net_buf_simple_add(buf, sizeof(*req)); in unicast_client_ep_metadata()
2743 op = net_buf_simple_add(buf, sizeof(*op)); in bt_bap_unicast_client_config()
2846 op = net_buf_simple_add(buf, sizeof(*op)); in bt_bap_unicast_client_qos()
2908 req = net_buf_simple_add(buf, sizeof(*req)); in bt_bap_unicast_client_enable()
[all …]
Dbap_broadcast_source.c326 start = net_buf_simple_add(buf, sizeof(len)); in encode_base_subgroup()
356 start = net_buf_simple_add(buf, sizeof(len)); in encode_base_subgroup()
396 start = net_buf_simple_add(buf, sizeof(len)); in encode_base_subgroup()
Dascs.c473 cc = net_buf_simple_add(buf, sizeof(*cc)); in ascs_codec_data_add()
485 cfg = net_buf_simple_add(buf, sizeof(*cfg)); in ascs_ep_get_status_config()
514 qos = net_buf_simple_add(buf, sizeof(*qos)); in ascs_ep_get_status_qos()
537 enable = net_buf_simple_add(buf, sizeof(*enable)); in ascs_ep_get_status_enable()
559 status = net_buf_simple_add(buf, sizeof(*status)); in ascs_ep_get_status_idle()
869 rsp = net_buf_simple_add(&rsp_buf, sizeof(*rsp)); in ascs_cp_rsp_init()
900 ase_rsp = net_buf_simple_add(&rsp_buf, sizeof(*ase_rsp)); in ascs_cp_rsp_add()
/Zephyr-Core-3.4.0/subsys/bluetooth/services/ots/
Dots_dir_list.c84 start = net_buf_simple_add(net_buf, sizeof(len)); in dir_list_object_encode()
/Zephyr-Core-3.4.0/tests/bluetooth/tester/src/
Dbtp_gap.c715 ev = net_buf_simple_add(adv_buf, sizeof(*ev)); in store_adv()
721 memcpy(net_buf_simple_add(adv_buf, ad->len), ad->data, ad->len); in store_adv()
774 memcpy(net_buf_simple_add(adv_buf, ad->len), ad->data, ad->len); in device_found()
Dbtp_gatt.c2182 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()
Dbtp_mesh.c376 ev = net_buf_simple_add(buf, sizeof(*ev)); in output_string()
2868 ev = net_buf_simple_add(&buf, sizeof(*ev)); in net_recv_ev()
Dbtp_bap.c435 ev = net_buf_simple_add(rx_ev_buf, sizeof(*ev)); in btp_send_stream_received_ev()
/Zephyr-Core-3.4.0/include/zephyr/net/
Dbuf.h196 void *net_buf_simple_add(struct net_buf_simple *buf, size_t len);
1495 return net_buf_simple_add(&buf->b, len); in net_buf_add()

12