Lines Matching refs:p_data

171 void avct_lcb_chnl_open(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
174 UNUSED(p_data);
196 void avct_lcb_unbind_disc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
200 avct_ccb_dealloc(p_data->p_ccb, AVCT_DISCONNECT_CFM_EVT, 0, NULL);
216 void avct_lcb_open_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
252 avct_lcb_event(p_lcb, AVCT_LCB_INT_CLOSE_EVT, p_data);
267 void avct_lcb_open_fail(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
277 p_data->result, p_lcb->peer_addr);
293 void avct_lcb_close_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
297 UNUSED(p_data);
329 void avct_lcb_close_cfm(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
352 avct_ccb_dealloc(p_ccb, event, p_data->result, p_lcb->peer_addr);
358 p_data->result, p_lcb->peer_addr);
374 void avct_lcb_bind_conn(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
376 p_data->p_ccb->p_lcb = p_lcb;
377 (*p_data->p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_data->p_ccb),
393 void avct_lcb_chk_disc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
397 avct_close_bcb(p_lcb, p_data);
399 if (avct_lcb_last_ccb(p_lcb, p_data->p_ccb))
402 p_data->p_ccb->ch_close = TRUE;
403 avct_lcb_event(p_lcb, AVCT_LCB_INT_CLOSE_EVT, p_data);
408 avct_lcb_unbind_disc(p_lcb, p_data);
422 void avct_lcb_chnl_disc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
424 UNUSED(p_data);
440 void avct_lcb_bind_fail(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
444 avct_ccb_dealloc(p_data->p_ccb, AVCT_CONNECT_CFM_EVT, AVCT_RESULT_FAIL, NULL);
457 void avct_lcb_cong_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
465 event = (p_data->cong) ? AVCT_CONG_IND_EVT : AVCT_UNCONG_IND_EVT;
466 p_lcb->cong = p_data->cong;
498 void avct_lcb_discard_msg(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
504 GKI_freebuf(p_data->ul_msg.p_buf);
517 void avct_lcb_send_msg(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
530 curr_msg_len = p_data->ul_msg.p_buf->len;
553 if (p_data->ul_msg.p_buf->len > (p_lcb->peer_mtu - hdr_len))
560 GKI_freebuf(p_data->ul_msg.p_buf);
569 (UINT8 *)(p_data->ul_msg.p_buf + 1) + p_data->ul_msg.p_buf->offset, p_buf->len);
571 p_data->ul_msg.p_buf->offset += p_buf->len;
572 p_data->ul_msg.p_buf->len -= p_buf->len;
576 p_buf = p_data->ul_msg.p_buf;
587 AVCT_BLD_HDR(p, p_data->ul_msg.label, pkt_type, p_data->ul_msg.cr);
594 UINT16_TO_BE_STREAM(p, p_data->ul_msg.p_ccb->cc.pid);
635 void avct_lcb_free_msg_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
639 if (p_data)
640 GKI_freebuf(p_data->p_buf);
654 void avct_lcb_msg_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
665 p_data->p_buf->layer_specific = AVCT_DATA_CTRL;
668 if ((p_data->p_buf = avct_lcb_msg_asmbl(p_lcb, p_data->p_buf)) == NULL)
673 p = (UINT8 *)(p_data->p_buf + 1) + p_data->p_buf->offset;
682 GKI_freebuf(p_data->p_buf);
691 p_data->p_buf->offset += AVCT_HDR_LEN_SINGLE;
692 p_data->p_buf->len -= AVCT_HDR_LEN_SINGLE;
693 (*p_ccb->cc.p_msg_cback)(avct_ccb_to_idx(p_ccb), label, cr_ipid, p_data->p_buf);
699 GKI_freebuf(p_data->p_buf);