Lines Matching refs:p_data
89 void avdt_scb_hdl_abort_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_abort_cmd() argument
92 avdt_scb_event(p_scb, AVDT_SCB_API_ABORT_RSP_EVT, p_data); in avdt_scb_hdl_abort_cmd()
105 void avdt_scb_hdl_abort_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_abort_rsp() argument
108 UNUSED(p_data); in avdt_scb_hdl_abort_rsp()
122 void avdt_scb_hdl_close_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_close_cmd() argument
125 avdt_scb_event(p_scb, AVDT_SCB_API_CLOSE_RSP_EVT, p_data); in avdt_scb_hdl_close_cmd()
138 void avdt_scb_hdl_close_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_close_rsp() argument
140 p_scb->close_code = p_data->msg.hdr.err_code; in avdt_scb_hdl_close_rsp()
154 void avdt_scb_hdl_getconfig_cmd(tAVDT_SCB *p_scb,tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_getconfig_cmd() argument
156 p_data->msg.svccap.p_cfg = &p_scb->curr_cfg; in avdt_scb_hdl_getconfig_cmd()
158 avdt_scb_event(p_scb, AVDT_SCB_API_GETCONFIG_RSP_EVT, p_data); in avdt_scb_hdl_getconfig_cmd()
171 void avdt_scb_hdl_getconfig_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_getconfig_rsp() argument
174 UNUSED(p_data); in avdt_scb_hdl_getconfig_rsp()
188 void avdt_scb_hdl_open_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_open_cmd() argument
190 avdt_scb_event(p_scb, AVDT_SCB_API_OPEN_RSP_EVT, p_data); in avdt_scb_hdl_open_cmd()
205 void avdt_scb_hdl_open_rej(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_open_rej() argument
208 avdt_scb_hdl_setconfig_rej(p_scb, p_data); in avdt_scb_hdl_open_rej()
221 void avdt_scb_hdl_open_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_open_rsp() argument
223 UNUSED(p_data); in avdt_scb_hdl_open_rsp()
242 void avdt_scb_hdl_pkt_no_frag(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_pkt_no_frag() argument
254 p = p_start = (UINT8 *)(p_data->p_pkt + 1) + p_data->p_pkt->offset; in avdt_scb_hdl_pkt_no_frag()
283 pad_len = *(p_start + p_data->p_pkt->len); in avdt_scb_hdl_pkt_no_frag()
287 if ((offset > p_data->p_pkt->len) || ((pad_len + offset) > p_data->p_pkt->len)) in avdt_scb_hdl_pkt_no_frag()
290 GKI_freebuf(p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag()
295 p_data->p_pkt->len -= (offset + pad_len); in avdt_scb_hdl_pkt_no_frag()
296 p_data->p_pkt->offset += offset; in avdt_scb_hdl_pkt_no_frag()
301 p_data->p_pkt->layer_specific = seq; in avdt_scb_hdl_pkt_no_frag()
302 (*p_scb->cs.p_data_cback)(avdt_scb_to_hdl(p_scb), p_data->p_pkt, in avdt_scb_hdl_pkt_no_frag()
310 && (p_scb->media_buf_len > p_data->p_pkt->len)) in avdt_scb_hdl_pkt_no_frag()
313 memcpy(p_scb->p_media_buf,(UINT8*)(p_data->p_pkt + 1) + p_data->p_pkt->offset, in avdt_scb_hdl_pkt_no_frag()
314 p_data->p_pkt->len); in avdt_scb_hdl_pkt_no_frag()
319 GKI_freebuf(p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag()
413 void avdt_scb_hdl_pkt_frag(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_pkt_frag() argument
434 p = (UINT8 *)(p_data->p_pkt + 1) + p_data->p_pkt->offset; in avdt_scb_hdl_pkt_frag()
435 p_end = p + p_data->p_pkt->len; in avdt_scb_hdl_pkt_frag()
633 GKI_freebuf(p_data->p_pkt); in avdt_scb_hdl_pkt_frag()
646 void avdt_scb_hdl_pkt(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_pkt() argument
656 avdt_scb_hdl_pkt_frag(p_scb, p_data); in avdt_scb_hdl_pkt()
661 if(p_data->p_pkt->layer_specific == AVDT_CHAN_REPORT) in avdt_scb_hdl_pkt()
663 p = (UINT8 *)(p_data->p_pkt + 1) + p_data->p_pkt->offset; in avdt_scb_hdl_pkt()
664 avdt_scb_hdl_report(p_scb, p, p_data->p_pkt->len); in avdt_scb_hdl_pkt()
665 GKI_freebuf(p_data->p_pkt); in avdt_scb_hdl_pkt()
669 avdt_scb_hdl_pkt_no_frag(p_scb, p_data); in avdt_scb_hdl_pkt()
682 void avdt_scb_drop_pkt(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_drop_pkt() argument
686 GKI_freebuf(p_data->p_pkt); in avdt_scb_drop_pkt()
700 void avdt_scb_hdl_reconfig_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_reconfig_cmd() argument
706 p_data->msg.hdr.err_code = AVDT_ERR_NSC; in avdt_scb_hdl_reconfig_cmd()
707 p_data->msg.hdr.err_param = 0; in avdt_scb_hdl_reconfig_cmd()
708 avdt_scb_event(p_scb, AVDT_SCB_API_RECONFIG_RSP_EVT, p_data); in avdt_scb_hdl_reconfig_cmd()
713 memcpy(&p_scb->req_cfg, p_data->msg.reconfig_cmd.p_cfg, sizeof(tAVDT_CFG)); in avdt_scb_hdl_reconfig_cmd()
719 (tAVDT_CTRL *) &p_data->msg.reconfig_cmd); in avdt_scb_hdl_reconfig_cmd()
733 void avdt_scb_hdl_reconfig_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_reconfig_rsp() argument
735 if (p_data->msg.hdr.err_code == 0) in avdt_scb_hdl_reconfig_rsp()
750 p_data->msg.svccap.p_cfg = &p_scb->curr_cfg; in avdt_scb_hdl_reconfig_rsp()
756 (tAVDT_CTRL *) &p_data->msg.svccap); in avdt_scb_hdl_reconfig_rsp()
769 void avdt_scb_hdl_security_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_security_cmd() argument
775 p_data->msg.hdr.err_code = AVDT_ERR_NSC; in avdt_scb_hdl_security_cmd()
776 avdt_scb_event(p_scb, AVDT_SCB_API_SECURITY_RSP_EVT, p_data); in avdt_scb_hdl_security_cmd()
784 (tAVDT_CTRL *) &p_data->msg.security_cmd); in avdt_scb_hdl_security_cmd()
798 void avdt_scb_hdl_security_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_security_rsp() argument
804 (tAVDT_CTRL *) &p_data->msg.security_cmd); in avdt_scb_hdl_security_rsp()
818 void avdt_scb_hdl_setconfig_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_setconfig_cmd() argument
824 p_cfg = p_data->msg.config_cmd.p_cfg; in avdt_scb_hdl_setconfig_cmd()
831 p_scb->p_ccb = avdt_ccb_by_idx(p_data->msg.config_cmd.hdr.ccb_idx); in avdt_scb_hdl_setconfig_cmd()
832 p_scb->peer_seid = p_data->msg.config_cmd.int_seid; in avdt_scb_hdl_setconfig_cmd()
838 (tAVDT_CTRL *) &p_data->msg.config_cmd); in avdt_scb_hdl_setconfig_cmd()
842 p_data->msg.hdr.err_code = AVDT_ERR_UNSUP_CFG; in avdt_scb_hdl_setconfig_cmd()
843 p_data->msg.hdr.err_param = 0; in avdt_scb_hdl_setconfig_cmd()
844 avdt_msg_send_rej(avdt_ccb_by_idx(p_data->msg.hdr.ccb_idx), in avdt_scb_hdl_setconfig_cmd()
845 p_data->msg.hdr.sig_id, &p_data->msg); in avdt_scb_hdl_setconfig_cmd()
850 avdt_scb_rej_in_use(p_scb, p_data); in avdt_scb_hdl_setconfig_cmd()
864 void avdt_scb_hdl_setconfig_rej(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_setconfig_rej() argument
867 avdt_scb_clr_vars(p_scb, p_data); in avdt_scb_hdl_setconfig_rej()
870 avdt_ccb_event(avdt_ccb_by_idx(p_data->msg.hdr.ccb_idx), AVDT_CCB_UL_CLOSE_EVT, NULL); in avdt_scb_hdl_setconfig_rej()
876 (tAVDT_CTRL *) &p_data->msg.hdr); in avdt_scb_hdl_setconfig_rej()
889 void avdt_scb_hdl_setconfig_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_setconfig_rsp() argument
892 UNUSED(p_data); in avdt_scb_hdl_setconfig_rsp()
915 void avdt_scb_hdl_start_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_start_cmd() argument
917 UNUSED(p_data); in avdt_scb_hdl_start_cmd()
935 void avdt_scb_hdl_start_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_start_rsp() argument
940 (tAVDT_CTRL *) &p_data->msg.hdr); in avdt_scb_hdl_start_rsp()
953 void avdt_scb_hdl_suspend_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_suspend_cmd() argument
955 UNUSED(p_data); in avdt_scb_hdl_suspend_cmd()
973 void avdt_scb_hdl_suspend_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_suspend_rsp() argument
978 (tAVDT_CTRL *) &p_data->msg.hdr); in avdt_scb_hdl_suspend_rsp()
996 void avdt_scb_hdl_tc_close(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_tc_close() argument
1012 avdt_scb_clr_vars(p_scb, p_data); in avdt_scb_hdl_tc_close()
1053 void avdt_scb_snd_delay_rpt_req (tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_delay_rpt_req() argument
1055 avdt_msg_send_cmd(p_scb->p_ccb, p_scb, AVDT_SIG_DELAY_RPT, (tAVDT_MSG *) &p_data->apidelay); in avdt_scb_snd_delay_rpt_req()
1068 void avdt_scb_hdl_delay_rpt_cmd (tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_delay_rpt_cmd() argument
1073 (tAVDT_CTRL *) &p_data->msg.hdr); in avdt_scb_hdl_delay_rpt_cmd()
1076 avdt_msg_send_rsp(p_scb->p_ccb, AVDT_SIG_DELAY_RPT, &p_data->msg); in avdt_scb_hdl_delay_rpt_cmd()
1078 avdt_scb_rej_not_in_use(p_scb, p_data); in avdt_scb_hdl_delay_rpt_cmd()
1091 void avdt_scb_hdl_delay_rpt_rsp (tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_delay_rpt_rsp() argument
1096 (tAVDT_CTRL *) &p_data->msg.hdr); in avdt_scb_hdl_delay_rpt_rsp()
1110 void avdt_scb_hdl_tc_close_sto(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_tc_close_sto() argument
1114 if(p_data && p_data->close.type != AVDT_CHAN_MEDIA) in avdt_scb_hdl_tc_close_sto()
1118 if(p_data->close.old_tc_state == AVDT_AD_ST_OPEN) in avdt_scb_hdl_tc_close_sto()
1132 avdt_scb_hdl_tc_close(p_scb, p_data); in avdt_scb_hdl_tc_close_sto()
1149 void avdt_scb_hdl_tc_open(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_tc_open() argument
1160 p_data->open.hdr.err_code = 0; in avdt_scb_hdl_tc_open()
1177 (tAVDT_CTRL *) &p_data->open); in avdt_scb_hdl_tc_open()
1193 void avdt_scb_hdl_tc_open_sto(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_tc_open_sto() argument
1199 if(p_data->open.hdr.err_code == AVDT_CHAN_REPORT) in avdt_scb_hdl_tc_open_sto()
1221 void avdt_scb_hdl_write_req_no_frag(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_write_req_no_frag() argument
1237 if ( !(p_data->apiwrite.opt & AVDT_DATA_OPT_NO_RTP) ) in avdt_scb_hdl_write_req_no_frag()
1241 p_data->apiwrite.p_buf->len += AVDT_MEDIA_HDR_SIZE; in avdt_scb_hdl_write_req_no_frag()
1242 p_data->apiwrite.p_buf->offset -= AVDT_MEDIA_HDR_SIZE; in avdt_scb_hdl_write_req_no_frag()
1244 p = (UINT8 *)(p_data->apiwrite.p_buf + 1) + p_data->apiwrite.p_buf->offset; in avdt_scb_hdl_write_req_no_frag()
1247 UINT8_TO_BE_STREAM(p, p_data->apiwrite.m_pt); in avdt_scb_hdl_write_req_no_frag()
1249 UINT32_TO_BE_STREAM(p, p_data->apiwrite.time_stamp); in avdt_scb_hdl_write_req_no_frag()
1254 p_scb->p_pkt = p_data->apiwrite.p_buf; in avdt_scb_hdl_write_req_no_frag()
1268 void avdt_scb_hdl_write_req_frag(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_write_req_frag() argument
1285 p_scb->frag_off = p_data->apiwrite.data_len; in avdt_scb_hdl_write_req_frag()
1286 p_scb->p_next_frag = p_data->apiwrite.p_data; in avdt_scb_hdl_write_req_frag()
1291 p_frag = (BT_HDR*)GKI_getfirst (&p_data->apiwrite.frag_q); in avdt_scb_hdl_write_req_frag()
1305 UINT8_TO_BE_STREAM(p, p_data->apiwrite.m_pt); in avdt_scb_hdl_write_req_frag()
1307 UINT32_TO_BE_STREAM(p, p_data->apiwrite.time_stamp); in avdt_scb_hdl_write_req_frag()
1326 p_scb->frag_q = p_data->apiwrite.frag_q; in avdt_scb_hdl_write_req_frag()
1341 void avdt_scb_hdl_write_req(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_write_req() argument
1344 if (GKI_queue_is_empty(&p_data->apiwrite.frag_q)) in avdt_scb_hdl_write_req()
1346 avdt_scb_hdl_write_req_no_frag(p_scb, p_data); in avdt_scb_hdl_write_req()
1349 avdt_scb_hdl_write_req_frag(p_scb, p_data); in avdt_scb_hdl_write_req()
1362 void avdt_scb_snd_abort_req(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_abort_req() argument
1365 UNUSED(p_data); in avdt_scb_snd_abort_req()
1386 void avdt_scb_snd_abort_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_abort_rsp() argument
1390 avdt_msg_send_rsp(avdt_ccb_by_idx(p_data->msg.hdr.ccb_idx), AVDT_SIG_ABORT, in avdt_scb_snd_abort_rsp()
1391 &p_data->msg); in avdt_scb_snd_abort_rsp()
1403 void avdt_scb_snd_close_req(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_close_req() argument
1406 UNUSED(p_data); in avdt_scb_snd_close_req()
1424 void avdt_scb_snd_stream_close(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_stream_close() argument
1448 avdt_scb_snd_close_req(p_scb, p_data); in avdt_scb_snd_stream_close()
1460 void avdt_scb_snd_close_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_close_rsp() argument
1462 avdt_msg_send_rsp(p_scb->p_ccb, AVDT_SIG_CLOSE, &p_data->msg); in avdt_scb_snd_close_rsp()
1474 void avdt_scb_snd_getconfig_req(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_getconfig_req() argument
1477 UNUSED(p_data); in avdt_scb_snd_getconfig_req()
1493 void avdt_scb_snd_getconfig_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_getconfig_rsp() argument
1495 avdt_msg_send_rsp(p_scb->p_ccb, AVDT_SIG_GETCONFIG, &p_data->msg); in avdt_scb_snd_getconfig_rsp()
1507 void avdt_scb_snd_open_req(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_open_req() argument
1510 UNUSED(p_data); in avdt_scb_snd_open_req()
1528 void avdt_scb_snd_open_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_open_rsp() argument
1535 avdt_msg_send_rsp(p_scb->p_ccb, AVDT_SIG_OPEN, &p_data->msg); in avdt_scb_snd_open_rsp()
1551 void avdt_scb_snd_reconfig_req(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_reconfig_req() argument
1553 memcpy(&p_scb->req_cfg, p_data->msg.config_cmd.p_cfg, sizeof(tAVDT_CFG)); in avdt_scb_snd_reconfig_req()
1554 p_data->msg.hdr.seid = p_scb->peer_seid; in avdt_scb_snd_reconfig_req()
1555 avdt_msg_send_cmd(p_scb->p_ccb, p_scb, AVDT_SIG_RECONFIG, &p_data->msg); in avdt_scb_snd_reconfig_req()
1568 void avdt_scb_snd_reconfig_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_reconfig_rsp() argument
1570 if (p_data->msg.hdr.err_code == 0) in avdt_scb_snd_reconfig_rsp()
1585 avdt_msg_send_rsp(p_scb->p_ccb, AVDT_SIG_RECONFIG, &p_data->msg); in avdt_scb_snd_reconfig_rsp()
1590 avdt_msg_send_rej(p_scb->p_ccb, AVDT_SIG_RECONFIG, &p_data->msg); in avdt_scb_snd_reconfig_rsp()
1603 void avdt_scb_snd_security_req(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_security_req() argument
1605 p_data->msg.hdr.seid = p_scb->peer_seid; in avdt_scb_snd_security_req()
1606 avdt_msg_send_cmd(p_scb->p_ccb, p_scb, AVDT_SIG_SECURITY, &p_data->msg); in avdt_scb_snd_security_req()
1618 void avdt_scb_snd_security_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_security_rsp() argument
1620 if (p_data->msg.hdr.err_code == 0) in avdt_scb_snd_security_rsp()
1622 avdt_msg_send_rsp(p_scb->p_ccb, AVDT_SIG_SECURITY, &p_data->msg); in avdt_scb_snd_security_rsp()
1626 avdt_msg_send_rej(p_scb->p_ccb, AVDT_SIG_SECURITY, &p_data->msg); in avdt_scb_snd_security_rsp()
1640 void avdt_scb_snd_setconfig_rej(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_setconfig_rej() argument
1644 avdt_msg_send_rej(p_scb->p_ccb, AVDT_SIG_SETCONFIG, &p_data->msg); in avdt_scb_snd_setconfig_rej()
1647 avdt_scb_clr_vars(p_scb, p_data); in avdt_scb_snd_setconfig_rej()
1663 void avdt_scb_snd_setconfig_req(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_setconfig_req() argument
1669 p_scb->p_ccb = avdt_ccb_by_idx(p_data->msg.config_cmd.hdr.ccb_idx); in avdt_scb_snd_setconfig_req()
1670 p_scb->peer_seid = p_data->msg.config_cmd.hdr.seid; in avdt_scb_snd_setconfig_req()
1671 p_req = p_data->msg.config_cmd.p_cfg; in avdt_scb_snd_setconfig_req()
1682 memcpy(&p_scb->req_cfg, p_data->msg.config_cmd.p_cfg, sizeof(tAVDT_CFG)); in avdt_scb_snd_setconfig_req()
1684 avdt_msg_send_cmd(p_scb->p_ccb, p_scb, AVDT_SIG_SETCONFIG, &p_data->msg); in avdt_scb_snd_setconfig_req()
1701 void avdt_scb_snd_setconfig_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_setconfig_rsp() argument
1707 avdt_msg_send_rsp(p_scb->p_ccb, AVDT_SIG_SETCONFIG, &p_data->msg); in avdt_scb_snd_setconfig_rsp()
1721 void avdt_scb_snd_tc_close(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_snd_tc_close() argument
1723 UNUSED(p_data); in avdt_scb_snd_tc_close()
1742 void avdt_scb_cb_err(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_cb_err() argument
1745 UNUSED(p_data); in avdt_scb_cb_err()
1768 void avdt_scb_cong_state(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_cong_state() argument
1770 p_scb->cong = p_data->llcong; in avdt_scb_cong_state()
1783 void avdt_scb_rej_state(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_rej_state() argument
1787 p_data->msg.hdr.err_code = AVDT_ERR_BAD_STATE; in avdt_scb_rej_state()
1788 p_data->msg.hdr.err_param = 0; in avdt_scb_rej_state()
1789 avdt_msg_send_rej(avdt_ccb_by_idx(p_data->msg.hdr.ccb_idx), in avdt_scb_rej_state()
1790 p_data->msg.hdr.sig_id, &p_data->msg); in avdt_scb_rej_state()
1803 void avdt_scb_rej_in_use(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_rej_in_use() argument
1807 p_data->msg.hdr.err_code = AVDT_ERR_IN_USE; in avdt_scb_rej_in_use()
1808 p_data->msg.hdr.err_param = 0; in avdt_scb_rej_in_use()
1809 avdt_msg_send_rej(avdt_ccb_by_idx(p_data->msg.hdr.ccb_idx), in avdt_scb_rej_in_use()
1810 p_data->msg.hdr.sig_id, &p_data->msg); in avdt_scb_rej_in_use()
1823 void avdt_scb_rej_not_in_use(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_rej_not_in_use() argument
1827 p_data->msg.hdr.err_code = AVDT_ERR_NOT_IN_USE; in avdt_scb_rej_not_in_use()
1828 p_data->msg.hdr.err_param = 0; in avdt_scb_rej_not_in_use()
1829 avdt_msg_send_rej(avdt_ccb_by_idx(p_data->msg.hdr.ccb_idx), in avdt_scb_rej_not_in_use()
1830 p_data->msg.hdr.sig_id, &p_data->msg); in avdt_scb_rej_not_in_use()
1842 void avdt_scb_set_remove(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_set_remove() argument
1844 UNUSED(p_data); in avdt_scb_set_remove()
1858 void avdt_scb_free_pkt(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_free_pkt() argument
1870 if(p_data->apiwrite.p_buf) in avdt_scb_free_pkt()
1871 GKI_freebuf(p_data->apiwrite.p_buf); in avdt_scb_free_pkt()
1875 while((p_frag = (BT_HDR*)GKI_dequeue (&p_data->apiwrite.frag_q)) != NULL) in avdt_scb_free_pkt()
1895 void avdt_scb_clr_pkt(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_clr_pkt() argument
1904 UNUSED(p_data); in avdt_scb_clr_pkt()
1960 void avdt_scb_chk_snd_pkt(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_chk_snd_pkt() argument
1969 UNUSED(p_data); in avdt_scb_chk_snd_pkt()
2041 void avdt_scb_tc_timer(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_tc_timer() argument
2043 UNUSED(p_data); in avdt_scb_tc_timer()
2057 void avdt_scb_clr_vars(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_clr_vars() argument
2059 UNUSED(p_data); in avdt_scb_clr_vars()