Lines Matching refs:p_snl
65 if (llcp_cb.sdp_cb.p_snl) in llcp_sdp_check_send_snl()
69 llcp_cb.sdp_cb.p_snl->len += LLCP_PDU_HEADER_SIZE; in llcp_sdp_check_send_snl()
70 llcp_cb.sdp_cb.p_snl->offset -= LLCP_PDU_HEADER_SIZE; in llcp_sdp_check_send_snl()
72 p = (UINT8 *) (llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset; in llcp_sdp_check_send_snl()
75 GKI_enqueue (&llcp_cb.lcb.sig_xmit_q, llcp_cb.sdp_cb.p_snl); in llcp_sdp_check_send_snl()
76 llcp_cb.sdp_cb.p_snl = NULL; in llcp_sdp_check_send_snl()
104 …p = (UINT8 *) (llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset + llcp_cb.sdp_cb.p_snl->le… in llcp_sdp_add_sdreq()
111 llcp_cb.sdp_cb.p_snl->len += LLCP_SDREQ_MIN_LEN + name_len; in llcp_sdp_add_sdreq()
133 if (!llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdreq()
135 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_sdp_send_sdreq()
137 if (llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdreq()
139 … llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE; in llcp_sdp_send_sdreq()
140 llcp_cb.sdp_cb.p_snl->len = 0; in llcp_sdp_send_sdreq()
144 if (llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdreq()
146 available_bytes = GKI_get_buf_size (llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdreq()
147 - BT_HDR_SIZE - llcp_cb.sdp_cb.p_snl->offset in llcp_sdp_send_sdreq()
148 - llcp_cb.sdp_cb.p_snl->len; in llcp_sdp_send_sdreq()
154 … &&(llcp_cb.sdp_cb.p_snl->len + LLCP_SDREQ_MIN_LEN + name_len <= llcp_cb.lcb.effective_miu) ) in llcp_sdp_send_sdreq()
164 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_sdp_send_sdreq()
166 if (llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdreq()
168 … llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE; in llcp_sdp_send_sdreq()
169 llcp_cb.sdp_cb.p_snl->len = 0; in llcp_sdp_send_sdreq()
210 …p = (UINT8 *) (llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset + llcp_cb.sdp_cb.p_snl->le… in llcp_sdp_add_sdres()
217 llcp_cb.sdp_cb.p_snl->len += 2 + LLCP_SDRES_LEN; /* type and length */ in llcp_sdp_add_sdres()
238 if (!llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdres()
240 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_sdp_send_sdres()
242 if (llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdres()
244 … llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE; in llcp_sdp_send_sdres()
245 llcp_cb.sdp_cb.p_snl->len = 0; in llcp_sdp_send_sdres()
249 if (llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdres()
251 available_bytes = GKI_get_buf_size (llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdres()
252 - BT_HDR_SIZE - llcp_cb.sdp_cb.p_snl->offset in llcp_sdp_send_sdres()
253 - llcp_cb.sdp_cb.p_snl->len; in llcp_sdp_send_sdres()
257 &&(llcp_cb.sdp_cb.p_snl->len + 2 + LLCP_SDRES_LEN <= llcp_cb.lcb.effective_miu) ) in llcp_sdp_send_sdres()
267 llcp_cb.sdp_cb.p_snl = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_sdp_send_sdres()
269 if (llcp_cb.sdp_cb.p_snl) in llcp_sdp_send_sdres()
271 … llcp_cb.sdp_cb.p_snl->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + LLCP_PDU_HEADER_SIZE; in llcp_sdp_send_sdres()
272 llcp_cb.sdp_cb.p_snl->len = 0; in llcp_sdp_send_sdres()
390 if (llcp_cb.sdp_cb.p_snl) in llcp_sdp_proc_deactivation()
392 GKI_freebuf (llcp_cb.sdp_cb.p_snl); in llcp_sdp_proc_deactivation()
393 llcp_cb.sdp_cb.p_snl = NULL; in llcp_sdp_proc_deactivation()