Lines Matching refs:hr
100 struct hpi_response hr; in hpi_subsys_get_version_ex() local
102 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_version_ex()
104 hpi_send_recv(&hm, &hr); in hpi_subsys_get_version_ex()
105 *pversion_ex = hr.u.s.data; in hpi_subsys_get_version_ex()
106 return hr.error; in hpi_subsys_get_version_ex()
112 struct hpi_response hr; in hpi_subsys_get_num_adapters() local
113 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_num_adapters()
115 hpi_send_recv(&hm, &hr); in hpi_subsys_get_num_adapters()
116 *pn_num_adapters = (int)hr.u.s.num_adapters; in hpi_subsys_get_num_adapters()
117 return hr.error; in hpi_subsys_get_num_adapters()
124 struct hpi_response hr; in hpi_subsys_get_adapter() local
125 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_adapter()
128 hpi_send_recv(&hm, &hr); in hpi_subsys_get_adapter()
129 *padapter_index = (int)hr.u.s.adapter_index; in hpi_subsys_get_adapter()
130 *pw_adapter_type = hr.u.s.adapter_type; in hpi_subsys_get_adapter()
132 return hr.error; in hpi_subsys_get_adapter()
138 struct hpi_response hr; in hpi_adapter_open() local
139 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_open()
143 hpi_send_recv(&hm, &hr); in hpi_adapter_open()
145 return hr.error; in hpi_adapter_open()
152 struct hpi_response hr; in hpi_adapter_close() local
153 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_close()
157 hpi_send_recv(&hm, &hr); in hpi_adapter_close()
159 return hr.error; in hpi_adapter_close()
172 struct hpi_response hr; in hpi_adapter_set_mode_ex() local
174 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_mode_ex()
179 hpi_send_recv(&hm, &hr); in hpi_adapter_set_mode_ex()
180 return hr.error; in hpi_adapter_set_mode_ex()
186 struct hpi_response hr; in hpi_adapter_get_mode() local
187 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_mode()
190 hpi_send_recv(&hm, &hr); in hpi_adapter_get_mode()
192 *padapter_mode = hr.u.ax.mode.adapter_mode; in hpi_adapter_get_mode()
193 return hr.error; in hpi_adapter_get_mode()
201 struct hpi_response hr; in hpi_adapter_get_info() local
202 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_info()
206 hpi_send_recv(&hm, &hr); in hpi_adapter_get_info()
208 *pw_adapter_type = hr.u.ax.info.adapter_type; in hpi_adapter_get_info()
209 *pw_num_outstreams = hr.u.ax.info.num_outstreams; in hpi_adapter_get_info()
210 *pw_num_instreams = hr.u.ax.info.num_instreams; in hpi_adapter_get_info()
211 *pw_version = hr.u.ax.info.version; in hpi_adapter_get_info()
212 *pserial_number = hr.u.ax.info.serial_number; in hpi_adapter_get_info()
213 return hr.error; in hpi_adapter_get_info()
221 struct hpi_response hr; in hpi_adapter_get_module_by_index() local
223 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_module_by_index()
228 hpi_send_recv(&hm, &hr); in hpi_adapter_get_module_by_index()
230 *pw_module_type = hr.u.ax.info.adapter_type; in hpi_adapter_get_module_by_index()
231 *pw_num_outputs = hr.u.ax.info.num_outstreams; in hpi_adapter_get_module_by_index()
232 *pw_num_inputs = hr.u.ax.info.num_instreams; in hpi_adapter_get_module_by_index()
233 *pw_version = hr.u.ax.info.version; in hpi_adapter_get_module_by_index()
234 *pserial_number = hr.u.ax.info.serial_number; in hpi_adapter_get_module_by_index()
237 return hr.error; in hpi_adapter_get_module_by_index()
244 struct hpi_response hr; in hpi_adapter_set_property() local
245 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_property()
252 hpi_send_recv(&hm, &hr); in hpi_adapter_set_property()
254 return hr.error; in hpi_adapter_set_property()
261 struct hpi_response hr; in hpi_adapter_get_property() local
262 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_property()
267 hpi_send_recv(&hm, &hr); in hpi_adapter_get_property()
268 if (!hr.error) { in hpi_adapter_get_property()
270 *pw_parameter1 = hr.u.ax.property_get.parameter1; in hpi_adapter_get_property()
272 *pw_parameter2 = hr.u.ax.property_get.parameter2; in hpi_adapter_get_property()
275 return hr.error; in hpi_adapter_get_property()
429 struct hpi_response hr; in hpi_outstream_open() local
430 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_open()
435 hpi_send_recv(&hm, &hr); in hpi_outstream_open()
437 if (hr.error == 0) in hpi_outstream_open()
443 return hr.error; in hpi_outstream_open()
449 struct hpi_response hr; in hpi_outstream_close() local
451 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
456 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
458 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
461 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
463 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
466 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
468 return hr.error; in hpi_outstream_close()
476 struct hpi_response hr; in hpi_outstream_get_info_ex() local
477 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_get_info_ex()
482 hpi_send_recv(&hm, &hr); in hpi_outstream_get_info_ex()
485 *pw_state = hr.u.d.u.stream_info.state; in hpi_outstream_get_info_ex()
487 *pbuffer_size = hr.u.d.u.stream_info.buffer_size; in hpi_outstream_get_info_ex()
489 *pdata_to_play = hr.u.d.u.stream_info.data_available; in hpi_outstream_get_info_ex()
491 *psamples_played = hr.u.d.u.stream_info.samples_transferred; in hpi_outstream_get_info_ex()
494 hr.u.d.u.stream_info.auxiliary_data_available; in hpi_outstream_get_info_ex()
495 return hr.error; in hpi_outstream_get_info_ex()
502 struct hpi_response hr; in hpi_outstream_write_buf() local
503 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_write_buf()
512 hpi_send_recv(&hm, &hr); in hpi_outstream_write_buf()
514 return hr.error; in hpi_outstream_write_buf()
520 struct hpi_response hr; in hpi_outstream_start() local
521 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_start()
526 hpi_send_recv(&hm, &hr); in hpi_outstream_start()
528 return hr.error; in hpi_outstream_start()
534 struct hpi_response hr; in hpi_outstream_wait_start() local
535 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_wait_start()
540 hpi_send_recv(&hm, &hr); in hpi_outstream_wait_start()
542 return hr.error; in hpi_outstream_wait_start()
548 struct hpi_response hr; in hpi_outstream_stop() local
549 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_stop()
554 hpi_send_recv(&hm, &hr); in hpi_outstream_stop()
556 return hr.error; in hpi_outstream_stop()
562 struct hpi_response hr; in hpi_outstream_sinegen() local
563 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_sinegen()
568 hpi_send_recv(&hm, &hr); in hpi_outstream_sinegen()
570 return hr.error; in hpi_outstream_sinegen()
576 struct hpi_response hr; in hpi_outstream_reset() local
577 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_reset()
582 hpi_send_recv(&hm, &hr); in hpi_outstream_reset()
584 return hr.error; in hpi_outstream_reset()
590 struct hpi_response hr; in hpi_outstream_query_format() local
592 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_query_format()
599 hpi_send_recv(&hm, &hr); in hpi_outstream_query_format()
601 return hr.error; in hpi_outstream_query_format()
607 struct hpi_response hr; in hpi_outstream_set_format() local
609 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_format()
616 hpi_send_recv(&hm, &hr); in hpi_outstream_set_format()
618 return hr.error; in hpi_outstream_set_format()
624 struct hpi_response hr; in hpi_outstream_set_velocity() local
626 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_velocity()
632 hpi_send_recv(&hm, &hr); in hpi_outstream_set_velocity()
634 return hr.error; in hpi_outstream_set_velocity()
641 struct hpi_response hr; in hpi_outstream_set_punch_in_out() local
643 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_punch_in_out()
651 hpi_send_recv(&hm, &hr); in hpi_outstream_set_punch_in_out()
653 return hr.error; in hpi_outstream_set_punch_in_out()
659 struct hpi_response hr; in hpi_outstream_ancillary_reset() local
661 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_reset()
666 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_reset()
667 return hr.error; in hpi_outstream_ancillary_reset()
673 struct hpi_response hr; in hpi_outstream_ancillary_get_info() local
675 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_get_info()
679 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_get_info()
680 if (hr.error == 0) { in hpi_outstream_ancillary_get_info()
683 hr.u.d.u.stream_info.data_available / in hpi_outstream_ancillary_get_info()
686 return hr.error; in hpi_outstream_ancillary_get_info()
695 struct hpi_response hr; in hpi_outstream_ancillary_read() local
697 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_read()
706 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_read()
708 hr.error = HPI_ERROR_INVALID_DATASIZE; in hpi_outstream_ancillary_read()
709 return hr.error; in hpi_outstream_ancillary_read()
715 struct hpi_response hr; in hpi_outstream_set_time_scale() local
717 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_time_scale()
724 hpi_send_recv(&hm, &hr); in hpi_outstream_set_time_scale()
726 return hr.error; in hpi_outstream_set_time_scale()
732 struct hpi_response hr; in hpi_outstream_host_buffer_allocate() local
734 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_allocate()
739 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_allocate()
740 return hr.error; in hpi_outstream_host_buffer_allocate()
747 struct hpi_response hr; in hpi_outstream_host_buffer_get_info() local
749 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_get_info()
753 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_get_info()
755 if (hr.error == 0) { in hpi_outstream_host_buffer_get_info()
757 *pp_buffer = hr.u.d.u.hostbuffer_info.p_buffer; in hpi_outstream_host_buffer_get_info()
759 *pp_status = hr.u.d.u.hostbuffer_info.p_status; in hpi_outstream_host_buffer_get_info()
761 return hr.error; in hpi_outstream_host_buffer_get_info()
767 struct hpi_response hr; in hpi_outstream_host_buffer_free() local
769 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_free()
773 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_free()
774 return hr.error; in hpi_outstream_host_buffer_free()
780 struct hpi_response hr; in hpi_outstream_group_add() local
784 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_add()
806 hpi_send_recv(&hm, &hr); in hpi_outstream_group_add()
807 return hr.error; in hpi_outstream_group_add()
814 struct hpi_response hr; in hpi_outstream_group_get_map() local
816 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_get_map()
820 hpi_send_recv(&hm, &hr); in hpi_outstream_group_get_map()
823 *poutstream_map = hr.u.d.u.group_info.outstream_group_map; in hpi_outstream_group_get_map()
825 *pinstream_map = hr.u.d.u.group_info.instream_group_map; in hpi_outstream_group_get_map()
827 return hr.error; in hpi_outstream_group_get_map()
833 struct hpi_response hr; in hpi_outstream_group_reset() local
835 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_reset()
839 hpi_send_recv(&hm, &hr); in hpi_outstream_group_reset()
840 return hr.error; in hpi_outstream_group_reset()
846 struct hpi_response hr; in hpi_instream_open() local
848 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_open()
853 hpi_send_recv(&hm, &hr); in hpi_instream_open()
855 if (hr.error == 0) in hpi_instream_open()
862 return hr.error; in hpi_instream_open()
868 struct hpi_response hr; in hpi_instream_close() local
870 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
874 hpi_send_recv(&hm, &hr); in hpi_instream_close()
876 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
879 hpi_send_recv(&hm, &hr); in hpi_instream_close()
881 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
884 hpi_send_recv(&hm, &hr); in hpi_instream_close()
886 return hr.error; in hpi_instream_close()
893 struct hpi_response hr; in hpi_instream_query_format() local
895 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_query_format()
901 hpi_send_recv(&hm, &hr); in hpi_instream_query_format()
903 return hr.error; in hpi_instream_query_format()
909 struct hpi_response hr; in hpi_instream_set_format() local
911 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_set_format()
917 hpi_send_recv(&hm, &hr); in hpi_instream_set_format()
919 return hr.error; in hpi_instream_set_format()
925 struct hpi_response hr; in hpi_instream_read_buf() local
927 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_read_buf()
934 hpi_send_recv(&hm, &hr); in hpi_instream_read_buf()
936 return hr.error; in hpi_instream_read_buf()
942 struct hpi_response hr; in hpi_instream_start() local
944 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_start()
949 hpi_send_recv(&hm, &hr); in hpi_instream_start()
951 return hr.error; in hpi_instream_start()
957 struct hpi_response hr; in hpi_instream_wait_start() local
959 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_wait_start()
964 hpi_send_recv(&hm, &hr); in hpi_instream_wait_start()
966 return hr.error; in hpi_instream_wait_start()
972 struct hpi_response hr; in hpi_instream_stop() local
974 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_stop()
979 hpi_send_recv(&hm, &hr); in hpi_instream_stop()
981 return hr.error; in hpi_instream_stop()
987 struct hpi_response hr; in hpi_instream_reset() local
989 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_reset()
994 hpi_send_recv(&hm, &hr); in hpi_instream_reset()
996 return hr.error; in hpi_instream_reset()
1004 struct hpi_response hr; in hpi_instream_get_info_ex() local
1005 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_get_info_ex()
1010 hpi_send_recv(&hm, &hr); in hpi_instream_get_info_ex()
1013 *pw_state = hr.u.d.u.stream_info.state; in hpi_instream_get_info_ex()
1015 *pbuffer_size = hr.u.d.u.stream_info.buffer_size; in hpi_instream_get_info_ex()
1017 *pdata_recorded = hr.u.d.u.stream_info.data_available; in hpi_instream_get_info_ex()
1019 *psamples_recorded = hr.u.d.u.stream_info.samples_transferred; in hpi_instream_get_info_ex()
1022 hr.u.d.u.stream_info.auxiliary_data_available; in hpi_instream_get_info_ex()
1023 return hr.error; in hpi_instream_get_info_ex()
1030 struct hpi_response hr; in hpi_instream_ancillary_reset() local
1031 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_reset()
1038 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_reset()
1039 return hr.error; in hpi_instream_ancillary_reset()
1045 struct hpi_response hr; in hpi_instream_ancillary_get_info() local
1046 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_get_info()
1050 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_get_info()
1053 (hr.u.d.u.stream_info.buffer_size - in hpi_instream_ancillary_get_info()
1054 hr.u.d.u.stream_info.data_available) / in hpi_instream_ancillary_get_info()
1056 return hr.error; in hpi_instream_ancillary_get_info()
1065 struct hpi_response hr; in hpi_instream_ancillary_write() local
1067 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_write()
1076 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_write()
1078 hr.error = HPI_ERROR_INVALID_DATASIZE; in hpi_instream_ancillary_write()
1079 return hr.error; in hpi_instream_ancillary_write()
1086 struct hpi_response hr; in hpi_instream_host_buffer_allocate() local
1088 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_allocate()
1093 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_allocate()
1094 return hr.error; in hpi_instream_host_buffer_allocate()
1101 struct hpi_response hr; in hpi_instream_host_buffer_get_info() local
1103 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_get_info()
1107 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_get_info()
1109 if (hr.error == 0) { in hpi_instream_host_buffer_get_info()
1111 *pp_buffer = hr.u.d.u.hostbuffer_info.p_buffer; in hpi_instream_host_buffer_get_info()
1113 *pp_status = hr.u.d.u.hostbuffer_info.p_status; in hpi_instream_host_buffer_get_info()
1115 return hr.error; in hpi_instream_host_buffer_get_info()
1122 struct hpi_response hr; in hpi_instream_host_buffer_free() local
1124 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_free()
1128 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_free()
1129 return hr.error; in hpi_instream_host_buffer_free()
1135 struct hpi_response hr; in hpi_instream_group_add() local
1139 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_add()
1141 hr.error = 0; in hpi_instream_group_add()
1164 hpi_send_recv(&hm, &hr); in hpi_instream_group_add()
1165 return hr.error; in hpi_instream_group_add()
1172 struct hpi_response hr; in hpi_instream_group_get_map() local
1174 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_get_map()
1178 hpi_send_recv(&hm, &hr); in hpi_instream_group_get_map()
1181 *poutstream_map = hr.u.d.u.group_info.outstream_group_map; in hpi_instream_group_get_map()
1183 *pinstream_map = hr.u.d.u.group_info.instream_group_map; in hpi_instream_group_get_map()
1185 return hr.error; in hpi_instream_group_get_map()
1191 struct hpi_response hr; in hpi_instream_group_reset() local
1193 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_reset()
1197 hpi_send_recv(&hm, &hr); in hpi_instream_group_reset()
1198 return hr.error; in hpi_instream_group_reset()
1204 struct hpi_response hr; in hpi_mixer_open() local
1205 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_OPEN); in hpi_mixer_open()
1208 hpi_send_recv(&hm, &hr); in hpi_mixer_open()
1210 if (hr.error == 0) in hpi_mixer_open()
1216 return hr.error; in hpi_mixer_open()
1222 struct hpi_response hr; in hpi_mixer_close() local
1224 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE); in hpi_mixer_close()
1228 hpi_send_recv(&hm, &hr); in hpi_mixer_close()
1229 return hr.error; in hpi_mixer_close()
1237 struct hpi_response hr; in hpi_mixer_get_control() local
1238 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, in hpi_mixer_get_control()
1248 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control()
1250 if (hr.error == 0) in hpi_mixer_get_control()
1253 hm.adapter_index, hr.u.m.control_index); in hpi_mixer_get_control()
1256 return hr.error; in hpi_mixer_get_control()
1264 struct hpi_response hr; in hpi_mixer_get_control_by_index() local
1265 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, in hpi_mixer_get_control_by_index()
1270 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control_by_index()
1274 hr.u.m.src_node_type + HPI_SOURCENODE_NONE; in hpi_mixer_get_control_by_index()
1275 *pw_src_node_index = hr.u.m.src_node_index; in hpi_mixer_get_control_by_index()
1276 *pw_dst_node_type = hr.u.m.dst_node_type + HPI_DESTNODE_NONE; in hpi_mixer_get_control_by_index()
1277 *pw_dst_node_index = hr.u.m.dst_node_index; in hpi_mixer_get_control_by_index()
1280 *pw_control_type = hr.u.m.control_index; in hpi_mixer_get_control_by_index()
1283 if (hr.error == 0) in hpi_mixer_get_control_by_index()
1290 return hr.error; in hpi_mixer_get_control_by_index()
1297 struct hpi_response hr; in hpi_mixer_store() local
1298 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_STORE); in hpi_mixer_store()
1303 hpi_send_recv(&hm, &hr); in hpi_mixer_store()
1304 return hr.error; in hpi_mixer_store()
1312 struct hpi_response hr; in hpi_control_param_set() local
1314 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_set()
1321 hpi_send_recv(&hm, &hr); in hpi_control_param_set()
1322 return hr.error; in hpi_control_param_set()
1329 struct hpi_response hr; in hpi_control_log_set2() local
1331 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_set2()
1338 hpi_send_recv(&hm, &hr); in hpi_control_log_set2()
1339 return hr.error; in hpi_control_log_set2()
1347 struct hpi_response hr; in hpi_control_param_get() local
1349 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_get()
1356 hpi_send_recv(&hm, &hr); in hpi_control_param_get()
1358 *pparam1 = hr.u.c.param1; in hpi_control_param_get()
1360 *pparam2 = hr.u.c.param2; in hpi_control_param_get()
1362 return hr.error; in hpi_control_param_get()
1374 struct hpi_response hr; in hpi_control_log_get2() local
1375 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_get2()
1381 hpi_send_recv(&hm, &hr); in hpi_control_log_get2()
1382 *sv0 = hr.u.c.an_log_value[0]; in hpi_control_log_get2()
1384 *sv1 = hr.u.c.an_log_value[1]; in hpi_control_log_get2()
1385 return hr.error; in hpi_control_log_get2()
1393 struct hpi_response hr; in hpi_control_query() local
1395 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_query()
1404 hpi_send_recv(&hm, &hr); in hpi_control_query()
1405 *psetting = hr.u.c.param1; in hpi_control_query()
1407 return hr.error; in hpi_control_query()
1423 struct hpi_response hr; in hpi_control_get_string() local
1425 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_get_string()
1433 hpi_send_recv(&hm, &hr); in hpi_control_get_string()
1436 && (hr.u.cu.chars8.remaining_chars + 8) > in hpi_control_get_string()
1440 if (hr.error) { in hpi_control_get_string()
1441 err = hr.error; in hpi_control_get_string()
1445 c = hr.u.cu.chars8.sz_data[j]; in hpi_control_get_string()
1457 if ((hr.u.cu.chars8.remaining_chars == 0) in hpi_control_get_string()
1507 struct hpi_response hr; in hpi_aesebu_receiver_get_user_data() local
1508 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_aesebu_receiver_get_user_data()
1515 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_user_data()
1518 *pw_data = (u16)hr.u.c.param2; in hpi_aesebu_receiver_get_user_data()
1519 return hr.error; in hpi_aesebu_receiver_get_user_data()
1526 struct hpi_response hr; in hpi_aesebu_receiver_get_channel_status() local
1527 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_aesebu_receiver_get_channel_status()
1534 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_channel_status()
1537 *pw_data = (u16)hr.u.c.param2; in hpi_aesebu_receiver_get_channel_status()
1538 return hr.error; in hpi_aesebu_receiver_get_channel_status()
1623 struct hpi_response hr; in hpi_bitstream_get_activity() local
1624 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_bitstream_get_activity()
1629 hpi_send_recv(&hm, &hr); in hpi_bitstream_get_activity()
1631 *pw_clk_activity = (u16)hr.u.c.param1; in hpi_bitstream_get_activity()
1633 *pw_data_activity = (u16)hr.u.c.param2; in hpi_bitstream_get_activity()
1634 return hr.error; in hpi_bitstream_get_activity()
1668 struct hpi_response_header hr; in hpi_cobranet_hmi_write() local
1670 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr, sizeof(hr), in hpi_cobranet_hmi_write()
1686 hpi_send_recvV1(&hm.h, &hr); in hpi_cobranet_hmi_write()
1687 return hr.error; in hpi_cobranet_hmi_write()
1694 struct hpi_res_cobranet_hmiread hr; in hpi_cobranet_hmi_read() local
1696 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr.h, sizeof(hr), in hpi_cobranet_hmi_read()
1703 if (max_byte_count > sizeof(hr.bytes)) in hpi_cobranet_hmi_read()
1710 hpi_send_recvV1(&hm.h, &hr.h); in hpi_cobranet_hmi_read()
1712 if (!hr.h.error && pb_data) { in hpi_cobranet_hmi_read()
1713 if (hr.byte_count > sizeof(hr.bytes)) in hpi_cobranet_hmi_read()
1717 *pbyte_count = hr.byte_count; in hpi_cobranet_hmi_read()
1719 if (hr.byte_count < max_byte_count) in hpi_cobranet_hmi_read()
1722 memcpy(pb_data, hr.bytes, max_byte_count); in hpi_cobranet_hmi_read()
1724 return hr.h.error; in hpi_cobranet_hmi_read()
1731 struct hpi_response hr; in hpi_cobranet_hmi_get_status() local
1733 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_cobranet_hmi_get_status()
1740 hpi_send_recv(&hm, &hr); in hpi_cobranet_hmi_get_status()
1741 if (!hr.error) { in hpi_cobranet_hmi_get_status()
1743 *pstatus = hr.u.cu.cobranet.status.status; in hpi_cobranet_hmi_get_status()
1746 hr.u.cu.cobranet.status.readable_size; in hpi_cobranet_hmi_get_status()
1749 hr.u.cu.cobranet.status.writeable_size; in hpi_cobranet_hmi_get_status()
1751 return hr.error; in hpi_cobranet_hmi_get_status()
1918 struct hpi_response hr; in hpi_compander_set_threshold() local
1920 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_set_threshold()
1928 hpi_send_recv(&hm, &hr); in hpi_compander_set_threshold()
1930 return hr.error; in hpi_compander_set_threshold()
1937 struct hpi_response hr; in hpi_compander_get_threshold() local
1939 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_get_threshold()
1946 hpi_send_recv(&hm, &hr); in hpi_compander_get_threshold()
1947 *threshold0_01dB = hr.u.c.an_log_value[0]; in hpi_compander_get_threshold()
1949 return hr.error; in hpi_compander_get_threshold()
1968 struct hpi_response hr; in hpi_level_query_range() local
1970 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_level_query_range()
1976 hpi_send_recv(&hm, &hr); in hpi_level_query_range()
1977 if (hr.error) { in hpi_level_query_range()
1978 hr.u.c.an_log_value[0] = 0; in hpi_level_query_range()
1979 hr.u.c.an_log_value[1] = 0; in hpi_level_query_range()
1980 hr.u.c.param1 = 0; in hpi_level_query_range()
1983 *min_gain_01dB = hr.u.c.an_log_value[0]; in hpi_level_query_range()
1985 *max_gain_01dB = hr.u.c.an_log_value[1]; in hpi_level_query_range()
1987 *step_gain_01dB = (short)hr.u.c.param1; in hpi_level_query_range()
1988 return hr.error; in hpi_level_query_range()
2017 struct hpi_response hr; in hpi_meter_get_peak() local
2019 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_peak()
2026 hpi_send_recv(&hm, &hr); in hpi_meter_get_peak()
2028 if (!hr.error) in hpi_meter_get_peak()
2029 memcpy(an_peakdB, hr.u.c.an_log_value, in hpi_meter_get_peak()
2034 return hr.error; in hpi_meter_get_peak()
2043 struct hpi_response hr; in hpi_meter_get_rms() local
2045 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_rms()
2051 hpi_send_recv(&hm, &hr); in hpi_meter_get_rms()
2053 if (!hr.error) in hpi_meter_get_rms()
2054 memcpy(an_rmsdB, hr.u.c.an_log_value, in hpi_meter_get_rms()
2060 return hr.error; in hpi_meter_get_rms()
2152 struct hpi_response hr; in hpi_multiplexer_query_source() local
2153 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_multiplexer_query_source()
2160 hpi_send_recv(&hm, &hr); in hpi_multiplexer_query_source()
2163 *source_node_type = (u16)hr.u.c.param1; in hpi_multiplexer_query_source()
2165 *source_node_index = (u16)hr.u.c.param2; in hpi_multiplexer_query_source()
2166 return hr.error; in hpi_multiplexer_query_source()
2195 struct hpi_response hr; in hpi_parametric_eq_get_band() local
2197 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_band()
2204 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_band()
2207 *pfrequency_hz = hr.u.c.param1; in hpi_parametric_eq_get_band()
2209 *pn_type = (u16)(hr.u.c.param2 >> 16); in hpi_parametric_eq_get_band()
2211 *pnQ100 = hr.u.c.an_log_value[1]; in hpi_parametric_eq_get_band()
2213 *pn_gain0_01dB = hr.u.c.an_log_value[0]; in hpi_parametric_eq_get_band()
2215 return hr.error; in hpi_parametric_eq_get_band()
2222 struct hpi_response hr; in hpi_parametric_eq_set_band() local
2224 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_set_band()
2235 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_set_band()
2237 return hr.error; in hpi_parametric_eq_set_band()
2244 struct hpi_response hr; in hpi_parametric_eq_get_coeffs() local
2246 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_coeffs()
2253 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_coeffs()
2255 coeffs[0] = (short)hr.u.c.an_log_value[0]; in hpi_parametric_eq_get_coeffs()
2256 coeffs[1] = (short)hr.u.c.an_log_value[1]; in hpi_parametric_eq_get_coeffs()
2257 coeffs[2] = (short)hr.u.c.param1; in hpi_parametric_eq_get_coeffs()
2258 coeffs[3] = (short)(hr.u.c.param1 >> 16); in hpi_parametric_eq_get_coeffs()
2259 coeffs[4] = (short)hr.u.c.param2; in hpi_parametric_eq_get_coeffs()
2261 return hr.error; in hpi_parametric_eq_get_coeffs()
2558 struct hpi_response hr; in hpi_tuner_get_rf_level() local
2560 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rf_level()
2565 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rf_level()
2567 *pw_level = hr.u.cu.tuner.s_level; in hpi_tuner_get_rf_level()
2568 return hr.error; in hpi_tuner_get_rf_level()
2574 struct hpi_response hr; in hpi_tuner_get_raw_rf_level() local
2576 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_raw_rf_level()
2581 hpi_send_recv(&hm, &hr); in hpi_tuner_get_raw_rf_level()
2583 *pw_level = hr.u.cu.tuner.s_level; in hpi_tuner_get_raw_rf_level()
2584 return hr.error; in hpi_tuner_get_raw_rf_level()
2687 struct hpi_response hr; in hpi_tuner_get_rds() local
2689 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rds()
2694 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rds()
2696 *(u32 *)&p_data[0] = hr.u.cu.tuner.rds.data[0]; in hpi_tuner_get_rds()
2697 *(u32 *)&p_data[4] = hr.u.cu.tuner.rds.data[1]; in hpi_tuner_get_rds()
2698 *(u32 *)&p_data[8] = hr.u.cu.tuner.rds.bLER; in hpi_tuner_get_rds()
2700 return hr.error; in hpi_tuner_get_rds()
2773 struct hpi_response hr; in hpi_volume_query_range() local
2775 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_query_range()
2781 hpi_send_recv(&hm, &hr); in hpi_volume_query_range()
2782 if (hr.error) { in hpi_volume_query_range()
2783 hr.u.c.an_log_value[0] = 0; in hpi_volume_query_range()
2784 hr.u.c.an_log_value[1] = 0; in hpi_volume_query_range()
2785 hr.u.c.param1 = 0; in hpi_volume_query_range()
2788 *min_gain_01dB = hr.u.c.an_log_value[0]; in hpi_volume_query_range()
2790 *max_gain_01dB = hr.u.c.an_log_value[1]; in hpi_volume_query_range()
2792 *step_gain_01dB = (short)hr.u.c.param1; in hpi_volume_query_range()
2793 return hr.error; in hpi_volume_query_range()
2801 struct hpi_response hr; in hpi_volume_auto_fade_profile() local
2803 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_auto_fade_profile()
2815 hpi_send_recv(&hm, &hr); in hpi_volume_auto_fade_profile()
2817 return hr.error; in hpi_volume_auto_fade_profile()
2840 struct hpi_response hr; in hpi_vox_set_threshold() local
2841 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_set_threshold()
2849 hpi_send_recv(&hm, &hr); in hpi_vox_set_threshold()
2851 return hr.error; in hpi_vox_set_threshold()
2857 struct hpi_response hr; in hpi_vox_get_threshold() local
2858 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_get_threshold()
2864 hpi_send_recv(&hm, &hr); in hpi_vox_get_threshold()
2866 *an_gain0_01dB = hr.u.c.an_log_value[0]; in hpi_vox_get_threshold()
2868 return hr.error; in hpi_vox_get_threshold()