Lines Matching refs:p_data
80 void avdt_ccb_chan_open(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_chan_open() argument
82 UNUSED(p_data); in avdt_ccb_chan_open()
99 void avdt_ccb_chan_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_chan_close() argument
101 UNUSED(p_data); in avdt_ccb_chan_close()
118 void avdt_ccb_chk_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_chk_close() argument
122 UNUSED(p_data); in avdt_ccb_chk_close()
158 void avdt_ccb_hdl_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_discover_cmd() argument
164 p_data->msg.discover_rsp.p_sep_info = sep_info; in avdt_ccb_hdl_discover_cmd()
165 p_data->msg.discover_rsp.num_seps = 0; in avdt_ccb_hdl_discover_cmd()
173 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; in avdt_ccb_hdl_discover_cmd()
174 sep_info[p_data->msg.discover_rsp.num_seps].seid = i + 1; in avdt_ccb_hdl_discover_cmd()
175 sep_info[p_data->msg.discover_rsp.num_seps].media_type = p_scb->cs.media_type; in avdt_ccb_hdl_discover_cmd()
176 sep_info[p_data->msg.discover_rsp.num_seps].tsep = p_scb->cs.tsep; in avdt_ccb_hdl_discover_cmd()
178 p_data->msg.discover_rsp.num_seps++; in avdt_ccb_hdl_discover_cmd()
183 avdt_ccb_event(p_ccb, AVDT_CCB_API_DISCOVER_RSP_EVT, p_data); in avdt_ccb_hdl_discover_cmd()
198 void avdt_ccb_hdl_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_discover_rsp() argument
205 (tAVDT_CTRL *)(&p_data->msg.discover_rsp)); in avdt_ccb_hdl_discover_rsp()
221 void avdt_ccb_hdl_getcap_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_getcap_cmd() argument
226 p_scb = avdt_scb_by_hdl(p_data->msg.single.seid); in avdt_ccb_hdl_getcap_cmd()
228 p_data->msg.svccap.p_cfg = &p_scb->cs.cfg; in avdt_ccb_hdl_getcap_cmd()
230 avdt_ccb_event(p_ccb, AVDT_CCB_API_GETCAP_RSP_EVT, p_data); in avdt_ccb_hdl_getcap_cmd()
245 void avdt_ccb_hdl_getcap_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_getcap_rsp() argument
252 (tAVDT_CTRL *)(&p_data->msg.svccap)); in avdt_ccb_hdl_getcap_rsp()
268 void avdt_ccb_hdl_start_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_start_cmd() argument
273 UINT8 seid = avdt_scb_verify(p_ccb, AVDT_VERIFY_START, p_data->msg.multi.seid_list, in avdt_ccb_hdl_start_cmd()
274 p_data->msg.multi.num_seps, &err_code); in avdt_ccb_hdl_start_cmd()
278 avdt_ccb_event(p_ccb, AVDT_CCB_API_START_RSP_EVT, p_data); in avdt_ccb_hdl_start_cmd()
281 p_data->msg.hdr.err_code = err_code; in avdt_ccb_hdl_start_cmd()
282 p_data->msg.hdr.err_param = seid; in avdt_ccb_hdl_start_cmd()
283 avdt_msg_send_rej(p_ccb, AVDT_SIG_START, &p_data->msg); in avdt_ccb_hdl_start_cmd()
300 void avdt_ccb_hdl_start_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_start_rsp() argument
308 event = (p_data->msg.hdr.err_code == 0) ? in avdt_ccb_hdl_start_rsp()
319 avdt_scb_event(p_scb, event, (tAVDT_SCB_EVT *) &p_data->msg); in avdt_ccb_hdl_start_rsp()
338 void avdt_ccb_hdl_suspend_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_suspend_cmd() argument
344 if ((seid = avdt_scb_verify(p_ccb, AVDT_VERIFY_SUSPEND, p_data->msg.multi.seid_list, in avdt_ccb_hdl_suspend_cmd()
345 p_data->msg.multi.num_seps, &err_code)) == 0 && in avdt_ccb_hdl_suspend_cmd()
349 avdt_ccb_event(p_ccb, AVDT_CCB_API_SUSPEND_RSP_EVT, p_data); in avdt_ccb_hdl_suspend_cmd()
354 p_data->msg.hdr.err_code = err_code; in avdt_ccb_hdl_suspend_cmd()
355 p_data->msg.hdr.err_param = seid; in avdt_ccb_hdl_suspend_cmd()
356 avdt_msg_send_rej(p_ccb, AVDT_SIG_SUSPEND, &p_data->msg); in avdt_ccb_hdl_suspend_cmd()
374 void avdt_ccb_hdl_suspend_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_hdl_suspend_rsp() argument
382 event = (p_data->msg.hdr.err_code == 0) ? in avdt_ccb_hdl_suspend_rsp()
393 avdt_scb_event(p_scb, event, (tAVDT_SCB_EVT *) &p_data->msg); in avdt_ccb_hdl_suspend_rsp()
411 void avdt_ccb_snd_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_discover_cmd() argument
414 p_ccb->p_proc_data = p_data->discover.p_sep_info; in avdt_ccb_snd_discover_cmd()
415 p_ccb->proc_cback = p_data->discover.p_cback; in avdt_ccb_snd_discover_cmd()
416 p_ccb->proc_param = p_data->discover.num_seps; in avdt_ccb_snd_discover_cmd()
437 void avdt_ccb_snd_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_discover_rsp() argument
440 avdt_msg_send_rsp(p_ccb, AVDT_SIG_DISCOVER, &p_data->msg); in avdt_ccb_snd_discover_rsp()
456 void avdt_ccb_snd_getcap_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_getcap_cmd() argument
461 p_ccb->p_proc_data = p_data->getcap.p_cfg; in avdt_ccb_snd_getcap_cmd()
462 p_ccb->proc_cback = p_data->getcap.p_cback; in avdt_ccb_snd_getcap_cmd()
468 if (p_data->msg.hdr.sig_id == AVDT_SIG_GET_ALLCAP) in avdt_ccb_snd_getcap_cmd()
471 avdt_msg_send_cmd(p_ccb, NULL, sig_id, (tAVDT_MSG *) &p_data->getcap.single); in avdt_ccb_snd_getcap_cmd()
486 void avdt_ccb_snd_getcap_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_getcap_rsp() argument
490 if (p_data->msg.hdr.sig_id == AVDT_SIG_GET_ALLCAP) in avdt_ccb_snd_getcap_rsp()
494 avdt_msg_send_rsp(p_ccb, sig_id, &p_data->msg); in avdt_ccb_snd_getcap_rsp()
510 void avdt_ccb_snd_start_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_start_cmd() argument
518 memcpy(seid_list, p_data->msg.multi.seid_list, p_data->msg.multi.num_seps); in avdt_ccb_snd_start_cmd()
521 …if ((avdt_msg.hdr.err_param = avdt_scb_verify(p_ccb, AVDT_VERIFY_OPEN, p_data->msg.multi.seid_list, in avdt_ccb_snd_start_cmd()
522 p_data->msg.multi.num_seps, &avdt_msg.hdr.err_code)) == 0) in avdt_ccb_snd_start_cmd()
525 avdt_scb_peer_seid_list(&p_data->msg.multi); in avdt_ccb_snd_start_cmd()
528 avdt_msg_send_cmd(p_ccb, seid_list, AVDT_SIG_START, &p_data->msg); in avdt_ccb_snd_start_cmd()
533 for (i = 0; i < p_data->msg.multi.num_seps; i++) in avdt_ccb_snd_start_cmd()
556 void avdt_ccb_snd_start_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_start_rsp() argument
562 avdt_msg_send_rsp(p_ccb, AVDT_SIG_START, &p_data->msg); in avdt_ccb_snd_start_rsp()
565 for (i = 0; i < p_data->msg.multi.num_seps; i++) in avdt_ccb_snd_start_rsp()
567 if ((p_scb = avdt_scb_by_hdl(p_data->msg.multi.seid_list[i])) != NULL) in avdt_ccb_snd_start_rsp()
588 void avdt_ccb_snd_suspend_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_suspend_cmd() argument
596 memcpy(seid_list, p_data->msg.multi.seid_list, p_data->msg.multi.num_seps); in avdt_ccb_snd_suspend_cmd()
599 …if ((avdt_msg.hdr.err_param = avdt_scb_verify(p_ccb, AVDT_VERIFY_STREAMING, p_data->msg.multi.seid… in avdt_ccb_snd_suspend_cmd()
600 p_data->msg.multi.num_seps, &avdt_msg.hdr.err_code)) == 0) in avdt_ccb_snd_suspend_cmd()
603 avdt_scb_peer_seid_list(&p_data->msg.multi); in avdt_ccb_snd_suspend_cmd()
606 avdt_msg_send_cmd(p_ccb, seid_list, AVDT_SIG_SUSPEND, &p_data->msg); in avdt_ccb_snd_suspend_cmd()
611 for (i = 0; i < p_data->msg.multi.num_seps; i++) in avdt_ccb_snd_suspend_cmd()
634 void avdt_ccb_snd_suspend_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_suspend_rsp() argument
640 avdt_msg_send_rsp(p_ccb, AVDT_SIG_SUSPEND, &p_data->msg); in avdt_ccb_snd_suspend_rsp()
643 for (i = 0; i < p_data->msg.multi.num_seps; i++) in avdt_ccb_snd_suspend_rsp()
645 if ((p_scb = avdt_scb_by_hdl(p_data->msg.multi.seid_list[i])) != NULL) in avdt_ccb_snd_suspend_rsp()
666 void avdt_ccb_clear_cmds(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_clear_cmds() argument
671 UNUSED(p_data); in avdt_ccb_clear_cmds()
712 void avdt_ccb_cmd_fail(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_cmd_fail() argument
721 msg.hdr.err_code = p_data->err_code; in avdt_ccb_cmd_fail()
757 void avdt_ccb_free_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_free_cmd() argument
759 UNUSED(p_data); in avdt_ccb_free_cmd()
774 void avdt_ccb_cong_state(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_cong_state() argument
776 p_ccb->cong = p_data->llcong; in avdt_ccb_cong_state()
792 void avdt_ccb_ret_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_ret_cmd() argument
804 avdt_ccb_snd_cmd(p_ccb, p_data); in avdt_ccb_ret_cmd()
839 void avdt_ccb_snd_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_cmd() argument
842 UNUSED(p_data); in avdt_ccb_snd_cmd()
870 void avdt_ccb_snd_msg(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_snd_msg() argument
873 UNUSED(p_data); in avdt_ccb_snd_msg()
913 void avdt_ccb_set_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_set_reconn() argument
915 UNUSED(p_data); in avdt_ccb_set_reconn()
930 void avdt_ccb_clr_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_clr_reconn() argument
932 UNUSED(p_data); in avdt_ccb_clr_reconn()
949 void avdt_ccb_chk_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_chk_reconn() argument
952 UNUSED(p_data); in avdt_ccb_chk_reconn()
984 void avdt_ccb_chk_timer(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_chk_timer() argument
986 UNUSED(p_data); in avdt_ccb_chk_timer()
1001 void avdt_ccb_set_conn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_set_conn() argument
1004 p_ccb->p_conn_cback = p_data->connect.p_cback; in avdt_ccb_set_conn()
1007 BTM_SetSecurityLevel(TRUE, "", BTM_SEC_SERVICE_AVDTP, p_data->connect.sec_mask, in avdt_ccb_set_conn()
1021 void avdt_ccb_set_disconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_set_disconn() argument
1028 if (p_data->disconnect.p_cback) in avdt_ccb_set_disconn()
1029 p_ccb->p_conn_cback = p_data->disconnect.p_cback; in avdt_ccb_set_disconn()
1042 void avdt_ccb_do_disconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_do_disconn() argument
1044 UNUSED(p_data); in avdt_ccb_do_disconn()
1063 void avdt_ccb_ll_closed(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_ll_closed() argument
1068 UNUSED(p_data); in avdt_ccb_ll_closed()
1100 void avdt_ccb_ll_opened(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) in avdt_ccb_ll_opened() argument
1113 avdt_ctrl.hdr.err_param = p_data->msg.hdr.err_param; in avdt_ccb_ll_opened()