Lines Matching refs:llcp_cb
66 if (llcp_cb.sdp_cb.p_snl)
70 llcp_cb.sdp_cb.p_snl->len += LLCP_PDU_HEADER_SIZE;
71 llcp_cb.sdp_cb.p_snl->offset -= LLCP_PDU_HEADER_SIZE;
73 p = (UINT8 *) (llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset;
76 GKI_enqueue (&llcp_cb.lcb.sig_xmit_q, llcp_cb.sdp_cb.p_snl);
77 llcp_cb.sdp_cb.p_snl = NULL;
96 p = (UINT8 *) (llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset + llcp_cb.sdp_cb.p_snl->len;
103 llcp_cb.sdp_cb.p_snl->len += LLCP_SDREQ_MIN_LEN + name_len;
125 if (!llcp_cb.sdp_cb.p_snl)
127 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID);
129 if (llcp_cb.sdp_cb.p_snl)
131 llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE;
132 llcp_cb.sdp_cb.p_snl->len = 0;
136 if (llcp_cb.sdp_cb.p_snl)
138 available_bytes = GKI_get_buf_size (llcp_cb.sdp_cb.p_snl)
139 - BT_HDR_SIZE - llcp_cb.sdp_cb.p_snl->offset
140 - llcp_cb.sdp_cb.p_snl->len;
146 &&(llcp_cb.sdp_cb.p_snl->len + LLCP_SDREQ_MIN_LEN + name_len <= llcp_cb.lcb.effective_miu) )
156 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID);
158 if (llcp_cb.sdp_cb.p_snl)
160 llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE;
161 llcp_cb.sdp_cb.p_snl->len = 0;
180 &&(llcp_cb.lcb.symm_state == LLCP_LINK_SYMM_LOCAL_XMIT_NEXT) )
202 p = (UINT8 *) (llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset + llcp_cb.sdp_cb.p_snl->len;
209 llcp_cb.sdp_cb.p_snl->len += 2 + LLCP_SDRES_LEN; /* type and length */
230 if (!llcp_cb.sdp_cb.p_snl)
232 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID);
234 if (llcp_cb.sdp_cb.p_snl)
236 llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE;
237 llcp_cb.sdp_cb.p_snl->len = 0;
241 if (llcp_cb.sdp_cb.p_snl)
243 available_bytes = GKI_get_buf_size (llcp_cb.sdp_cb.p_snl)
244 - BT_HDR_SIZE - llcp_cb.sdp_cb.p_snl->offset
245 - llcp_cb.sdp_cb.p_snl->len;
249 &&(llcp_cb.sdp_cb.p_snl->len + 2 + LLCP_SDRES_LEN <= llcp_cb.lcb.effective_miu) )
259 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID);
261 if (llcp_cb.sdp_cb.p_snl)
263 llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE;
264 llcp_cb.sdp_cb.p_snl->len = 0;
283 &&(llcp_cb.lcb.symm_state == LLCP_LINK_SYMM_LOCAL_XMIT_NEXT) )
339 if ( (llcp_cb.sdp_cb.transac[i].p_cback)
340 &&(llcp_cb.sdp_cb.transac[i].tid == tid) )
342 (*llcp_cb.sdp_cb.transac[i].p_cback) (tid, sap);
344 llcp_cb.sdp_cb.transac[i].p_cback = NULL;
367 if (llcp_cb.sdp_cb.transac[i].p_cback)
369 (*llcp_cb.sdp_cb.transac[i].p_cback) (llcp_cb.sdp_cb.transac[i].tid, 0x00);
371 llcp_cb.sdp_cb.transac[i].p_cback = NULL;
376 if (llcp_cb.sdp_cb.p_snl)
378 GKI_freebuf (llcp_cb.sdp_cb.p_snl);
379 llcp_cb.sdp_cb.p_snl = NULL;
382 llcp_cb.sdp_cb.next_tid = 0;
401 if ((llcp_cb.lcb.agreed_major_version < LLCP_MIN_SNL_MAJOR_VERSION)||
402 ((llcp_cb.lcb.agreed_major_version == LLCP_MIN_SNL_MAJOR_VERSION)&&(llcp_cb.lcb.agreed_minor_version < LLCP_MIN_SNL_MINOR_VERSION)))