Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/samples/bluetooth/periodic_sync_conn/src/
Dmain.c58 NET_BUF_SIMPLE_DEFINE_STATIC(rsp_buf, sizeof(bt_addr_le_t) + 2 * sizeof(uint8_t));
74 net_buf_simple_reset(&rsp_buf); in recv_cb()
91 net_buf_simple_add_u8(&rsp_buf, sizeof(bt_addr_le_t)); in recv_cb()
92 net_buf_simple_add_u8(&rsp_buf, BT_DATA_LE_BT_DEVICE_ADDRESS); in recv_cb()
93 net_buf_simple_add_mem(&rsp_buf, &oob.addr.a, sizeof(oob.addr.a)); in recv_cb()
94 net_buf_simple_add_u8(&rsp_buf, oob.addr.type); in recv_cb()
96 err = bt_le_per_adv_set_response_data(sync, &rsp_params, &rsp_buf); in recv_cb()
/Zephyr-Core-3.6.0/subsys/bluetooth/host/
Dsdp.c110 struct net_buf *rsp_buf; member
853 if (sad->rsp_buf) { in select_attrs()
855 sad->rsp_buf->len - sizeof(struct bt_sdp_hdr); in select_attrs()
866 if (!sad->state->pkt_full && sad->rsp_buf) { in select_attrs()
872 sad->seq = net_buf_add(sad->rsp_buf, in select_attrs()
879 net_buf_add_u8(sad->rsp_buf, BT_SDP_UINT16); in select_attrs()
880 net_buf_add_be16(sad->rsp_buf, att_id_cur); in select_attrs()
883 copy_attribute(&attr->val, sad->rsp_buf, 1); in select_attrs()
915 if (sad->state->pkt_full && !sad->seq && sad->rsp_buf) { in select_attrs()
945 struct net_buf *rsp_buf) in create_attr_list() argument
[all …]
Dl2cap_br.c440 struct net_buf *rsp_buf; in l2cap_br_info_req() local
449 rsp_buf = bt_l2cap_create_pdu(&br_sig_pool, 0); in l2cap_br_info_req()
454 hdr_info = net_buf_add(rsp_buf, sizeof(*hdr_info)); in l2cap_br_info_req()
458 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in l2cap_br_info_req()
464 net_buf_add_le32(rsp_buf, L2CAP_FEAT_FIXED_CHAN_MASK); in l2cap_br_info_req()
471 (void)memset(net_buf_add(rsp_buf, 8), 0, 8); in l2cap_br_info_req()
483 l2cap_send(conn, BT_L2CAP_CID_BR_SIG, rsp_buf); in l2cap_br_info_req()
Dsmp.c1084 struct net_buf *rsp_buf; in smp_br_pairing_req() local
1113 rsp_buf = smp_br_create_pdu(smp, BT_SMP_CMD_PAIRING_RSP, sizeof(*rsp)); in smp_br_pairing_req()
1114 if (!rsp_buf) { in smp_br_pairing_req()
1127 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in smp_br_pairing_req()
1144 smp_br_send(smp, rsp_buf, NULL); in smp_br_pairing_req()
1816 struct net_buf *rsp_buf; in smp_send_pairing_random() local
1818 rsp_buf = smp_create_pdu(smp, BT_SMP_CMD_PAIRING_RANDOM, sizeof(*req)); in smp_send_pairing_random()
1819 if (!rsp_buf) { in smp_send_pairing_random()
1823 req = net_buf_add(rsp_buf, sizeof(*req)); in smp_send_pairing_random()
1826 smp_send(smp, rsp_buf, NULL, NULL); in smp_send_pairing_random()
[all …]
/Zephyr-Core-3.6.0/samples/bluetooth/periodic_sync_rsp/src/
Dmain.c86 NET_BUF_SIMPLE_DEFINE_STATIC(rsp_buf, 247);
95 net_buf_simple_reset(&rsp_buf); in recv_cb()
96 net_buf_simple_add_mem(&rsp_buf, buf->data, buf->len); in recv_cb()
108 err = bt_le_per_adv_set_response_data(sync, &rsp_params, &rsp_buf); in recv_cb()
/Zephyr-Core-3.6.0/tests/bluetooth/tester/src/
Dbtp.c53 static struct net_buf_simple *rsp_buf = NET_BUF_SIMPLE(BTP_MTU); variable
265 net_buf_simple_init(rsp_buf, 0); in tester_rsp_buffer_free()
272 *data = net_buf_simple_add(rsp_buf, len); in tester_rsp_buffer_allocate()
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/
Dascs.c1082 NET_BUF_SIMPLE_DEFINE_STATIC(rsp_buf, CONFIG_BT_L2CAP_TX_MTU);
1088 net_buf_simple_reset(&rsp_buf); in ascs_cp_rsp_init()
1090 rsp = net_buf_simple_add(&rsp_buf, sizeof(*rsp)); in ascs_cp_rsp_init()
1098 struct bt_ascs_cp_rsp *rsp = (void *)rsp_buf.__buf; in ascs_cp_rsp_add()
1121 ase_rsp = net_buf_simple_add(&rsp_buf, sizeof(*ase_rsp)); in ascs_cp_rsp_add()
3006 control_point_notify(conn, rsp_buf.data, rsp_buf.len); in ascs_cp_write()