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()
111 struct hpi_message hm; in hpi_subsys_create_adapter() local
114 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_create_adapter()
116 hm.u.s.resource = *p_resource; in hpi_subsys_create_adapter()
118 hpi_send_recv(&hm, &hr); in hpi_subsys_create_adapter()
126 struct hpi_message hm; in hpi_subsys_delete_adapter() local
128 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_delete_adapter()
130 hm.obj_index = adapter_index; in hpi_subsys_delete_adapter()
131 hpi_send_recv(&hm, &hr); in hpi_subsys_delete_adapter()
137 struct hpi_message hm; in hpi_subsys_get_num_adapters() local
139 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_num_adapters()
141 hpi_send_recv(&hm, &hr); in hpi_subsys_get_num_adapters()
149 struct hpi_message hm; in hpi_subsys_get_adapter() local
151 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in hpi_subsys_get_adapter()
153 hm.obj_index = (u16)iterator; in hpi_subsys_get_adapter()
154 hpi_send_recv(&hm, &hr); in hpi_subsys_get_adapter()
163 struct hpi_message hm; in hpi_adapter_open() local
165 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_open()
167 hm.adapter_index = adapter_index; in hpi_adapter_open()
169 hpi_send_recv(&hm, &hr); in hpi_adapter_open()
177 struct hpi_message hm; in hpi_adapter_close() local
179 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_close()
181 hm.adapter_index = adapter_index; in hpi_adapter_close()
183 hpi_send_recv(&hm, &hr); in hpi_adapter_close()
197 struct hpi_message hm; in hpi_adapter_set_mode_ex() local
200 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_mode_ex()
202 hm.adapter_index = adapter_index; in hpi_adapter_set_mode_ex()
203 hm.u.ax.mode.adapter_mode = adapter_mode; in hpi_adapter_set_mode_ex()
204 hm.u.ax.mode.query_or_set = query_or_set; in hpi_adapter_set_mode_ex()
205 hpi_send_recv(&hm, &hr); in hpi_adapter_set_mode_ex()
211 struct hpi_message hm; in hpi_adapter_get_mode() local
213 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_mode()
215 hm.adapter_index = adapter_index; in hpi_adapter_get_mode()
216 hpi_send_recv(&hm, &hr); in hpi_adapter_get_mode()
226 struct hpi_message hm; in hpi_adapter_get_info() local
228 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_info()
230 hm.adapter_index = adapter_index; in hpi_adapter_get_info()
232 hpi_send_recv(&hm, &hr); in hpi_adapter_get_info()
246 struct hpi_message hm; in hpi_adapter_get_module_by_index() local
249 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_module_by_index()
251 hm.adapter_index = adapter_index; in hpi_adapter_get_module_by_index()
252 hm.u.ax.module_info.index = module_index; in hpi_adapter_get_module_by_index()
254 hpi_send_recv(&hm, &hr); in hpi_adapter_get_module_by_index()
269 struct hpi_message hm; in hpi_adapter_set_property() local
271 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_set_property()
273 hm.adapter_index = adapter_index; in hpi_adapter_set_property()
274 hm.u.ax.property_set.property = property; in hpi_adapter_set_property()
275 hm.u.ax.property_set.parameter1 = parameter1; in hpi_adapter_set_property()
276 hm.u.ax.property_set.parameter2 = parameter2; in hpi_adapter_set_property()
278 hpi_send_recv(&hm, &hr); in hpi_adapter_set_property()
286 struct hpi_message hm; in hpi_adapter_get_property() local
288 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in hpi_adapter_get_property()
290 hm.adapter_index = adapter_index; in hpi_adapter_get_property()
291 hm.u.ax.property_set.property = property; in hpi_adapter_get_property()
293 hpi_send_recv(&hm, &hr); in hpi_adapter_get_property()
454 struct hpi_message hm; in hpi_outstream_open() local
456 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_open()
458 hm.adapter_index = adapter_index; in hpi_outstream_open()
459 hm.obj_index = outstream_index; in hpi_outstream_open()
461 hpi_send_recv(&hm, &hr); in hpi_outstream_open()
474 struct hpi_message hm; in hpi_outstream_close() local
477 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
479 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_close()
482 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
484 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
486 hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index); in hpi_outstream_close()
487 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
489 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_close()
491 hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index); in hpi_outstream_close()
492 hpi_send_recv(&hm, &hr); in hpi_outstream_close()
501 struct hpi_message hm; in hpi_outstream_get_info_ex() local
503 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_get_info_ex()
505 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_get_info_ex()
508 hpi_send_recv(&hm, &hr); in hpi_outstream_get_info_ex()
527 struct hpi_message hm; in hpi_outstream_write_buf() local
529 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_write_buf()
531 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_write_buf()
533 hm.u.d.u.data.pb_data = (u8 *)pb_data; in hpi_outstream_write_buf()
534 hm.u.d.u.data.data_size = bytes_to_write; in hpi_outstream_write_buf()
536 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_write_buf()
538 hpi_send_recv(&hm, &hr); in hpi_outstream_write_buf()
545 struct hpi_message hm; in hpi_outstream_start() local
547 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_start()
549 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_start()
552 hpi_send_recv(&hm, &hr); in hpi_outstream_start()
559 struct hpi_message hm; in hpi_outstream_wait_start() local
561 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_wait_start()
563 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_wait_start()
566 hpi_send_recv(&hm, &hr); in hpi_outstream_wait_start()
573 struct hpi_message hm; in hpi_outstream_stop() local
575 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_stop()
577 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_stop()
580 hpi_send_recv(&hm, &hr); in hpi_outstream_stop()
587 struct hpi_message hm; in hpi_outstream_sinegen() local
589 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_sinegen()
591 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_sinegen()
594 hpi_send_recv(&hm, &hr); in hpi_outstream_sinegen()
601 struct hpi_message hm; in hpi_outstream_reset() local
603 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_reset()
605 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_reset()
608 hpi_send_recv(&hm, &hr); in hpi_outstream_reset()
615 struct hpi_message hm; in hpi_outstream_query_format() local
618 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_query_format()
620 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_query_format()
623 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_query_format()
625 hpi_send_recv(&hm, &hr); in hpi_outstream_query_format()
632 struct hpi_message hm; in hpi_outstream_set_format() local
635 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_format()
637 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_format()
640 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_outstream_set_format()
642 hpi_send_recv(&hm, &hr); in hpi_outstream_set_format()
649 struct hpi_message hm; in hpi_outstream_set_velocity() local
652 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_velocity()
654 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_velocity()
656 hm.u.d.u.velocity = velocity; in hpi_outstream_set_velocity()
658 hpi_send_recv(&hm, &hr); in hpi_outstream_set_velocity()
666 struct hpi_message hm; in hpi_outstream_set_punch_in_out() local
669 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_punch_in_out()
671 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_punch_in_out()
674 hm.u.d.u.pio.punch_in_sample = punch_in_sample; in hpi_outstream_set_punch_in_out()
675 hm.u.d.u.pio.punch_out_sample = punch_out_sample; in hpi_outstream_set_punch_in_out()
677 hpi_send_recv(&hm, &hr); in hpi_outstream_set_punch_in_out()
684 struct hpi_message hm; in hpi_outstream_ancillary_reset() local
687 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_reset()
689 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_reset()
691 hm.u.d.u.data.format.channels = mode; in hpi_outstream_ancillary_reset()
692 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_reset()
698 struct hpi_message hm; in hpi_outstream_ancillary_get_info() local
701 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_get_info()
703 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_get_info()
705 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_get_info()
720 struct hpi_message hm; in hpi_outstream_ancillary_read() local
723 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_ancillary_read()
725 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_ancillary_read()
727 hm.u.d.u.data.pb_data = (u8 *)p_anc_frame_buffer; in hpi_outstream_ancillary_read()
728 hm.u.d.u.data.data_size = in hpi_outstream_ancillary_read()
731 if (hm.u.d.u.data.data_size <= anc_frame_buffer_size_in_bytes) in hpi_outstream_ancillary_read()
732 hpi_send_recv(&hm, &hr); in hpi_outstream_ancillary_read()
740 struct hpi_message hm; in hpi_outstream_set_time_scale() local
743 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_set_time_scale()
745 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_set_time_scale()
748 hm.u.d.u.time_scale = time_scale; in hpi_outstream_set_time_scale()
750 hpi_send_recv(&hm, &hr); in hpi_outstream_set_time_scale()
757 struct hpi_message hm; in hpi_outstream_host_buffer_allocate() local
760 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_allocate()
762 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_allocate()
764 hm.u.d.u.data.data_size = size_in_bytes; in hpi_outstream_host_buffer_allocate()
765 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_allocate()
772 struct hpi_message hm; in hpi_outstream_host_buffer_get_info() local
775 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_get_info()
777 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_get_info()
779 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_get_info()
792 struct hpi_message hm; in hpi_outstream_host_buffer_free() local
795 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_host_buffer_free()
797 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_host_buffer_free()
799 hpi_send_recv(&hm, &hr); in hpi_outstream_host_buffer_free()
805 struct hpi_message hm; in hpi_outstream_group_add() local
810 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_add()
813 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_add()
817 &hm.u.d.u.stream.stream_index)) in hpi_outstream_group_add()
824 hm.u.d.u.stream.object_type = c_obj_type; in hpi_outstream_group_add()
829 if (adapter != hm.adapter_index) in hpi_outstream_group_add()
832 hpi_send_recv(&hm, &hr); in hpi_outstream_group_add()
839 struct hpi_message hm; in hpi_outstream_group_get_map() local
842 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_get_map()
844 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_get_map()
846 hpi_send_recv(&hm, &hr); in hpi_outstream_group_get_map()
858 struct hpi_message hm; in hpi_outstream_group_reset() local
861 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, in hpi_outstream_group_reset()
863 if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index)) in hpi_outstream_group_reset()
865 hpi_send_recv(&hm, &hr); in hpi_outstream_group_reset()
871 struct hpi_message hm; in hpi_instream_open() local
874 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_open()
876 hm.adapter_index = adapter_index; in hpi_instream_open()
877 hm.obj_index = instream_index; in hpi_instream_open()
879 hpi_send_recv(&hm, &hr); in hpi_instream_open()
893 struct hpi_message hm; in hpi_instream_close() local
896 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
898 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_close()
900 hpi_send_recv(&hm, &hr); in hpi_instream_close()
902 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
904 hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index); in hpi_instream_close()
905 hpi_send_recv(&hm, &hr); in hpi_instream_close()
907 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_close()
909 hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index); in hpi_instream_close()
910 hpi_send_recv(&hm, &hr); in hpi_instream_close()
918 struct hpi_message hm; in hpi_instream_query_format() local
921 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_query_format()
923 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_query_format()
925 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_instream_query_format()
927 hpi_send_recv(&hm, &hr); in hpi_instream_query_format()
934 struct hpi_message hm; in hpi_instream_set_format() local
937 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_set_format()
939 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_set_format()
941 hpi_format_to_msg(&hm.u.d.u.data.format, p_format); in hpi_instream_set_format()
943 hpi_send_recv(&hm, &hr); in hpi_instream_set_format()
950 struct hpi_message hm; in hpi_instream_read_buf() local
953 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_read_buf()
955 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_read_buf()
957 hm.u.d.u.data.data_size = bytes_to_read; in hpi_instream_read_buf()
958 hm.u.d.u.data.pb_data = pb_data; in hpi_instream_read_buf()
960 hpi_send_recv(&hm, &hr); in hpi_instream_read_buf()
967 struct hpi_message hm; in hpi_instream_start() local
970 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_start()
972 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_start()
975 hpi_send_recv(&hm, &hr); in hpi_instream_start()
982 struct hpi_message hm; in hpi_instream_wait_start() local
985 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_wait_start()
987 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_wait_start()
990 hpi_send_recv(&hm, &hr); in hpi_instream_wait_start()
997 struct hpi_message hm; in hpi_instream_stop() local
1000 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_stop()
1002 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_stop()
1005 hpi_send_recv(&hm, &hr); in hpi_instream_stop()
1012 struct hpi_message hm; in hpi_instream_reset() local
1015 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_reset()
1017 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_reset()
1020 hpi_send_recv(&hm, &hr); in hpi_instream_reset()
1029 struct hpi_message hm; in hpi_instream_get_info_ex() local
1031 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_get_info_ex()
1033 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_get_info_ex()
1036 hpi_send_recv(&hm, &hr); in hpi_instream_get_info_ex()
1055 struct hpi_message hm; in hpi_instream_ancillary_reset() local
1057 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_reset()
1059 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_reset()
1061 hm.u.d.u.data.format.attributes = bytes_per_frame; in hpi_instream_ancillary_reset()
1062 hm.u.d.u.data.format.format = (mode << 8) | (alignment & 0xff); in hpi_instream_ancillary_reset()
1063 hm.u.d.u.data.format.channels = idle_bit; in hpi_instream_ancillary_reset()
1064 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_reset()
1070 struct hpi_message hm; in hpi_instream_ancillary_get_info() local
1072 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_get_info()
1074 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_get_info()
1076 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_get_info()
1090 struct hpi_message hm; in hpi_instream_ancillary_write() local
1093 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_ancillary_write()
1095 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_ancillary_write()
1097 hm.u.d.u.data.pb_data = (u8 *)p_anc_frame_buffer; in hpi_instream_ancillary_write()
1098 hm.u.d.u.data.data_size = in hpi_instream_ancillary_write()
1101 if (hm.u.d.u.data.data_size <= anc_frame_buffer_size_in_bytes) in hpi_instream_ancillary_write()
1102 hpi_send_recv(&hm, &hr); in hpi_instream_ancillary_write()
1111 struct hpi_message hm; in hpi_instream_host_buffer_allocate() local
1114 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_allocate()
1116 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_allocate()
1118 hm.u.d.u.data.data_size = size_in_bytes; in hpi_instream_host_buffer_allocate()
1119 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_allocate()
1126 struct hpi_message hm; in hpi_instream_host_buffer_get_info() local
1129 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_get_info()
1131 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_get_info()
1133 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_get_info()
1147 struct hpi_message hm; in hpi_instream_host_buffer_free() local
1150 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_host_buffer_free()
1152 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_host_buffer_free()
1154 hpi_send_recv(&hm, &hr); in hpi_instream_host_buffer_free()
1160 struct hpi_message hm; in hpi_instream_group_add() local
1165 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_add()
1169 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_add()
1173 &hm.u.d.u.stream.stream_index)) in hpi_instream_group_add()
1181 hm.u.d.u.stream.object_type = c_obj_type; in hpi_instream_group_add()
1187 if (adapter != hm.adapter_index) in hpi_instream_group_add()
1190 hpi_send_recv(&hm, &hr); in hpi_instream_group_add()
1197 struct hpi_message hm; in hpi_instream_group_get_map() local
1200 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_get_map()
1202 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_get_map()
1204 hpi_send_recv(&hm, &hr); in hpi_instream_group_get_map()
1216 struct hpi_message hm; in hpi_instream_group_reset() local
1219 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, in hpi_instream_group_reset()
1221 if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) in hpi_instream_group_reset()
1223 hpi_send_recv(&hm, &hr); in hpi_instream_group_reset()
1229 struct hpi_message hm; in hpi_mixer_open() local
1231 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_OPEN); in hpi_mixer_open()
1232 hm.adapter_index = adapter_index; in hpi_mixer_open()
1234 hpi_send_recv(&hm, &hr); in hpi_mixer_open()
1247 struct hpi_message hm; in hpi_mixer_close() local
1250 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE); in hpi_mixer_close()
1251 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_close()
1254 hpi_send_recv(&hm, &hr); in hpi_mixer_close()
1262 struct hpi_message hm; in hpi_mixer_get_control() local
1264 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, in hpi_mixer_get_control()
1266 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_get_control()
1268 hm.u.m.node_type1 = src_node_type; in hpi_mixer_get_control()
1269 hm.u.m.node_index1 = src_node_type_index; in hpi_mixer_get_control()
1270 hm.u.m.node_type2 = dst_node_type; in hpi_mixer_get_control()
1271 hm.u.m.node_index2 = dst_node_type_index; in hpi_mixer_get_control()
1272 hm.u.m.control_type = control_type; in hpi_mixer_get_control()
1274 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control()
1279 hm.adapter_index, hr.u.m.control_index); in hpi_mixer_get_control()
1289 struct hpi_message hm; in hpi_mixer_get_control_by_index() local
1291 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, in hpi_mixer_get_control_by_index()
1293 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_get_control_by_index()
1295 hm.u.m.control_index = control_index; in hpi_mixer_get_control_by_index()
1296 hpi_send_recv(&hm, &hr); in hpi_mixer_get_control_by_index()
1312 hm.adapter_index, control_index); in hpi_mixer_get_control_by_index()
1322 struct hpi_message hm; in hpi_mixer_store() local
1324 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_STORE); in hpi_mixer_store()
1325 if (hpi_handle_indexes(h_mixer, &hm.adapter_index, NULL)) in hpi_mixer_store()
1327 hm.u.mx.store.command = command; in hpi_mixer_store()
1328 hm.u.mx.store.index = index; in hpi_mixer_store()
1329 hpi_send_recv(&hm, &hr); in hpi_mixer_store()
1337 struct hpi_message hm; in hpi_control_param_set() local
1340 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_set()
1342 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_param_set()
1344 hm.u.c.attribute = attrib; in hpi_control_param_set()
1345 hm.u.c.param1 = param1; in hpi_control_param_set()
1346 hm.u.c.param2 = param2; in hpi_control_param_set()
1347 hpi_send_recv(&hm, &hr); in hpi_control_param_set()
1354 struct hpi_message hm; in hpi_control_log_set2() local
1357 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_set2()
1359 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_log_set2()
1361 hm.u.c.attribute = attrib; in hpi_control_log_set2()
1362 hm.u.c.an_log_value[0] = sv0; in hpi_control_log_set2()
1363 hm.u.c.an_log_value[1] = sv1; in hpi_control_log_set2()
1364 hpi_send_recv(&hm, &hr); in hpi_control_log_set2()
1372 struct hpi_message hm; in hpi_control_param_get() local
1375 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_param_get()
1377 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_param_get()
1379 hm.u.c.attribute = attrib; in hpi_control_param_get()
1380 hm.u.c.param1 = param1; in hpi_control_param_get()
1381 hm.u.c.param2 = param2; in hpi_control_param_get()
1382 hpi_send_recv(&hm, &hr); in hpi_control_param_get()
1399 struct hpi_message hm; in hpi_control_log_get2() local
1401 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_log_get2()
1403 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_log_get2()
1405 hm.u.c.attribute = attrib; in hpi_control_log_get2()
1407 hpi_send_recv(&hm, &hr); in hpi_control_log_get2()
1418 struct hpi_message hm; in hpi_control_query() local
1421 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_query()
1423 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_control_query()
1426 hm.u.c.attribute = attrib; in hpi_control_query()
1427 hm.u.c.param1 = index; in hpi_control_query()
1428 hm.u.c.param2 = param; in hpi_control_query()
1430 hpi_send_recv(&hm, &hr); in hpi_control_query()
1448 struct hpi_message hm; in hpi_control_get_string() local
1451 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_control_get_string()
1453 if (hpi_handle_indexes(h_control, &hm.adapter_index, in hpi_control_get_string()
1454 &hm.obj_index)) in hpi_control_get_string()
1456 hm.u.c.attribute = attribute; in hpi_control_get_string()
1457 hm.u.c.param1 = sub_string_index; in hpi_control_get_string()
1458 hm.u.c.param2 = 0; in hpi_control_get_string()
1459 hpi_send_recv(&hm, &hr); in hpi_control_get_string()
1532 struct hpi_message hm; in hpi_aesebu_receiver_get_user_data() local
1534 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_aesebu_receiver_get_user_data()
1536 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_aesebu_receiver_get_user_data()
1538 hm.u.c.attribute = HPI_AESEBURX_USERDATA; in hpi_aesebu_receiver_get_user_data()
1539 hm.u.c.param1 = index; in hpi_aesebu_receiver_get_user_data()
1541 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_user_data()
1551 struct hpi_message hm; in hpi_aesebu_receiver_get_channel_status() local
1553 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_aesebu_receiver_get_channel_status()
1555 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_aesebu_receiver_get_channel_status()
1557 hm.u.c.attribute = HPI_AESEBURX_CHANNELSTATUS; in hpi_aesebu_receiver_get_channel_status()
1558 hm.u.c.param1 = index; in hpi_aesebu_receiver_get_channel_status()
1560 hpi_send_recv(&hm, &hr); in hpi_aesebu_receiver_get_channel_status()
1648 struct hpi_message hm; in hpi_bitstream_get_activity() local
1650 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_bitstream_get_activity()
1652 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_bitstream_get_activity()
1654 hm.u.c.attribute = HPI_BITSTREAM_ACTIVITY; in hpi_bitstream_get_activity()
1655 hpi_send_recv(&hm, &hr); in hpi_bitstream_get_activity()
1693 struct hpi_message hm; in hpi_cobranet_hmi_write() local
1696 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROLEX, in hpi_cobranet_hmi_write()
1698 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_cobranet_hmi_write()
1701 hm.u.cx.u.cobranet_data.byte_count = byte_count; in hpi_cobranet_hmi_write()
1702 hm.u.cx.u.cobranet_data.hmi_address = hmi_address; in hpi_cobranet_hmi_write()
1705 memcpy(hm.u.cx.u.cobranet_data.data, pb_data, byte_count); in hpi_cobranet_hmi_write()
1706 hm.u.cx.attribute = HPI_COBRANET_SET; in hpi_cobranet_hmi_write()
1708 hm.u.cx.u.cobranet_bigdata.pb_data = pb_data; in hpi_cobranet_hmi_write()
1709 hm.u.cx.attribute = HPI_COBRANET_SET_DATA; in hpi_cobranet_hmi_write()
1712 hpi_send_recv(&hm, &hr); in hpi_cobranet_hmi_write()
1720 struct hpi_message hm; in hpi_cobranet_hmi_read() local
1723 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROLEX, in hpi_cobranet_hmi_read()
1725 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_cobranet_hmi_read()
1728 hm.u.cx.u.cobranet_data.byte_count = max_byte_count; in hpi_cobranet_hmi_read()
1729 hm.u.cx.u.cobranet_data.hmi_address = hmi_address; in hpi_cobranet_hmi_read()
1732 hm.u.cx.attribute = HPI_COBRANET_GET; in hpi_cobranet_hmi_read()
1734 hm.u.cx.u.cobranet_bigdata.pb_data = pb_data; in hpi_cobranet_hmi_read()
1735 hm.u.cx.attribute = HPI_COBRANET_GET_DATA; in hpi_cobranet_hmi_read()
1738 hpi_send_recv(&hm, &hr); in hpi_cobranet_hmi_read()
1746 if (hm.u.cx.attribute == HPI_COBRANET_GET) { in hpi_cobranet_hmi_read()
1760 struct hpi_message hm; in hpi_cobranet_hmi_get_status() local
1763 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROLEX, in hpi_cobranet_hmi_get_status()
1765 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_cobranet_hmi_get_status()
1768 hm.u.cx.attribute = HPI_COBRANET_GET_STATUS; in hpi_cobranet_hmi_get_status()
1770 hpi_send_recv(&hm, &hr); in hpi_cobranet_hmi_get_status()
1947 struct hpi_message hm; in hpi_compander_set_threshold() local
1950 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_set_threshold()
1952 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_compander_set_threshold()
1954 hm.u.c.attribute = HPI_COMPANDER_THRESHOLD; in hpi_compander_set_threshold()
1955 hm.u.c.param2 = index; in hpi_compander_set_threshold()
1956 hm.u.c.an_log_value[0] = threshold0_01dB; in hpi_compander_set_threshold()
1958 hpi_send_recv(&hm, &hr); in hpi_compander_set_threshold()
1966 struct hpi_message hm; in hpi_compander_get_threshold() local
1969 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_compander_get_threshold()
1971 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_compander_get_threshold()
1973 hm.u.c.attribute = HPI_COMPANDER_THRESHOLD; in hpi_compander_get_threshold()
1974 hm.u.c.param2 = index; in hpi_compander_get_threshold()
1976 hpi_send_recv(&hm, &hr); in hpi_compander_get_threshold()
1997 struct hpi_message hm; in hpi_level_query_range() local
2000 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_level_query_range()
2002 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_level_query_range()
2004 hm.u.c.attribute = HPI_LEVEL_RANGE; in hpi_level_query_range()
2006 hpi_send_recv(&hm, &hr); in hpi_level_query_range()
2046 struct hpi_message hm; in hpi_meter_get_peak() local
2049 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_peak()
2051 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_meter_get_peak()
2053 hm.obj_index = hm.obj_index; in hpi_meter_get_peak()
2054 hm.u.c.attribute = HPI_METER_PEAK; in hpi_meter_get_peak()
2056 hpi_send_recv(&hm, &hr); in hpi_meter_get_peak()
2072 struct hpi_message hm; in hpi_meter_get_rms() local
2075 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_meter_get_rms()
2077 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_meter_get_rms()
2079 hm.u.c.attribute = HPI_METER_RMS; in hpi_meter_get_rms()
2081 hpi_send_recv(&hm, &hr); in hpi_meter_get_rms()
2181 struct hpi_message hm; in hpi_multiplexer_query_source() local
2183 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_multiplexer_query_source()
2185 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_multiplexer_query_source()
2187 hm.u.c.attribute = HPI_MULTIPLEXER_QUERYSOURCE; in hpi_multiplexer_query_source()
2188 hm.u.c.param1 = index; in hpi_multiplexer_query_source()
2190 hpi_send_recv(&hm, &hr); in hpi_multiplexer_query_source()
2224 struct hpi_message hm; in hpi_parametric_eq_get_band() local
2227 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_band()
2229 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_get_band()
2231 hm.u.c.attribute = HPI_EQUALIZER_FILTER; in hpi_parametric_eq_get_band()
2232 hm.u.c.param2 = index; in hpi_parametric_eq_get_band()
2234 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_band()
2251 struct hpi_message hm; in hpi_parametric_eq_set_band() local
2254 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_set_band()
2256 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_set_band()
2259 hm.u.c.param1 = frequency_hz; in hpi_parametric_eq_set_band()
2260 hm.u.c.param2 = (index & 0xFFFFL) + ((u32)type << 16); in hpi_parametric_eq_set_band()
2261 hm.u.c.an_log_value[0] = gain0_01dB; in hpi_parametric_eq_set_band()
2262 hm.u.c.an_log_value[1] = q100; in hpi_parametric_eq_set_band()
2263 hm.u.c.attribute = HPI_EQUALIZER_FILTER; in hpi_parametric_eq_set_band()
2265 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_set_band()
2273 struct hpi_message hm; in hpi_parametric_eq_get_coeffs() local
2276 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_parametric_eq_get_coeffs()
2278 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_parametric_eq_get_coeffs()
2280 hm.u.c.attribute = HPI_EQUALIZER_COEFFICIENTS; in hpi_parametric_eq_get_coeffs()
2281 hm.u.c.param2 = index; in hpi_parametric_eq_get_coeffs()
2283 hpi_send_recv(&hm, &hr); in hpi_parametric_eq_get_coeffs()
2590 struct hpi_message hm; in hpi_tuner_get_rf_level() local
2593 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rf_level()
2595 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_rf_level()
2597 hm.u.cu.attribute = HPI_TUNER_LEVEL_AVG; in hpi_tuner_get_rf_level()
2598 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rf_level()
2606 struct hpi_message hm; in hpi_tuner_get_raw_rf_level() local
2609 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_raw_rf_level()
2611 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_raw_rf_level()
2613 hm.u.cu.attribute = HPI_TUNER_LEVEL_RAW; in hpi_tuner_get_raw_rf_level()
2614 hpi_send_recv(&hm, &hr); in hpi_tuner_get_raw_rf_level()
2719 struct hpi_message hm; in hpi_tuner_get_rds() local
2722 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_tuner_get_rds()
2724 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_tuner_get_rds()
2726 hm.u.c.attribute = HPI_TUNER_RDS; in hpi_tuner_get_rds()
2727 hpi_send_recv(&hm, &hr); in hpi_tuner_get_rds()
2805 struct hpi_message hm; in hpi_volume_query_range() local
2808 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_query_range()
2810 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_volume_query_range()
2812 hm.u.c.attribute = HPI_VOLUME_RANGE; in hpi_volume_query_range()
2814 hpi_send_recv(&hm, &hr); in hpi_volume_query_range()
2833 struct hpi_message hm; in hpi_volume_auto_fade_profile() local
2836 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_volume_auto_fade_profile()
2838 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_volume_auto_fade_profile()
2841 memcpy(hm.u.c.an_log_value, an_stop_gain0_01dB, in hpi_volume_auto_fade_profile()
2844 hm.u.c.attribute = HPI_VOLUME_AUTOFADE; in hpi_volume_auto_fade_profile()
2845 hm.u.c.param1 = duration_ms; in hpi_volume_auto_fade_profile()
2846 hm.u.c.param2 = profile; in hpi_volume_auto_fade_profile()
2848 hpi_send_recv(&hm, &hr); in hpi_volume_auto_fade_profile()
2862 struct hpi_message hm; in hpi_vox_set_threshold() local
2864 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_set_threshold()
2866 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_vox_set_threshold()
2868 hm.u.c.attribute = HPI_VOX_THRESHOLD; in hpi_vox_set_threshold()
2870 hm.u.c.an_log_value[0] = an_gain0_01dB; in hpi_vox_set_threshold()
2872 hpi_send_recv(&hm, &hr); in hpi_vox_set_threshold()
2879 struct hpi_message hm; in hpi_vox_get_threshold() local
2881 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, in hpi_vox_get_threshold()
2883 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index)) in hpi_vox_get_threshold()
2885 hm.u.c.attribute = HPI_VOX_THRESHOLD; in hpi_vox_get_threshold()
2887 hpi_send_recv(&hm, &hr); in hpi_vox_get_threshold()