Home
last modified time | relevance | path

Searched refs:rsp_buf (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/subsys/bluetooth/host/classic/
Davdtp.c272 struct net_buf *rsp_buf; in avdtp_discover_cmd() local
281 rsp_buf = avdtp_create_reply_pdu(err ? BT_AVDTP_REJECT : BT_AVDTP_ACCEPT, in avdtp_discover_cmd()
283 if (!rsp_buf) { in avdtp_discover_cmd()
293 net_buf_add_u8(rsp_buf, error_code); in avdtp_discover_cmd()
303 net_buf_add_mem(rsp_buf, &sep_data, sizeof(sep_data)); in avdtp_discover_cmd()
307 err = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_discover_cmd()
309 net_buf_unref(rsp_buf); in avdtp_discover_cmd()
362 struct net_buf *rsp_buf; in avdtp_get_capabilities_cmd() local
371 rsp_buf = avdtp_create_reply_pdu(BT_AVDTP_ACCEPT, BT_AVDTP_PACKET_TYPE_SINGLE, in avdtp_get_capabilities_cmd()
373 if (!rsp_buf) { in avdtp_get_capabilities_cmd()
[all …]
Dsdp.c117 struct net_buf *rsp_buf; member
861 if (sad->rsp_buf) { in select_attrs()
863 sad->rsp_buf->len - sizeof(struct bt_sdp_hdr); in select_attrs()
874 if (!sad->state->pkt_full && sad->rsp_buf) { in select_attrs()
880 sad->seq = net_buf_add(sad->rsp_buf, in select_attrs()
887 net_buf_add_u8(sad->rsp_buf, BT_SDP_UINT16); in select_attrs()
888 net_buf_add_be16(sad->rsp_buf, att_id_cur); in select_attrs()
891 copy_attribute(&attr->val, sad->rsp_buf, 1); in select_attrs()
923 if (sad->state->pkt_full && !sad->seq && sad->rsp_buf) { in select_attrs()
953 struct net_buf *rsp_buf) in create_attr_list() argument
[all …]
Da2dp.c127 struct net_buf *rsp_buf, uint8_t *errcode) in a2dp_get_capabilities_ind() argument
134 net_buf_add_u8(rsp_buf, BT_AVDTP_SERVICE_MEDIA_TRANSPORT); in a2dp_get_capabilities_ind()
135 net_buf_add_u8(rsp_buf, 0); in a2dp_get_capabilities_ind()
137 net_buf_add_u8(rsp_buf, BT_AVDTP_SERVICE_MEDIA_CODEC); in a2dp_get_capabilities_ind()
140 net_buf_add_u8(rsp_buf, ep->codec_cap->len + 2U); in a2dp_get_capabilities_ind()
142 net_buf_add_u8(rsp_buf, sep->sep_info.media_type << 4U); in a2dp_get_capabilities_ind()
144 net_buf_add_u8(rsp_buf, ep->codec_type); in a2dp_get_capabilities_ind()
146 net_buf_add_mem(rsp_buf, &ep->codec_cap->codec_ie[0], ep->codec_cap->len); in a2dp_get_capabilities_ind()
Davdtp_internal.h186 struct net_buf *rsp_buf, uint8_t *errcode);
Dl2cap_br.c608 struct net_buf *rsp_buf; in l2cap_br_info_req() local
617 rsp_buf = bt_l2cap_create_pdu(&br_sig_pool, 0); in l2cap_br_info_req()
622 hdr_info = net_buf_add(rsp_buf, sizeof(*hdr_info)); in l2cap_br_info_req()
626 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in l2cap_br_info_req()
632 net_buf_add_le32(rsp_buf, L2CAP_FEAT_FIXED_CHAN_MASK); in l2cap_br_info_req()
639 (void)memset(net_buf_add(rsp_buf, 8), 0, 8); in l2cap_br_info_req()
651 l2cap_send(conn, BT_L2CAP_CID_BR_SIG, rsp_buf); in l2cap_br_info_req()
/Zephyr-latest/samples/bluetooth/periodic_sync_conn/src/
Dmain.c59 NET_BUF_SIMPLE_DEFINE_STATIC(rsp_buf, sizeof(bt_addr_le_t) + 2 * sizeof(uint8_t));
75 net_buf_simple_reset(&rsp_buf); in recv_cb()
92 net_buf_simple_add_u8(&rsp_buf, sizeof(bt_addr_le_t)); in recv_cb()
93 net_buf_simple_add_u8(&rsp_buf, BT_DATA_LE_BT_DEVICE_ADDRESS); in recv_cb()
94 net_buf_simple_add_mem(&rsp_buf, &oob.addr.a, sizeof(oob.addr.a)); in recv_cb()
95 net_buf_simple_add_u8(&rsp_buf, oob.addr.type); in recv_cb()
97 err = bt_le_per_adv_set_response_data(sync, &rsp_params, &rsp_buf); in recv_cb()
/Zephyr-latest/samples/bluetooth/periodic_sync_rsp/src/
Dmain.c89 NET_BUF_SIMPLE_DEFINE_STATIC(rsp_buf, 247);
98 net_buf_simple_reset(&rsp_buf); in recv_cb()
99 net_buf_simple_add_mem(&rsp_buf, buf->data, buf->len); in recv_cb()
111 err = bt_le_per_adv_set_response_data(sync, &rsp_params, &rsp_buf); in recv_cb()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp.c50 static struct net_buf_simple *rsp_buf = NET_BUF_SIMPLE(BTP_MTU); variable
269 net_buf_simple_init(rsp_buf, 0); in tester_rsp_buffer_free()
276 *data = net_buf_simple_add(rsp_buf, len); in tester_rsp_buffer_allocate()
/Zephyr-latest/subsys/bluetooth/host/
Dsmp.c1185 struct net_buf *rsp_buf; in smp_br_pairing_req() local
1214 rsp_buf = smp_br_create_pdu(smp, BT_SMP_CMD_PAIRING_RSP, sizeof(*rsp)); in smp_br_pairing_req()
1215 if (!rsp_buf) { in smp_br_pairing_req()
1228 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in smp_br_pairing_req()
1245 smp_br_send(smp, rsp_buf, NULL); in smp_br_pairing_req()
1940 struct net_buf *rsp_buf; in smp_send_pairing_random() local
1942 rsp_buf = smp_create_pdu(smp, BT_SMP_CMD_PAIRING_RANDOM, sizeof(*req)); in smp_send_pairing_random()
1943 if (!rsp_buf) { in smp_send_pairing_random()
1947 req = net_buf_add(rsp_buf, sizeof(*req)); in smp_send_pairing_random()
1950 smp_send(smp, rsp_buf, NULL, NULL); in smp_send_pairing_random()
[all …]