Lines Matching refs:p_data

372 static tBTA_AV_CODE bta_av_group_navi_supported(UINT8 len, UINT8 *p_data, BOOLEAN is_inquiry)  in bta_av_group_navi_supported()  argument
375 UINT8 *p_ptr = p_data; in bta_av_group_navi_supported()
487 void bta_av_rc_opened(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_opened() argument
502 if (p_scb && bdcmp(p_scb->peer_addr, p_data->rc_conn_chg.peer_addr) == 0) in bta_av_rc_opened()
504 p_scb->rc_handle = p_data->rc_conn_chg.handle; in bta_av_rc_opened()
514 i = p_data->rc_conn_chg.handle; in bta_av_rc_opened()
550 bdcpy(p_lcb->addr, p_data->rc_conn_chg.peer_addr); in bta_av_rc_opened()
560 disc = p_data->rc_conn_chg.handle|BTA_AV_CHNL_MSK; in bta_av_rc_opened()
563 bdcpy(rc_open.peer_addr, p_data->rc_conn_chg.peer_addr); in bta_av_rc_opened()
592 void bta_av_rc_remote_cmd(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_remote_cmd() argument
597 if (p_data->hdr.layer_specific < BTA_AV_NUM_RCB) in bta_av_rc_remote_cmd()
599 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific]; in bta_av_rc_remote_cmd()
602 AVRC_PassCmd(p_rcb->handle, p_data->api_remote_cmd.label, in bta_av_rc_remote_cmd()
603 &p_data->api_remote_cmd.msg); in bta_av_rc_remote_cmd()
618 void bta_av_rc_vendor_cmd(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_vendor_cmd() argument
624 if (p_data->hdr.layer_specific < BTA_AV_NUM_RCB) in bta_av_rc_vendor_cmd()
626 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific]; in bta_av_rc_vendor_cmd()
627 AVRC_VendorCmd(p_rcb->handle, p_data->api_vendor.label, &p_data->api_vendor.msg); in bta_av_rc_vendor_cmd()
641 void bta_av_rc_vendor_rsp(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_vendor_rsp() argument
647 if (p_data->hdr.layer_specific < BTA_AV_NUM_RCB) in bta_av_rc_vendor_rsp()
649 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific]; in bta_av_rc_vendor_rsp()
650 AVRC_VendorRsp(p_rcb->handle, p_data->api_vendor.label, &p_data->api_vendor.msg); in bta_av_rc_vendor_rsp()
664 void bta_av_rc_meta_rsp(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_meta_rsp() argument
669 if ((p_cb->features & BTA_AV_FEAT_METADATA) && (p_data->hdr.layer_specific < BTA_AV_NUM_RCB)) in bta_av_rc_meta_rsp()
671 if ((p_data->api_meta_rsp.is_rsp && (p_cb->features & BTA_AV_FEAT_RCTG)) || in bta_av_rc_meta_rsp()
672 (!p_data->api_meta_rsp.is_rsp && (p_cb->features & BTA_AV_FEAT_RCCT)) ) in bta_av_rc_meta_rsp()
674 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific]; in bta_av_rc_meta_rsp()
676 AVRC_MsgReq(p_rcb->handle, p_data->api_meta_rsp.label, in bta_av_rc_meta_rsp()
677 p_data->api_meta_rsp.rsp_code, in bta_av_rc_meta_rsp()
678 p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
685 osi_free_and_reset((void **)&p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
697 void bta_av_rc_free_rsp (tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_free_rsp() argument
700 osi_free_and_reset((void **)&p_data->api_meta_rsp.p_pkt); in bta_av_rc_free_rsp()
712 void bta_av_rc_free_msg (tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_free_msg() argument
715 UNUSED(p_data); in bta_av_rc_free_msg()
865 void bta_av_rc_msg(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_msg() argument
870 tAVRC_MSG_VENDOR *p_vendor = &p_data->rc_msg.msg.vendor; in bta_av_rc_msg()
872 ((p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_SPEC_INQ) || in bta_av_rc_msg()
873 p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_GEN_INQ); in bta_av_rc_msg()
881 if (p_data->rc_msg.opcode == AVRC_OP_PASS_THRU) in bta_av_rc_msg()
884 if ((p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_CTRL) || in bta_av_rc_msg()
885 (p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_SPEC_INQ) || in bta_av_rc_msg()
886 (p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_GEN_INQ) in bta_av_rc_msg()
892 if (p_data->rc_msg.msg.pass.op_id == AVRC_ID_VENDOR) in bta_av_rc_msg()
894 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_NOT_IMPL; in bta_av_rc_msg()
897 p_data->rc_msg.msg.hdr.ctype = in bta_av_rc_msg()
898 bta_av_group_navi_supported(p_data->rc_msg.msg.pass.pass_len, in bta_av_rc_msg()
899 p_data->rc_msg.msg.pass.p_pass_data, is_inquiry); in bta_av_rc_msg()
903 else if (((p_data->rc_msg.msg.pass.op_id == AVRC_ID_VOL_UP)|| in bta_av_rc_msg()
904 (p_data->rc_msg.msg.pass.op_id == AVRC_ID_VOL_DOWN)) && in bta_av_rc_msg()
907 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_ACCEPT; in bta_av_rc_msg()
912 p_data->rc_msg.msg.hdr.ctype = in bta_av_rc_msg()
913 bta_av_op_supported(p_data->rc_msg.msg.pass.op_id, is_inquiry); in bta_av_rc_msg()
916 APPL_TRACE_DEBUG("ctype %d",p_data->rc_msg.msg.hdr.ctype) in bta_av_rc_msg()
919 if (p_data->rc_msg.msg.hdr.ctype != BTA_AV_RSP_INTERIM) in bta_av_rc_msg()
920 AVRC_PassRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.pass); in bta_av_rc_msg()
923 …if (p_data->rc_msg.msg.hdr.ctype == BTA_AV_RSP_ACCEPT || p_data->rc_msg.msg.hdr.ctype == BTA_AV_RS… in bta_av_rc_msg()
926 av.remote_cmd.rc_id = p_data->rc_msg.msg.pass.op_id; in bta_av_rc_msg()
927 av.remote_cmd.key_state = p_data->rc_msg.msg.pass.state; in bta_av_rc_msg()
928 av.remote_cmd.p_data = p_data->rc_msg.msg.pass.p_pass_data; in bta_av_rc_msg()
929 av.remote_cmd.len = p_data->rc_msg.msg.pass.pass_len; in bta_av_rc_msg()
930 memcpy(&av.remote_cmd.hdr, &p_data->rc_msg.msg.hdr, sizeof (tAVRC_HDR)); in bta_av_rc_msg()
931 av.remote_cmd.label = p_data->rc_msg.label; in bta_av_rc_msg()
936 else if (p_data->rc_msg.msg.hdr.ctype >= AVRC_RSP_NOT_IMPL) in bta_av_rc_msg()
940 av.remote_rsp.rc_id = p_data->rc_msg.msg.pass.op_id; in bta_av_rc_msg()
941 av.remote_rsp.key_state = p_data->rc_msg.msg.pass.state; in bta_av_rc_msg()
942 av.remote_rsp.rsp_code = p_data->rc_msg.msg.hdr.ctype; in bta_av_rc_msg()
943 av.remote_rsp.label = p_data->rc_msg.label; in bta_av_rc_msg()
946 if ((p_data->rc_msg.msg.pass.op_id == AVRC_ID_VENDOR) && in bta_av_rc_msg()
947 (p_data->rc_msg.msg.pass.pass_len > 0)) in bta_av_rc_msg()
949 av.remote_rsp.p_data = in bta_av_rc_msg()
950 (UINT8 *)osi_malloc(p_data->rc_msg.msg.pass.pass_len); in bta_av_rc_msg()
952 p_data->rc_msg.msg.pass.pass_len); in bta_av_rc_msg()
953 memcpy(av.remote_rsp.p_data,p_data->rc_msg.msg.pass.p_pass_data, in bta_av_rc_msg()
954 p_data->rc_msg.msg.pass.pass_len); in bta_av_rc_msg()
960 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_REJ; in bta_av_rc_msg()
961 AVRC_PassRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.pass); in bta_av_rc_msg()
965 else if (p_data->rc_msg.opcode == AVRC_OP_VENDOR) in bta_av_rc_msg()
968 av.vendor_cmd.code = p_data->rc_msg.msg.hdr.ctype; in bta_av_rc_msg()
970 av.vendor_cmd.label = p_data->rc_msg.label; in bta_av_rc_msg()
971 av.vendor_cmd.p_data = p_vendor->p_vendor_data; in bta_av_rc_msg()
976 p_data->rc_msg.msg.hdr.ctype <= AVRC_CMD_GEN_INQ) in bta_av_rc_msg()
982 av.meta_msg.p_msg = &p_data->rc_msg.msg; in bta_av_rc_msg()
983 evt = bta_av_proc_meta_cmd (&rc_rsp, &p_data->rc_msg, &ctype); in bta_av_rc_msg()
991 p_data->rc_msg.msg.hdr.ctype >= AVRC_RSP_NOT_IMPL) in bta_av_rc_msg()
997 av.meta_msg.p_msg = &p_data->rc_msg.msg; in bta_av_rc_msg()
1007 p_data->rc_msg.msg.hdr.ctype <= AVRC_CMD_GEN_INQ) in bta_av_rc_msg()
1009 if (p_data->rc_msg.msg.vendor.p_vendor_data[0] == AVRC_PDU_INVALID) in bta_av_rc_msg()
1012 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_REJ; in bta_av_rc_msg()
1013 p_data->rc_msg.msg.vendor.p_vendor_data[4] = AVRC_STS_BAD_CMD; in bta_av_rc_msg()
1016 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_NOT_IMPL; in bta_av_rc_msg()
1017 AVRC_VendorRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.vendor); in bta_av_rc_msg()
1025 rc_rsp.rsp.opcode = p_data->rc_msg.opcode; in bta_av_rc_msg()
1029 AVRC_MsgReq (p_data->rc_msg.handle, p_data->rc_msg.label, ctype, p_pkt); in bta_av_rc_msg()
1036 av.remote_cmd.rc_handle = p_data->rc_msg.handle; in bta_av_rc_msg()
1050 void bta_av_rc_close (tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_rc_close() argument
1052 UINT16 handle = p_data->hdr.layer_specific; in bta_av_rc_close()
1187 void bta_av_conn_chg(tBTA_AV_DATA *p_data) in bta_av_conn_chg() argument
1196 int index = (p_data->hdr.layer_specific & BTA_AV_HNDL_MSK) - 1; in bta_av_conn_chg()
1208 p_lcb = bta_av_find_lcb(p_data->conn_chg.peer_addr, BTA_AV_LCB_FIND); in bta_av_conn_chg()
1210 if (p_data->conn_chg.is_up) in bta_av_conn_chg()
1259 p_data->conn_chg.peer_addr[0], p_data->conn_chg.peer_addr[1], in bta_av_conn_chg()
1260 p_data->conn_chg.peer_addr[2], in bta_av_conn_chg()
1261 p_data->conn_chg.peer_addr[3], p_data->conn_chg.peer_addr[4], in bta_av_conn_chg()
1262 p_data->conn_chg.peer_addr[5]); in bta_av_conn_chg()
1263 if (p_lcb_rc->conn_msk && bdcmp(p_lcb_rc->addr, p_data->conn_chg.peer_addr) == 0) in bta_av_conn_chg()
1353 …p_cb->conn_audio, p_cb->conn_video, p_data->conn_chg.is_up, conn_msk, chk_restore, p_cb->audio_ope… in bta_av_conn_chg()
1394 void bta_av_disable(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data) in bta_av_disable() argument
1398 UNUSED(p_data); in bta_av_disable()
1429 void bta_av_api_disconnect(tBTA_AV_DATA *p_data) in bta_av_api_disconnect() argument
1431 AVDT_DisconnectReq(p_data->api_discnt.bd_addr, bta_av_conn_cback); in bta_av_api_disconnect()
1444 void bta_av_sig_chg(tBTA_AV_DATA *p_data) in bta_av_sig_chg() argument
1446 UINT16 event = p_data->str_msg.hdr.layer_specific; in bta_av_sig_chg()
1455 p_lcb = bta_av_find_lcb(p_data->str_msg.bd_addr, BTA_AV_LCB_FIND); in bta_av_sig_chg()
1469 bdcpy(p_lcb->addr, p_data->str_msg.bd_addr); in bta_av_sig_chg()
1478 APPL_TRACE_DEBUG("start sig timer %d", p_data->hdr.offset); in bta_av_sig_chg()
1479 if (p_data->hdr.offset == AVDT_ACP) in bta_av_sig_chg()
1482 bdcpy(p_cb->p_scb[xx]->peer_addr, p_data->str_msg.bd_addr); in bta_av_sig_chg()
1484 bta_av_ssm_execute(p_cb->p_scb[xx], BTA_AV_ACP_CONNECT_EVT, p_data); in bta_av_sig_chg()
1511 AVDT_DisconnectReq (p_data->str_msg.bd_addr, NULL); in bta_av_sig_chg()
1527 p_lcb = bta_av_find_lcb(p_data->str_msg.bd_addr, BTA_AV_LCB_FREE); in bta_av_sig_chg()
1536 (bdcmp(p_cb->p_scb[xx]->peer_addr, p_data->str_msg.bd_addr) == 0)) in bta_av_sig_chg()
1559 void bta_av_signalling_timer(tBTA_AV_DATA *p_data) in bta_av_signalling_timer() argument
1566 UNUSED(p_data); in bta_av_signalling_timer()
1807 void bta_av_rc_disc_done(tBTA_AV_DATA *p_data) in bta_av_rc_disc_done() argument
1816 UNUSED(p_data); in bta_av_rc_disc_done()
1938 void bta_av_rc_closed(tBTA_AV_DATA *p_data) in bta_av_rc_closed() argument
1942 tBTA_AV_RC_CONN_CHG *p_msg = (tBTA_AV_RC_CONN_CHG *)p_data; in bta_av_rc_closed()
2104 void bta_av_dereg_comp(tBTA_AV_DATA *p_data) in bta_av_dereg_comp() argument
2113 p_scb = bta_av_hndl_to_scb(p_data->hdr.layer_specific); in bta_av_dereg_comp()