Lines Matching refs:phr

149 	struct hpi_message *phm, struct hpi_response *phr);
152 struct hpi_response *phr);
157 struct hpi_response *phr);
159 struct hpi_message *phm, struct hpi_response *phr);
167 struct hpi_message *phm, struct hpi_response *phr);
170 struct hpi_message *phm, struct hpi_response *phr);
173 struct hpi_message *phm, struct hpi_response *phr);
175 struct hpi_message *phm, struct hpi_response *phr);
178 struct hpi_message *phm, struct hpi_response *phr);
181 struct hpi_message *phm, struct hpi_response *phr);
184 struct hpi_message *phm, struct hpi_response *phr);
187 struct hpi_message *phm, struct hpi_response *phr);
190 struct hpi_message *phm, struct hpi_response *phr);
193 struct hpi_message *phm, struct hpi_response *phr);
196 struct hpi_message *phm, struct hpi_response *phr);
199 struct hpi_message *phm, struct hpi_response *phr);
202 struct hpi_message *phm, struct hpi_response *phr);
205 struct hpi_message *phm, struct hpi_response *phr);
230 struct hpi_message *phm, struct hpi_response *phr) in subsys_message() argument
234 subsys_create_adapter(phm, phr); in subsys_message()
237 phr->error = HPI_ERROR_INVALID_FUNC; in subsys_message()
243 struct hpi_message *phm, struct hpi_response *phr) in control_message() argument
253 if (hpi_check_control_cache(phw->p_cache, phm, phr)) { in control_message()
260 hw_message(pao, phm, phr); in control_message()
261 if (pending_cache_error && !phr->error) in control_message()
262 phr->error = pending_cache_error; in control_message()
265 hw_message(pao, phm, phr); in control_message()
268 hw_message(pao, phm, phr); in control_message()
271 phr); in control_message()
274 phr->error = HPI_ERROR_INVALID_FUNC; in control_message()
280 struct hpi_message *phm, struct hpi_response *phr) in adapter_message() argument
284 adapter_delete(pao, phm, phr); in adapter_message()
288 hw_message(pao, phm, phr); in adapter_message()
294 struct hpi_message *phm, struct hpi_response *phr) in outstream_message() argument
298 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in outstream_message()
308 outstream_write(pao, phm, phr); in outstream_message()
311 outstream_get_info(pao, phm, phr); in outstream_message()
314 outstream_host_buffer_allocate(pao, phm, phr); in outstream_message()
317 outstream_host_buffer_get_info(pao, phm, phr); in outstream_message()
320 outstream_host_buffer_free(pao, phm, phr); in outstream_message()
323 outstream_start(pao, phm, phr); in outstream_message()
326 outstream_open(pao, phm, phr); in outstream_message()
329 outstream_reset(pao, phm, phr); in outstream_message()
332 hw_message(pao, phm, phr); in outstream_message()
338 struct hpi_message *phm, struct hpi_response *phr) in instream_message() argument
342 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in instream_message()
352 instream_read(pao, phm, phr); in instream_message()
355 instream_get_info(pao, phm, phr); in instream_message()
358 instream_host_buffer_allocate(pao, phm, phr); in instream_message()
361 instream_host_buffer_get_info(pao, phm, phr); in instream_message()
364 instream_host_buffer_free(pao, phm, phr); in instream_message()
367 instream_start(pao, phm, phr); in instream_message()
370 hw_message(pao, phm, phr); in instream_message()
381 struct hpi_response *phr) in _HPI_6205() argument
386 hpi_init_response(phr, phm->object, phm->function, in _HPI_6205()
395 phr->error = HPI_ERROR_PROCESSING_MESSAGE; in _HPI_6205()
402 subsys_message(pao, phm, phr); in _HPI_6205()
406 adapter_message(pao, phm, phr); in _HPI_6205()
410 control_message(pao, phm, phr); in _HPI_6205()
414 outstream_message(pao, phm, phr); in _HPI_6205()
418 instream_message(pao, phm, phr); in _HPI_6205()
422 hw_message(pao, phm, phr); in _HPI_6205()
428 phr->error = HPI_ERROR_INVALID_TYPE; in _HPI_6205()
433 void HPI_6205(struct hpi_message *phm, struct hpi_response *phr) in HPI_6205() argument
442 _HPI_6205(NULL, phm, phr); in HPI_6205()
447 _HPI_6205(pao, phm, phr); in HPI_6205()
449 hpi_init_response(phr, phm->object, phm->function, in HPI_6205()
462 struct hpi_response *phr) in subsys_create_adapter() argument
476 phr->error = HPI_ERROR_MEMORY_ALLOC; in subsys_create_adapter()
485 phr->error = HPI_ERROR_DSP_BOOTLOAD; in subsys_create_adapter()
486 phr->specific_error = err; in subsys_create_adapter()
488 phr->error = err; in subsys_create_adapter()
490 phr->u.s.data = os_error_code; in subsys_create_adapter()
494 phr->u.s.adapter_type = ao.type; in subsys_create_adapter()
495 phr->u.s.adapter_index = ao.index; in subsys_create_adapter()
496 phr->error = 0; in subsys_create_adapter()
501 struct hpi_message *phm, struct hpi_response *phr) in adapter_delete() argument
506 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in adapter_delete()
518 phr->error = 0; in adapter_delete()
723 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_allocate() argument
730 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_host_buffer_allocate()
741 phr->u.d.u.stream_info.data_available = in outstream_host_buffer_allocate()
743 phr->u.d.u.stream_info.buffer_size = in outstream_host_buffer_allocate()
762 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_host_buffer_allocate()
774 phr->u.d.u.stream_info.auxiliary_data_available = in outstream_host_buffer_allocate()
781 phr->error = HPI_ERROR_MEMORY_ALLOC; in outstream_host_buffer_allocate()
798 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_host_buffer_allocate()
812 hw_message(pao, phm, phr); in outstream_host_buffer_allocate()
814 if (phr->error in outstream_host_buffer_allocate()
825 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_get_info() argument
837 phr->error = HPI_ERROR_INVALID_OPERATION; in outstream_host_buffer_get_info()
842 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_get_info()
844 phr->u.d.u.hostbuffer_info.p_buffer = p_bbm_data; in outstream_host_buffer_get_info()
845 phr->u.d.u.hostbuffer_info.p_status = status; in outstream_host_buffer_get_info()
847 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_get_info()
854 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_free() argument
863 hw_message(pao, phm, phr); in outstream_host_buffer_free()
874 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_free()
886 struct hpi_message *phm, struct hpi_response *phr) in outstream_write() argument
895 hw_message(pao, phm, phr); in outstream_write()
899 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_write()
904 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_write()
920 phr->error = HPI_ERROR_INVALID_OPERATION; in outstream_write()
950 hw_message(pao, phm, phr); /* send the format to the DSP */ in outstream_write()
952 if (phr->error) in outstream_write()
960 struct hpi_message *phm, struct hpi_response *phr) in outstream_get_info() argument
967 hw_message(pao, phm, phr); in outstream_get_info()
971 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_get_info()
975 phr->u.d.u.stream_info.state = (u16)status->stream_state; in outstream_get_info()
976 phr->u.d.u.stream_info.samples_transferred = in outstream_get_info()
978 phr->u.d.u.stream_info.buffer_size = status->size_in_bytes; in outstream_get_info()
979 phr->u.d.u.stream_info.data_available = in outstream_get_info()
981 phr->u.d.u.stream_info.auxiliary_data_available = in outstream_get_info()
986 struct hpi_message *phm, struct hpi_response *phr) in outstream_start() argument
988 hw_message(pao, phm, phr); in outstream_start()
992 struct hpi_message *phm, struct hpi_response *phr) in outstream_reset() argument
996 hw_message(pao, phm, phr); in outstream_reset()
1000 struct hpi_message *phm, struct hpi_response *phr) in outstream_open() argument
1002 outstream_reset(pao, phm, phr); in outstream_open()
1009 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_allocate() argument
1016 hpi_init_response(phr, phm->object, phm->function, 0); in instream_host_buffer_allocate()
1023 phr->u.d.u.stream_info.data_available = in instream_host_buffer_allocate()
1025 phr->u.d.u.stream_info.buffer_size = in instream_host_buffer_allocate()
1044 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_host_buffer_allocate()
1054 phr->u.d.u.stream_info.auxiliary_data_available = in instream_host_buffer_allocate()
1060 phr->error = HPI_ERROR_MEMORY_ALLOC; in instream_host_buffer_allocate()
1074 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_host_buffer_allocate()
1089 hw_message(pao, phm, phr); in instream_host_buffer_allocate()
1091 if (phr->error in instream_host_buffer_allocate()
1102 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_get_info() argument
1114 phr->error = HPI_ERROR_INVALID_OPERATION; in instream_host_buffer_get_info()
1119 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_get_info()
1121 phr->u.d.u.hostbuffer_info.p_buffer = p_bbm_data; in instream_host_buffer_get_info()
1122 phr->u.d.u.hostbuffer_info.p_status = status; in instream_host_buffer_get_info()
1124 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_get_info()
1131 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_free() argument
1140 hw_message(pao, phm, phr); in instream_host_buffer_free()
1151 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_free()
1159 struct hpi_message *phm, struct hpi_response *phr) in instream_start() argument
1161 hw_message(pao, phm, phr); in instream_start()
1170 struct hpi_message *phm, struct hpi_response *phr) in instream_read() argument
1181 hw_message(pao, phm, phr); in instream_read()
1184 hpi_init_response(phr, phm->object, phm->function, 0); in instream_read()
1189 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_read()
1198 phr->error = HPI_ERROR_INVALID_OPERATION; in instream_read()
1221 struct hpi_message *phm, struct hpi_response *phr) in instream_get_info() argument
1227 hw_message(pao, phm, phr); in instream_get_info()
1233 hpi_init_response(phr, phm->object, phm->function, 0); in instream_get_info()
1235 phr->u.d.u.stream_info.state = (u16)status->stream_state; in instream_get_info()
1236 phr->u.d.u.stream_info.samples_transferred = in instream_get_info()
1238 phr->u.d.u.stream_info.buffer_size = status->size_in_bytes; in instream_get_info()
1239 phr->u.d.u.stream_info.data_available = in instream_get_info()
1241 phr->u.d.u.stream_info.auxiliary_data_available = in instream_get_info()
2074 struct hpi_message *phm, struct hpi_response *phr) in message_response_sequence() argument
2083 phr->error = HPI_ERROR_MESSAGE_BUFFER_TOO_SMALL; in message_response_sequence()
2084 phr->specific_error = sizeof(interface->u.message_buffer); in message_response_sequence()
2085 phr->size = sizeof(struct hpi_response_header); in message_response_sequence()
2120 if (interface->u.response_buffer.response.size <= phr->size) in message_response_sequence()
2121 memcpy(phr, &interface->u.response_buffer, in message_response_sequence()
2127 phr->size); in message_response_sequence()
2128 memcpy(phr, &interface->u.response_buffer, in message_response_sequence()
2130 phr->error = HPI_ERROR_RESPONSE_BUFFER_TOO_SMALL; in message_response_sequence()
2131 phr->specific_error = in message_response_sequence()
2133 phr->size = sizeof(struct hpi_response_header); in message_response_sequence()
2153 err = hpi_validate_response(phm, phr); in message_response_sequence()
2158 struct hpi_response *phr) in hw_message() argument
2165 err = message_response_sequence(pao, phm, phr); in hw_message()
2171 phr->error = HPI_ERROR_DSP_COMMUNICATION; in hw_message()
2172 phr->specific_error = err; in hw_message()
2174 phr->error = err; in hw_message()
2180 phr->size = sizeof(struct hpi_response_header); in hw_message()
2185 if (phr->error != 0) /* something failed in the DSP */ in hw_message()
2202 phr->error = err; in hw_message()