/Zephyr-latest/subsys/bluetooth/audio/ |
D | bap_base.c | 51 static uint32_t base_pull_pd(struct net_buf_simple *net_buf) in base_pull_pd() argument 53 return net_buf_simple_pull_le24(net_buf); in base_pull_pd() 56 static uint8_t base_pull_bis_count(struct net_buf_simple *net_buf) in base_pull_bis_count() argument 58 return net_buf_simple_pull_u8(net_buf); in base_pull_bis_count() 61 static void base_pull_codec_id(struct net_buf_simple *net_buf, in base_pull_codec_id() argument 66 codec.id = net_buf_simple_pull_u8(net_buf); /* coding format */ in base_pull_codec_id() 67 codec.cid = net_buf_simple_pull_le16(net_buf); /* company id */ in base_pull_codec_id() 68 codec.vid = net_buf_simple_pull_le16(net_buf); /* VS codec id */ in base_pull_codec_id() 75 static uint8_t base_pull_ltv(struct net_buf_simple *net_buf, uint8_t **data) in base_pull_ltv() argument 77 const uint8_t len = net_buf_simple_pull_u8(net_buf); in base_pull_ltv() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | hci_core.h | 398 struct net_buf *sent_cmd; 441 int bt_hci_recv(const struct device *dev, struct net_buf *buf); 456 void bt_hci_cmd_state_set_init(struct net_buf *buf, 484 int bt_send(struct net_buf *buf); 498 void bt_hci_host_num_completed_packets(struct net_buf *buf); 501 void bt_hci_pin_code_req(struct net_buf *buf); 502 void bt_hci_link_key_notify(struct net_buf *buf); 503 void bt_hci_link_key_req(struct net_buf *buf); 504 void bt_hci_io_capa_resp(struct net_buf *buf); 505 void bt_hci_io_capa_req(struct net_buf *buf); [all …]
|
D | buf_view.h | 18 struct net_buf *parent; 56 struct net_buf *bt_buf_make_view(struct net_buf *view, 57 struct net_buf *parent, 68 bool bt_buf_has_view(const struct net_buf *parent); 83 void bt_buf_destroy_view(struct net_buf *view, struct bt_buf_view_meta *meta);
|
D | iso_internal.h | 85 void hci_iso(struct net_buf *buf); 88 struct net_buf *bt_iso_get_rx(k_timeout_t timeout); 101 void hci_le_cis_established(struct net_buf *buf); 102 void hci_le_cis_established_v2(struct net_buf *buf); 105 void hci_le_cis_req(struct net_buf *buf); 108 void hci_le_big_complete(struct net_buf *buf); 111 void hci_le_big_terminate(struct net_buf *buf); 114 void hci_le_big_sync_established(struct net_buf *buf); 117 void hci_le_big_sync_lost(struct net_buf *buf); 139 void bt_iso_recv(struct bt_conn *iso, struct net_buf *buf, uint8_t flags);
|
D | direction_internal.h | 10 int hci_df_prepare_connectionless_iq_report(struct net_buf *buf, 13 int hci_df_vs_prepare_connectionless_iq_report(struct net_buf *buf, 16 int hci_df_prepare_connection_iq_report(struct net_buf *buf, 19 int hci_df_vs_prepare_connection_iq_report(struct net_buf *buf, 22 int hci_df_prepare_conn_cte_req_failed(struct net_buf *buf,
|
D | hci_common.c | 12 struct net_buf *bt_hci_evt_create(uint8_t evt, uint8_t len) in bt_hci_evt_create() 15 struct net_buf *buf; in bt_hci_evt_create() 28 struct net_buf *bt_hci_cmd_complete_create(uint16_t op, uint8_t plen) in bt_hci_cmd_complete_create() 30 struct net_buf *buf; in bt_hci_cmd_complete_create() 42 struct net_buf *bt_hci_cmd_status_create(uint16_t op, uint8_t status) in bt_hci_cmd_status_create() 44 struct net_buf *buf; in bt_hci_cmd_status_create()
|
D | buf.c | 63 static void acl_in_pool_destroy(struct net_buf *buf) in acl_in_pool_destroy() 69 static void evt_pool_destroy(struct net_buf *buf) in evt_pool_destroy() 81 static void hci_rx_pool_destroy(struct net_buf *buf) in hci_rx_pool_destroy() 96 struct net_buf *bt_buf_get_rx(enum bt_buf_type type, k_timeout_t timeout) in bt_buf_get_rx() 98 struct net_buf *buf; in bt_buf_get_rx() 138 struct net_buf *bt_buf_get_evt(uint8_t evt, bool discardable, in bt_buf_get_evt() 141 struct net_buf *buf; in bt_buf_get_evt() 200 struct net_buf *bt_buf_make_view(struct net_buf *view, in bt_buf_make_view() 201 struct net_buf *parent, in bt_buf_make_view() 238 void bt_buf_destroy_view(struct net_buf *view, struct bt_buf_view_meta *meta) in bt_buf_destroy_view() [all …]
|
/Zephyr-latest/include/zephyr/ |
D | net_buf.h | 1006 struct net_buf { struct 1011 struct net_buf *frags; argument 1059 uint8_t * __must_check (*alloc)(struct net_buf *buf, size_t *size, 1061 uint8_t * __must_check (*ref)(struct net_buf *buf, uint8_t *data); 1062 void (*unref)(struct net_buf *buf, uint8_t *data); 1106 void (*const destroy)(struct net_buf *buf); 1112 struct net_buf * const __bufs; 1130 .__bufs = (struct net_buf *)_bufs, \ 1134 struct _net_buf_##_name { uint8_t b[sizeof(struct net_buf)]; \ 1137 BUILD_ASSERT(offsetof(struct net_buf, user_data) == \ [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/hci/ |
D | hci_internal.h | 36 struct net_buf *hci_cmd_handle(struct net_buf *cmd, void **node_rx); 37 void hci_evt_encode(struct node_rx_pdu *node_rx, struct net_buf *buf); 40 struct net_buf *buf); 42 void hci_num_cmplt_encode(struct net_buf *buf, uint16_t handle, uint8_t num); 43 int hci_acl_handle(struct net_buf *acl, struct net_buf **evt); 44 void hci_acl_encode(struct node_rx_pdu *node_rx, struct net_buf *buf); 45 int hci_iso_handle(struct net_buf *acl, struct net_buf **evt); 46 void hci_iso_encode(struct net_buf *buf, uint16_t handle, uint8_t flags); 47 int hci_vendor_cmd_handle(uint16_t ocf, struct net_buf *cmd, 48 struct net_buf **evt); [all …]
|
/Zephyr-latest/tests/bluetooth/host/conn/mocks/ |
D | buf_view.c | 11 DEFINE_FAKE_VALUE_FUNC(bool, bt_buf_has_view, const struct net_buf *); 12 DEFINE_FAKE_VALUE_FUNC(struct net_buf *, bt_buf_make_view, struct net_buf *, struct net_buf *, 14 DEFINE_FAKE_VOID_FUNC(bt_buf_destroy_view, struct net_buf *, struct bt_buf_view_meta *);
|
D | buf_view.h | 15 DECLARE_FAKE_VALUE_FUNC(bool, bt_buf_has_view, const struct net_buf *); 16 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, bt_buf_make_view, struct net_buf *, struct net_buf *, 18 DECLARE_FAKE_VOID_FUNC(bt_buf_destroy_view, struct net_buf *, struct bt_buf_view_meta *);
|
D | hci_core.c | 14 DEFINE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t); 15 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **); 20 DEFINE_FAKE_VALUE_FUNC(int, bt_send, struct net_buf *); 22 DEFINE_FAKE_VOID_FUNC(bt_acl_set_ncp_sent, struct net_buf *, bool);
|
D | hci_core.h | 27 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t); 28 DECLARE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **); 33 DECLARE_FAKE_VALUE_FUNC(int, bt_send, struct net_buf *); 35 DECLARE_FAKE_VOID_FUNC(bt_acl_set_ncp_sent, struct net_buf *, bool);
|
/Zephyr-latest/lib/net_buf/ |
D | buf.c | 9 #define LOG_MODULE_NAME net_buf 62 int net_buf_id(const struct net_buf *buf) in net_buf_id() 65 size_t struct_size = ROUND_UP(sizeof(struct net_buf) + pool->user_data_size, in net_buf_id() 66 __alignof__(struct net_buf)); in net_buf_id() 72 static inline struct net_buf *pool_get_uninit(struct net_buf_pool *pool, in pool_get_uninit() 75 size_t struct_size = ROUND_UP(sizeof(struct net_buf) + pool->user_data_size, in pool_get_uninit() 76 __alignof__(struct net_buf)); in pool_get_uninit() 78 struct net_buf *buf; in pool_get_uninit() 80 buf = (struct net_buf *)(((uint8_t *)pool->__bufs) + byte_offset); in pool_get_uninit() 88 void net_buf_reset(struct net_buf *buf) in net_buf_reset() [all …]
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_common.h | 93 struct net_buf *udc_buf_get(const struct device *dev, 108 struct net_buf *udc_buf_get_all(const struct device *dev, 122 struct net_buf *udc_buf_peek(const struct device *dev, 134 struct net_buf *const buf); 165 struct net_buf *const buf, 226 void udc_ep_buf_set_setup(struct net_buf *const buf); 235 bool udc_ep_buf_has_zlp(const struct net_buf *const buf); 242 void udc_ep_buf_clear_zlp(const struct net_buf *const buf); 285 struct net_buf *udc_ctrl_alloc(const struct device *dev, 289 static inline uint16_t udc_data_stage_length(const struct net_buf *const buf) in udc_data_stage_length() [all …]
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/transport/ |
D | smp.h | 26 struct net_buf; 37 typedef int (*smp_transport_out_fn)(struct net_buf *nb); 52 typedef uint16_t (*smp_transport_get_mtu_fn)(const struct net_buf *nb); 67 typedef int (*smp_transport_ud_copy_fn)(struct net_buf *dst, 68 const struct net_buf *src); 92 typedef bool (*smp_transport_query_valid_check_fn)(struct net_buf *nb, void *arg); 131 struct net_buf *current; /* net_buf used for reassembly */
|
/Zephyr-latest/tests/bluetooth/host/cs/mocks/ |
D | net_buf.c | 14 DEFINE_FAKE_VOID_FUNC(net_buf_unref, struct net_buf *); 15 DEFINE_FAKE_VOID_FUNC(net_buf_reset, struct net_buf *); 16 DEFINE_FAKE_VOID_FUNC(net_buf_slist_put, sys_slist_t *, struct net_buf *); 17 DEFINE_FAKE_VALUE_FUNC(struct net_buf *, net_buf_alloc_fixed, struct net_buf_pool *, k_timeout_t);
|
D | net_buf.h | 18 DECLARE_FAKE_VOID_FUNC(net_buf_unref, struct net_buf *); 19 DECLARE_FAKE_VOID_FUNC(net_buf_reset, struct net_buf *); 20 DECLARE_FAKE_VOID_FUNC(net_buf_slist_put, sys_slist_t *, struct net_buf *); 21 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, net_buf_alloc_fixed, struct net_buf_pool *, k_timeout_t);
|
D | hci_core.c | 12 DEFINE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t); 13 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **);
|
/Zephyr-latest/tests/bluetooth/hci_prop_evt/src/ |
D | main.c | 43 void (*handler)(struct net_buf *buf, struct net_buf **evt, 48 static void evt_create(struct net_buf *buf, uint8_t evt, uint8_t len) in evt_create() 58 static void *cmd_complete(struct net_buf **buf, uint8_t plen, uint16_t opcode) in cmd_complete() 71 static int cmd_handle_helper(uint16_t opcode, struct net_buf *cmd, in cmd_handle_helper() 72 struct net_buf **evt, in cmd_handle_helper() 94 struct net_buf *cmd, in cmd_handle() 99 struct net_buf *evt = NULL; in cmd_handle() 123 static void generic_success(struct net_buf *buf, struct net_buf **evt, in generic_success() 137 static void read_local_features(struct net_buf *buf, struct net_buf **evt, in read_local_features() 148 static void read_supported_commands(struct net_buf *buf, struct net_buf **evt, in read_supported_commands() [all …]
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/smp/ |
D | smp_client.h | 61 typedef int (*smp_client_res_fn)(struct net_buf *nb, void *user_data); 72 int smp_client_single_response(struct net_buf *nb, const struct smp_hdr *res_hdr); 86 struct net_buf *smp_client_buf_allocation(struct smp_client_object *smp_client, uint16_t group, 94 void smp_client_buf_free(struct net_buf *nb); 109 int smp_client_send_cmd(struct smp_client_object *smp_client, struct net_buf *nb,
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/ |
D | main.c | 60 static struct net_buf *cmd_rsp; 62 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() 65 struct net_buf *buf; in bt_hci_cmd_create() 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() 187 struct net_buf *alloc_l2cap_pdu(void); 188 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid); 192 struct net_buf *buf = alloc_l2cap_pdu(); in send_write_rsp() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/ |
D | main.c | 50 typedef void (*att_handler_t)(struct net_buf *buf); 64 static struct net_buf *cmd_rsp; 66 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() 69 struct net_buf *buf; in bt_hci_cmd_create() 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() 191 struct net_buf *alloc_l2cap_pdu(void); 192 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid); [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/ |
D | peer.c | 57 static struct net_buf *cmd_rsp; 59 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() 62 struct net_buf *buf; in bt_hci_cmd_create() 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() 167 struct net_buf *alloc_l2cap_pdu(void); 168 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid); 170 static void handle_att(struct net_buf *buf) in handle_att() 191 static void handle_l2cap(struct net_buf *buf) in handle_l2cap() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/ |
D | main.c | 56 static struct net_buf *cmd_rsp; 58 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() 61 struct net_buf *buf; in bt_hci_cmd_create() 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() 171 struct net_buf *alloc_l2cap_pdu(void); 172 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid); 176 struct net_buf *buf = alloc_l2cap_pdu(); in send_write_rsp() 182 static void handle_att_write(struct net_buf *buf) in handle_att_write() [all …]
|