Lines Matching refs:p_buf
68 static BT_HDR* avct_bcb_msg_asmbl(UNUSED_ATTR tAVCT_BCB* p_bcb, BT_HDR* p_buf) { in avct_bcb_msg_asmbl() argument
72 if (p_buf->len == 0) { in avct_bcb_msg_asmbl()
73 osi_free_and_reset((void**)&p_buf); in avct_bcb_msg_asmbl()
79 p = (uint8_t*)(p_buf + 1) + p_buf->offset; in avct_bcb_msg_asmbl()
84 osi_free_and_reset((void**)&p_buf); in avct_bcb_msg_asmbl()
88 return p_buf; in avct_bcb_msg_asmbl()
199 ul_msg.p_buf = p_bcb->p_tx_msg; in avct_bcb_open_ind()
416 osi_free_and_reset((void**)&p_data->ul_msg.p_buf); in avct_bcb_discard_msg()
419 p_bcb->p_tx_msg = p_data->ul_msg.p_buf; in avct_bcb_discard_msg()
448 BT_HDR* p_buf; in avct_bcb_send_msg() local
452 curr_msg_len = p_data->ul_msg.p_buf->len; in avct_bcb_send_msg()
458 osi_free_and_reset((void**)&p_data->ul_msg.p_buf); in avct_bcb_send_msg()
464 p_buf = p_data->ul_msg.p_buf; in avct_bcb_send_msg()
467 p_buf->len += hdr_len; in avct_bcb_send_msg()
468 p_buf->offset -= hdr_len; in avct_bcb_send_msg()
469 p = (uint8_t*)(p_buf + 1) + p_buf->offset; in avct_bcb_send_msg()
475 p_buf->layer_specific = AVCT_DATA_BROWSE; in avct_bcb_send_msg()
478 L2CA_DataWrite(p_bcb->ch_lcid, p_buf); in avct_bcb_send_msg()
493 if (p_data) osi_free_and_reset((void**)&p_data->p_buf); in avct_bcb_free_msg_ind()
513 if ((p_data == NULL) || (p_data->p_buf == NULL)) { in avct_bcb_msg_ind()
521 p_data->p_buf->layer_specific = AVCT_DATA_BROWSE; in avct_bcb_msg_ind()
525 p_data->p_buf = avct_bcb_msg_asmbl(p_bcb, p_data->p_buf); in avct_bcb_msg_ind()
526 if (p_data->p_buf == NULL) { in avct_bcb_msg_ind()
530 if (p_data->p_buf->len < AVCT_HDR_LEN_SINGLE) { in avct_bcb_msg_ind()
532 p_data->p_buf->len, AVCT_HDR_LEN_SINGLE); in avct_bcb_msg_ind()
533 osi_free_and_reset((void**)&p_data->p_buf); in avct_bcb_msg_ind()
538 p = (uint8_t*)(p_data->p_buf + 1) + p_data->p_buf->offset; in avct_bcb_msg_ind()
546 osi_free_and_reset((void**)&p_data->p_buf); in avct_bcb_msg_ind()
555 p_data->p_buf->offset += AVCT_HDR_LEN_SINGLE; in avct_bcb_msg_ind()
556 p_data->p_buf->len -= AVCT_HDR_LEN_SINGLE; in avct_bcb_msg_ind()
558 p_data->p_buf); in avct_bcb_msg_ind()
564 osi_free_and_reset((void**)&p_data->p_buf); in avct_bcb_msg_ind()
568 BT_HDR* p_buf = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in avct_bcb_msg_ind() local
569 p_buf->len = AVCT_HDR_LEN_SINGLE; in avct_bcb_msg_ind()
570 p_buf->offset = AVCT_MSG_OFFSET - AVCT_HDR_LEN_SINGLE; in avct_bcb_msg_ind()
571 p = (uint8_t*)(p_buf + 1) + p_buf->offset; in avct_bcb_msg_ind()
574 p_buf->layer_specific = AVCT_DATA_BROWSE; in avct_bcb_msg_ind()
575 L2CA_DataWrite(p_bcb->ch_lcid, p_buf); in avct_bcb_msg_ind()