Lines Matching refs:hr

100 	struct hpi_response hr;
102 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM,
104 hpi_send_recv(&hm, &hr);
105 *pversion_ex = hr.u.s.data;
106 return hr.error;
112 struct hpi_response hr;
113 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM,
115 hpi_send_recv(&hm, &hr);
116 *pn_num_adapters = (int)hr.u.s.num_adapters;
117 return hr.error;
124 struct hpi_response hr;
125 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM,
128 hpi_send_recv(&hm, &hr);
129 *padapter_index = (int)hr.u.s.adapter_index;
130 *pw_adapter_type = hr.u.s.adapter_type;
132 return hr.error;
138 struct hpi_response hr;
139 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
143 hpi_send_recv(&hm, &hr);
145 return hr.error;
152 struct hpi_response hr;
153 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
157 hpi_send_recv(&hm, &hr);
159 return hr.error;
172 struct hpi_response hr;
174 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
179 hpi_send_recv(&hm, &hr);
180 return hr.error;
186 struct hpi_response hr;
187 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
190 hpi_send_recv(&hm, &hr);
192 *padapter_mode = hr.u.ax.mode.adapter_mode;
193 return hr.error;
201 struct hpi_response hr;
202 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
206 hpi_send_recv(&hm, &hr);
208 *pw_adapter_type = hr.u.ax.info.adapter_type;
209 *pw_num_outstreams = hr.u.ax.info.num_outstreams;
210 *pw_num_instreams = hr.u.ax.info.num_instreams;
211 *pw_version = hr.u.ax.info.version;
212 *pserial_number = hr.u.ax.info.serial_number;
213 return hr.error;
221 struct hpi_response hr;
223 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
228 hpi_send_recv(&hm, &hr);
230 *pw_module_type = hr.u.ax.info.adapter_type;
231 *pw_num_outputs = hr.u.ax.info.num_outstreams;
232 *pw_num_inputs = hr.u.ax.info.num_instreams;
233 *pw_version = hr.u.ax.info.version;
234 *pserial_number = hr.u.ax.info.serial_number;
237 return hr.error;
244 struct hpi_response hr;
245 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
252 hpi_send_recv(&hm, &hr);
254 return hr.error;
261 struct hpi_response hr;
262 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
267 hpi_send_recv(&hm, &hr);
268 if (!hr.error) {
270 *pw_parameter1 = hr.u.ax.property_get.parameter1;
272 *pw_parameter2 = hr.u.ax.property_get.parameter2;
275 return hr.error;
429 struct hpi_response hr;
430 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
435 hpi_send_recv(&hm, &hr);
437 if (hr.error == 0)
443 return hr.error;
449 struct hpi_response hr;
451 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
456 hpi_send_recv(&hm, &hr);
458 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
461 hpi_send_recv(&hm, &hr);
463 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
466 hpi_send_recv(&hm, &hr);
468 return hr.error;
476 struct hpi_response hr;
477 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
482 hpi_send_recv(&hm, &hr);
485 *pw_state = hr.u.d.u.stream_info.state;
487 *pbuffer_size = hr.u.d.u.stream_info.buffer_size;
489 *pdata_to_play = hr.u.d.u.stream_info.data_available;
491 *psamples_played = hr.u.d.u.stream_info.samples_transferred;
494 hr.u.d.u.stream_info.auxiliary_data_available;
495 return hr.error;
502 struct hpi_response hr;
503 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
512 hpi_send_recv(&hm, &hr);
514 return hr.error;
520 struct hpi_response hr;
521 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
526 hpi_send_recv(&hm, &hr);
528 return hr.error;
534 struct hpi_response hr;
535 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
540 hpi_send_recv(&hm, &hr);
542 return hr.error;
548 struct hpi_response hr;
549 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
554 hpi_send_recv(&hm, &hr);
556 return hr.error;
562 struct hpi_response hr;
563 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
568 hpi_send_recv(&hm, &hr);
570 return hr.error;
576 struct hpi_response hr;
577 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
582 hpi_send_recv(&hm, &hr);
584 return hr.error;
590 struct hpi_response hr;
592 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
599 hpi_send_recv(&hm, &hr);
601 return hr.error;
607 struct hpi_response hr;
609 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
616 hpi_send_recv(&hm, &hr);
618 return hr.error;
624 struct hpi_response hr;
626 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
632 hpi_send_recv(&hm, &hr);
634 return hr.error;
641 struct hpi_response hr;
643 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
651 hpi_send_recv(&hm, &hr);
653 return hr.error;
659 struct hpi_response hr;
661 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
666 hpi_send_recv(&hm, &hr);
667 return hr.error;
673 struct hpi_response hr;
675 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
679 hpi_send_recv(&hm, &hr);
680 if (hr.error == 0) {
683 hr.u.d.u.stream_info.data_available /
686 return hr.error;
695 struct hpi_response hr;
697 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
706 hpi_send_recv(&hm, &hr);
708 hr.error = HPI_ERROR_INVALID_DATASIZE;
709 return hr.error;
715 struct hpi_response hr;
717 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
724 hpi_send_recv(&hm, &hr);
726 return hr.error;
732 struct hpi_response hr;
734 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
739 hpi_send_recv(&hm, &hr);
740 return hr.error;
747 struct hpi_response hr;
749 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
753 hpi_send_recv(&hm, &hr);
755 if (hr.error == 0) {
757 *pp_buffer = hr.u.d.u.hostbuffer_info.p_buffer;
759 *pp_status = hr.u.d.u.hostbuffer_info.p_status;
761 return hr.error;
767 struct hpi_response hr;
769 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
773 hpi_send_recv(&hm, &hr);
774 return hr.error;
780 struct hpi_response hr;
784 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
806 hpi_send_recv(&hm, &hr);
807 return hr.error;
814 struct hpi_response hr;
816 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
820 hpi_send_recv(&hm, &hr);
823 *poutstream_map = hr.u.d.u.group_info.outstream_group_map;
825 *pinstream_map = hr.u.d.u.group_info.instream_group_map;
827 return hr.error;
833 struct hpi_response hr;
835 hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
839 hpi_send_recv(&hm, &hr);
840 return hr.error;
846 struct hpi_response hr;
848 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
853 hpi_send_recv(&hm, &hr);
855 if (hr.error == 0)
862 return hr.error;
868 struct hpi_response hr;
870 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
874 hpi_send_recv(&hm, &hr);
876 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
879 hpi_send_recv(&hm, &hr);
881 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
884 hpi_send_recv(&hm, &hr);
886 return hr.error;
893 struct hpi_response hr;
895 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
901 hpi_send_recv(&hm, &hr);
903 return hr.error;
909 struct hpi_response hr;
911 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
917 hpi_send_recv(&hm, &hr);
919 return hr.error;
925 struct hpi_response hr;
927 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
934 hpi_send_recv(&hm, &hr);
936 return hr.error;
942 struct hpi_response hr;
944 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
949 hpi_send_recv(&hm, &hr);
951 return hr.error;
957 struct hpi_response hr;
959 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
964 hpi_send_recv(&hm, &hr);
966 return hr.error;
972 struct hpi_response hr;
974 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
979 hpi_send_recv(&hm, &hr);
981 return hr.error;
987 struct hpi_response hr;
989 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
994 hpi_send_recv(&hm, &hr);
996 return hr.error;
1004 struct hpi_response hr;
1005 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1010 hpi_send_recv(&hm, &hr);
1013 *pw_state = hr.u.d.u.stream_info.state;
1015 *pbuffer_size = hr.u.d.u.stream_info.buffer_size;
1017 *pdata_recorded = hr.u.d.u.stream_info.data_available;
1019 *psamples_recorded = hr.u.d.u.stream_info.samples_transferred;
1022 hr.u.d.u.stream_info.auxiliary_data_available;
1023 return hr.error;
1030 struct hpi_response hr;
1031 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1038 hpi_send_recv(&hm, &hr);
1039 return hr.error;
1045 struct hpi_response hr;
1046 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1050 hpi_send_recv(&hm, &hr);
1053 (hr.u.d.u.stream_info.buffer_size -
1054 hr.u.d.u.stream_info.data_available) /
1056 return hr.error;
1065 struct hpi_response hr;
1067 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1076 hpi_send_recv(&hm, &hr);
1078 hr.error = HPI_ERROR_INVALID_DATASIZE;
1079 return hr.error;
1086 struct hpi_response hr;
1088 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1093 hpi_send_recv(&hm, &hr);
1094 return hr.error;
1101 struct hpi_response hr;
1103 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1107 hpi_send_recv(&hm, &hr);
1109 if (hr.error == 0) {
1111 *pp_buffer = hr.u.d.u.hostbuffer_info.p_buffer;
1113 *pp_status = hr.u.d.u.hostbuffer_info.p_status;
1115 return hr.error;
1122 struct hpi_response hr;
1124 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1128 hpi_send_recv(&hm, &hr);
1129 return hr.error;
1135 struct hpi_response hr;
1139 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1141 hr.error = 0;
1164 hpi_send_recv(&hm, &hr);
1165 return hr.error;
1172 struct hpi_response hr;
1174 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1178 hpi_send_recv(&hm, &hr);
1181 *poutstream_map = hr.u.d.u.group_info.outstream_group_map;
1183 *pinstream_map = hr.u.d.u.group_info.instream_group_map;
1185 return hr.error;
1191 struct hpi_response hr;
1193 hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
1197 hpi_send_recv(&hm, &hr);
1198 return hr.error;
1204 struct hpi_response hr;
1205 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_OPEN);
1208 hpi_send_recv(&hm, &hr);
1210 if (hr.error == 0)
1216 return hr.error;
1222 struct hpi_response hr;
1224 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE);
1228 hpi_send_recv(&hm, &hr);
1229 return hr.error;
1237 struct hpi_response hr;
1238 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER,
1248 hpi_send_recv(&hm, &hr);
1250 if (hr.error == 0)
1253 hm.adapter_index, hr.u.m.control_index);
1256 return hr.error;
1264 struct hpi_response hr;
1265 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER,
1270 hpi_send_recv(&hm, &hr);
1274 hr.u.m.src_node_type + HPI_SOURCENODE_NONE;
1275 *pw_src_node_index = hr.u.m.src_node_index;
1276 *pw_dst_node_type = hr.u.m.dst_node_type + HPI_DESTNODE_NONE;
1277 *pw_dst_node_index = hr.u.m.dst_node_index;
1280 *pw_control_type = hr.u.m.control_index;
1283 if (hr.error == 0)
1290 return hr.error;
1297 struct hpi_response hr;
1298 hpi_init_message_response(&hm, &hr, HPI_OBJ_MIXER, HPI_MIXER_STORE);
1303 hpi_send_recv(&hm, &hr);
1304 return hr.error;
1312 struct hpi_response hr;
1314 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1321 hpi_send_recv(&hm, &hr);
1322 return hr.error;
1329 struct hpi_response hr;
1331 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1338 hpi_send_recv(&hm, &hr);
1339 return hr.error;
1347 struct hpi_response hr;
1349 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1356 hpi_send_recv(&hm, &hr);
1358 *pparam1 = hr.u.c.param1;
1360 *pparam2 = hr.u.c.param2;
1362 return hr.error;
1374 struct hpi_response hr;
1375 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1381 hpi_send_recv(&hm, &hr);
1382 *sv0 = hr.u.c.an_log_value[0];
1384 *sv1 = hr.u.c.an_log_value[1];
1385 return hr.error;
1393 struct hpi_response hr;
1395 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1404 hpi_send_recv(&hm, &hr);
1405 *psetting = hr.u.c.param1;
1407 return hr.error;
1423 struct hpi_response hr;
1425 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1433 hpi_send_recv(&hm, &hr);
1436 && (hr.u.cu.chars8.remaining_chars + 8) >
1440 if (hr.error) {
1441 err = hr.error;
1445 c = hr.u.cu.chars8.sz_data[j];
1457 if ((hr.u.cu.chars8.remaining_chars == 0)
1507 struct hpi_response hr;
1508 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1515 hpi_send_recv(&hm, &hr);
1518 *pw_data = (u16)hr.u.c.param2;
1519 return hr.error;
1526 struct hpi_response hr;
1527 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1534 hpi_send_recv(&hm, &hr);
1537 *pw_data = (u16)hr.u.c.param2;
1538 return hr.error;
1623 struct hpi_response hr;
1624 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1629 hpi_send_recv(&hm, &hr);
1631 *pw_clk_activity = (u16)hr.u.c.param1;
1633 *pw_data_activity = (u16)hr.u.c.param2;
1634 return hr.error;
1668 struct hpi_response_header hr;
1670 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr, sizeof(hr),
1686 hpi_send_recvV1(&hm.h, &hr);
1687 return hr.error;
1694 struct hpi_res_cobranet_hmiread hr;
1696 hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr.h, sizeof(hr),
1703 if (max_byte_count > sizeof(hr.bytes))
1710 hpi_send_recvV1(&hm.h, &hr.h);
1712 if (!hr.h.error && pb_data) {
1713 if (hr.byte_count > sizeof(hr.bytes))
1717 *pbyte_count = hr.byte_count;
1719 if (hr.byte_count < max_byte_count)
1722 memcpy(pb_data, hr.bytes, max_byte_count);
1724 return hr.h.error;
1731 struct hpi_response hr;
1733 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1740 hpi_send_recv(&hm, &hr);
1741 if (!hr.error) {
1743 *pstatus = hr.u.cu.cobranet.status.status;
1746 hr.u.cu.cobranet.status.readable_size;
1749 hr.u.cu.cobranet.status.writeable_size;
1751 return hr.error;
1918 struct hpi_response hr;
1920 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1928 hpi_send_recv(&hm, &hr);
1930 return hr.error;
1937 struct hpi_response hr;
1939 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1946 hpi_send_recv(&hm, &hr);
1947 *threshold0_01dB = hr.u.c.an_log_value[0];
1949 return hr.error;
1968 struct hpi_response hr;
1970 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
1976 hpi_send_recv(&hm, &hr);
1977 if (hr.error) {
1978 hr.u.c.an_log_value[0] = 0;
1979 hr.u.c.an_log_value[1] = 0;
1980 hr.u.c.param1 = 0;
1983 *min_gain_01dB = hr.u.c.an_log_value[0];
1985 *max_gain_01dB = hr.u.c.an_log_value[1];
1987 *step_gain_01dB = (short)hr.u.c.param1;
1988 return hr.error;
2017 struct hpi_response hr;
2019 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2025 hpi_send_recv(&hm, &hr);
2027 if (!hr.error)
2028 memcpy(an_peakdB, hr.u.c.an_log_value,
2033 return hr.error;
2042 struct hpi_response hr;
2044 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2050 hpi_send_recv(&hm, &hr);
2052 if (!hr.error)
2053 memcpy(an_rmsdB, hr.u.c.an_log_value,
2059 return hr.error;
2151 struct hpi_response hr;
2152 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2159 hpi_send_recv(&hm, &hr);
2162 *source_node_type = (u16)hr.u.c.param1;
2164 *source_node_index = (u16)hr.u.c.param2;
2165 return hr.error;
2194 struct hpi_response hr;
2196 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2203 hpi_send_recv(&hm, &hr);
2206 *pfrequency_hz = hr.u.c.param1;
2208 *pn_type = (u16)(hr.u.c.param2 >> 16);
2210 *pnQ100 = hr.u.c.an_log_value[1];
2212 *pn_gain0_01dB = hr.u.c.an_log_value[0];
2214 return hr.error;
2221 struct hpi_response hr;
2223 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2234 hpi_send_recv(&hm, &hr);
2236 return hr.error;
2243 struct hpi_response hr;
2245 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2252 hpi_send_recv(&hm, &hr);
2254 coeffs[0] = (short)hr.u.c.an_log_value[0];
2255 coeffs[1] = (short)hr.u.c.an_log_value[1];
2256 coeffs[2] = (short)hr.u.c.param1;
2257 coeffs[3] = (short)(hr.u.c.param1 >> 16);
2258 coeffs[4] = (short)hr.u.c.param2;
2260 return hr.error;
2557 struct hpi_response hr;
2559 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2564 hpi_send_recv(&hm, &hr);
2566 *pw_level = hr.u.cu.tuner.s_level;
2567 return hr.error;
2573 struct hpi_response hr;
2575 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2580 hpi_send_recv(&hm, &hr);
2582 *pw_level = hr.u.cu.tuner.s_level;
2583 return hr.error;
2686 struct hpi_response hr;
2688 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2693 hpi_send_recv(&hm, &hr);
2695 *(u32 *)&p_data[0] = hr.u.cu.tuner.rds.data[0];
2696 *(u32 *)&p_data[4] = hr.u.cu.tuner.rds.data[1];
2697 *(u32 *)&p_data[8] = hr.u.cu.tuner.rds.bLER;
2699 return hr.error;
2772 struct hpi_response hr;
2774 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2780 hpi_send_recv(&hm, &hr);
2781 if (hr.error) {
2782 hr.u.c.an_log_value[0] = 0;
2783 hr.u.c.an_log_value[1] = 0;
2784 hr.u.c.param1 = 0;
2787 *min_gain_01dB = hr.u.c.an_log_value[0];
2789 *max_gain_01dB = hr.u.c.an_log_value[1];
2791 *step_gain_01dB = (short)hr.u.c.param1;
2792 return hr.error;
2800 struct hpi_response hr;
2802 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2814 hpi_send_recv(&hm, &hr);
2816 return hr.error;
2839 struct hpi_response hr;
2840 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2848 hpi_send_recv(&hm, &hr);
2850 return hr.error;
2856 struct hpi_response hr;
2857 hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL,
2863 hpi_send_recv(&hm, &hr);
2865 *an_gain0_01dB = hr.u.c.an_log_value[0];
2867 return hr.error;