Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 25 of 1269) sorted by relevance

12345678910>>...51

/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_decoder.c36 static ssize_t decode_payload_length(struct net_buf_simple *buf) in decode_payload_length()
71 static void decode_flags(struct net_buf_simple *buf, struct mqtt_sn_flags *flags) in decode_flags()
86 static void decode_data(struct net_buf_simple *buf, struct mqtt_sn_data *dest) in decode_data()
92 static int decode_empty_message(struct net_buf_simple *buf) in decode_empty_message()
102 static int decode_msg_advertise(struct net_buf_simple *buf, struct mqtt_sn_param_advertise *params) in decode_msg_advertise()
114 static int decode_msg_searchgw(struct net_buf_simple *buf, struct mqtt_sn_param_searchgw *params) in decode_msg_searchgw()
125 static int decode_msg_gwinfo(struct net_buf_simple *buf, struct mqtt_sn_param_gwinfo *params) in decode_msg_gwinfo()
142 static int decode_msg_connack(struct net_buf_simple *buf, struct mqtt_sn_param_connack *params) in decode_msg_connack()
153 static int decode_msg_willtopicreq(struct net_buf_simple *buf) in decode_msg_willtopicreq()
158 static int decode_msg_willmsgreq(struct net_buf_simple *buf) in decode_msg_willmsgreq()
[all …]
Dmqtt_sn_encoder.c27 static int prepare_message(struct net_buf_simple *buf, size_t sz, enum mqtt_sn_msg_type type) in prepare_message()
61 static void encode_flags(struct net_buf_simple *buf, struct mqtt_sn_flags *flags) in encode_flags()
80 static int mqtt_sn_encode_msg_searchgw(struct net_buf_simple *buf, in mqtt_sn_encode_msg_searchgw()
96 static int mqtt_sn_encode_msg_gwinfo(struct net_buf_simple *buf, in mqtt_sn_encode_msg_gwinfo()
113 static int mqtt_sn_encode_msg_connect(struct net_buf_simple *buf, in mqtt_sn_encode_msg_connect()
136 static int mqtt_sn_encode_msg_willtopic(struct net_buf_simple *buf, in mqtt_sn_encode_msg_willtopic()
155 static int mqtt_sn_encode_msg_willmsg(struct net_buf_simple *buf, in mqtt_sn_encode_msg_willmsg()
171 static int mqtt_sn_encode_msg_register(struct net_buf_simple *buf, in mqtt_sn_encode_msg_register()
190 static int mqtt_sn_encode_msg_regack(struct net_buf_simple *buf, in mqtt_sn_encode_msg_regack()
208 static int mqtt_sn_encode_msg_publish(struct net_buf_simple *buf, in mqtt_sn_encode_msg_publish()
[all …]
/Zephyr-latest/lib/net_buf/
Dbuf_simple.c32 void net_buf_simple_init_with_data(struct net_buf_simple *buf, in net_buf_simple_init_with_data()
41 void net_buf_simple_reserve(struct net_buf_simple *buf, size_t reserve) in net_buf_simple_reserve()
56 void *net_buf_simple_add(struct net_buf_simple *buf, size_t len) in net_buf_simple_add()
68 void *net_buf_simple_add_mem(struct net_buf_simple *buf, const void *mem, in net_buf_simple_add_mem()
76 uint8_t *net_buf_simple_add_u8(struct net_buf_simple *buf, uint8_t val) in net_buf_simple_add_u8()
88 void net_buf_simple_add_le16(struct net_buf_simple *buf, uint16_t val) in net_buf_simple_add_le16()
95 void net_buf_simple_add_be16(struct net_buf_simple *buf, uint16_t val) in net_buf_simple_add_be16()
102 void net_buf_simple_add_le24(struct net_buf_simple *buf, uint32_t val) in net_buf_simple_add_le24()
109 void net_buf_simple_add_be24(struct net_buf_simple *buf, uint32_t val) in net_buf_simple_add_be24()
116 void net_buf_simple_add_le32(struct net_buf_simple *buf, uint32_t val) in net_buf_simple_add_le32()
[all …]
/Zephyr-latest/include/zephyr/
Dnet_buf.h142 static inline void net_buf_simple_init(struct net_buf_simple *buf, in net_buf_simple_init()
172 static inline void net_buf_simple_reset(struct net_buf_simple *buf) in net_buf_simple_reset()
905 static inline uint8_t *net_buf_simple_tail(const struct net_buf_simple *buf) in net_buf_simple_tail()
965 static inline void net_buf_simple_save(const struct net_buf_simple *buf, in net_buf_simple_save()
981 static inline void net_buf_simple_restore(struct net_buf_simple *buf, in net_buf_simple_restore()
1435 static inline void net_buf_destroy(struct net_buf *buf) in net_buf_destroy()
1532 static inline void * __must_check net_buf_user_data(const struct net_buf *buf) in net_buf_user_data()
1556 static inline void net_buf_reserve(struct net_buf *buf, size_t reserve) in net_buf_reserve()
1572 static inline void *net_buf_add(struct net_buf *buf, size_t len) in net_buf_add()
1589 static inline void *net_buf_add_mem(struct net_buf *buf, const void *mem, in net_buf_add_mem()
[all …]
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_decoder.c30 static int unpack_uint8(struct buf_ctx *buf, uint8_t *val) in unpack_uint8()
60 static int unpack_uint16(struct buf_ctx *buf, uint16_t *val) in unpack_uint16()
90 static int unpack_utf8_str(struct buf_ctx *buf, struct mqtt_utf8 *str) in unpack_utf8_str()
133 static int unpack_data(uint32_t length, struct buf_ctx *buf, in unpack_data()
168 static int packet_length_decode(struct buf_ctx *buf, uint32_t *length) in packet_length_decode()
198 int fixed_header_decode(struct buf_ctx *buf, uint8_t *type_and_flags, in fixed_header_decode()
211 int connect_ack_decode(const struct mqtt_client *client, struct buf_ctx *buf, in connect_ack_decode()
240 int publish_decode(uint8_t flags, uint32_t var_length, struct buf_ctx *buf, in publish_decode()
279 int publish_ack_decode(struct buf_ctx *buf, struct mqtt_puback_param *param) in publish_ack_decode()
284 int publish_receive_decode(struct buf_ctx *buf, struct mqtt_pubrec_param *param) in publish_receive_decode()
[all …]
Dmqtt_encoder.c46 static int pack_uint8(uint8_t val, struct buf_ctx *buf) in pack_uint8()
74 static int pack_uint16(uint16_t val, struct buf_ctx *buf) in pack_uint16()
102 static int pack_utf8_str(const struct mqtt_utf8 *str, struct buf_ctx *buf) in pack_utf8_str()
145 static uint8_t packet_length_encode(uint32_t length, struct buf_ctx *buf) in packet_length_encode()
194 struct buf_ctx *buf) in mqtt_encode_fixed_header()
237 static int zero_len_str_encode(struct buf_ctx *buf) in zero_len_str_encode()
254 struct buf_ctx *buf) in mqtt_message_id_only_enc()
277 struct buf_ctx *buf) in connect_request_encode()
398 int publish_encode(const struct mqtt_publish_param *param, struct buf_ctx *buf) in publish_encode()
443 struct buf_ctx *buf) in publish_ack_encode()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dring_buffer.h70 static inline void ring_buf_internal_reset(struct ring_buf *buf, ring_buf_idx_t value) in ring_buf_internal_reset()
78 #define RING_BUF_INIT(buf, size8) \ argument
173 static inline void ring_buf_init(struct ring_buf *buf, in ring_buf_init()
197 static inline void ring_buf_item_init(struct ring_buf *buf, in ring_buf_item_init()
212 static inline bool ring_buf_is_empty(const struct ring_buf *buf) in ring_buf_is_empty()
222 static inline void ring_buf_reset(struct ring_buf *buf) in ring_buf_reset()
234 static inline uint32_t ring_buf_space_get(const struct ring_buf *buf) in ring_buf_space_get()
248 static inline uint32_t ring_buf_item_space_get(const struct ring_buf *buf) in ring_buf_item_space_get()
260 static inline uint32_t ring_buf_capacity_get(const struct ring_buf *buf) in ring_buf_capacity_get()
272 static inline uint32_t ring_buf_size_get(const struct ring_buf *buf) in ring_buf_size_get()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dgatt_common.c11 void bt_mesh_test_parse_mesh_gatt_preamble(struct net_buf_simple *buf) in bt_mesh_test_parse_mesh_gatt_preamble()
19 void bt_mesh_test_parse_mesh_pb_gatt_service(struct net_buf_simple *buf) in bt_mesh_test_parse_mesh_pb_gatt_service()
29 void bt_mesh_test_parse_mesh_proxy_service(struct net_buf_simple *buf) in bt_mesh_test_parse_mesh_proxy_service()
/Zephyr-latest/subsys/bluetooth/mesh/
Dsar_cfg.c17 void bt_mesh_sar_tx_encode(struct net_buf_simple *buf, in bt_mesh_sar_tx_encode()
29 void bt_mesh_sar_rx_encode(struct net_buf_simple *buf, in bt_mesh_sar_rx_encode()
39 void bt_mesh_sar_tx_decode(struct net_buf_simple *buf, in bt_mesh_sar_tx_decode()
57 void bt_mesh_sar_rx_decode(struct net_buf_simple *buf, in bt_mesh_sar_rx_decode()
Dop_agg.c16 #define IS_LENGTH_LONG(buf) ((buf)->data[0] & 1) argument
19 int bt_mesh_op_agg_encode_msg(struct net_buf_simple *msg, struct net_buf_simple *buf) in bt_mesh_op_agg_encode_msg()
40 struct net_buf_simple *buf) in bt_mesh_op_agg_decode_msg()
67 bool bt_mesh_op_agg_is_op_agg_msg(struct net_buf_simple *buf) in bt_mesh_op_agg_is_op_agg_msg()
/Zephyr-latest/tests/bluetooth/audio/ascs/src/
Dtest_ase_control_params.c107 uint8_t buf[] = {}; in ZTEST_F() local
118 const uint8_t buf[] = { in test_expect_unsupported_opcode() local
148 struct test_ase_control_params_fixture *fixture, const uint8_t *buf, size_t len) in test_codec_configure_expect_invalid_length()
181 const uint8_t buf[] = { in ZTEST_F() local
206 const uint8_t buf[] = { in ZTEST_F() local
239 const uint8_t buf[] = { in ZTEST_F() local
280 const uint8_t buf[] = { in ZTEST_F() local
316 const uint8_t buf[] = { in ZTEST_F() local
347 const uint8_t buf[] = { in ZTEST_F() local
402 const uint8_t buf[] = { in ZTEST_F() local
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/tester/src/
Dmain.c55 struct net_buf *buf; in bt_hci_cmd_create() local
75 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete()
124 static void handle_meta_event(struct net_buf *buf) in handle_meta_event()
147 static void handle_ncp(struct net_buf *buf) in handle_ncp()
167 static void handle_l2cap_credits(struct net_buf *buf) in handle_l2cap_credits()
178 static void handle_l2cap_connected(struct net_buf *buf) in handle_l2cap_connected()
194 static void handle_sig(struct net_buf *buf) in handle_sig()
216 static void handle_l2cap(struct net_buf *buf) in handle_l2cap()
240 static void handle_acl(struct net_buf *buf) in handle_acl()
262 static void recv(struct net_buf *buf) in recv()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/
Dmain.c67 struct net_buf *buf; in bt_hci_cmd_create() local
87 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete()
135 static void handle_meta_event(struct net_buf *buf) in handle_meta_event()
158 static void handle_ncp(struct net_buf *buf) in handle_ncp()
177 static void handle_att_notification(struct net_buf *buf) in handle_att_notification()
194 struct net_buf *buf = alloc_l2cap_pdu(); in send_write_rsp() local
200 static void handle_att_write(struct net_buf *buf) in handle_att_write()
210 static void handle_att(struct net_buf *buf) in handle_att()
239 static void handle_l2cap(struct net_buf *buf) in handle_l2cap()
260 static void handle_acl(struct net_buf *buf) in handle_acl()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dcs.c50 struct net_buf *buf = net_buf_alloc(&reassembly_buf_pool, K_NO_WAIT); in alloc_reassembly_buf() local
73 static void free_reassembly_buf(struct net_buf **buf) in free_reassembly_buf()
108 struct net_buf *buf = CONTAINER_OF(node, struct net_buf, node); in get_reassembly_buf() local
210 struct net_buf *buf = get_reassembly_buf(conn->handle, false); in clear_on_disconnect() local
281 struct net_buf *buf; in bt_le_cs_read_remote_supported_capabilities() local
294 void bt_hci_le_cs_read_remote_supported_capabilities_complete(struct net_buf *buf) in bt_hci_le_cs_read_remote_supported_capabilities_complete()
414 struct net_buf *buf; in bt_le_cs_set_default_settings() local
441 struct net_buf *buf; in bt_le_cs_read_remote_fae_table() local
454 void bt_hci_le_cs_read_remote_fae_table_complete(struct net_buf *buf) in bt_hci_le_cs_read_remote_fae_table_complete()
493 struct net_buf *buf; in bt_le_cs_start_test() local
[all …]
Dhci_core.c135 #define cmd(buf) (&cmd_data[net_buf_id(buf)]) argument
136 #define acl(buf) ((struct acl_data *)net_buf_user_data(buf)) argument
148 void bt_hci_cmd_state_set_init(struct net_buf *buf, in bt_hci_cmd_state_set_init()
179 static int handle_event_common(uint8_t event, struct net_buf *buf, in handle_event_common()
203 static void handle_event(uint8_t event, struct net_buf *buf, const struct event_handler *handlers, in handle_event()
217 static void handle_vs_event(uint8_t event, struct net_buf *buf, in handle_vs_event()
245 struct net_buf *buf; in bt_send_one_host_num_completed_packets() local
266 __weak void bt_testing_trace_event_acl_pool_destroy(struct net_buf *buf) in bt_testing_trace_event_acl_pool_destroy()
272 void bt_hci_host_num_completed_packets(struct net_buf *buf) in bt_hci_host_num_completed_packets()
315 struct net_buf *buf; in bt_hci_cmd_create() local
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/
Dmain.c64 struct net_buf *buf; in bt_hci_cmd_create() local
84 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete()
132 static void handle_meta_event(struct net_buf *buf) in handle_meta_event()
155 static void handle_ncp(struct net_buf *buf) in handle_ncp()
179 struct net_buf *buf = alloc_l2cap_pdu(); in send_write_rsp() local
185 static void handle_att_write(struct net_buf *buf) in handle_att_write()
200 static void handle_att(struct net_buf *buf) in handle_att()
218 static void handle_l2cap(struct net_buf *buf) in handle_l2cap()
238 static void handle_acl(struct net_buf *buf) in handle_acl()
259 static void recv(struct net_buf *buf) in recv()
[all …]
/Zephyr-latest/subsys/bluetooth/host/classic/
Dssp.c49 struct net_buf *buf; in pin_code_neg_reply() local
67 struct net_buf *buf; in pin_code_reply() local
193 struct net_buf *buf; in ssp_confirm_reply() local
211 struct net_buf *buf; in ssp_confirm_neg_reply() local
310 struct net_buf *buf; in ssp_passkey_reply() local
329 struct net_buf *buf; in ssp_passkey_neg_reply() local
348 struct net_buf *buf; in conn_auth() local
433 void bt_hci_pin_code_req(struct net_buf *buf) in bt_hci_pin_code_req()
450 void bt_hci_link_key_notify(struct net_buf *buf) in bt_hci_link_key_notify()
536 struct net_buf *buf; in link_key_neg_reply() local
[all …]
Dat.c27 int at_check_byte(struct net_buf *buf, char check_byte) in at_check_byte()
75 static int at_parse_result(const char *str, struct net_buf *buf, in at_parse_result()
92 static int get_cmd_value(struct at_client *at, struct net_buf *buf, in get_cmd_value()
122 static int get_response_string(struct at_client *at, struct net_buf *buf, in get_response_string()
158 static int at_state_start(struct at_client *at, struct net_buf *buf) in at_state_start()
171 static int at_state_start_cr(struct at_client *at, struct net_buf *buf) in at_state_start_cr()
184 static int at_state_start_lf(struct at_client *at, struct net_buf *buf) in at_state_start_lf()
198 static int at_state_get_cmd_string(struct at_client *at, struct net_buf *buf) in at_state_get_cmd_string()
212 static int at_state_process_cmd(struct at_client *at, struct net_buf *buf) in at_state_process_cmd()
228 static int at_state_get_result_string(struct at_client *at, struct net_buf *buf) in at_state_get_result_string()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/
Dtester.c56 struct net_buf *buf; in bt_hci_cmd_create() local
76 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete()
134 static void handle_meta_event(struct net_buf *buf) in handle_meta_event()
158 static void handle_ncp(struct net_buf *buf) in handle_ncp()
178 static void handle_l2cap_credits(struct net_buf *buf) in handle_l2cap_credits()
189 static void handle_l2cap_connected(struct net_buf *buf) in handle_l2cap_connected()
205 static void handle_sig(struct net_buf *buf) in handle_sig()
227 static void handle_l2cap(struct net_buf *buf) in handle_l2cap()
251 static void handle_acl(struct net_buf *buf) in handle_acl()
273 static void recv(struct net_buf *buf) in recv()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/
Dmain.c72 struct net_buf *buf; in bt_hci_cmd_create() local
92 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete()
140 static void handle_meta_event(struct net_buf *buf) in handle_meta_event()
163 static void handle_ncp(struct net_buf *buf) in handle_ncp()
182 static void handle_att_notification(struct net_buf *buf) in handle_att_notification()
199 struct net_buf *buf = alloc_l2cap_pdu(); in send_write_rsp() local
207 static void handle_att_write_0(struct net_buf *buf) in handle_att_write_0()
221 static void handle_att_write_1(struct net_buf *buf) in handle_att_write_1()
236 static void handle_att(struct net_buf *buf) in handle_att()
264 static void handle_l2cap(struct net_buf *buf) in handle_l2cap()
[all …]
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Ddevice_composition.c71 struct net_buf_simple *buf) in gen_onoff_get()
122 struct net_buf_simple *buf) in gen_onoff_set_unack()
191 struct net_buf_simple *buf) in gen_onoff_set()
264 struct net_buf_simple *buf) in gen_onoff_status()
280 struct net_buf_simple *buf) in gen_level_get()
331 struct net_buf_simple *buf) in gen_level_set_unack()
397 struct net_buf_simple *buf) in gen_level_set()
466 struct net_buf_simple *buf) in gen_delta_set_unack()
548 struct net_buf_simple *buf) in gen_delta_set()
633 struct net_buf_simple *buf) in gen_move_set_unack()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/
Dpeer.c63 struct net_buf *buf; in bt_hci_cmd_create() local
83 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete()
129 static void handle_meta_event(struct net_buf *buf) in handle_meta_event()
149 static void handle_ncp(struct net_buf *buf) in handle_ncp()
171 static void handle_att(struct net_buf *buf) in handle_att()
192 static void handle_l2cap(struct net_buf *buf) in handle_l2cap()
213 static void handle_acl(struct net_buf *buf) in handle_acl()
235 static void recv(struct net_buf *buf) in recv()
330 struct net_buf *buf; in rx_thread() local
352 struct net_buf *buf; in set_event_mask() local
[all …]
/Zephyr-latest/samples/bluetooth/hci_ipc/src/
Dmain.c60 struct net_buf *buf; in hci_ipc_cmd_recv() local
97 struct net_buf *buf; in hci_ipc_acl_recv() local
134 struct net_buf *buf; in hci_ipc_iso_recv() local
171 struct net_buf *buf = NULL; in hci_ipc_rx() local
207 struct net_buf *buf; in tx_thread() local
226 static void hci_ipc_send(struct net_buf *buf, bool is_fatal_err) in hci_ipc_send()
305 struct net_buf *buf; in bt_ctlr_assert_handle() local
344 struct net_buf *buf; in k_sys_fatal_error_handler() local
424 struct net_buf *buf; in main() local
/Zephyr-latest/tests/kernel/common/src/
Dbyteorder.c80 uint8_t buf[] = { in ZTEST() local
99 uint8_t buf[] = { in ZTEST() local
119 uint8_t buf[] = {0xf0, 0xe1, 0xd2, 0xc3, 0xb4}; in ZTEST() local
136 uint8_t buf[] = {0xf0, 0xe1, 0xd2, 0xc3, 0xb4}; in ZTEST() local
153 uint8_t buf[] = { in ZTEST() local
172 uint8_t buf[] = { in ZTEST() local
191 uint8_t buf[] = { in ZTEST() local
210 uint8_t buf[] = { in ZTEST() local
230 uint8_t buf[] = { in ZTEST() local
249 uint8_t buf[] = { in ZTEST() local
[all …]
/Zephyr-latest/subsys/bluetooth/controller/hci/
Dhci.c299 static void hci_evt_create(struct net_buf *buf, uint8_t evt, uint8_t len) in hci_evt_create()
308 void *hci_cmd_complete(struct net_buf **buf, uint8_t plen) in hci_cmd_complete()
322 struct net_buf *buf; in cmd_complete_status() local
332 static void *meta_evt(struct net_buf *buf, uint8_t subevt, uint8_t melen) in meta_evt()
344 __maybe_unused static void *vs_event(struct net_buf *buf, uint8_t subevt, uint8_t evt_len) in vs_event()
357 static void *mesh_evt(struct net_buf *buf, uint8_t subevt, uint8_t melen) in mesh_evt()
371 static void disconnect(struct net_buf *buf, struct net_buf **evt) in disconnect()
383 static void read_remote_ver_info(struct net_buf *buf, struct net_buf **evt) in read_remote_ver_info()
415 static void set_event_mask(struct net_buf *buf, struct net_buf **evt) in set_event_mask()
424 static void set_event_mask_page_2(struct net_buf *buf, struct net_buf **evt) in set_event_mask_page_2()
[all …]

12345678910>>...51