Lines Matching refs:rsp_buf
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
955 sad.rsp_buf = rsp_buf; in create_attr_list()
1084 struct net_buf *rsp_buf; in sdp_svc_att_req() local
1146 rsp_buf = bt_sdp_create_pdu(); in sdp_svc_att_req()
1147 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in sdp_svc_att_req()
1152 next_att, &state, rsp_buf); in sdp_svc_att_req()
1156 net_buf_add_u8(rsp_buf, BT_SDP_SEQ8); in sdp_svc_att_req()
1157 net_buf_add_u8(rsp_buf, 0); in sdp_svc_att_req()
1164 net_buf_add_u8(rsp_buf, 1); in sdp_svc_att_req()
1165 net_buf_add_u8(rsp_buf, state.last_att); in sdp_svc_att_req()
1167 net_buf_add_u8(rsp_buf, 0); in sdp_svc_att_req()
1172 LOG_DBG("Sending response, len %u", rsp_buf->len); in sdp_svc_att_req()
1173 bt_sdp_send(&sdp->chan.chan, rsp_buf, BT_SDP_SVC_ATTR_RSP, tid); in sdp_svc_att_req()
1199 struct net_buf *rsp_buf, *rsp_buf_cpy; in sdp_svc_search_att_req() local
1258 rsp_buf = bt_sdp_create_pdu(); in sdp_svc_search_att_req()
1260 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in sdp_svc_search_att_req()
1264 seq = net_buf_add(rsp_buf, sizeof(*seq)); in sdp_svc_search_att_req()
1272 rsp_buf_cpy = rsp_buf; in sdp_svc_search_att_req()
1292 net_buf_add_u8(rsp_buf, 2); in sdp_svc_search_att_req()
1293 net_buf_add_u8(rsp_buf, state.current_svc); in sdp_svc_search_att_req()
1294 net_buf_add_u8(rsp_buf, state.last_att); in sdp_svc_search_att_req()
1312 net_buf_add_u8(rsp_buf, BT_SDP_SEQ8); in sdp_svc_search_att_req()
1313 net_buf_add_u8(rsp_buf, 0); in sdp_svc_search_att_req()
1317 net_buf_add_u8(rsp_buf, 0); in sdp_svc_search_att_req()
1325 LOG_DBG("Sending response, len %u", rsp_buf->len); in sdp_svc_search_att_req()
1326 bt_sdp_send(&sdp->chan.chan, rsp_buf, BT_SDP_SVC_SEARCH_ATTR_RSP, in sdp_svc_search_att_req()