Lines Matching refs:hr

99 	struct hpi_response hr;  in hpi_subsys_get_version_ex()  local
101 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_version_ex()
103 hpi_send_recv(&hm, &hr); in hpi_subsys_get_version_ex()
104 *pversion_ex = hr.u.s.data; in hpi_subsys_get_version_ex()
105 return hr.error; in hpi_subsys_get_version_ex()
111 struct hpi_response hr; in hpi_subsys_get_num_adapters() local
112 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_num_adapters()
114 hpi_send_recv(&hm, &hr); in hpi_subsys_get_num_adapters()
115 *pn_num_adapters = (int)hr.u.s.num_adapters; in hpi_subsys_get_num_adapters()
116 return hr.error; in hpi_subsys_get_num_adapters()
123 struct hpi_response hr; in hpi_subsys_get_adapter() local
124 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_adapter()
127 hpi_send_recv(&hm, &hr); in hpi_subsys_get_adapter()
128 *padapter_index = (int)hr.u.s.adapter_index; in hpi_subsys_get_adapter()
129 *pw_adapter_type = hr.u.s.adapter_type; in hpi_subsys_get_adapter()
131 return hr.error; in hpi_subsys_get_adapter()
137 struct hpi_response hr; in hpi_adapter_open() local
138 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_open()
142 hpi_send_recv(&hm, &hr); in hpi_adapter_open()
144 return hr.error; in hpi_adapter_open()
151 struct hpi_response hr; in hpi_adapter_close() local
152 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_close()
156 hpi_send_recv(&hm, &hr); in hpi_adapter_close()
158 return hr.error; in hpi_adapter_close()
171 struct hpi_response hr; in hpi_adapter_set_mode_ex() local
173 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_mode_ex()
178 hpi_send_recv(&hm, &hr); in hpi_adapter_set_mode_ex()
179 return hr.error; in hpi_adapter_set_mode_ex()
185 struct hpi_response hr; in hpi_adapter_get_mode() local
186 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_mode()
189 hpi_send_recv(&hm, &hr); in hpi_adapter_get_mode()
191 *padapter_mode = hr.u.ax.mode.adapter_mode; in hpi_adapter_get_mode()
192 return hr.error; in hpi_adapter_get_mode()
200 struct hpi_response hr; in hpi_adapter_get_info() local
201 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_info()
205 hpi_send_recv(&hm, &hr); in hpi_adapter_get_info()
207 *pw_adapter_type = hr.u.ax.info.adapter_type; in hpi_adapter_get_info()
208 *pw_num_outstreams = hr.u.ax.info.num_outstreams; in hpi_adapter_get_info()
209 *pw_num_instreams = hr.u.ax.info.num_instreams; in hpi_adapter_get_info()
210 *pw_version = hr.u.ax.info.version; in hpi_adapter_get_info()
211 *pserial_number = hr.u.ax.info.serial_number; in hpi_adapter_get_info()
212 return hr.error; in hpi_adapter_get_info()
220 struct hpi_response hr; in hpi_adapter_get_module_by_index() local
222 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_module_by_index()
227 hpi_send_recv(&hm, &hr); in hpi_adapter_get_module_by_index()
229 *pw_module_type = hr.u.ax.info.adapter_type; in hpi_adapter_get_module_by_index()
230 *pw_num_outputs = hr.u.ax.info.num_outstreams; in hpi_adapter_get_module_by_index()
231 *pw_num_inputs = hr.u.ax.info.num_instreams; in hpi_adapter_get_module_by_index()
232 *pw_version = hr.u.ax.info.version; in hpi_adapter_get_module_by_index()
233 *pserial_number = hr.u.ax.info.serial_number; in hpi_adapter_get_module_by_index()
236 return hr.error; in hpi_adapter_get_module_by_index()
243 struct hpi_response hr; in hpi_adapter_set_property() local
244 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_property()
251 hpi_send_recv(&hm, &hr); in hpi_adapter_set_property()
253 return hr.error; in hpi_adapter_set_property()
260 struct hpi_response hr; in hpi_adapter_get_property() local
261 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_property()
266 hpi_send_recv(&hm, &hr); in hpi_adapter_get_property()
267 if (!hr.error) { in hpi_adapter_get_property()
269 *pw_parameter1 = hr.u.ax.property_get.parameter1; in hpi_adapter_get_property()
271 *pw_parameter2 = hr.u.ax.property_get.parameter2; in hpi_adapter_get_property()
274 return hr.error; in hpi_adapter_get_property()
428 struct hpi_response hr; in hpi_outstream_open() local
429 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_open()
434 hpi_send_recv(&hm, &hr); in hpi_outstream_open()
436 if (hr.error == 0) in hpi_outstream_open()
442 return hr.error; in hpi_outstream_open()
448 struct hpi_response hr; in hpi_outstream_close() local
450 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
455 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
457 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
460 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
462 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
465 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
467 return hr.error; in hpi_outstream_close()
475 struct hpi_response hr; in hpi_outstream_get_info_ex() local
476 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_get_info_ex()
481 hpi_send_recv(&hm, &hr); in hpi_outstream_get_info_ex()
484 *pw_state = hr.u.d.u.stream_info.state; in hpi_outstream_get_info_ex()
486 *pbuffer_size = hr.u.d.u.stream_info.buffer_size; in hpi_outstream_get_info_ex()
488 *pdata_to_play = hr.u.d.u.stream_info.data_available; in hpi_outstream_get_info_ex()
490 *psamples_played = hr.u.d.u.stream_info.samples_transferred; in hpi_outstream_get_info_ex()
493 hr.u.d.u.stream_info.auxiliary_data_available; in hpi_outstream_get_info_ex()
494 return hr.error; in hpi_outstream_get_info_ex()
501 struct hpi_response hr; in hpi_outstream_write_buf() local
502 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_write_buf()
511 hpi_send_recv(&hm, &hr); in hpi_outstream_write_buf()
513 return hr.error; in hpi_outstream_write_buf()
519 struct hpi_response hr; in hpi_outstream_start() local
520 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_start()
525 hpi_send_recv(&hm, &hr); in hpi_outstream_start()
527 return hr.error; in hpi_outstream_start()
533 struct hpi_response hr; in hpi_outstream_wait_start() local
534 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_wait_start()
539 hpi_send_recv(&hm, &hr); in hpi_outstream_wait_start()
541 return hr.error; in hpi_outstream_wait_start()
547 struct hpi_response hr; in hpi_outstream_stop() local
548 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_stop()
553 hpi_send_recv(&hm, &hr); in hpi_outstream_stop()
555 return hr.error; in hpi_outstream_stop()
561 struct hpi_response hr; in hpi_outstream_sinegen() local
562 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_sinegen()
567 hpi_send_recv(&hm, &hr); in hpi_outstream_sinegen()
569 return hr.error; in hpi_outstream_sinegen()
575 struct hpi_response hr; in hpi_outstream_reset() local
576 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_reset()
581 hpi_send_recv(&hm, &hr); in hpi_outstream_reset()
583 return hr.error; in hpi_outstream_reset()
589 struct hpi_response hr; in hpi_outstream_query_format() local
591 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_query_format()
598 hpi_send_recv(&hm, &hr); in hpi_outstream_query_format()
600 return hr.error; in hpi_outstream_query_format()
606 struct hpi_response hr; in hpi_outstream_set_format() local
608 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_format()
615 hpi_send_recv(&hm, &hr); in hpi_outstream_set_format()
617 return hr.error; in hpi_outstream_set_format()
623 struct hpi_response hr; in hpi_outstream_set_velocity() local
625 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_velocity()
631 hpi_send_recv(&hm, &hr); in hpi_outstream_set_velocity()
633 return hr.error; in hpi_outstream_set_velocity()
640 struct hpi_response hr; in hpi_outstream_set_punch_in_out() local
642 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_punch_in_out()
650 hpi_send_recv(&hm, &hr); in hpi_outstream_set_punch_in_out()
652 return hr.error; in hpi_outstream_set_punch_in_out()
658 struct hpi_response hr; in hpi_outstream_ancillary_reset() local
660 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_reset()
665 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_reset()
666 return hr.error; in hpi_outstream_ancillary_reset()
672 struct hpi_response hr; in hpi_outstream_ancillary_get_info() local
674 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_get_info()
678 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_get_info()
679 if (hr.error == 0) { in hpi_outstream_ancillary_get_info()
682 hr.u.d.u.stream_info.data_available / in hpi_outstream_ancillary_get_info()
685 return hr.error; in hpi_outstream_ancillary_get_info()
694 struct hpi_response hr; in hpi_outstream_ancillary_read() local
696 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_read()
705 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_read()
707 hr.error = HPI_ERROR_INVALID_DATASIZE; in hpi_outstream_ancillary_read()
708 return hr.error; in hpi_outstream_ancillary_read()
714 struct hpi_response hr; in hpi_outstream_set_time_scale() local
716 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_time_scale()
723 hpi_send_recv(&hm, &hr); in hpi_outstream_set_time_scale()
725 return hr.error; in hpi_outstream_set_time_scale()
731 struct hpi_response hr; in hpi_outstream_host_buffer_allocate() local
733 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_allocate()
738 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_allocate()
739 return hr.error; in hpi_outstream_host_buffer_allocate()
746 struct hpi_response hr; in hpi_outstream_host_buffer_get_info() local
748 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_get_info()
752 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_get_info()
754 if (hr.error == 0) { in hpi_outstream_host_buffer_get_info()
756 *pp_buffer = hr.u.d.u.hostbuffer_info.p_buffer; in hpi_outstream_host_buffer_get_info()
758 *pp_status = hr.u.d.u.hostbuffer_info.p_status; in hpi_outstream_host_buffer_get_info()
760 return hr.error; in hpi_outstream_host_buffer_get_info()
766 struct hpi_response hr; in hpi_outstream_host_buffer_free() local
768 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_free()
772 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_free()
773 return hr.error; in hpi_outstream_host_buffer_free()
779 struct hpi_response hr; in hpi_outstream_group_add() local
783 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_add()
805 hpi_send_recv(&hm, &hr); in hpi_outstream_group_add()
806 return hr.error; in hpi_outstream_group_add()
813 struct hpi_response hr; in hpi_outstream_group_get_map() local
815 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_get_map()
819 hpi_send_recv(&hm, &hr); in hpi_outstream_group_get_map()
822 *poutstream_map = hr.u.d.u.group_info.outstream_group_map; in hpi_outstream_group_get_map()
824 *pinstream_map = hr.u.d.u.group_info.instream_group_map; in hpi_outstream_group_get_map()
826 return hr.error; in hpi_outstream_group_get_map()
832 struct hpi_response hr; in hpi_outstream_group_reset() local
834 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_reset()
838 hpi_send_recv(&hm, &hr); in hpi_outstream_group_reset()
839 return hr.error; in hpi_outstream_group_reset()
845 struct hpi_response hr; in hpi_instream_open() local
847 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_open()
852 hpi_send_recv(&hm, &hr); in hpi_instream_open()
854 if (hr.error == 0) in hpi_instream_open()
861 return hr.error; in hpi_instream_open()
867 struct hpi_response hr; in hpi_instream_close() local
869 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
873 hpi_send_recv(&hm, &hr); in hpi_instream_close()
875 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
878 hpi_send_recv(&hm, &hr); in hpi_instream_close()
880 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
883 hpi_send_recv(&hm, &hr); in hpi_instream_close()
885 return hr.error; in hpi_instream_close()
892 struct hpi_response hr; in hpi_instream_query_format() local
894 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_query_format()
900 hpi_send_recv(&hm, &hr); in hpi_instream_query_format()
902 return hr.error; in hpi_instream_query_format()
908 struct hpi_response hr; in hpi_instream_set_format() local
910 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_set_format()
916 hpi_send_recv(&hm, &hr); in hpi_instream_set_format()
918 return hr.error; in hpi_instream_set_format()
924 struct hpi_response hr; in hpi_instream_read_buf() local
926 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_read_buf()
933 hpi_send_recv(&hm, &hr); in hpi_instream_read_buf()
935 return hr.error; in hpi_instream_read_buf()
941 struct hpi_response hr; in hpi_instream_start() local
943 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_start()
948 hpi_send_recv(&hm, &hr); in hpi_instream_start()
950 return hr.error; in hpi_instream_start()
956 struct hpi_response hr; in hpi_instream_wait_start() local
958 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_wait_start()
963 hpi_send_recv(&hm, &hr); in hpi_instream_wait_start()
965 return hr.error; in hpi_instream_wait_start()
971 struct hpi_response hr; in hpi_instream_stop() local
973 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_stop()
978 hpi_send_recv(&hm, &hr); in hpi_instream_stop()
980 return hr.error; in hpi_instream_stop()
986 struct hpi_response hr; in hpi_instream_reset() local
988 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_reset()
993 hpi_send_recv(&hm, &hr); in hpi_instream_reset()
995 return hr.error; in hpi_instream_reset()
1003 struct hpi_response hr; in hpi_instream_get_info_ex() local
1004 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_get_info_ex()
1009 hpi_send_recv(&hm, &hr); in hpi_instream_get_info_ex()
1012 *pw_state = hr.u.d.u.stream_info.state; in hpi_instream_get_info_ex()
1014 *pbuffer_size = hr.u.d.u.stream_info.buffer_size; in hpi_instream_get_info_ex()
1016 *pdata_recorded = hr.u.d.u.stream_info.data_available; in hpi_instream_get_info_ex()
1018 *psamples_recorded = hr.u.d.u.stream_info.samples_transferred; in hpi_instream_get_info_ex()
1021 hr.u.d.u.stream_info.auxiliary_data_available; in hpi_instream_get_info_ex()
1022 return hr.error; in hpi_instream_get_info_ex()
1029 struct hpi_response hr; in hpi_instream_ancillary_reset() local
1030 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_reset()
1037 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_reset()
1038 return hr.error; in hpi_instream_ancillary_reset()
1044 struct hpi_response hr; in hpi_instream_ancillary_get_info() local
1045 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_get_info()
1049 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_get_info()
1052 (hr.u.d.u.stream_info.buffer_size - in hpi_instream_ancillary_get_info()
1053 hr.u.d.u.stream_info.data_available) / in hpi_instream_ancillary_get_info()
1055 return hr.error; in hpi_instream_ancillary_get_info()
1064 struct hpi_response hr; in hpi_instream_ancillary_write() local
1066 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_write()
1075 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_write()
1077 hr.error = HPI_ERROR_INVALID_DATASIZE; in hpi_instream_ancillary_write()
1078 return hr.error; in hpi_instream_ancillary_write()
1085 struct hpi_response hr; in hpi_instream_host_buffer_allocate() local
1087 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_allocate()
1092 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_allocate()
1093 return hr.error; in hpi_instream_host_buffer_allocate()
1100 struct hpi_response hr; in hpi_instream_host_buffer_get_info() local
1102 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_get_info()
1106 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_get_info()
1108 if (hr.error == 0) { in hpi_instream_host_buffer_get_info()
1110 *pp_buffer = hr.u.d.u.hostbuffer_info.p_buffer; in hpi_instream_host_buffer_get_info()
1112 *pp_status = hr.u.d.u.hostbuffer_info.p_status; in hpi_instream_host_buffer_get_info()
1114 return hr.error; in hpi_instream_host_buffer_get_info()
1121 struct hpi_response hr; in hpi_instream_host_buffer_free() local
1123 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_free()
1127 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_free()
1128 return hr.error; in hpi_instream_host_buffer_free()
1134 struct hpi_response hr; in hpi_instream_group_add() local
1138 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_add()
1140 hr.error = 0; in hpi_instream_group_add()
1163 hpi_send_recv(&hm, &hr); in hpi_instream_group_add()
1164 return hr.error; in hpi_instream_group_add()
1171 struct hpi_response hr; in hpi_instream_group_get_map() local
1173 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_get_map()
1177 hpi_send_recv(&hm, &hr); in hpi_instream_group_get_map()
1180 *poutstream_map = hr.u.d.u.group_info.outstream_group_map; in hpi_instream_group_get_map()
1182 *pinstream_map = hr.u.d.u.group_info.instream_group_map; in hpi_instream_group_get_map()
1184 return hr.error; in hpi_instream_group_get_map()
1190 struct hpi_response hr; in hpi_instream_group_reset() local
1192 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_reset()
1196 hpi_send_recv(&hm, &hr); in hpi_instream_group_reset()
1197 return hr.error; in hpi_instream_group_reset()
1203 struct hpi_response hr; in hpi_mixer_open() local
1204 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_OPEN); in hpi_mixer_open()
1207 hpi_send_recv(&hm, &hr); in hpi_mixer_open()
1209 if (hr.error == 0) in hpi_mixer_open()
1215 return hr.error; in hpi_mixer_open()
1221 struct hpi_response hr; in hpi_mixer_close() local
1223 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE); in hpi_mixer_close()
1227 hpi_send_recv(&hm, &hr); in hpi_mixer_close()
1228 return hr.error; in hpi_mixer_close()
1236 struct hpi_response hr; in hpi_mixer_get_control() local
1237 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, in hpi_mixer_get_control()
1247 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control()
1249 if (hr.error == 0) in hpi_mixer_get_control()
1252 hm.adapter_index, hr.u.m.control_index); in hpi_mixer_get_control()
1255 return hr.error; in hpi_mixer_get_control()
1263 struct hpi_response hr; in hpi_mixer_get_control_by_index() local
1264 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, in hpi_mixer_get_control_by_index()
1269 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control_by_index()
1273 hr.u.m.src_node_type + HPI_SOURCENODE_NONE; in hpi_mixer_get_control_by_index()
1274 *pw_src_node_index = hr.u.m.src_node_index; in hpi_mixer_get_control_by_index()
1275 *pw_dst_node_type = hr.u.m.dst_node_type + HPI_DESTNODE_NONE; in hpi_mixer_get_control_by_index()
1276 *pw_dst_node_index = hr.u.m.dst_node_index; in hpi_mixer_get_control_by_index()
1279 *pw_control_type = hr.u.m.control_index; in hpi_mixer_get_control_by_index()
1282 if (hr.error == 0) in hpi_mixer_get_control_by_index()
1289 return hr.error; in hpi_mixer_get_control_by_index()
1296 struct hpi_response hr; in hpi_mixer_store() local
1297 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_STORE); in hpi_mixer_store()
1302 hpi_send_recv(&hm, &hr); in hpi_mixer_store()
1303 return hr.error; in hpi_mixer_store()
1311 struct hpi_response hr; in hpi_control_param_set() local
1313 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_set()
1320 hpi_send_recv(&hm, &hr); in hpi_control_param_set()
1321 return hr.error; in hpi_control_param_set()
1328 struct hpi_response hr; in hpi_control_log_set2() local
1330 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_set2()
1337 hpi_send_recv(&hm, &hr); in hpi_control_log_set2()
1338 return hr.error; in hpi_control_log_set2()
1346 struct hpi_response hr; in hpi_control_param_get() local
1348 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_get()
1355 hpi_send_recv(&hm, &hr); in hpi_control_param_get()
1357 *pparam1 = hr.u.c.param1; in hpi_control_param_get()
1359 *pparam2 = hr.u.c.param2; in hpi_control_param_get()
1361 return hr.error; in hpi_control_param_get()
1373 struct hpi_response hr; in hpi_control_log_get2() local
1374 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_get2()
1380 hpi_send_recv(&hm, &hr); in hpi_control_log_get2()
1381 *sv0 = hr.u.c.an_log_value[0]; in hpi_control_log_get2()
1383 *sv1 = hr.u.c.an_log_value[1]; in hpi_control_log_get2()
1384 return hr.error; in hpi_control_log_get2()
1392 struct hpi_response hr; in hpi_control_query() local
1394 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_query()
1403 hpi_send_recv(&hm, &hr); in hpi_control_query()
1404 *psetting = hr.u.c.param1; in hpi_control_query()
1406 return hr.error; in hpi_control_query()
1422 struct hpi_response hr; in hpi_control_get_string() local
1424 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_get_string()
1432 hpi_send_recv(&hm, &hr); in hpi_control_get_string()
1435 && (hr.u.cu.chars8.remaining_chars + 8) > in hpi_control_get_string()
1439 if (hr.error) { in hpi_control_get_string()
1440 err = hr.error; in hpi_control_get_string()
1444 c = hr.u.cu.chars8.sz_data[j]; in hpi_control_get_string()
1456 if ((hr.u.cu.chars8.remaining_chars == 0) in hpi_control_get_string()
1506 struct hpi_response hr; in hpi_aesebu_receiver_get_user_data() local
1507 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_aesebu_receiver_get_user_data()
1514 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_user_data()
1517 *pw_data = (u16)hr.u.c.param2; in hpi_aesebu_receiver_get_user_data()
1518 return hr.error; in hpi_aesebu_receiver_get_user_data()
1525 struct hpi_response hr; in hpi_aesebu_receiver_get_channel_status() local
1526 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_aesebu_receiver_get_channel_status()
1533 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_channel_status()
1536 *pw_data = (u16)hr.u.c.param2; in hpi_aesebu_receiver_get_channel_status()
1537 return hr.error; in hpi_aesebu_receiver_get_channel_status()
1622 struct hpi_response hr; in hpi_bitstream_get_activity() local
1623 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_bitstream_get_activity()
1628 hpi_send_recv(&hm, &hr); in hpi_bitstream_get_activity()
1630 *pw_clk_activity = (u16)hr.u.c.param1; in hpi_bitstream_get_activity()
1632 *pw_data_activity = (u16)hr.u.c.param2; in hpi_bitstream_get_activity()
1633 return hr.error; in hpi_bitstream_get_activity()
1667 struct hpi_response_header hr; in hpi_cobranet_hmi_write() local
1669 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr, sizeof(hr), in hpi_cobranet_hmi_write()
1685 hpi_send_recvV1(&hm.h, &hr); in hpi_cobranet_hmi_write()
1686 return hr.error; in hpi_cobranet_hmi_write()
1693 struct hpi_res_cobranet_hmiread hr; in hpi_cobranet_hmi_read() local
1695 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr.h, sizeof(hr), in hpi_cobranet_hmi_read()
1702 if (max_byte_count > sizeof(hr.bytes)) in hpi_cobranet_hmi_read()
1709 hpi_send_recvV1(&hm.h, &hr.h); in hpi_cobranet_hmi_read()
1711 if (!hr.h.error && pb_data) { in hpi_cobranet_hmi_read()
1712 if (hr.byte_count > sizeof(hr.bytes)) in hpi_cobranet_hmi_read()
1716 *pbyte_count = hr.byte_count; in hpi_cobranet_hmi_read()
1718 if (hr.byte_count < max_byte_count) in hpi_cobranet_hmi_read()
1721 memcpy(pb_data, hr.bytes, max_byte_count); in hpi_cobranet_hmi_read()
1723 return hr.h.error; in hpi_cobranet_hmi_read()
1730 struct hpi_response hr; in hpi_cobranet_hmi_get_status() local
1732 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_cobranet_hmi_get_status()
1739 hpi_send_recv(&hm, &hr); in hpi_cobranet_hmi_get_status()
1740 if (!hr.error) { in hpi_cobranet_hmi_get_status()
1742 *pstatus = hr.u.cu.cobranet.status.status; in hpi_cobranet_hmi_get_status()
1745 hr.u.cu.cobranet.status.readable_size; in hpi_cobranet_hmi_get_status()
1748 hr.u.cu.cobranet.status.writeable_size; in hpi_cobranet_hmi_get_status()
1750 return hr.error; in hpi_cobranet_hmi_get_status()
1917 struct hpi_response hr; in hpi_compander_set_threshold() local
1919 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_set_threshold()
1927 hpi_send_recv(&hm, &hr); in hpi_compander_set_threshold()
1929 return hr.error; in hpi_compander_set_threshold()
1936 struct hpi_response hr; in hpi_compander_get_threshold() local
1938 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_get_threshold()
1945 hpi_send_recv(&hm, &hr); in hpi_compander_get_threshold()
1946 *threshold0_01dB = hr.u.c.an_log_value[0]; in hpi_compander_get_threshold()
1948 return hr.error; in hpi_compander_get_threshold()
1967 struct hpi_response hr; in hpi_level_query_range() local
1969 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_level_query_range()
1975 hpi_send_recv(&hm, &hr); in hpi_level_query_range()
1976 if (hr.error) { in hpi_level_query_range()
1977 hr.u.c.an_log_value[0] = 0; in hpi_level_query_range()
1978 hr.u.c.an_log_value[1] = 0; in hpi_level_query_range()
1979 hr.u.c.param1 = 0; in hpi_level_query_range()
1982 *min_gain_01dB = hr.u.c.an_log_value[0]; in hpi_level_query_range()
1984 *max_gain_01dB = hr.u.c.an_log_value[1]; in hpi_level_query_range()
1986 *step_gain_01dB = (short)hr.u.c.param1; in hpi_level_query_range()
1987 return hr.error; in hpi_level_query_range()
2016 struct hpi_response hr; in hpi_meter_get_peak() local
2018 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_peak()
2025 hpi_send_recv(&hm, &hr); in hpi_meter_get_peak()
2027 if (!hr.error) in hpi_meter_get_peak()
2028 memcpy(an_peakdB, hr.u.c.an_log_value, in hpi_meter_get_peak()
2033 return hr.error; in hpi_meter_get_peak()
2042 struct hpi_response hr; in hpi_meter_get_rms() local
2044 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_rms()
2050 hpi_send_recv(&hm, &hr); in hpi_meter_get_rms()
2052 if (!hr.error) in hpi_meter_get_rms()
2053 memcpy(an_rmsdB, hr.u.c.an_log_value, in hpi_meter_get_rms()
2059 return hr.error; in hpi_meter_get_rms()
2151 struct hpi_response hr; in hpi_multiplexer_query_source() local
2152 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_multiplexer_query_source()
2159 hpi_send_recv(&hm, &hr); in hpi_multiplexer_query_source()
2162 *source_node_type = (u16)hr.u.c.param1; in hpi_multiplexer_query_source()
2164 *source_node_index = (u16)hr.u.c.param2; in hpi_multiplexer_query_source()
2165 return hr.error; in hpi_multiplexer_query_source()
2194 struct hpi_response hr; in hpi_parametric_eq_get_band() local
2196 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_band()
2203 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_band()
2206 *pfrequency_hz = hr.u.c.param1; in hpi_parametric_eq_get_band()
2208 *pn_type = (u16)(hr.u.c.param2 >> 16); in hpi_parametric_eq_get_band()
2210 *pnQ100 = hr.u.c.an_log_value[1]; in hpi_parametric_eq_get_band()
2212 *pn_gain0_01dB = hr.u.c.an_log_value[0]; in hpi_parametric_eq_get_band()
2214 return hr.error; in hpi_parametric_eq_get_band()
2221 struct hpi_response hr; in hpi_parametric_eq_set_band() local
2223 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_set_band()
2234 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_set_band()
2236 return hr.error; in hpi_parametric_eq_set_band()
2243 struct hpi_response hr; in hpi_parametric_eq_get_coeffs() local
2245 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_coeffs()
2252 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_coeffs()
2254 coeffs[0] = (short)hr.u.c.an_log_value[0]; in hpi_parametric_eq_get_coeffs()
2255 coeffs[1] = (short)hr.u.c.an_log_value[1]; in hpi_parametric_eq_get_coeffs()
2256 coeffs[2] = (short)hr.u.c.param1; in hpi_parametric_eq_get_coeffs()
2257 coeffs[3] = (short)(hr.u.c.param1 >> 16); in hpi_parametric_eq_get_coeffs()
2258 coeffs[4] = (short)hr.u.c.param2; in hpi_parametric_eq_get_coeffs()
2260 return hr.error; in hpi_parametric_eq_get_coeffs()
2560 struct hpi_response hr; in hpi_tuner_get_rf_level() local
2562 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rf_level()
2567 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rf_level()
2569 *pw_level = hr.u.cu.tuner.s_level; in hpi_tuner_get_rf_level()
2570 return hr.error; in hpi_tuner_get_rf_level()
2576 struct hpi_response hr; in hpi_tuner_get_raw_rf_level() local
2578 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_raw_rf_level()
2583 hpi_send_recv(&hm, &hr); in hpi_tuner_get_raw_rf_level()
2585 *pw_level = hr.u.cu.tuner.s_level; in hpi_tuner_get_raw_rf_level()
2586 return hr.error; in hpi_tuner_get_raw_rf_level()
2689 struct hpi_response hr; in hpi_tuner_get_rds() local
2691 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rds()
2696 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rds()
2698 *(u32 *)&p_data[0] = hr.u.cu.tuner.rds.data[0]; in hpi_tuner_get_rds()
2699 *(u32 *)&p_data[4] = hr.u.cu.tuner.rds.data[1]; in hpi_tuner_get_rds()
2700 *(u32 *)&p_data[8] = hr.u.cu.tuner.rds.bLER; in hpi_tuner_get_rds()
2702 return hr.error; in hpi_tuner_get_rds()
2775 struct hpi_response hr; in hpi_volume_query_range() local
2777 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_query_range()
2783 hpi_send_recv(&hm, &hr); in hpi_volume_query_range()
2784 if (hr.error) { in hpi_volume_query_range()
2785 hr.u.c.an_log_value[0] = 0; in hpi_volume_query_range()
2786 hr.u.c.an_log_value[1] = 0; in hpi_volume_query_range()
2787 hr.u.c.param1 = 0; in hpi_volume_query_range()
2790 *min_gain_01dB = hr.u.c.an_log_value[0]; in hpi_volume_query_range()
2792 *max_gain_01dB = hr.u.c.an_log_value[1]; in hpi_volume_query_range()
2794 *step_gain_01dB = (short)hr.u.c.param1; in hpi_volume_query_range()
2795 return hr.error; in hpi_volume_query_range()
2803 struct hpi_response hr; in hpi_volume_auto_fade_profile() local
2805 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_auto_fade_profile()
2817 hpi_send_recv(&hm, &hr); in hpi_volume_auto_fade_profile()
2819 return hr.error; in hpi_volume_auto_fade_profile()
2842 struct hpi_response hr; in hpi_vox_set_threshold() local
2843 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_set_threshold()
2851 hpi_send_recv(&hm, &hr); in hpi_vox_set_threshold()
2853 return hr.error; in hpi_vox_set_threshold()
2859 struct hpi_response hr; in hpi_vox_get_threshold() local
2860 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_get_threshold()
2866 hpi_send_recv(&hm, &hr); in hpi_vox_get_threshold()
2868 *an_gain0_01dB = hr.u.c.an_log_value[0]; in hpi_vox_get_threshold()
2870 return hr.error; in hpi_vox_get_threshold()