Lines Matching refs:p_rx_msg
1378 if (p_ccb->p_rx_msg != NULL)
1380 GKI_freebuf(p_ccb->p_rx_msg);
1381 p_ccb->p_rx_msg = NULL;
1390 if (p_ccb->p_rx_msg != NULL)
1392 GKI_freebuf(p_ccb->p_rx_msg);
1395 p_ccb->p_rx_msg = p_buf;
1401 p_ccb->p_rx_msg->offset += p_ccb->p_rx_msg->len;
1404 p_ccb->p_rx_msg->len -= 1;
1412 if (p_ccb->p_rx_msg == NULL)
1421 buf_len = GKI_get_buf_size(p_ccb->p_rx_msg) - sizeof(BT_HDR);
1428 if ((p_ccb->p_rx_msg->offset + p_buf->len) > buf_len)
1431 GKI_freebuf(p_ccb->p_rx_msg);
1432 p_ccb->p_rx_msg = NULL;
1438 /* copy contents of p_buf to p_rx_msg */
1439 memcpy((UINT8 *)(p_ccb->p_rx_msg + 1) + p_ccb->p_rx_msg->offset,
1444 p_ccb->p_rx_msg->offset -= p_ccb->p_rx_msg->len;
1445 p_ccb->p_rx_msg->len += p_buf->len;
1446 p_ret = p_ccb->p_rx_msg;
1447 p_ccb->p_rx_msg = NULL;
1451 p_ccb->p_rx_msg->offset += p_buf->len;
1452 p_ccb->p_rx_msg->len += p_buf->len;