Lines Matching full:p_buf
675 BT_HDR *p_buf)
700 if (p_buf->len <= llcp_cb.lcb.peer_miu)
702 if (p_buf->offset >= LLCP_MIN_OFFSET)
704 status = llcp_util_send_ui (ssap, dsap, p_app_cb, p_buf);
709 p_buf->offset, LLCP_MIN_OFFSET );
724 GKI_freebuf (p_buf);
751 BT_HDR *p_buf;
767 p_buf = (BT_HDR *) p_app_cb->ui_rx_q.p_first;
768 p_ui_pdu = (UINT8*) (p_buf + 1) + p_buf->offset;
778 p_ui_pdu += p_buf->layer_specific;
781 if (max_data_len >= (UINT32) (ui_pdu_length - LLCP_PDU_HEADER_SIZE - p_buf->layer_specific))
784 *p_data_len = (UINT32) (ui_pdu_length - LLCP_PDU_HEADER_SIZE - p_buf->layer_specific);
787 p_buf->layer_specific = 0; /* reset offset to read from the first byte of next UI PDU */
788 p_buf->offset += LLCP_PDU_AGF_LEN_SIZE + ui_pdu_length;
789 p_buf->len -= LLCP_PDU_AGF_LEN_SIZE + ui_pdu_length;
796 p_buf->layer_specific += max_data_len;
802 if (p_buf->len == 0)
805 GKI_freebuf (p_buf);
843 BT_HDR *p_buf;
859 p_buf = (BT_HDR *) p_app_cb->ui_rx_q.p_first;
860 p_ui_pdu = (UINT8*) (p_buf + 1) + p_buf->offset;
865 flushed_length += (UINT32) (ui_pdu_length - LLCP_PDU_HEADER_SIZE - p_buf->layer_specific);
868 p_buf->layer_specific = 0; /* offset */
869 p_buf->offset += LLCP_PDU_AGF_LEN_SIZE + ui_pdu_length;
870 p_buf->len -= LLCP_PDU_AGF_LEN_SIZE + ui_pdu_length;
873 if (p_buf->len == 0)
876 GKI_freebuf (p_buf);
1129 BT_HDR *p_buf)
1141 if (p_dlcb->remote_miu >= p_buf->len)
1143 if (p_buf->offset >= LLCP_MIN_OFFSET)
1145 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_DATA_REQ, p_buf);
1150 p_buf->offset, LLCP_MIN_OFFSET );
1156 p_buf->len, p_dlcb->remote_miu);
1166 GKI_freebuf (p_buf);
1193 BT_HDR *p_buf;
1208 p_buf = (BT_HDR *) p_dlcb->i_rx_q.p_first;
1209 p_i_pdu = (UINT8*) (p_buf + 1) + p_buf->offset;
1215 p_i_pdu += p_buf->layer_specific;
1218 if (max_data_len >= (UINT32) (i_pdu_length - p_buf->layer_specific))
1221 *p_data_len = (UINT32) (i_pdu_length - p_buf->layer_specific);
1224 p_buf->layer_specific = 0; /* reset offset to read from the first byte of next I PDU */
1225 p_buf->offset += LLCP_PDU_AGF_LEN_SIZE + i_pdu_length;
1226 p_buf->len -= LLCP_PDU_AGF_LEN_SIZE + i_pdu_length;
1233 p_buf->layer_specific += max_data_len;
1238 if (p_buf->layer_specific == 0)
1244 if (p_buf->len == 0)
1247 GKI_freebuf (p_buf);
1297 BT_HDR *p_buf;
1312 p_buf = (BT_HDR *) p_dlcb->i_rx_q.p_first;
1313 p_i_pdu = (UINT8*) (p_buf + 1) + p_buf->offset;
1318 flushed_length += (UINT32) (i_pdu_length - p_buf->layer_specific);
1321 p_buf->layer_specific = 0; /* offset */
1322 p_buf->offset += LLCP_PDU_AGF_LEN_SIZE + i_pdu_length;
1323 p_buf->len -= LLCP_PDU_AGF_LEN_SIZE + i_pdu_length;
1326 if (p_buf->len == 0)
1329 GKI_freebuf (p_buf);