Lines Matching refs:sdp
111 struct bt_sdp *sdp; member
161 struct bt_sdp *sdp = CONTAINER_OF(ch, struct bt_sdp, chan); in bt_sdp_connected() local
165 k_fifo_init(&sdp->partial_resp_queue); in bt_sdp_connected()
182 struct bt_sdp *sdp = CONTAINER_OF(ch, struct bt_sdp, chan); in bt_sdp_disconnected() local
186 (void)memset(sdp, 0, sizeof(*sdp)); in bt_sdp_disconnected()
578 static uint16_t sdp_svc_search_req(struct bt_sdp *sdp, struct net_buf *buf, in sdp_svc_search_req() argument
659 if ((MIN(SDP_MTU, sdp->chan.tx.mtu) - resp_buf->len) < in sdp_svc_search_req()
697 bt_sdp_send(&sdp->chan.chan, resp_buf, BT_SDP_SVC_SEARCH_RSP, tid); in sdp_svc_search_req()
854 space = MIN(SDP_MTU, sad->sdp->chan.tx.mtu) - in select_attrs()
941 static uint16_t create_attr_list(struct bt_sdp *sdp, struct bt_sdp_record *record, in create_attr_list() argument
953 sad.sdp = sdp; in create_attr_list()
1064 static uint16_t sdp_svc_att_req(struct bt_sdp *sdp, struct net_buf *buf, in sdp_svc_att_req() argument
1140 att_list_len = create_attr_list(sdp, record, filter, num_filters, in sdp_svc_att_req()
1163 bt_sdp_send(&sdp->chan.chan, rsp_buf, BT_SDP_SVC_ATTR_RSP, tid); in sdp_svc_att_req()
1178 static uint16_t sdp_svc_search_att_req(struct bt_sdp *sdp, struct net_buf *buf, in sdp_svc_search_att_req() argument
1270 att_list_len += create_attr_list(sdp, record, filter, in sdp_svc_search_att_req()
1315 bt_sdp_send(&sdp->chan.chan, rsp_buf, BT_SDP_SVC_SEARCH_ATTR_RSP, in sdp_svc_search_att_req()
1323 uint16_t (*func)(struct bt_sdp *sdp, struct net_buf *buf, uint16_t tid);
1344 struct bt_sdp *sdp = CONTAINER_OF(ch, struct bt_sdp, chan); in bt_sdp_recv() local
1351 BT_ASSERT(sdp); in bt_sdp_recv()
1369 err = handlers[i].func(sdp, buf, hdr->tid); in bt_sdp_recv()
1405 struct bt_sdp *sdp = &bt_sdp_pool[i]; in bt_sdp_accept() local
1407 if (sdp->chan.chan.conn) { in bt_sdp_accept()
1411 sdp->chan.chan.ops = &ops; in bt_sdp_accept()
1412 sdp->chan.rx.mtu = SDP_MTU; in bt_sdp_accept()
1414 *chan = &sdp->chan.chan; in bt_sdp_accept()