Lines Matching refs:hm
99 struct hpi_message hm; 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()
111 struct hpi_message hm; 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()
123 struct hpi_message hm; in hpi_subsys_get_adapter() local
125 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_adapter()
127 hm.obj_index = (u16)iterator; in hpi_subsys_get_adapter()
128 hpi_send_recv(&hm, &hr); in hpi_subsys_get_adapter()
137 struct hpi_message hm; in hpi_adapter_open() local
139 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_open()
141 hm.adapter_index = adapter_index; in hpi_adapter_open()
143 hpi_send_recv(&hm, &hr); in hpi_adapter_open()
151 struct hpi_message hm; in hpi_adapter_close() local
153 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_close()
155 hm.adapter_index = adapter_index; in hpi_adapter_close()
157 hpi_send_recv(&hm, &hr); in hpi_adapter_close()
171 struct hpi_message hm; in hpi_adapter_set_mode_ex() local
174 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_mode_ex()
176 hm.adapter_index = adapter_index; in hpi_adapter_set_mode_ex()
177 hm.u.ax.mode.adapter_mode = adapter_mode; in hpi_adapter_set_mode_ex()
178 hm.u.ax.mode.query_or_set = query_or_set; in hpi_adapter_set_mode_ex()
179 hpi_send_recv(&hm, &hr); in hpi_adapter_set_mode_ex()
185 struct hpi_message hm; in hpi_adapter_get_mode() local
187 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_mode()
189 hm.adapter_index = adapter_index; in hpi_adapter_get_mode()
190 hpi_send_recv(&hm, &hr); in hpi_adapter_get_mode()
200 struct hpi_message hm; in hpi_adapter_get_info() local
202 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_info()
204 hm.adapter_index = adapter_index; in hpi_adapter_get_info()
206 hpi_send_recv(&hm, &hr); in hpi_adapter_get_info()
220 struct hpi_message hm; 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()
225 hm.adapter_index = adapter_index; in hpi_adapter_get_module_by_index()
226 hm.u.ax.module_info.index = module_index; in hpi_adapter_get_module_by_index()
228 hpi_send_recv(&hm, &hr); in hpi_adapter_get_module_by_index()
243 struct hpi_message hm; in hpi_adapter_set_property() local
245 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_property()
247 hm.adapter_index = adapter_index; in hpi_adapter_set_property()
248 hm.u.ax.property_set.property = property; in hpi_adapter_set_property()
249 hm.u.ax.property_set.parameter1 = parameter1; in hpi_adapter_set_property()
250 hm.u.ax.property_set.parameter2 = parameter2; in hpi_adapter_set_property()
252 hpi_send_recv(&hm, &hr); in hpi_adapter_set_property()
260 struct hpi_message hm; in hpi_adapter_get_property() local
262 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_property()
264 hm.adapter_index = adapter_index; in hpi_adapter_get_property()
265 hm.u.ax.property_set.property = property; in hpi_adapter_get_property()
267 hpi_send_recv(&hm, &hr); in hpi_adapter_get_property()
428 struct hpi_message hm; in hpi_outstream_open() local
430 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_open()
432 hm.adapter_index = adapter_index; in hpi_outstream_open()
433 hm.obj_index = outstream_index; in hpi_outstream_open()
435 hpi_send_recv(&hm, &hr); in hpi_outstream_open()
448 struct hpi_message hm; in hpi_outstream_close() local
451 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
453 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) 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()
460 hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index); 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()
465 hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index); in hpi_outstream_close()
466 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
475 struct hpi_message hm; in hpi_outstream_get_info_ex() local
477 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_get_info_ex()
479 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_get_info_ex()
482 hpi_send_recv(&hm, &hr); in hpi_outstream_get_info_ex()
501 struct hpi_message hm; in hpi_outstream_write_buf() local
503 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_write_buf()
505 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_write_buf()
507 hm.u.d.u.data.pb_data = (u8 *)pb_data; in hpi_outstream_write_buf()
508 hm.u.d.u.data.data_size = bytes_to_write; in hpi_outstream_write_buf()
510 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_write_buf()
512 hpi_send_recv(&hm, &hr); in hpi_outstream_write_buf()
519 struct hpi_message hm; in hpi_outstream_start() local
521 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_start()
523 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_start()
526 hpi_send_recv(&hm, &hr); in hpi_outstream_start()
533 struct hpi_message hm; in hpi_outstream_wait_start() local
535 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_wait_start()
537 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_wait_start()
540 hpi_send_recv(&hm, &hr); in hpi_outstream_wait_start()
547 struct hpi_message hm; in hpi_outstream_stop() local
549 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_stop()
551 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_stop()
554 hpi_send_recv(&hm, &hr); in hpi_outstream_stop()
561 struct hpi_message hm; in hpi_outstream_sinegen() local
563 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_sinegen()
565 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_sinegen()
568 hpi_send_recv(&hm, &hr); in hpi_outstream_sinegen()
575 struct hpi_message hm; in hpi_outstream_reset() local
577 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_reset()
579 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_reset()
582 hpi_send_recv(&hm, &hr); in hpi_outstream_reset()
589 struct hpi_message hm; in hpi_outstream_query_format() local
592 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_query_format()
594 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_query_format()
597 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_query_format()
599 hpi_send_recv(&hm, &hr); in hpi_outstream_query_format()
606 struct hpi_message hm; in hpi_outstream_set_format() local
609 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_format()
611 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_format()
614 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_set_format()
616 hpi_send_recv(&hm, &hr); in hpi_outstream_set_format()
623 struct hpi_message hm; in hpi_outstream_set_velocity() local
626 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_velocity()
628 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_velocity()
630 hm.u.d.u.velocity = velocity; in hpi_outstream_set_velocity()
632 hpi_send_recv(&hm, &hr); in hpi_outstream_set_velocity()
640 struct hpi_message hm; 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()
645 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_punch_in_out()
648 hm.u.d.u.pio.punch_in_sample = punch_in_sample; in hpi_outstream_set_punch_in_out()
649 hm.u.d.u.pio.punch_out_sample = punch_out_sample; in hpi_outstream_set_punch_in_out()
651 hpi_send_recv(&hm, &hr); in hpi_outstream_set_punch_in_out()
658 struct hpi_message hm; in hpi_outstream_ancillary_reset() local
661 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_reset()
663 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_reset()
665 hm.u.d.u.data.format.channels = mode; in hpi_outstream_ancillary_reset()
666 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_reset()
672 struct hpi_message hm; in hpi_outstream_ancillary_get_info() local
675 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_get_info()
677 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_get_info()
679 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_get_info()
694 struct hpi_message hm; in hpi_outstream_ancillary_read() local
697 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_read()
699 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_read()
701 hm.u.d.u.data.pb_data = (u8 *)p_anc_frame_buffer; in hpi_outstream_ancillary_read()
702 hm.u.d.u.data.data_size = in hpi_outstream_ancillary_read()
705 if (hm.u.d.u.data.data_size <= anc_frame_buffer_size_in_bytes) in hpi_outstream_ancillary_read()
706 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_read()
714 struct hpi_message hm; in hpi_outstream_set_time_scale() local
717 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_time_scale()
719 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_time_scale()
722 hm.u.d.u.time_scale = time_scale; in hpi_outstream_set_time_scale()
724 hpi_send_recv(&hm, &hr); in hpi_outstream_set_time_scale()
731 struct hpi_message hm; in hpi_outstream_host_buffer_allocate() local
734 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_allocate()
736 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_allocate()
738 hm.u.d.u.data.data_size = size_in_bytes; in hpi_outstream_host_buffer_allocate()
739 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_allocate()
746 struct hpi_message hm; 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()
751 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_get_info()
753 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_get_info()
766 struct hpi_message hm; in hpi_outstream_host_buffer_free() local
769 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_free()
771 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_free()
773 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_free()
779 struct hpi_message hm; in hpi_outstream_group_add() local
784 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_add()
787 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_add()
791 &hm.u.d.u.stream.stream_index)) in hpi_outstream_group_add()
798 hm.u.d.u.stream.object_type = c_obj_type; in hpi_outstream_group_add()
803 if (adapter != hm.adapter_index) in hpi_outstream_group_add()
806 hpi_send_recv(&hm, &hr); in hpi_outstream_group_add()
813 struct hpi_message hm; in hpi_outstream_group_get_map() local
816 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_get_map()
818 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_get_map()
820 hpi_send_recv(&hm, &hr); in hpi_outstream_group_get_map()
832 struct hpi_message hm; in hpi_outstream_group_reset() local
835 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_reset()
837 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_reset()
839 hpi_send_recv(&hm, &hr); in hpi_outstream_group_reset()
845 struct hpi_message hm; in hpi_instream_open() local
848 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_open()
850 hm.adapter_index = adapter_index; in hpi_instream_open()
851 hm.obj_index = instream_index; in hpi_instream_open()
853 hpi_send_recv(&hm, &hr); in hpi_instream_open()
867 struct hpi_message hm; in hpi_instream_close() local
870 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
872 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) 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()
878 hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index); 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()
883 hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index); in hpi_instream_close()
884 hpi_send_recv(&hm, &hr); in hpi_instream_close()
892 struct hpi_message hm; in hpi_instream_query_format() local
895 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_query_format()
897 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_query_format()
899 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_instream_query_format()
901 hpi_send_recv(&hm, &hr); in hpi_instream_query_format()
908 struct hpi_message hm; in hpi_instream_set_format() local
911 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_set_format()
913 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_set_format()
915 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_instream_set_format()
917 hpi_send_recv(&hm, &hr); in hpi_instream_set_format()
924 struct hpi_message hm; in hpi_instream_read_buf() local
927 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_read_buf()
929 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_read_buf()
931 hm.u.d.u.data.data_size = bytes_to_read; in hpi_instream_read_buf()
932 hm.u.d.u.data.pb_data = pb_data; in hpi_instream_read_buf()
934 hpi_send_recv(&hm, &hr); in hpi_instream_read_buf()
941 struct hpi_message hm; in hpi_instream_start() local
944 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_start()
946 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_start()
949 hpi_send_recv(&hm, &hr); in hpi_instream_start()
956 struct hpi_message hm; in hpi_instream_wait_start() local
959 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_wait_start()
961 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_wait_start()
964 hpi_send_recv(&hm, &hr); in hpi_instream_wait_start()
971 struct hpi_message hm; in hpi_instream_stop() local
974 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_stop()
976 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_stop()
979 hpi_send_recv(&hm, &hr); in hpi_instream_stop()
986 struct hpi_message hm; in hpi_instream_reset() local
989 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_reset()
991 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_reset()
994 hpi_send_recv(&hm, &hr); in hpi_instream_reset()
1003 struct hpi_message hm; in hpi_instream_get_info_ex() local
1005 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_get_info_ex()
1007 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_get_info_ex()
1010 hpi_send_recv(&hm, &hr); in hpi_instream_get_info_ex()
1029 struct hpi_message hm; in hpi_instream_ancillary_reset() local
1031 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_reset()
1033 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_reset()
1035 hm.u.d.u.data.format.attributes = bytes_per_frame; in hpi_instream_ancillary_reset()
1036 hm.u.d.u.data.format.format = (mode << 8) | (alignment & 0xff); in hpi_instream_ancillary_reset()
1037 hm.u.d.u.data.format.channels = idle_bit; in hpi_instream_ancillary_reset()
1038 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_reset()
1044 struct hpi_message hm; in hpi_instream_ancillary_get_info() local
1046 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_get_info()
1048 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_get_info()
1050 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_get_info()
1064 struct hpi_message hm; in hpi_instream_ancillary_write() local
1067 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_write()
1069 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_write()
1071 hm.u.d.u.data.pb_data = (u8 *)p_anc_frame_buffer; in hpi_instream_ancillary_write()
1072 hm.u.d.u.data.data_size = in hpi_instream_ancillary_write()
1075 if (hm.u.d.u.data.data_size <= anc_frame_buffer_size_in_bytes) in hpi_instream_ancillary_write()
1076 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_write()
1085 struct hpi_message hm; in hpi_instream_host_buffer_allocate() local
1088 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_allocate()
1090 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_allocate()
1092 hm.u.d.u.data.data_size = size_in_bytes; in hpi_instream_host_buffer_allocate()
1093 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_allocate()
1100 struct hpi_message hm; 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()
1105 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_get_info()
1107 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_get_info()
1121 struct hpi_message hm; in hpi_instream_host_buffer_free() local
1124 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_free()
1126 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_free()
1128 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_free()
1134 struct hpi_message hm; in hpi_instream_group_add() local
1139 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_add()
1143 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_add()
1147 &hm.u.d.u.stream.stream_index)) in hpi_instream_group_add()
1155 hm.u.d.u.stream.object_type = c_obj_type; in hpi_instream_group_add()
1161 if (adapter != hm.adapter_index) in hpi_instream_group_add()
1164 hpi_send_recv(&hm, &hr); in hpi_instream_group_add()
1171 struct hpi_message hm; in hpi_instream_group_get_map() local
1174 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_get_map()
1176 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_get_map()
1178 hpi_send_recv(&hm, &hr); in hpi_instream_group_get_map()
1190 struct hpi_message hm; in hpi_instream_group_reset() local
1193 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_reset()
1195 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_reset()
1197 hpi_send_recv(&hm, &hr); in hpi_instream_group_reset()
1203 struct hpi_message hm; in hpi_mixer_open() local
1205 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_OPEN); in hpi_mixer_open()
1206 hm.adapter_index = adapter_index; in hpi_mixer_open()
1208 hpi_send_recv(&hm, &hr); in hpi_mixer_open()
1221 struct hpi_message hm; in hpi_mixer_close() local
1224 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE); in hpi_mixer_close()
1225 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_close()
1228 hpi_send_recv(&hm, &hr); in hpi_mixer_close()
1236 struct hpi_message hm; in hpi_mixer_get_control() local
1238 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, in hpi_mixer_get_control()
1240 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_get_control()
1242 hm.u.m.node_type1 = src_node_type; in hpi_mixer_get_control()
1243 hm.u.m.node_index1 = src_node_type_index; in hpi_mixer_get_control()
1244 hm.u.m.node_type2 = dst_node_type; in hpi_mixer_get_control()
1245 hm.u.m.node_index2 = dst_node_type_index; in hpi_mixer_get_control()
1246 hm.u.m.control_type = control_type; in hpi_mixer_get_control()
1248 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control()
1253 hm.adapter_index, hr.u.m.control_index); in hpi_mixer_get_control()
1263 struct hpi_message hm; 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()
1267 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_get_control_by_index()
1269 hm.u.m.control_index = control_index; in hpi_mixer_get_control_by_index()
1270 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control_by_index()
1286 hm.adapter_index, control_index); in hpi_mixer_get_control_by_index()
1296 struct hpi_message hm; in hpi_mixer_store() local
1298 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_STORE); in hpi_mixer_store()
1299 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_store()
1301 hm.u.mx.store.command = command; in hpi_mixer_store()
1302 hm.u.mx.store.index = index; in hpi_mixer_store()
1303 hpi_send_recv(&hm, &hr); in hpi_mixer_store()
1311 struct hpi_message hm; in hpi_control_param_set() local
1314 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_set()
1316 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_param_set()
1318 hm.u.c.attribute = attrib; in hpi_control_param_set()
1319 hm.u.c.param1 = param1; in hpi_control_param_set()
1320 hm.u.c.param2 = param2; in hpi_control_param_set()
1321 hpi_send_recv(&hm, &hr); in hpi_control_param_set()
1328 struct hpi_message hm; in hpi_control_log_set2() local
1331 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_set2()
1333 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_log_set2()
1335 hm.u.c.attribute = attrib; in hpi_control_log_set2()
1336 hm.u.c.an_log_value[0] = sv0; in hpi_control_log_set2()
1337 hm.u.c.an_log_value[1] = sv1; in hpi_control_log_set2()
1338 hpi_send_recv(&hm, &hr); in hpi_control_log_set2()
1346 struct hpi_message hm; in hpi_control_param_get() local
1349 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_get()
1351 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_param_get()
1353 hm.u.c.attribute = attrib; in hpi_control_param_get()
1354 hm.u.c.param1 = param1; in hpi_control_param_get()
1355 hm.u.c.param2 = param2; in hpi_control_param_get()
1356 hpi_send_recv(&hm, &hr); in hpi_control_param_get()
1373 struct hpi_message hm; in hpi_control_log_get2() local
1375 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_get2()
1377 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_log_get2()
1379 hm.u.c.attribute = attrib; in hpi_control_log_get2()
1381 hpi_send_recv(&hm, &hr); in hpi_control_log_get2()
1392 struct hpi_message hm; in hpi_control_query() local
1395 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_query()
1397 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_query()
1400 hm.u.c.attribute = attrib; in hpi_control_query()
1401 hm.u.c.param1 = index; in hpi_control_query()
1402 hm.u.c.param2 = param; in hpi_control_query()
1404 hpi_send_recv(&hm, &hr); in hpi_control_query()
1422 struct hpi_message hm; in hpi_control_get_string() local
1425 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_get_string()
1427 if (hpi_handle_indexes(h_control, &hm.adapter_index, in hpi_control_get_string()
1428 &hm.obj_index)) in hpi_control_get_string()
1430 hm.u.c.attribute = attribute; in hpi_control_get_string()
1431 hm.u.c.param1 = sub_string_index; in hpi_control_get_string()
1432 hm.u.c.param2 = 0; in hpi_control_get_string()
1433 hpi_send_recv(&hm, &hr); in hpi_control_get_string()
1506 struct hpi_message hm; 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()
1510 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_aesebu_receiver_get_user_data()
1512 hm.u.c.attribute = HPI_AESEBURX_USERDATA; in hpi_aesebu_receiver_get_user_data()
1513 hm.u.c.param1 = index; in hpi_aesebu_receiver_get_user_data()
1515 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_user_data()
1525 struct hpi_message hm; 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()
1529 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_aesebu_receiver_get_channel_status()
1531 hm.u.c.attribute = HPI_AESEBURX_CHANNELSTATUS; in hpi_aesebu_receiver_get_channel_status()
1532 hm.u.c.param1 = index; in hpi_aesebu_receiver_get_channel_status()
1534 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_channel_status()
1622 struct hpi_message hm; in hpi_bitstream_get_activity() local
1624 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_bitstream_get_activity()
1626 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_bitstream_get_activity()
1628 hm.u.c.attribute = HPI_BITSTREAM_ACTIVITY; in hpi_bitstream_get_activity()
1629 hpi_send_recv(&hm, &hr); in hpi_bitstream_get_activity()
1667 struct hpi_msg_cobranet_hmiwrite hm; in hpi_cobranet_hmi_write() local
1670 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr, sizeof(hr), in hpi_cobranet_hmi_write()
1673 if (hpi_handle_indexes(h_control, &hm.h.adapter_index, in hpi_cobranet_hmi_write()
1674 &hm.h.obj_index)) in hpi_cobranet_hmi_write()
1677 if (byte_count > sizeof(hm.bytes)) in hpi_cobranet_hmi_write()
1680 hm.p.attribute = HPI_COBRANET_SET; in hpi_cobranet_hmi_write()
1681 hm.p.byte_count = byte_count; in hpi_cobranet_hmi_write()
1682 hm.p.hmi_address = hmi_address; in hpi_cobranet_hmi_write()
1683 memcpy(hm.bytes, pb_data, byte_count); in hpi_cobranet_hmi_write()
1684 hm.h.size = (u16)(sizeof(hm.h) + sizeof(hm.p) + byte_count); in hpi_cobranet_hmi_write()
1686 hpi_send_recvV1(&hm.h, &hr); in hpi_cobranet_hmi_write()
1693 struct hpi_msg_cobranet_hmiread hm; in hpi_cobranet_hmi_read() local
1696 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr.h, sizeof(hr), in hpi_cobranet_hmi_read()
1699 if (hpi_handle_indexes(h_control, &hm.h.adapter_index, in hpi_cobranet_hmi_read()
1700 &hm.h.obj_index)) in hpi_cobranet_hmi_read()
1706 hm.p.attribute = HPI_COBRANET_GET; in hpi_cobranet_hmi_read()
1707 hm.p.byte_count = max_byte_count; in hpi_cobranet_hmi_read()
1708 hm.p.hmi_address = hmi_address; in hpi_cobranet_hmi_read()
1710 hpi_send_recvV1(&hm.h, &hr.h); in hpi_cobranet_hmi_read()
1730 struct hpi_message hm; in hpi_cobranet_hmi_get_status() local
1733 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_cobranet_hmi_get_status()
1735 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_cobranet_hmi_get_status()
1738 hm.u.c.attribute = HPI_COBRANET_GET_STATUS; in hpi_cobranet_hmi_get_status()
1740 hpi_send_recv(&hm, &hr); in hpi_cobranet_hmi_get_status()
1917 struct hpi_message hm; in hpi_compander_set_threshold() local
1920 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_set_threshold()
1922 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_compander_set_threshold()
1924 hm.u.c.attribute = HPI_COMPANDER_THRESHOLD; in hpi_compander_set_threshold()
1925 hm.u.c.param2 = index; in hpi_compander_set_threshold()
1926 hm.u.c.an_log_value[0] = threshold0_01dB; in hpi_compander_set_threshold()
1928 hpi_send_recv(&hm, &hr); in hpi_compander_set_threshold()
1936 struct hpi_message hm; in hpi_compander_get_threshold() local
1939 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_get_threshold()
1941 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_compander_get_threshold()
1943 hm.u.c.attribute = HPI_COMPANDER_THRESHOLD; in hpi_compander_get_threshold()
1944 hm.u.c.param2 = index; in hpi_compander_get_threshold()
1946 hpi_send_recv(&hm, &hr); in hpi_compander_get_threshold()
1967 struct hpi_message hm; in hpi_level_query_range() local
1970 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_level_query_range()
1972 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_level_query_range()
1974 hm.u.c.attribute = HPI_LEVEL_RANGE; in hpi_level_query_range()
1976 hpi_send_recv(&hm, &hr); in hpi_level_query_range()
2016 struct hpi_message hm; in hpi_meter_get_peak() local
2019 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_peak()
2021 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_meter_get_peak()
2023 hm.obj_index = hm.obj_index; in hpi_meter_get_peak()
2024 hm.u.c.attribute = HPI_METER_PEAK; in hpi_meter_get_peak()
2026 hpi_send_recv(&hm, &hr); in hpi_meter_get_peak()
2042 struct hpi_message hm; in hpi_meter_get_rms() local
2045 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_rms()
2047 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_meter_get_rms()
2049 hm.u.c.attribute = HPI_METER_RMS; in hpi_meter_get_rms()
2051 hpi_send_recv(&hm, &hr); in hpi_meter_get_rms()
2151 struct hpi_message hm; in hpi_multiplexer_query_source() local
2153 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_multiplexer_query_source()
2155 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_multiplexer_query_source()
2157 hm.u.c.attribute = HPI_MULTIPLEXER_QUERYSOURCE; in hpi_multiplexer_query_source()
2158 hm.u.c.param1 = index; in hpi_multiplexer_query_source()
2160 hpi_send_recv(&hm, &hr); in hpi_multiplexer_query_source()
2194 struct hpi_message hm; in hpi_parametric_eq_get_band() local
2197 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_band()
2199 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_get_band()
2201 hm.u.c.attribute = HPI_EQUALIZER_FILTER; in hpi_parametric_eq_get_band()
2202 hm.u.c.param2 = index; in hpi_parametric_eq_get_band()
2204 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_band()
2221 struct hpi_message hm; in hpi_parametric_eq_set_band() local
2224 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_set_band()
2226 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_set_band()
2229 hm.u.c.param1 = frequency_hz; in hpi_parametric_eq_set_band()
2230 hm.u.c.param2 = (index & 0xFFFFL) + ((u32)type << 16); in hpi_parametric_eq_set_band()
2231 hm.u.c.an_log_value[0] = gain0_01dB; in hpi_parametric_eq_set_band()
2232 hm.u.c.an_log_value[1] = q100; in hpi_parametric_eq_set_band()
2233 hm.u.c.attribute = HPI_EQUALIZER_FILTER; in hpi_parametric_eq_set_band()
2235 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_set_band()
2243 struct hpi_message hm; in hpi_parametric_eq_get_coeffs() local
2246 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_coeffs()
2248 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_get_coeffs()
2250 hm.u.c.attribute = HPI_EQUALIZER_COEFFICIENTS; in hpi_parametric_eq_get_coeffs()
2251 hm.u.c.param2 = index; in hpi_parametric_eq_get_coeffs()
2253 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_coeffs()
2557 struct hpi_message hm; in hpi_tuner_get_rf_level() local
2560 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rf_level()
2562 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_rf_level()
2564 hm.u.cu.attribute = HPI_TUNER_LEVEL_AVG; in hpi_tuner_get_rf_level()
2565 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rf_level()
2573 struct hpi_message hm; 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()
2578 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_raw_rf_level()
2580 hm.u.cu.attribute = HPI_TUNER_LEVEL_RAW; in hpi_tuner_get_raw_rf_level()
2581 hpi_send_recv(&hm, &hr); in hpi_tuner_get_raw_rf_level()
2686 struct hpi_message hm; in hpi_tuner_get_rds() local
2689 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rds()
2691 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_rds()
2693 hm.u.c.attribute = HPI_TUNER_RDS; in hpi_tuner_get_rds()
2694 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rds()
2772 struct hpi_message hm; in hpi_volume_query_range() local
2775 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_query_range()
2777 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_volume_query_range()
2779 hm.u.c.attribute = HPI_VOLUME_RANGE; in hpi_volume_query_range()
2781 hpi_send_recv(&hm, &hr); in hpi_volume_query_range()
2800 struct hpi_message hm; in hpi_volume_auto_fade_profile() local
2803 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_auto_fade_profile()
2805 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_volume_auto_fade_profile()
2808 memcpy(hm.u.c.an_log_value, an_stop_gain0_01dB, in hpi_volume_auto_fade_profile()
2811 hm.u.c.attribute = HPI_VOLUME_AUTOFADE; in hpi_volume_auto_fade_profile()
2812 hm.u.c.param1 = duration_ms; in hpi_volume_auto_fade_profile()
2813 hm.u.c.param2 = profile; in hpi_volume_auto_fade_profile()
2815 hpi_send_recv(&hm, &hr); in hpi_volume_auto_fade_profile()
2839 struct hpi_message hm; in hpi_vox_set_threshold() local
2841 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_set_threshold()
2843 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_vox_set_threshold()
2845 hm.u.c.attribute = HPI_VOX_THRESHOLD; in hpi_vox_set_threshold()
2847 hm.u.c.an_log_value[0] = an_gain0_01dB; in hpi_vox_set_threshold()
2849 hpi_send_recv(&hm, &hr); in hpi_vox_set_threshold()
2856 struct hpi_message hm; in hpi_vox_get_threshold() local
2858 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_get_threshold()
2860 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_vox_get_threshold()
2862 hm.u.c.attribute = HPI_VOX_THRESHOLD; in hpi_vox_get_threshold()
2864 hpi_send_recv(&hm, &hr); in hpi_vox_get_threshold()