Lines Matching refs:hm
98 struct hpi_message hm; 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()
110 struct hpi_message hm; 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()
122 struct hpi_message hm; in hpi_subsys_get_adapter() local
124 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_adapter()
126 hm.obj_index = (u16)iterator; in hpi_subsys_get_adapter()
127 hpi_send_recv(&hm, &hr); in hpi_subsys_get_adapter()
136 struct hpi_message hm; in hpi_adapter_open() local
138 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_open()
140 hm.adapter_index = adapter_index; in hpi_adapter_open()
142 hpi_send_recv(&hm, &hr); in hpi_adapter_open()
150 struct hpi_message hm; in hpi_adapter_close() local
152 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_close()
154 hm.adapter_index = adapter_index; in hpi_adapter_close()
156 hpi_send_recv(&hm, &hr); in hpi_adapter_close()
170 struct hpi_message hm; in hpi_adapter_set_mode_ex() local
173 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_mode_ex()
175 hm.adapter_index = adapter_index; in hpi_adapter_set_mode_ex()
176 hm.u.ax.mode.adapter_mode = adapter_mode; in hpi_adapter_set_mode_ex()
177 hm.u.ax.mode.query_or_set = query_or_set; in hpi_adapter_set_mode_ex()
178 hpi_send_recv(&hm, &hr); in hpi_adapter_set_mode_ex()
184 struct hpi_message hm; in hpi_adapter_get_mode() local
186 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_mode()
188 hm.adapter_index = adapter_index; in hpi_adapter_get_mode()
189 hpi_send_recv(&hm, &hr); in hpi_adapter_get_mode()
199 struct hpi_message hm; in hpi_adapter_get_info() local
201 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_info()
203 hm.adapter_index = adapter_index; in hpi_adapter_get_info()
205 hpi_send_recv(&hm, &hr); in hpi_adapter_get_info()
219 struct hpi_message hm; 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()
224 hm.adapter_index = adapter_index; in hpi_adapter_get_module_by_index()
225 hm.u.ax.module_info.index = module_index; in hpi_adapter_get_module_by_index()
227 hpi_send_recv(&hm, &hr); in hpi_adapter_get_module_by_index()
242 struct hpi_message hm; in hpi_adapter_set_property() local
244 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_property()
246 hm.adapter_index = adapter_index; in hpi_adapter_set_property()
247 hm.u.ax.property_set.property = property; in hpi_adapter_set_property()
248 hm.u.ax.property_set.parameter1 = parameter1; in hpi_adapter_set_property()
249 hm.u.ax.property_set.parameter2 = parameter2; in hpi_adapter_set_property()
251 hpi_send_recv(&hm, &hr); in hpi_adapter_set_property()
259 struct hpi_message hm; in hpi_adapter_get_property() local
261 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_property()
263 hm.adapter_index = adapter_index; in hpi_adapter_get_property()
264 hm.u.ax.property_set.property = property; in hpi_adapter_get_property()
266 hpi_send_recv(&hm, &hr); in hpi_adapter_get_property()
427 struct hpi_message hm; in hpi_outstream_open() local
429 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_open()
431 hm.adapter_index = adapter_index; in hpi_outstream_open()
432 hm.obj_index = outstream_index; in hpi_outstream_open()
434 hpi_send_recv(&hm, &hr); in hpi_outstream_open()
447 struct hpi_message hm; in hpi_outstream_close() local
450 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
452 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) 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()
459 hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index); 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()
464 hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index); in hpi_outstream_close()
465 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
474 struct hpi_message hm; in hpi_outstream_get_info_ex() local
476 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_get_info_ex()
478 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_get_info_ex()
481 hpi_send_recv(&hm, &hr); in hpi_outstream_get_info_ex()
500 struct hpi_message hm; in hpi_outstream_write_buf() local
502 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_write_buf()
504 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_write_buf()
506 hm.u.d.u.data.pb_data = (u8 *)pb_data; in hpi_outstream_write_buf()
507 hm.u.d.u.data.data_size = bytes_to_write; in hpi_outstream_write_buf()
509 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_write_buf()
511 hpi_send_recv(&hm, &hr); in hpi_outstream_write_buf()
518 struct hpi_message hm; in hpi_outstream_start() local
520 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_start()
522 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_start()
525 hpi_send_recv(&hm, &hr); in hpi_outstream_start()
532 struct hpi_message hm; in hpi_outstream_wait_start() local
534 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_wait_start()
536 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_wait_start()
539 hpi_send_recv(&hm, &hr); in hpi_outstream_wait_start()
546 struct hpi_message hm; in hpi_outstream_stop() local
548 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_stop()
550 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_stop()
553 hpi_send_recv(&hm, &hr); in hpi_outstream_stop()
560 struct hpi_message hm; in hpi_outstream_sinegen() local
562 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_sinegen()
564 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_sinegen()
567 hpi_send_recv(&hm, &hr); in hpi_outstream_sinegen()
574 struct hpi_message hm; in hpi_outstream_reset() local
576 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_reset()
578 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_reset()
581 hpi_send_recv(&hm, &hr); in hpi_outstream_reset()
588 struct hpi_message hm; in hpi_outstream_query_format() local
591 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_query_format()
593 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_query_format()
596 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_query_format()
598 hpi_send_recv(&hm, &hr); in hpi_outstream_query_format()
605 struct hpi_message hm; in hpi_outstream_set_format() local
608 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_format()
610 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_format()
613 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_set_format()
615 hpi_send_recv(&hm, &hr); in hpi_outstream_set_format()
622 struct hpi_message hm; in hpi_outstream_set_velocity() local
625 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_velocity()
627 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_velocity()
629 hm.u.d.u.velocity = velocity; in hpi_outstream_set_velocity()
631 hpi_send_recv(&hm, &hr); in hpi_outstream_set_velocity()
639 struct hpi_message hm; 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()
644 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_punch_in_out()
647 hm.u.d.u.pio.punch_in_sample = punch_in_sample; in hpi_outstream_set_punch_in_out()
648 hm.u.d.u.pio.punch_out_sample = punch_out_sample; in hpi_outstream_set_punch_in_out()
650 hpi_send_recv(&hm, &hr); in hpi_outstream_set_punch_in_out()
657 struct hpi_message hm; in hpi_outstream_ancillary_reset() local
660 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_reset()
662 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_reset()
664 hm.u.d.u.data.format.channels = mode; in hpi_outstream_ancillary_reset()
665 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_reset()
671 struct hpi_message hm; in hpi_outstream_ancillary_get_info() local
674 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_get_info()
676 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_get_info()
678 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_get_info()
693 struct hpi_message hm; in hpi_outstream_ancillary_read() local
696 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_read()
698 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_read()
700 hm.u.d.u.data.pb_data = (u8 *)p_anc_frame_buffer; in hpi_outstream_ancillary_read()
701 hm.u.d.u.data.data_size = in hpi_outstream_ancillary_read()
704 if (hm.u.d.u.data.data_size <= anc_frame_buffer_size_in_bytes) in hpi_outstream_ancillary_read()
705 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_read()
713 struct hpi_message hm; in hpi_outstream_set_time_scale() local
716 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_time_scale()
718 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_time_scale()
721 hm.u.d.u.time_scale = time_scale; in hpi_outstream_set_time_scale()
723 hpi_send_recv(&hm, &hr); in hpi_outstream_set_time_scale()
730 struct hpi_message hm; in hpi_outstream_host_buffer_allocate() local
733 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_allocate()
735 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_allocate()
737 hm.u.d.u.data.data_size = size_in_bytes; in hpi_outstream_host_buffer_allocate()
738 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_allocate()
745 struct hpi_message hm; 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()
750 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_get_info()
752 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_get_info()
765 struct hpi_message hm; in hpi_outstream_host_buffer_free() local
768 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_free()
770 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_free()
772 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_free()
778 struct hpi_message hm; in hpi_outstream_group_add() local
783 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_add()
786 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_add()
790 &hm.u.d.u.stream.stream_index)) in hpi_outstream_group_add()
797 hm.u.d.u.stream.object_type = c_obj_type; in hpi_outstream_group_add()
802 if (adapter != hm.adapter_index) in hpi_outstream_group_add()
805 hpi_send_recv(&hm, &hr); in hpi_outstream_group_add()
812 struct hpi_message hm; in hpi_outstream_group_get_map() local
815 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_get_map()
817 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_get_map()
819 hpi_send_recv(&hm, &hr); in hpi_outstream_group_get_map()
831 struct hpi_message hm; in hpi_outstream_group_reset() local
834 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_reset()
836 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_reset()
838 hpi_send_recv(&hm, &hr); in hpi_outstream_group_reset()
844 struct hpi_message hm; in hpi_instream_open() local
847 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_open()
849 hm.adapter_index = adapter_index; in hpi_instream_open()
850 hm.obj_index = instream_index; in hpi_instream_open()
852 hpi_send_recv(&hm, &hr); in hpi_instream_open()
866 struct hpi_message hm; in hpi_instream_close() local
869 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
871 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) 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()
877 hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index); 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()
882 hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index); in hpi_instream_close()
883 hpi_send_recv(&hm, &hr); in hpi_instream_close()
891 struct hpi_message hm; in hpi_instream_query_format() local
894 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_query_format()
896 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_query_format()
898 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_instream_query_format()
900 hpi_send_recv(&hm, &hr); in hpi_instream_query_format()
907 struct hpi_message hm; in hpi_instream_set_format() local
910 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_set_format()
912 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_set_format()
914 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_instream_set_format()
916 hpi_send_recv(&hm, &hr); in hpi_instream_set_format()
923 struct hpi_message hm; in hpi_instream_read_buf() local
926 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_read_buf()
928 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_read_buf()
930 hm.u.d.u.data.data_size = bytes_to_read; in hpi_instream_read_buf()
931 hm.u.d.u.data.pb_data = pb_data; in hpi_instream_read_buf()
933 hpi_send_recv(&hm, &hr); in hpi_instream_read_buf()
940 struct hpi_message hm; in hpi_instream_start() local
943 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_start()
945 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_start()
948 hpi_send_recv(&hm, &hr); in hpi_instream_start()
955 struct hpi_message hm; in hpi_instream_wait_start() local
958 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_wait_start()
960 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_wait_start()
963 hpi_send_recv(&hm, &hr); in hpi_instream_wait_start()
970 struct hpi_message hm; in hpi_instream_stop() local
973 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_stop()
975 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_stop()
978 hpi_send_recv(&hm, &hr); in hpi_instream_stop()
985 struct hpi_message hm; in hpi_instream_reset() local
988 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_reset()
990 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_reset()
993 hpi_send_recv(&hm, &hr); in hpi_instream_reset()
1002 struct hpi_message hm; in hpi_instream_get_info_ex() local
1004 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_get_info_ex()
1006 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_get_info_ex()
1009 hpi_send_recv(&hm, &hr); in hpi_instream_get_info_ex()
1028 struct hpi_message hm; in hpi_instream_ancillary_reset() local
1030 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_reset()
1032 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_reset()
1034 hm.u.d.u.data.format.attributes = bytes_per_frame; in hpi_instream_ancillary_reset()
1035 hm.u.d.u.data.format.format = (mode << 8) | (alignment & 0xff); in hpi_instream_ancillary_reset()
1036 hm.u.d.u.data.format.channels = idle_bit; in hpi_instream_ancillary_reset()
1037 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_reset()
1043 struct hpi_message hm; in hpi_instream_ancillary_get_info() local
1045 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_get_info()
1047 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_get_info()
1049 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_get_info()
1063 struct hpi_message hm; in hpi_instream_ancillary_write() local
1066 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_write()
1068 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_write()
1070 hm.u.d.u.data.pb_data = (u8 *)p_anc_frame_buffer; in hpi_instream_ancillary_write()
1071 hm.u.d.u.data.data_size = in hpi_instream_ancillary_write()
1074 if (hm.u.d.u.data.data_size <= anc_frame_buffer_size_in_bytes) in hpi_instream_ancillary_write()
1075 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_write()
1084 struct hpi_message hm; in hpi_instream_host_buffer_allocate() local
1087 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_allocate()
1089 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_allocate()
1091 hm.u.d.u.data.data_size = size_in_bytes; in hpi_instream_host_buffer_allocate()
1092 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_allocate()
1099 struct hpi_message hm; 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()
1104 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_get_info()
1106 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_get_info()
1120 struct hpi_message hm; in hpi_instream_host_buffer_free() local
1123 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_free()
1125 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_free()
1127 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_free()
1133 struct hpi_message hm; in hpi_instream_group_add() local
1138 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_add()
1142 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_add()
1146 &hm.u.d.u.stream.stream_index)) in hpi_instream_group_add()
1154 hm.u.d.u.stream.object_type = c_obj_type; in hpi_instream_group_add()
1160 if (adapter != hm.adapter_index) in hpi_instream_group_add()
1163 hpi_send_recv(&hm, &hr); in hpi_instream_group_add()
1170 struct hpi_message hm; in hpi_instream_group_get_map() local
1173 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_get_map()
1175 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_get_map()
1177 hpi_send_recv(&hm, &hr); in hpi_instream_group_get_map()
1189 struct hpi_message hm; in hpi_instream_group_reset() local
1192 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_reset()
1194 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_reset()
1196 hpi_send_recv(&hm, &hr); in hpi_instream_group_reset()
1202 struct hpi_message hm; in hpi_mixer_open() local
1204 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_OPEN); in hpi_mixer_open()
1205 hm.adapter_index = adapter_index; in hpi_mixer_open()
1207 hpi_send_recv(&hm, &hr); in hpi_mixer_open()
1220 struct hpi_message hm; in hpi_mixer_close() local
1223 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE); in hpi_mixer_close()
1224 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_close()
1227 hpi_send_recv(&hm, &hr); in hpi_mixer_close()
1235 struct hpi_message hm; in hpi_mixer_get_control() local
1237 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, in hpi_mixer_get_control()
1239 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_get_control()
1241 hm.u.m.node_type1 = src_node_type; in hpi_mixer_get_control()
1242 hm.u.m.node_index1 = src_node_type_index; in hpi_mixer_get_control()
1243 hm.u.m.node_type2 = dst_node_type; in hpi_mixer_get_control()
1244 hm.u.m.node_index2 = dst_node_type_index; in hpi_mixer_get_control()
1245 hm.u.m.control_type = control_type; in hpi_mixer_get_control()
1247 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control()
1252 hm.adapter_index, hr.u.m.control_index); in hpi_mixer_get_control()
1262 struct hpi_message hm; 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()
1266 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_get_control_by_index()
1268 hm.u.m.control_index = control_index; in hpi_mixer_get_control_by_index()
1269 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control_by_index()
1285 hm.adapter_index, control_index); in hpi_mixer_get_control_by_index()
1295 struct hpi_message hm; in hpi_mixer_store() local
1297 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_STORE); in hpi_mixer_store()
1298 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_store()
1300 hm.u.mx.store.command = command; in hpi_mixer_store()
1301 hm.u.mx.store.index = index; in hpi_mixer_store()
1302 hpi_send_recv(&hm, &hr); in hpi_mixer_store()
1310 struct hpi_message hm; in hpi_control_param_set() local
1313 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_set()
1315 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_param_set()
1317 hm.u.c.attribute = attrib; in hpi_control_param_set()
1318 hm.u.c.param1 = param1; in hpi_control_param_set()
1319 hm.u.c.param2 = param2; in hpi_control_param_set()
1320 hpi_send_recv(&hm, &hr); in hpi_control_param_set()
1327 struct hpi_message hm; in hpi_control_log_set2() local
1330 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_set2()
1332 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_log_set2()
1334 hm.u.c.attribute = attrib; in hpi_control_log_set2()
1335 hm.u.c.an_log_value[0] = sv0; in hpi_control_log_set2()
1336 hm.u.c.an_log_value[1] = sv1; in hpi_control_log_set2()
1337 hpi_send_recv(&hm, &hr); in hpi_control_log_set2()
1345 struct hpi_message hm; in hpi_control_param_get() local
1348 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_get()
1350 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_param_get()
1352 hm.u.c.attribute = attrib; in hpi_control_param_get()
1353 hm.u.c.param1 = param1; in hpi_control_param_get()
1354 hm.u.c.param2 = param2; in hpi_control_param_get()
1355 hpi_send_recv(&hm, &hr); in hpi_control_param_get()
1372 struct hpi_message hm; in hpi_control_log_get2() local
1374 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_get2()
1376 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_log_get2()
1378 hm.u.c.attribute = attrib; in hpi_control_log_get2()
1380 hpi_send_recv(&hm, &hr); in hpi_control_log_get2()
1391 struct hpi_message hm; in hpi_control_query() local
1394 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_query()
1396 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_query()
1399 hm.u.c.attribute = attrib; in hpi_control_query()
1400 hm.u.c.param1 = index; in hpi_control_query()
1401 hm.u.c.param2 = param; in hpi_control_query()
1403 hpi_send_recv(&hm, &hr); in hpi_control_query()
1421 struct hpi_message hm; in hpi_control_get_string() local
1424 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_get_string()
1426 if (hpi_handle_indexes(h_control, &hm.adapter_index, in hpi_control_get_string()
1427 &hm.obj_index)) in hpi_control_get_string()
1429 hm.u.c.attribute = attribute; in hpi_control_get_string()
1430 hm.u.c.param1 = sub_string_index; in hpi_control_get_string()
1431 hm.u.c.param2 = 0; in hpi_control_get_string()
1432 hpi_send_recv(&hm, &hr); in hpi_control_get_string()
1505 struct hpi_message hm; 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()
1509 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_aesebu_receiver_get_user_data()
1511 hm.u.c.attribute = HPI_AESEBURX_USERDATA; in hpi_aesebu_receiver_get_user_data()
1512 hm.u.c.param1 = index; in hpi_aesebu_receiver_get_user_data()
1514 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_user_data()
1524 struct hpi_message hm; 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()
1528 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_aesebu_receiver_get_channel_status()
1530 hm.u.c.attribute = HPI_AESEBURX_CHANNELSTATUS; in hpi_aesebu_receiver_get_channel_status()
1531 hm.u.c.param1 = index; in hpi_aesebu_receiver_get_channel_status()
1533 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_channel_status()
1621 struct hpi_message hm; in hpi_bitstream_get_activity() local
1623 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_bitstream_get_activity()
1625 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_bitstream_get_activity()
1627 hm.u.c.attribute = HPI_BITSTREAM_ACTIVITY; in hpi_bitstream_get_activity()
1628 hpi_send_recv(&hm, &hr); in hpi_bitstream_get_activity()
1666 struct hpi_msg_cobranet_hmiwrite hm; in hpi_cobranet_hmi_write() local
1669 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr, sizeof(hr), in hpi_cobranet_hmi_write()
1672 if (hpi_handle_indexes(h_control, &hm.h.adapter_index, in hpi_cobranet_hmi_write()
1673 &hm.h.obj_index)) in hpi_cobranet_hmi_write()
1676 if (byte_count > sizeof(hm.bytes)) in hpi_cobranet_hmi_write()
1679 hm.p.attribute = HPI_COBRANET_SET; in hpi_cobranet_hmi_write()
1680 hm.p.byte_count = byte_count; in hpi_cobranet_hmi_write()
1681 hm.p.hmi_address = hmi_address; in hpi_cobranet_hmi_write()
1682 memcpy(hm.bytes, pb_data, byte_count); in hpi_cobranet_hmi_write()
1683 hm.h.size = (u16)(sizeof(hm.h) + sizeof(hm.p) + byte_count); in hpi_cobranet_hmi_write()
1685 hpi_send_recvV1(&hm.h, &hr); in hpi_cobranet_hmi_write()
1692 struct hpi_msg_cobranet_hmiread hm; in hpi_cobranet_hmi_read() local
1695 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr.h, sizeof(hr), in hpi_cobranet_hmi_read()
1698 if (hpi_handle_indexes(h_control, &hm.h.adapter_index, in hpi_cobranet_hmi_read()
1699 &hm.h.obj_index)) in hpi_cobranet_hmi_read()
1705 hm.p.attribute = HPI_COBRANET_GET; in hpi_cobranet_hmi_read()
1706 hm.p.byte_count = max_byte_count; in hpi_cobranet_hmi_read()
1707 hm.p.hmi_address = hmi_address; in hpi_cobranet_hmi_read()
1709 hpi_send_recvV1(&hm.h, &hr.h); in hpi_cobranet_hmi_read()
1729 struct hpi_message hm; in hpi_cobranet_hmi_get_status() local
1732 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_cobranet_hmi_get_status()
1734 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_cobranet_hmi_get_status()
1737 hm.u.c.attribute = HPI_COBRANET_GET_STATUS; in hpi_cobranet_hmi_get_status()
1739 hpi_send_recv(&hm, &hr); in hpi_cobranet_hmi_get_status()
1916 struct hpi_message hm; in hpi_compander_set_threshold() local
1919 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_set_threshold()
1921 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_compander_set_threshold()
1923 hm.u.c.attribute = HPI_COMPANDER_THRESHOLD; in hpi_compander_set_threshold()
1924 hm.u.c.param2 = index; in hpi_compander_set_threshold()
1925 hm.u.c.an_log_value[0] = threshold0_01dB; in hpi_compander_set_threshold()
1927 hpi_send_recv(&hm, &hr); in hpi_compander_set_threshold()
1935 struct hpi_message hm; in hpi_compander_get_threshold() local
1938 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_get_threshold()
1940 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_compander_get_threshold()
1942 hm.u.c.attribute = HPI_COMPANDER_THRESHOLD; in hpi_compander_get_threshold()
1943 hm.u.c.param2 = index; in hpi_compander_get_threshold()
1945 hpi_send_recv(&hm, &hr); in hpi_compander_get_threshold()
1966 struct hpi_message hm; in hpi_level_query_range() local
1969 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_level_query_range()
1971 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_level_query_range()
1973 hm.u.c.attribute = HPI_LEVEL_RANGE; in hpi_level_query_range()
1975 hpi_send_recv(&hm, &hr); in hpi_level_query_range()
2015 struct hpi_message hm; in hpi_meter_get_peak() local
2018 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_peak()
2020 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_meter_get_peak()
2022 hm.obj_index = hm.obj_index; in hpi_meter_get_peak()
2023 hm.u.c.attribute = HPI_METER_PEAK; in hpi_meter_get_peak()
2025 hpi_send_recv(&hm, &hr); in hpi_meter_get_peak()
2041 struct hpi_message hm; in hpi_meter_get_rms() local
2044 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_rms()
2046 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_meter_get_rms()
2048 hm.u.c.attribute = HPI_METER_RMS; in hpi_meter_get_rms()
2050 hpi_send_recv(&hm, &hr); in hpi_meter_get_rms()
2150 struct hpi_message hm; in hpi_multiplexer_query_source() local
2152 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_multiplexer_query_source()
2154 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_multiplexer_query_source()
2156 hm.u.c.attribute = HPI_MULTIPLEXER_QUERYSOURCE; in hpi_multiplexer_query_source()
2157 hm.u.c.param1 = index; in hpi_multiplexer_query_source()
2159 hpi_send_recv(&hm, &hr); in hpi_multiplexer_query_source()
2193 struct hpi_message hm; in hpi_parametric_eq_get_band() local
2196 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_band()
2198 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_get_band()
2200 hm.u.c.attribute = HPI_EQUALIZER_FILTER; in hpi_parametric_eq_get_band()
2201 hm.u.c.param2 = index; in hpi_parametric_eq_get_band()
2203 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_band()
2220 struct hpi_message hm; in hpi_parametric_eq_set_band() local
2223 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_set_band()
2225 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_set_band()
2228 hm.u.c.param1 = frequency_hz; in hpi_parametric_eq_set_band()
2229 hm.u.c.param2 = (index & 0xFFFFL) + ((u32)type << 16); in hpi_parametric_eq_set_band()
2230 hm.u.c.an_log_value[0] = gain0_01dB; in hpi_parametric_eq_set_band()
2231 hm.u.c.an_log_value[1] = q100; in hpi_parametric_eq_set_band()
2232 hm.u.c.attribute = HPI_EQUALIZER_FILTER; in hpi_parametric_eq_set_band()
2234 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_set_band()
2242 struct hpi_message hm; in hpi_parametric_eq_get_coeffs() local
2245 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_coeffs()
2247 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_get_coeffs()
2249 hm.u.c.attribute = HPI_EQUALIZER_COEFFICIENTS; in hpi_parametric_eq_get_coeffs()
2250 hm.u.c.param2 = index; in hpi_parametric_eq_get_coeffs()
2252 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_coeffs()
2559 struct hpi_message hm; in hpi_tuner_get_rf_level() local
2562 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rf_level()
2564 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_rf_level()
2566 hm.u.cu.attribute = HPI_TUNER_LEVEL_AVG; in hpi_tuner_get_rf_level()
2567 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rf_level()
2575 struct hpi_message hm; 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()
2580 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_raw_rf_level()
2582 hm.u.cu.attribute = HPI_TUNER_LEVEL_RAW; in hpi_tuner_get_raw_rf_level()
2583 hpi_send_recv(&hm, &hr); in hpi_tuner_get_raw_rf_level()
2688 struct hpi_message hm; in hpi_tuner_get_rds() local
2691 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rds()
2693 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_rds()
2695 hm.u.c.attribute = HPI_TUNER_RDS; in hpi_tuner_get_rds()
2696 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rds()
2774 struct hpi_message hm; in hpi_volume_query_range() local
2777 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_query_range()
2779 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_volume_query_range()
2781 hm.u.c.attribute = HPI_VOLUME_RANGE; in hpi_volume_query_range()
2783 hpi_send_recv(&hm, &hr); in hpi_volume_query_range()
2802 struct hpi_message hm; in hpi_volume_auto_fade_profile() local
2805 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_auto_fade_profile()
2807 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_volume_auto_fade_profile()
2810 memcpy(hm.u.c.an_log_value, an_stop_gain0_01dB, in hpi_volume_auto_fade_profile()
2813 hm.u.c.attribute = HPI_VOLUME_AUTOFADE; in hpi_volume_auto_fade_profile()
2814 hm.u.c.param1 = duration_ms; in hpi_volume_auto_fade_profile()
2815 hm.u.c.param2 = profile; in hpi_volume_auto_fade_profile()
2817 hpi_send_recv(&hm, &hr); in hpi_volume_auto_fade_profile()
2841 struct hpi_message hm; in hpi_vox_set_threshold() local
2843 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_set_threshold()
2845 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_vox_set_threshold()
2847 hm.u.c.attribute = HPI_VOX_THRESHOLD; in hpi_vox_set_threshold()
2849 hm.u.c.an_log_value[0] = an_gain0_01dB; in hpi_vox_set_threshold()
2851 hpi_send_recv(&hm, &hr); in hpi_vox_set_threshold()
2858 struct hpi_message hm; in hpi_vox_get_threshold() local
2860 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_get_threshold()
2862 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_vox_get_threshold()
2864 hm.u.c.attribute = HPI_VOX_THRESHOLD; in hpi_vox_get_threshold()
2866 hpi_send_recv(&hm, &hr); in hpi_vox_get_threshold()