/Zephyr-latest/subsys/net/lib/mqtt_sn/ |
D | mqtt_sn_decoder.c | 36 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 …]
|
D | mqtt_sn_encoder.c | 27 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/ |
D | buf_simple.c | 32 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/ |
D | net_buf.h | 142 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() 1469 static inline void net_buf_destroy(struct net_buf *buf) in net_buf_destroy() 1576 static inline void * __must_check net_buf_user_data(const struct net_buf *buf) in net_buf_user_data() 1600 static inline void net_buf_reserve(struct net_buf *buf, size_t reserve) in net_buf_reserve() 1616 static inline void *net_buf_add(struct net_buf *buf, size_t len) in net_buf_add() 1633 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/ |
D | mqtt_decoder.c | 30 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 …]
|
D | mqtt_encoder.c | 46 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/tests/bsim/bluetooth/mesh/src/ |
D | gatt_common.c | 11 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/tests/kernel/common/src/ |
D | byteorder.c | 80 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/mesh/ |
D | sar_cfg.c | 17 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()
|
D | op_agg.c | 16 #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/ |
D | test_ase_control_params.c | 104 uint8_t buf[] = {}; in ZTEST_F() local 115 const uint8_t buf[] = { in test_expect_unsupported_opcode() local 145 struct test_ase_control_params_fixture *fixture, const uint8_t *buf, size_t len) in test_codec_configure_expect_invalid_length() 178 const uint8_t buf[] = { in ZTEST_F() local 203 const uint8_t buf[] = { in ZTEST_F() local 236 const uint8_t buf[] = { in ZTEST_F() local 277 const uint8_t buf[] = { in ZTEST_F() local 313 const uint8_t buf[] = { in ZTEST_F() local 344 const uint8_t buf[] = { in ZTEST_F() local 399 const uint8_t buf[] = { in ZTEST_F() local [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/tester/src/ |
D | main.c | 53 struct net_buf *buf; in bt_hci_cmd_create() local 73 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() 122 static void handle_meta_event(struct net_buf *buf) in handle_meta_event() 145 static void handle_ncp(struct net_buf *buf) in handle_ncp() 165 static void handle_l2cap_credits(struct net_buf *buf) in handle_l2cap_credits() 176 static void handle_l2cap_connected(struct net_buf *buf) in handle_l2cap_connected() 192 static void handle_sig(struct net_buf *buf) in handle_sig() 214 static void handle_l2cap(struct net_buf *buf) in handle_l2cap() 238 static void handle_acl(struct net_buf *buf) in handle_acl() 260 static void recv(struct net_buf *buf) in recv() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/ |
D | main.c | 65 struct net_buf *buf; in bt_hci_cmd_create() local 85 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() 133 static void handle_meta_event(struct net_buf *buf) in handle_meta_event() 156 static void handle_ncp(struct net_buf *buf) in handle_ncp() 175 static void handle_att_notification(struct net_buf *buf) in handle_att_notification() 192 struct net_buf *buf = alloc_l2cap_pdu(); in send_write_rsp() local 198 static void handle_att_write(struct net_buf *buf) in handle_att_write() 208 static void handle_att(struct net_buf *buf) in handle_att() 237 static void handle_l2cap(struct net_buf *buf) in handle_l2cap() 258 static void handle_acl(struct net_buf *buf) in handle_acl() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | cs.c | 50 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 …]
|
D | hci_core.c | 132 #define cmd(buf) (&cmd_data[net_buf_id(buf)]) argument 133 #define acl(buf) ((struct acl_data *)net_buf_user_data(buf)) argument 145 void bt_hci_cmd_state_set_init(struct net_buf *buf, in bt_hci_cmd_state_set_init() 176 static int handle_event_common(uint8_t event, struct net_buf *buf, in handle_event_common() 200 static void handle_event(uint8_t event, struct net_buf *buf, const struct event_handler *handlers, in handle_event() 214 static void handle_vs_event(uint8_t event, struct net_buf *buf, in handle_vs_event() 242 struct net_buf *buf; in bt_send_one_host_num_completed_packets() local 263 __weak void bt_testing_trace_event_acl_pool_destroy(struct net_buf *buf) in bt_testing_trace_event_acl_pool_destroy() 269 void bt_hci_host_num_completed_packets(struct net_buf *buf) in bt_hci_host_num_completed_packets() 312 struct net_buf *buf; in bt_hci_cmd_create() local [all …]
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | ssp.c | 46 struct net_buf *buf; in pin_code_neg_reply() local 64 struct net_buf *buf; in pin_code_reply() local 180 struct net_buf *buf; in ssp_confirm_reply() local 198 struct net_buf *buf; in ssp_confirm_neg_reply() local 297 struct net_buf *buf; in ssp_passkey_reply() local 316 struct net_buf *buf; in ssp_passkey_neg_reply() local 335 struct net_buf *buf; in conn_auth() local 420 void bt_hci_pin_code_req(struct net_buf *buf) in bt_hci_pin_code_req() 437 void bt_hci_link_key_notify(struct net_buf *buf) in bt_hci_link_key_notify() 523 struct net_buf *buf; in link_key_neg_reply() local [all …]
|
D | at.c | 27 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 …]
|
D | br.c | 33 struct net_buf *buf; in reject_conn() local 56 struct net_buf *buf; in accept_conn() local 76 void bt_hci_conn_req(struct net_buf *buf) in bt_hci_conn_req() 109 struct net_buf *buf, *rsp; in br_sufficient_key_size() local 184 void bt_hci_synchronous_conn_complete(struct net_buf *buf) in bt_hci_synchronous_conn_complete() 210 void bt_hci_conn_complete(struct net_buf *buf) in bt_hci_conn_complete() 263 struct net_buf *buf; in request_name() local 367 void bt_hci_inquiry_complete(struct net_buf *buf) in bt_hci_inquiry_complete() 425 void bt_hci_inquiry_result_with_rssi(struct net_buf *buf) in bt_hci_inquiry_result_with_rssi() 472 void bt_hci_extended_inquiry_result(struct net_buf *buf) in bt_hci_extended_inquiry_result() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/ |
D | main.c | 69 struct net_buf *buf; in bt_hci_cmd_create() local 89 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() 137 static void handle_meta_event(struct net_buf *buf) in handle_meta_event() 160 static void handle_ncp(struct net_buf *buf) in handle_ncp() 179 static void handle_att_notification(struct net_buf *buf) in handle_att_notification() 196 struct net_buf *buf = alloc_l2cap_pdu(); in send_write_rsp() local 204 static void handle_att_write_0(struct net_buf *buf) in handle_att_write_0() 218 static void handle_att_write_1(struct net_buf *buf) in handle_att_write_1() 233 static void handle_att(struct net_buf *buf) in handle_att() 261 static void handle_l2cap(struct net_buf *buf) in handle_l2cap() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/ |
D | tester.c | 55 struct net_buf *buf; in bt_hci_cmd_create() local 75 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() 133 static void handle_meta_event(struct net_buf *buf) in handle_meta_event() 157 static void handle_ncp(struct net_buf *buf) in handle_ncp() 177 static void handle_l2cap_credits(struct net_buf *buf) in handle_l2cap_credits() 188 static void handle_l2cap_connected(struct net_buf *buf) in handle_l2cap_connected() 204 static void handle_sig(struct net_buf *buf) in handle_sig() 226 static void handle_l2cap(struct net_buf *buf) in handle_l2cap() 250 static void handle_acl(struct net_buf *buf) in handle_acl() 272 static void recv(struct net_buf *buf) in recv() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | ring_buffer.h | 59 static inline void ring_buf_internal_reset(struct ring_buf *buf, int32_t value) in ring_buf_internal_reset() 157 static inline void ring_buf_init(struct ring_buf *buf, in ring_buf_init() 181 static inline void ring_buf_item_init(struct ring_buf *buf, in ring_buf_item_init() 196 static inline bool ring_buf_is_empty(struct ring_buf *buf) in ring_buf_is_empty() 206 static inline void ring_buf_reset(struct ring_buf *buf) in ring_buf_reset() 218 static inline uint32_t ring_buf_space_get(struct ring_buf *buf) in ring_buf_space_get() 230 static inline uint32_t ring_buf_item_space_get(struct ring_buf *buf) in ring_buf_item_space_get() 242 static inline uint32_t ring_buf_capacity_get(struct ring_buf *buf) in ring_buf_capacity_get() 254 static inline uint32_t ring_buf_size_get(struct ring_buf *buf) in ring_buf_size_get()
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | device_composition.c | 71 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/ |
D | peer.c | 62 struct net_buf *buf; in bt_hci_cmd_create() local 82 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() 128 static void handle_meta_event(struct net_buf *buf) in handle_meta_event() 148 static void handle_ncp(struct net_buf *buf) in handle_ncp() 170 static void handle_att(struct net_buf *buf) in handle_att() 191 static void handle_l2cap(struct net_buf *buf) in handle_l2cap() 212 static void handle_acl(struct net_buf *buf) in handle_acl() 234 static void recv(struct net_buf *buf) in recv() 329 struct net_buf *buf; in rx_thread() local 351 struct net_buf *buf; in set_event_mask() local [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/ |
D | main.c | 61 struct net_buf *buf; in bt_hci_cmd_create() local 81 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() 152 static void handle_ncp(struct net_buf *buf) in handle_ncp() 176 struct net_buf *buf = alloc_l2cap_pdu(); in send_write_rsp() local 182 static void handle_att_write(struct net_buf *buf) in handle_att_write() 197 static void handle_att(struct net_buf *buf) in handle_att() 215 static void handle_l2cap(struct net_buf *buf) in handle_l2cap() 236 static void handle_acl(struct net_buf *buf) in handle_acl() 258 static void recv(struct net_buf *buf) in recv() [all …]
|
/Zephyr-latest/samples/bluetooth/hci_ipc/src/ |
D | main.c | 57 struct net_buf *buf; in hci_ipc_cmd_recv() local 94 struct net_buf *buf; in hci_ipc_acl_recv() local 131 struct net_buf *buf; in hci_ipc_iso_recv() local 168 struct net_buf *buf = NULL; in hci_ipc_rx() local 204 struct net_buf *buf; in tx_thread() local 223 static void hci_ipc_send(struct net_buf *buf, bool is_fatal_err) in hci_ipc_send() 302 struct net_buf *buf; in bt_ctlr_assert_handle() local 341 struct net_buf *buf; in k_sys_fatal_error_handler() local 421 struct net_buf *buf; in main() local
|