Home | History | Annotate | Download | only in avrc

Lines Matching refs:handle

67 static void avrc_ctrl_cback(UINT8 handle, UINT8 event, UINT16 result,
72 if (event <= AVRC_MAX_RCV_CTRL_EVT && avrc_cb.ccb[handle].p_ctrl_cback)
80 (*avrc_cb.ccb[handle].p_ctrl_cback)(handle, avrc_event, result, peer_addr);
124 static void avrc_prep_end_frag(UINT8 handle)
132 p_fcb = &avrc_cb.fcb[handle];
164 static void avrc_send_continue_frag(UINT8 handle, UINT8 label)
172 p_fcb = &avrc_cb.fcb[handle];
197 avrc_prep_end_frag (handle);
213 AVRC_BldResponse( handle, (tAVRC_RESPONSE *)&rej_rsp, &p_pkt);
223 AVCT_MsgReq( handle, label, cr, p_pkt);
235 static BT_HDR * avrc_proc_vendor_command(UINT8 handle, UINT8 label,
258 else if (avrc_cb.fcb[handle].frag_enabled)
260 p_fcb = &avrc_cb.fcb[handle];
281 AVCT_MsgReq( handle, label, AVCT_RSP, p_pkt);
288 avrc_send_continue_frag(handle, label);
348 static UINT8 avrc_proc_far_msg(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR **pp_pkt,
370 p_rcb = &avrc_cb.rcb[handle];
483 p_rsp = avrc_proc_vendor_command(handle, label, *pp_pkt, p_msg);
486 AVCT_MsgReq( handle, label, AVCT_RSP, p_rsp);
505 AVRC_MsgReq (handle, (UINT8)(label), AVRC_CMD_CTRL, p_cmd);
524 static void avrc_msg_cback(UINT8 handle, UINT8 label, UINT8 cr,
555 /* The peer thinks that this PID is no longer open - remove this handle */
558 AVCT_RemoveConn(handle);
566 AVRC_TRACE_DEBUG4("avrc_msg_cback handle:%d, ctype:%d, offset:%d, len: %d",
567 handle, msg.hdr.ctype, p_pkt->offset, p_pkt->len);
573 if ( ((avrc_cb.ccb[handle].control & AVRC_CT_TARGET) && (cr == AVCT_CMD)) ||
574 ((avrc_cb.ccb[handle].control & AVRC_CT_CONTROL) && (cr == AVCT_RSP)) )
591 AVRC_CO_ID_TO_BE_STREAM(p_rsp_data, avrc_cb.ccb[handle].company_id);
672 /* Check+handle fragmented messages */
673 drop = avrc_proc_far_msg(handle, label, cr, &p_pkt, p_msg);
730 if ((avrc_cb.ccb[handle].control & AVRC_CT_TARGET) && (cr == AVCT_CMD))
760 AVCT_MsgReq( handle, label, cr, p_rsp);
768 (*avrc_cb.ccb[handle].p_msg_cback)(handle, label, opcode, &msg);
773 AVRC_TRACE_WARNING5("avrc_msg_cback %s msg handle:%d, control:%d, cr:%d, opcode:x%x",
775 handle, avrc_cb.ccb[handle].control, cr, opcode);
880 ** p_handle: Pointer to handle. This parameter is only
908 AVRC_TRACE_DEBUG4("AVRC_Open role: %d, control:%d status:%d, handle:%d", cc.role, cc.control,
923 ** handle: Handle of this connection.
929 ** AVRC_BAD_HANDLE if handle is invalid.
932 UINT16 AVRC_Close(UINT8 handle)
934 AVRC_TRACE_DEBUG1("AVRC_Close handle:%d", handle);
935 return AVCT_RemoveConn(handle);
952 ** AVRC_BAD_HANDLE if handle is invalid.
955 UINT16 AVRC_MsgReq (UINT8 handle, UINT8 label, UINT8 ctype, BT_HDR *p_pkt)
1000 p_fcb = &avrc_cb.fcb[handle];
1042 avrc_prep_end_frag (handle);
1054 return AVCT_MsgReq( handle, label, cr, p_pkt);
1071 ** handle: Handle of this connection.
1081 ** AVRC_BAD_HANDLE if handle is invalid.
1084 UINT16 AVRC_PassCmd(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg)
1093 return AVCT_MsgReq( handle, label, AVCT_CMD, p_buf);
1109 ** handle: Handle of this connection.
1120 ** AVRC_BAD_HANDLE if handle is invalid.
1123 UINT16 AVRC_PassRsp(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg)
1131 return AVCT_MsgReq( handle, label, AVCT_RSP, p_buf);