Lines Matching refs:p_data

176 void avct_lcb_chnl_open(tAVCT_LCB* p_lcb, UNUSED_ATTR tAVCT_LCB_EVT* p_data) {  in avct_lcb_chnl_open()  argument
200 void avct_lcb_unbind_disc(UNUSED_ATTR tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_unbind_disc() argument
201 avct_ccb_dealloc(p_data->p_ccb, AVCT_DISCONNECT_CFM_EVT, 0, NULL); in avct_lcb_unbind_disc()
217 void avct_lcb_open_ind(tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_open_ind() argument
247 avct_lcb_event(p_lcb, AVCT_LCB_INT_CLOSE_EVT, p_data); in avct_lcb_open_ind()
262 void avct_lcb_open_fail(tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_open_fail() argument
268 avct_ccb_dealloc(p_ccb, AVCT_CONNECT_CFM_EVT, p_data->result, in avct_lcb_open_fail()
285 void avct_lcb_close_ind(tAVCT_LCB* p_lcb, UNUSED_ATTR tAVCT_LCB_EVT* p_data) { in avct_lcb_close_ind() argument
314 void avct_lcb_close_cfm(tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_close_cfm() argument
330 avct_ccb_dealloc(p_ccb, event, p_data->result, &p_lcb->peer_addr); in avct_lcb_close_cfm()
333 (*p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_ccb), event, p_data->result, in avct_lcb_close_cfm()
350 void avct_lcb_bind_conn(tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_bind_conn() argument
351 p_data->p_ccb->p_lcb = p_lcb; in avct_lcb_bind_conn()
352 (*p_data->p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_data->p_ccb), in avct_lcb_bind_conn()
367 void avct_lcb_chk_disc(tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_chk_disc() argument
368 avct_close_bcb(p_lcb, p_data); in avct_lcb_chk_disc()
369 if (avct_lcb_last_ccb(p_lcb, p_data->p_ccb)) { in avct_lcb_chk_disc()
371 p_data->p_ccb->ch_close = true; in avct_lcb_chk_disc()
372 avct_lcb_event(p_lcb, AVCT_LCB_INT_CLOSE_EVT, p_data); in avct_lcb_chk_disc()
375 avct_lcb_unbind_disc(p_lcb, p_data); in avct_lcb_chk_disc()
389 void avct_lcb_chnl_disc(tAVCT_LCB* p_lcb, UNUSED_ATTR tAVCT_LCB_EVT* p_data) { in avct_lcb_chnl_disc() argument
404 void avct_lcb_bind_fail(UNUSED_ATTR tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_bind_fail() argument
405 avct_ccb_dealloc(p_data->p_ccb, AVCT_CONNECT_CFM_EVT, AVCT_RESULT_FAIL, NULL); in avct_lcb_bind_fail()
418 void avct_lcb_cong_ind(tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_cong_ind() argument
425 event = (p_data->cong) ? AVCT_CONG_IND_EVT : AVCT_UNCONG_IND_EVT; in avct_lcb_cong_ind()
426 p_lcb->cong = p_data->cong; in avct_lcb_cong_ind()
455 void avct_lcb_discard_msg(UNUSED_ATTR tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_discard_msg() argument
457 osi_free_and_reset((void**)&p_data->ul_msg.p_buf); in avct_lcb_discard_msg()
470 void avct_lcb_send_msg(tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_send_msg() argument
480 curr_msg_len = p_data->ul_msg.p_buf->len; in avct_lcb_send_msg()
500 if (p_data->ul_msg.p_buf->len > (p_lcb->peer_mtu - hdr_len)) { in avct_lcb_send_msg()
510 (uint8_t*)(p_data->ul_msg.p_buf + 1) + p_data->ul_msg.p_buf->offset, in avct_lcb_send_msg()
513 p_data->ul_msg.p_buf->offset += p_buf->len; in avct_lcb_send_msg()
514 p_data->ul_msg.p_buf->len -= p_buf->len; in avct_lcb_send_msg()
516 p_buf = p_data->ul_msg.p_buf; in avct_lcb_send_msg()
527 AVCT_BUILD_HDR(p, p_data->ul_msg.label, pkt_type, p_data->ul_msg.cr); in avct_lcb_send_msg()
533 UINT16_TO_BE_STREAM(p, p_data->ul_msg.p_ccb->cc.pid); in avct_lcb_send_msg()
570 tAVCT_LCB_EVT* p_data) { in avct_lcb_free_msg_ind() argument
571 if (p_data == NULL) return; in avct_lcb_free_msg_ind()
573 osi_free_and_reset((void**)&p_data->p_buf); in avct_lcb_free_msg_ind()
586 void avct_lcb_msg_ind(tAVCT_LCB* p_lcb, tAVCT_LCB_EVT* p_data) { in avct_lcb_msg_ind() argument
595 p_data->p_buf->layer_specific = AVCT_DATA_CTRL; in avct_lcb_msg_ind()
599 p_data->p_buf = avct_lcb_msg_asmbl(p_lcb, p_data->p_buf); in avct_lcb_msg_ind()
600 if (p_data->p_buf == NULL) { in avct_lcb_msg_ind()
604 p = (uint8_t*)(p_data->p_buf + 1) + p_data->p_buf->offset; in avct_lcb_msg_ind()
612 osi_free_and_reset((void**)&p_data->p_buf); in avct_lcb_msg_ind()
621 p_data->p_buf->offset += AVCT_HDR_LEN_SINGLE; in avct_lcb_msg_ind()
622 p_data->p_buf->len -= AVCT_HDR_LEN_SINGLE; in avct_lcb_msg_ind()
624 p_data->p_buf); in avct_lcb_msg_ind()
630 osi_free_and_reset((void**)&p_data->p_buf); in avct_lcb_msg_ind()