Lines Matching refs:p_attrs
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()
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()
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()
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()
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()
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()
764 tAVRC_ATTR_ENTRY* p_attrs = in avrc_ctrl_pars_vendor_rsp() local
770 osi_free(p_attrs[j].name.p_str); in avrc_ctrl_pars_vendor_rsp()
772 osi_free(p_attrs); in avrc_ctrl_pars_vendor_rsp()
776 BE_STREAM_TO_UINT32(p_attrs[i].attr_id, p); in avrc_ctrl_pars_vendor_rsp()
777 BE_STREAM_TO_UINT16(p_attrs[i].name.charset_id, p); in avrc_ctrl_pars_vendor_rsp()
778 BE_STREAM_TO_UINT16(p_attrs[i].name.str_len, p); in avrc_ctrl_pars_vendor_rsp()
779 min_len += p_attrs[i].name.str_len; in avrc_ctrl_pars_vendor_rsp()
782 osi_free(p_attrs[j].name.p_str); in avrc_ctrl_pars_vendor_rsp()
784 osi_free(p_attrs); in avrc_ctrl_pars_vendor_rsp()
788 if (p_attrs[i].name.str_len > 0) { in avrc_ctrl_pars_vendor_rsp()
789 p_attrs[i].name.p_str = in avrc_ctrl_pars_vendor_rsp()
790 (uint8_t*)osi_calloc(p_attrs[i].name.str_len); in avrc_ctrl_pars_vendor_rsp()
791 BE_STREAM_TO_ARRAY(p, p_attrs[i].name.p_str, in avrc_ctrl_pars_vendor_rsp()
792 p_attrs[i].name.str_len); in avrc_ctrl_pars_vendor_rsp()
794 p_attrs[i].name.p_str = NULL; in avrc_ctrl_pars_vendor_rsp()
797 p_result->get_attrs.p_attrs = p_attrs; in avrc_ctrl_pars_vendor_rsp()