• Home
  • Raw
  • Download

Lines Matching refs:p_msg

43 static tAVRC_STS avrc_ctrl_pars_vendor_cmd(tAVRC_MSG_VENDOR* p_msg,  in avrc_ctrl_pars_vendor_cmd()  argument
47 uint8_t* p = p_msg->p_vendor_data; in avrc_ctrl_pars_vendor_cmd()
50 if (!AVRC_IsValidAvcType(p_result->pdu, p_msg->hdr.ctype)) { in avrc_ctrl_pars_vendor_cmd()
58 if ((len + 4) != (p_msg->vendor_len)) { in avrc_ctrl_pars_vendor_cmd()
105 static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR* p_msg, in avrc_pars_vendor_cmd() argument
119 if (p_msg->vendor_len == 0) return AVRC_STS_NO_ERROR; in avrc_pars_vendor_cmd()
120 if (p_msg->p_vendor_data == NULL) return AVRC_STS_INTERNAL_ERR; in avrc_pars_vendor_cmd()
122 if (p_msg->vendor_len < 4) { in avrc_pars_vendor_cmd()
125 __func__, p_msg->vendor_len); in avrc_pars_vendor_cmd()
129 p = p_msg->p_vendor_data; in avrc_pars_vendor_cmd()
132 if (!AVRC_IsValidAvcType(p_result->pdu, p_msg->hdr.ctype)) { in avrc_pars_vendor_cmd()
134 p_msg->hdr.ctype); in avrc_pars_vendor_cmd()
140 if ((len + 4) != (p_msg->vendor_len)) { in avrc_pars_vendor_cmd()
142 p_msg->vendor_len); in avrc_pars_vendor_cmd()
396 tAVRC_STS AVRC_Ctrl_ParsCommand(tAVRC_MSG* p_msg, tAVRC_COMMAND* p_result) { in AVRC_Ctrl_ParsCommand() argument
399 if (p_msg && p_result) { in AVRC_Ctrl_ParsCommand()
400 switch (p_msg->hdr.opcode) { in AVRC_Ctrl_ParsCommand()
402 status = avrc_ctrl_pars_vendor_cmd(&p_msg->vendor, p_result); in AVRC_Ctrl_ParsCommand()
406 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode); in AVRC_Ctrl_ParsCommand()
409 p_result->cmd.opcode = p_msg->hdr.opcode; in AVRC_Ctrl_ParsCommand()
434 static tAVRC_STS avrc_pars_browsing_cmd(tAVRC_MSG_BROWSE* p_msg, in avrc_pars_browsing_cmd() argument
438 uint8_t* p = p_msg->p_browse_data; in avrc_pars_browsing_cmd()
442 RETURN_STATUS_IF_FALSE(AVRC_STS_BAD_CMD, (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
453 RETURN_STATUS_IF_FALSE(AVRC_STS_BAD_CMD, (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
463 RETURN_STATUS_IF_FALSE(AVRC_STS_BAD_CMD, (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
488 (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
498 RETURN_STATUS_IF_FALSE(AVRC_STS_BAD_CMD, (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
512 RETURN_STATUS_IF_FALSE(AVRC_STS_BAD_CMD, (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
534 (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
553 RETURN_STATUS_IF_FALSE(AVRC_STS_BAD_CMD, (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
564 RETURN_STATUS_IF_FALSE(AVRC_STS_BAD_CMD, (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
577 RETURN_STATUS_IF_FALSE(AVRC_STS_BAD_CMD, (p_msg->browse_len >= min_len), in avrc_pars_browsing_cmd()
605 tAVRC_STS AVRC_ParsCommand(tAVRC_MSG* p_msg, tAVRC_COMMAND* p_result, in AVRC_ParsCommand() argument
610 if (p_msg && p_result) { in AVRC_ParsCommand()
611 switch (p_msg->hdr.opcode) { in AVRC_ParsCommand()
613 status = avrc_pars_vendor_cmd(&p_msg->vendor, p_result, p_buf, buf_len); in AVRC_ParsCommand()
617 status = avrc_pars_pass_thru(&p_msg->pass, &id); in AVRC_ParsCommand()
625 avrc_pars_browsing_cmd(&p_msg->browse, p_result, p_buf, buf_len); in AVRC_ParsCommand()
629 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode); in AVRC_ParsCommand()
632 p_result->cmd.opcode = p_msg->hdr.opcode; in AVRC_ParsCommand()