/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | avdtp.c | 269 struct net_buf *rsp_buf; in avdtp_discover_handler() local 278 rsp_buf = in avdtp_discover_handler() 281 if (!rsp_buf) { in avdtp_discover_handler() 290 net_buf_add_u8(rsp_buf, error_code); in avdtp_discover_handler() 300 net_buf_add_mem(rsp_buf, &sep_data, sizeof(sep_data)); in avdtp_discover_handler() 304 err = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_discover_handler() 306 net_buf_unref(rsp_buf); in avdtp_discover_handler() 360 struct net_buf *rsp_buf; in avdtp_get_capabilities_handler() local 368 rsp_buf = in avdtp_get_capabilities_handler() 371 if (!rsp_buf) { in avdtp_get_capabilities_handler() [all …]
|
D | sdp.c | 113 struct net_buf *rsp_buf; member 856 if (sad->rsp_buf) { in select_attrs() 858 sad->rsp_buf->len - sizeof(struct bt_sdp_hdr); in select_attrs() 869 if (!sad->state->pkt_full && sad->rsp_buf) { in select_attrs() 875 sad->seq = net_buf_add(sad->rsp_buf, in select_attrs() 882 net_buf_add_u8(sad->rsp_buf, BT_SDP_UINT16); in select_attrs() 883 net_buf_add_be16(sad->rsp_buf, att_id_cur); in select_attrs() 886 copy_attribute(&attr->val, sad->rsp_buf, 1); in select_attrs() 918 if (sad->state->pkt_full && !sad->seq && sad->rsp_buf) { in select_attrs() 948 struct net_buf *rsp_buf) in create_attr_list() argument [all …]
|
D | a2dp.c | 125 struct net_buf *rsp_buf, uint8_t *errcode) in a2dp_get_capabilities_ind() argument 132 net_buf_add_u8(rsp_buf, BT_AVDTP_SERVICE_MEDIA_TRANSPORT); in a2dp_get_capabilities_ind() 133 net_buf_add_u8(rsp_buf, 0); in a2dp_get_capabilities_ind() 135 net_buf_add_u8(rsp_buf, BT_AVDTP_SERVICE_MEDIA_CODEC); in a2dp_get_capabilities_ind() 138 net_buf_add_u8(rsp_buf, ep->codec_cap->len + 2U); in a2dp_get_capabilities_ind() 140 net_buf_add_u8(rsp_buf, sep->sep_info.media_type << 4U); in a2dp_get_capabilities_ind() 142 net_buf_add_u8(rsp_buf, ep->codec_type); in a2dp_get_capabilities_ind() 144 net_buf_add_mem(rsp_buf, &ep->codec_cap->codec_ie[0], ep->codec_cap->len); in a2dp_get_capabilities_ind()
|
D | l2cap_br.c | 595 struct net_buf *rsp_buf; in l2cap_br_info_req() local 604 rsp_buf = bt_l2cap_create_pdu(&br_sig_pool, 0); in l2cap_br_info_req() 609 hdr_info = net_buf_add(rsp_buf, sizeof(*hdr_info)); in l2cap_br_info_req() 613 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in l2cap_br_info_req() 619 net_buf_add_le32(rsp_buf, L2CAP_FEAT_FIXED_CHAN_MASK); in l2cap_br_info_req() 626 (void)memset(net_buf_add(rsp_buf, 8), 0, 8); in l2cap_br_info_req() 638 l2cap_send(conn, BT_L2CAP_CID_BR_SIG, rsp_buf); in l2cap_br_info_req()
|
D | avdtp_internal.h | 188 struct net_buf *rsp_buf, uint8_t *errcode);
|
/Zephyr-latest/samples/bluetooth/periodic_sync_conn/src/ |
D | main.c | 59 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/ |
D | main.c | 89 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/ |
D | btp.c | 53 static struct net_buf_simple *rsp_buf = NET_BUF_SIMPLE(BTP_MTU); variable 268 net_buf_simple_init(rsp_buf, 0); in tester_rsp_buffer_free() 275 *data = net_buf_simple_add(rsp_buf, len); in tester_rsp_buffer_allocate()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | smp.c | 1148 struct net_buf *rsp_buf; in smp_br_pairing_req() local 1177 rsp_buf = smp_br_create_pdu(smp, BT_SMP_CMD_PAIRING_RSP, sizeof(*rsp)); in smp_br_pairing_req() 1178 if (!rsp_buf) { in smp_br_pairing_req() 1191 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in smp_br_pairing_req() 1208 smp_br_send(smp, rsp_buf, NULL); in smp_br_pairing_req() 1903 struct net_buf *rsp_buf; in smp_send_pairing_random() local 1905 rsp_buf = smp_create_pdu(smp, BT_SMP_CMD_PAIRING_RANDOM, sizeof(*req)); in smp_send_pairing_random() 1906 if (!rsp_buf) { in smp_send_pairing_random() 1910 req = net_buf_add(rsp_buf, sizeof(*req)); in smp_send_pairing_random() 1913 smp_send(smp, rsp_buf, NULL, NULL); in smp_send_pairing_random() [all …]
|