Lines Matching refs:p_rx_msg
1221 if (p_ccb->p_rx_msg != NULL) in avdt_msg_asmbl()
1224 osi_free_and_reset((void**)&p_ccb->p_rx_msg); in avdt_msg_asmbl()
1231 if (p_ccb->p_rx_msg != NULL) in avdt_msg_asmbl()
1234 osi_free_and_reset((void**)&p_ccb->p_rx_msg); in avdt_msg_asmbl()
1241 p_ccb->p_rx_msg = (BT_HDR*)osi_malloc(BT_DEFAULT_BUFFER_SIZE); in avdt_msg_asmbl()
1242 memcpy(p_ccb->p_rx_msg, p_buf, sizeof(BT_HDR) + p_buf->offset + p_buf->len); in avdt_msg_asmbl()
1248 p = (uint8_t*)(p_ccb->p_rx_msg + 1) + p_ccb->p_rx_msg->offset; in avdt_msg_asmbl()
1254 p_ccb->p_rx_msg->offset += p_ccb->p_rx_msg->len; in avdt_msg_asmbl()
1257 p_ccb->p_rx_msg->len -= 1; in avdt_msg_asmbl()
1264 if (p_ccb->p_rx_msg == NULL) { in avdt_msg_asmbl()
1281 if ((p_ccb->p_rx_msg->offset + p_buf->len) > buf_len) { in avdt_msg_asmbl()
1284 osi_free_and_reset((void**)&p_ccb->p_rx_msg); in avdt_msg_asmbl()
1289 memcpy((uint8_t*)(p_ccb->p_rx_msg + 1) + p_ccb->p_rx_msg->offset, in avdt_msg_asmbl()
1293 p_ccb->p_rx_msg->offset -= p_ccb->p_rx_msg->len; in avdt_msg_asmbl()
1294 p_ccb->p_rx_msg->len += p_buf->len; in avdt_msg_asmbl()
1295 p_ret = p_ccb->p_rx_msg; in avdt_msg_asmbl()
1296 p_ccb->p_rx_msg = NULL; in avdt_msg_asmbl()
1298 p_ccb->p_rx_msg->offset += p_buf->len; in avdt_msg_asmbl()
1299 p_ccb->p_rx_msg->len += p_buf->len; in avdt_msg_asmbl()