Home | History | Annotate | Download | only in llcp

Lines Matching full: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;
82 if ((llcp_cb.p_dta_cback) && (llcp_cb.dta_snl_resp))
84 llcp_cb.dta_snl_resp = FALSE;
85 (*llcp_cb.p_dta_cback) ();
105 p = (UINT8 *) (llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset + llcp_cb.sdp_cb.p_snl->len;
112 llcp_cb.sdp_cb.p_snl->len += LLCP_SDREQ_MIN_LEN + name_len;
134 if (!llcp_cb.sdp_cb.p_snl)
136 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID);
138 if (llcp_cb.sdp_cb.p_snl)
140 llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE;
141 llcp_cb.sdp_cb.p_snl->len = 0;
145 if (llcp_cb.sdp_cb.p_snl)
147 available_bytes = GKI_get_buf_size (llcp_cb.sdp_cb.p_snl)
148 - BT_HDR_SIZE - llcp_cb.sdp_cb.p_snl->offset
149 - llcp_cb.sdp_cb.p_snl->len;
155 &&(llcp_cb.sdp_cb.p_snl->len + LLCP_SDREQ_MIN_LEN + name_len <= llcp_cb.lcb.effective_miu) )
165 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID);
167 if (llcp_cb.sdp_cb.p_snl)
169 llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE;
170 llcp_cb.sdp_cb.p_snl->len = 0;
189 &&(llcp_cb.lcb.symm_state == LLCP_LINK_SYMM_LOCAL_XMIT_NEXT) )
211 p = (UINT8 *) (llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset + llcp_cb.sdp_cb.p_snl->len;
218 llcp_cb.sdp_cb.p_snl->len += 2 + LLCP_SDRES_LEN; /* type and length */
239 if (!llcp_cb.sdp_cb.p_snl)
241 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID);
243 if (llcp_cb.sdp_cb.p_snl)
245 llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE;
246 llcp_cb.sdp_cb.p_snl->len = 0;
250 if (llcp_cb.sdp_cb.p_snl)
252 available_bytes = GKI_get_buf_size (llcp_cb.sdp_cb.p_snl)
253 - BT_HDR_SIZE - llcp_cb.sdp_cb.p_snl->offset
254 - llcp_cb.sdp_cb.p_snl->len;
258 &&(llcp_cb.sdp_cb.p_snl->len + 2 + LLCP_SDRES_LEN <= llcp_cb.lcb.effective_miu) )
268 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID);
270 if (llcp_cb.sdp_cb.p_snl)
272 llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE;
273 llcp_cb.sdp_cb.p_snl->len = 0;
292 &&(llcp_cb.lcb.symm_state == LLCP_LINK_SYMM_LOCAL_XMIT_NEXT) )
325 if ( (llcp_cb.p_dta_cback)
328 llcp_cb.dta_snl_resp = TRUE;
354 if ( (llcp_cb.sdp_cb.transac[i].p_cback)
355 &&(llcp_cb.sdp_cb.transac[i].tid == tid) )
357 (*llcp_cb.sdp_cb.transac[i].p_cback) (tid, sap);
359 llcp_cb.sdp_cb.transac[i].p_cback = NULL;
382 if (llcp_cb.sdp_cb.transac[i].p_cback)
384 (*llcp_cb.sdp_cb.transac[i].p_cback) (llcp_cb.sdp_cb.transac[i].tid, 0x00);
386 llcp_cb.sdp_cb.transac[i].p_cback = NULL;
391 if (llcp_cb.sdp_cb.p_snl)
393 GKI_freebuf (llcp_cb.sdp_cb.p_snl);
394 llcp_cb.sdp_cb.p_snl = NULL;
397 llcp_cb.sdp_cb.next_tid = 0;
398 llcp_cb.dta_snl_resp = FALSE;
417 if ((llcp_cb.lcb.agreed_major_version < LLCP_MIN_SNL_MAJOR_VERSION)||
418 ((llcp_cb.lcb.agreed_major_version == LLCP_MIN_SNL_MAJOR_VERSION)&&(llcp_cb.lcb.agreed_minor_version < LLCP_MIN_SNL_MINOR_VERSION)))