Lines Matching refs:p_msg
270 tLLCP_STATUS llcp_util_send_ui (UINT8 ssap, UINT8 dsap, tLLCP_APP_CB *p_app_cb, BT_HDR *p_msg) in llcp_util_send_ui() argument
275 p_msg->offset -= LLCP_PDU_HEADER_SIZE; in llcp_util_send_ui()
276 p_msg->len += LLCP_PDU_HEADER_SIZE; in llcp_util_send_ui()
278 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_send_ui()
281 GKI_enqueue (&p_app_cb->ui_xmit_q, p_msg); in llcp_util_send_ui()
315 BT_HDR *p_msg; in llcp_util_send_disc() local
318 p_msg = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_util_send_disc()
320 if (p_msg) in llcp_util_send_disc()
322 p_msg->len = LLCP_PDU_DISC_SIZE; in llcp_util_send_disc()
323 p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in llcp_util_send_disc()
325 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_send_disc()
328 GKI_enqueue (&llcp_cb.lcb.sig_xmit_q, p_msg); in llcp_util_send_disc()
424 BT_HDR *p_msg; in llcp_util_send_connect() local
442 p_msg = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_util_send_connect()
444 if (p_msg) in llcp_util_send_connect()
446 p_msg->len = LLCP_PDU_HEADER_SIZE + miu_len + rw_len + sn_len; in llcp_util_send_connect()
447 p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in llcp_util_send_connect()
449 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_send_connect()
474 GKI_enqueue (&llcp_cb.lcb.sig_xmit_q, p_msg); in llcp_util_send_connect()
580 BT_HDR *p_msg; in llcp_util_send_cc() local
594 p_msg = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_util_send_cc()
596 if (p_msg) in llcp_util_send_cc()
598 p_msg->len = LLCP_PDU_HEADER_SIZE + miu_len + rw_len; in llcp_util_send_cc()
599 p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in llcp_util_send_cc()
601 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_send_cc()
619 GKI_enqueue (&llcp_cb.lcb.sig_xmit_q, p_msg); in llcp_util_send_cc()
697 BT_HDR *p_msg; in llcp_util_send_dm() local
700 p_msg = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_util_send_dm()
702 if (p_msg) in llcp_util_send_dm()
704 p_msg->len = LLCP_PDU_DM_SIZE; in llcp_util_send_dm()
705 p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in llcp_util_send_dm()
707 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_send_dm()
711 GKI_enqueue (&llcp_cb.lcb.sig_xmit_q, p_msg); in llcp_util_send_dm()
726 void llcp_util_build_info_pdu (tLLCP_DLCB *p_dlcb, BT_HDR *p_msg) in llcp_util_build_info_pdu() argument
731 p_msg->offset -= LLCP_PDU_HEADER_SIZE + LLCP_SEQUENCE_SIZE; in llcp_util_build_info_pdu()
732 p_msg->len += LLCP_PDU_HEADER_SIZE + LLCP_SEQUENCE_SIZE; in llcp_util_build_info_pdu()
733 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_build_info_pdu()
763 BT_HDR *p_msg; in llcp_util_send_frmr() local
766 p_msg = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_util_send_frmr()
768 if (p_msg) in llcp_util_send_frmr()
770 p_msg->len = LLCP_PDU_FRMR_SIZE; in llcp_util_send_frmr()
771 p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in llcp_util_send_frmr()
773 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_send_frmr()
781 GKI_enqueue (&llcp_cb.lcb.sig_xmit_q, p_msg); in llcp_util_send_frmr()
804 BT_HDR *p_msg; in llcp_util_send_rr_rnr() local
853 p_msg = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_util_send_rr_rnr()
855 if (p_msg) in llcp_util_send_rr_rnr()
859 p_msg->len = pdu_size; in llcp_util_send_rr_rnr()
860 p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in llcp_util_send_rr_rnr()
862 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_send_rr_rnr()
874 GKI_enqueue (&llcp_cb.lcb.sig_xmit_q, p_msg); in llcp_util_send_rr_rnr()