• Home
  • Raw
  • Download

Lines Matching refs:p_result

47                                       tAVRC_RESPONSE* p_result) {  in avrc_pars_vendor_rsp()  argument
66 BE_STREAM_TO_UINT8(p_result->pdu, p); in avrc_pars_vendor_rsp()
70 __func__, p_msg->hdr.ctype, p_result->pdu, len, len, in avrc_pars_vendor_rsp()
86 p_result->rsp.status = *p; in avrc_pars_vendor_rsp()
87 return p_result->rsp.status; in avrc_pars_vendor_rsp()
90 switch (p_result->pdu) { in avrc_pars_vendor_rsp()
99 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_pars_vendor_rsp()
126 p_result->reg_notif.status = p_msg->hdr.ctype; in avrc_pars_vendor_rsp()
127 p_result->reg_notif.event_id = eventid; in avrc_pars_vendor_rsp()
128 BE_STREAM_TO_UINT8(p_result->reg_notif.param.volume, p); in avrc_pars_vendor_rsp()
131 __func__, eventid, p_result->reg_notif.param.volume); in avrc_pars_vendor_rsp()
499 tAVRC_RESPONSE* p_result, in avrc_ctrl_pars_vendor_rsp() argument
509 BE_STREAM_TO_UINT8(p_result->pdu, p); in avrc_ctrl_pars_vendor_rsp()
516 p_msg->hdr.ctype, p_result->pdu, len, p_msg->vendor_len); in avrc_ctrl_pars_vendor_rsp()
527 p_result->rsp.status = *p; in avrc_ctrl_pars_vendor_rsp()
528 return p_result->rsp.status; in avrc_ctrl_pars_vendor_rsp()
532 switch (p_result->pdu) { in avrc_ctrl_pars_vendor_rsp()
537 return avrc_parse_notification_rsp(p, len, &p_result->reg_notif); in avrc_ctrl_pars_vendor_rsp()
541 p_result->get_caps.count = 0; in avrc_ctrl_pars_vendor_rsp()
542 p_result->get_caps.capability_id = 0; in avrc_ctrl_pars_vendor_rsp()
547 BE_STREAM_TO_UINT8(p_result->get_caps.capability_id, p); in avrc_ctrl_pars_vendor_rsp()
548 BE_STREAM_TO_UINT8(p_result->get_caps.count, p); in avrc_ctrl_pars_vendor_rsp()
550 p_result->get_caps.capability_id, in avrc_ctrl_pars_vendor_rsp()
551 p_result->get_caps.count); in avrc_ctrl_pars_vendor_rsp()
552 if (p_result->get_caps.capability_id == AVRC_CAP_COMPANY_ID) { in avrc_ctrl_pars_vendor_rsp()
553 min_len += MIN(p_result->get_caps.count, AVRC_CAP_MAX_NUM_COMP_ID) * 3; in avrc_ctrl_pars_vendor_rsp()
555 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp()
558 BE_STREAM_TO_UINT24(p_result->get_caps.param.company_id[xx], p); in avrc_ctrl_pars_vendor_rsp()
560 } else if (p_result->get_caps.capability_id == in avrc_ctrl_pars_vendor_rsp()
562 min_len += MIN(p_result->get_caps.count, AVRC_CAP_MAX_NUM_EVT_ID); in avrc_ctrl_pars_vendor_rsp()
564 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp()
567 BE_STREAM_TO_UINT8(p_result->get_caps.param.event_id[xx], p); in avrc_ctrl_pars_vendor_rsp()
574 p_result->list_app_attr.num_attr = 0; in avrc_ctrl_pars_vendor_rsp()
578 BE_STREAM_TO_UINT8(p_result->list_app_attr.num_attr, p); in avrc_ctrl_pars_vendor_rsp()
580 p_result->list_app_attr.num_attr); in avrc_ctrl_pars_vendor_rsp()
582 if (p_result->list_app_attr.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_ctrl_pars_vendor_rsp()
584 p_result->list_app_attr.num_attr = AVRC_MAX_APP_ATTR_SIZE; in avrc_ctrl_pars_vendor_rsp()
587 min_len += p_result->list_app_attr.num_attr; in avrc_ctrl_pars_vendor_rsp()
589 for (int xx = 0; xx < p_result->list_app_attr.num_attr; xx++) { in avrc_ctrl_pars_vendor_rsp()
590 BE_STREAM_TO_UINT8(p_result->list_app_attr.attrs[xx], p); in avrc_ctrl_pars_vendor_rsp()
596 p_result->list_app_values.num_val = 0; in avrc_ctrl_pars_vendor_rsp()
600 BE_STREAM_TO_UINT8(p_result->list_app_values.num_val, p); in avrc_ctrl_pars_vendor_rsp()
601 if (p_result->list_app_values.num_val > AVRC_MAX_APP_ATTR_SIZE) { in avrc_ctrl_pars_vendor_rsp()
603 p_result->list_app_values.num_val = AVRC_MAX_APP_ATTR_SIZE; in avrc_ctrl_pars_vendor_rsp()
607 p_result->list_app_values.num_val); in avrc_ctrl_pars_vendor_rsp()
608 min_len += p_result->list_app_values.num_val; in avrc_ctrl_pars_vendor_rsp()
610 for (int xx = 0; xx < p_result->list_app_values.num_val; xx++) { in avrc_ctrl_pars_vendor_rsp()
611 BE_STREAM_TO_UINT8(p_result->list_app_values.vals[xx], p); in avrc_ctrl_pars_vendor_rsp()
617 p_result->get_cur_app_val.num_val = 0; in avrc_ctrl_pars_vendor_rsp()
621 BE_STREAM_TO_UINT8(p_result->get_cur_app_val.num_val, p); in avrc_ctrl_pars_vendor_rsp()
623 p_result->get_cur_app_val.num_val); in avrc_ctrl_pars_vendor_rsp()
625 if (p_result->get_cur_app_val.num_val > AVRC_MAX_APP_ATTR_SIZE) { in avrc_ctrl_pars_vendor_rsp()
627 p_result->get_cur_app_val.num_val = AVRC_MAX_APP_ATTR_SIZE; in avrc_ctrl_pars_vendor_rsp()
630 min_len += p_result->get_cur_app_val.num_val * 2; in avrc_ctrl_pars_vendor_rsp()
632 p_result->get_cur_app_val.num_val = 0; in avrc_ctrl_pars_vendor_rsp()
636 p_result->get_cur_app_val.num_val * sizeof(tAVRC_APP_SETTING)); in avrc_ctrl_pars_vendor_rsp()
637 for (int xx = 0; xx < p_result->get_cur_app_val.num_val; xx++) { in avrc_ctrl_pars_vendor_rsp()
641 p_result->get_cur_app_val.p_vals = app_sett; in avrc_ctrl_pars_vendor_rsp()
648 p_result->get_app_attr_txt.num_attr = 0; in avrc_ctrl_pars_vendor_rsp()
657 p_result->get_app_attr_txt.num_attr); in avrc_ctrl_pars_vendor_rsp()
658 p_result->get_app_attr_txt.num_attr = num_attrs; in avrc_ctrl_pars_vendor_rsp()
660 p_result->get_app_attr_txt.p_attrs = (tAVRC_APP_SETTING_TEXT*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
666 osi_free(p_result->get_app_attr_txt.p_attrs[j].p_str); in avrc_ctrl_pars_vendor_rsp()
668 osi_free_and_reset((void**)&p_result->get_app_attr_txt.p_attrs); in avrc_ctrl_pars_vendor_rsp()
669 p_result->get_app_attr_txt.num_attr = 0; in avrc_ctrl_pars_vendor_rsp()
672 BE_STREAM_TO_UINT8(p_result->get_app_attr_txt.p_attrs[xx].attr_id, p); in avrc_ctrl_pars_vendor_rsp()
673 BE_STREAM_TO_UINT16(p_result->get_app_attr_txt.p_attrs[xx].charset_id, in avrc_ctrl_pars_vendor_rsp()
675 BE_STREAM_TO_UINT8(p_result->get_app_attr_txt.p_attrs[xx].str_len, p); in avrc_ctrl_pars_vendor_rsp()
676 min_len += p_result->get_app_attr_txt.p_attrs[xx].str_len; in avrc_ctrl_pars_vendor_rsp()
679 osi_free(p_result->get_app_attr_txt.p_attrs[j].p_str); in avrc_ctrl_pars_vendor_rsp()
681 osi_free_and_reset((void**)&p_result->get_app_attr_txt.p_attrs); in avrc_ctrl_pars_vendor_rsp()
682 p_result->get_app_attr_txt.num_attr = 0; in avrc_ctrl_pars_vendor_rsp()
685 if (p_result->get_app_attr_txt.p_attrs[xx].str_len != 0) { in avrc_ctrl_pars_vendor_rsp()
687 p_result->get_app_attr_txt.p_attrs[xx].str_len); in avrc_ctrl_pars_vendor_rsp()
689 p_result->get_app_attr_txt.p_attrs[xx].str_len); in avrc_ctrl_pars_vendor_rsp()
690 p_result->get_app_attr_txt.p_attrs[xx].p_str = p_str; in avrc_ctrl_pars_vendor_rsp()
692 p_result->get_app_attr_txt.p_attrs[xx].p_str = NULL; in avrc_ctrl_pars_vendor_rsp()
701 p_result->get_app_val_txt.num_attr = 0; in avrc_ctrl_pars_vendor_rsp()
709 p_result->get_app_val_txt.num_attr = num_vals; in avrc_ctrl_pars_vendor_rsp()
711 p_result->get_app_val_txt.num_attr); in avrc_ctrl_pars_vendor_rsp()
713 p_result->get_app_val_txt.p_attrs = (tAVRC_APP_SETTING_TEXT*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
719 osi_free(p_result->get_app_val_txt.p_attrs[j].p_str); in avrc_ctrl_pars_vendor_rsp()
721 osi_free_and_reset((void**)&p_result->get_app_val_txt.p_attrs); in avrc_ctrl_pars_vendor_rsp()
722 p_result->get_app_val_txt.num_attr = 0; in avrc_ctrl_pars_vendor_rsp()
725 BE_STREAM_TO_UINT8(p_result->get_app_val_txt.p_attrs[i].attr_id, p); in avrc_ctrl_pars_vendor_rsp()
726 BE_STREAM_TO_UINT16(p_result->get_app_val_txt.p_attrs[i].charset_id, p); in avrc_ctrl_pars_vendor_rsp()
727 BE_STREAM_TO_UINT8(p_result->get_app_val_txt.p_attrs[i].str_len, p); in avrc_ctrl_pars_vendor_rsp()
728 min_len += p_result->get_app_val_txt.p_attrs[i].str_len; in avrc_ctrl_pars_vendor_rsp()
731 osi_free(p_result->get_app_val_txt.p_attrs[j].p_str); in avrc_ctrl_pars_vendor_rsp()
733 osi_free_and_reset((void**)&p_result->get_app_val_txt.p_attrs); in avrc_ctrl_pars_vendor_rsp()
734 p_result->get_app_val_txt.num_attr = 0; in avrc_ctrl_pars_vendor_rsp()
737 if (p_result->get_app_val_txt.p_attrs[i].str_len != 0) { in avrc_ctrl_pars_vendor_rsp()
739 p_result->get_app_val_txt.p_attrs[i].str_len); in avrc_ctrl_pars_vendor_rsp()
741 p_result->get_app_val_txt.p_attrs[i].str_len); in avrc_ctrl_pars_vendor_rsp()
742 p_result->get_app_val_txt.p_attrs[i].p_str = p_str; in avrc_ctrl_pars_vendor_rsp()
744 p_result->get_app_val_txt.p_attrs[i].p_str = NULL; in avrc_ctrl_pars_vendor_rsp()
757 p_result->get_attrs.num_attrs = 0; in avrc_ctrl_pars_vendor_rsp()
762 p_result->get_attrs.num_attrs = num_attrs; in avrc_ctrl_pars_vendor_rsp()
773 p_result->get_attrs.num_attrs = 0; in avrc_ctrl_pars_vendor_rsp()
785 p_result->get_attrs.num_attrs = 0; in avrc_ctrl_pars_vendor_rsp()
797 p_result->get_attrs.p_attrs = p_attrs; in avrc_ctrl_pars_vendor_rsp()
807 BE_STREAM_TO_UINT32(p_result->get_play_status.song_len, p); in avrc_ctrl_pars_vendor_rsp()
808 BE_STREAM_TO_UINT32(p_result->get_play_status.song_pos, p); in avrc_ctrl_pars_vendor_rsp()
809 BE_STREAM_TO_UINT8(p_result->get_play_status.status, p); in avrc_ctrl_pars_vendor_rsp()
814 AVRC_TRACE_ERROR("%s pdu: %d len %d", __func__, p_result->pdu, len); in avrc_ctrl_pars_vendor_rsp()
817 BE_STREAM_TO_UINT8(p_result->rsp.status, p); in avrc_ctrl_pars_vendor_rsp()
843 tAVRC_STS AVRC_Ctrl_ParsResponse(tAVRC_MSG* p_msg, tAVRC_RESPONSE* p_result, in AVRC_Ctrl_ParsResponse() argument
846 if (p_msg && p_result) { in AVRC_Ctrl_ParsResponse()
850 avrc_ctrl_pars_vendor_rsp(&p_msg->vendor, p_result, p_buf, buf_len); in AVRC_Ctrl_ParsResponse()
854 status = avrc_pars_browse_rsp(&p_msg->browse, p_result); in AVRC_Ctrl_ParsResponse()
861 p_result->rsp.opcode = p_msg->hdr.opcode; in AVRC_Ctrl_ParsResponse()
862 p_result->rsp.status = status; in AVRC_Ctrl_ParsResponse()
879 tAVRC_STS AVRC_ParsResponse(tAVRC_MSG* p_msg, tAVRC_RESPONSE* p_result, in AVRC_ParsResponse() argument
885 if (p_msg && p_result) { in AVRC_ParsResponse()
888 status = avrc_pars_vendor_rsp(&p_msg->vendor, p_result); in AVRC_ParsResponse()
894 p_result->pdu = (uint8_t)id; in AVRC_ParsResponse()
902 p_result->rsp.opcode = p_msg->hdr.opcode; in AVRC_ParsResponse()
903 p_result->rsp.status = status; in AVRC_ParsResponse()