Lines Matching refs:phr

138 	struct hpi_message *phm, struct hpi_response *phr);
141 struct hpi_response *phr);
146 struct hpi_response *phr);
148 struct hpi_message *phm, struct hpi_response *phr);
159 struct hpi_message *phm, struct hpi_response *phr);
162 struct hpi_message *phm, struct hpi_response *phr);
165 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);
176 struct hpi_message *phm, struct hpi_response *phr);
179 struct hpi_message *phm, struct hpi_response *phr);
182 struct hpi_message *phm, struct hpi_response *phr);
185 struct hpi_message *phm, struct hpi_response *phr);
188 struct hpi_message *phm, struct hpi_response *phr);
191 struct hpi_message *phm, struct hpi_response *phr);
194 struct hpi_message *phm, struct hpi_response *phr);
197 struct hpi_message *phm, struct hpi_response *phr);
222 struct hpi_message *phm, struct hpi_response *phr) in subsys_message() argument
226 subsys_create_adapter(phm, phr); in subsys_message()
229 phr->error = HPI_ERROR_INVALID_FUNC; in subsys_message()
235 struct hpi_message *phm, struct hpi_response *phr) in control_message() argument
245 if (hpi_check_control_cache(phw->p_cache, phm, phr)) { in control_message()
252 hw_message(pao, phm, phr); in control_message()
253 if (pending_cache_error && !phr->error) in control_message()
254 phr->error = pending_cache_error; in control_message()
257 hw_message(pao, phm, phr); in control_message()
260 hw_message(pao, phm, phr); in control_message()
263 phr); in control_message()
266 phr->error = HPI_ERROR_INVALID_FUNC; in control_message()
272 struct hpi_message *phm, struct hpi_response *phr) in adapter_message() argument
276 adapter_delete(pao, phm, phr); in adapter_message()
279 hw_message(pao, phm, phr); in adapter_message()
285 struct hpi_message *phm, struct hpi_response *phr) in outstream_message() argument
289 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in outstream_message()
299 outstream_write(pao, phm, phr); in outstream_message()
302 outstream_get_info(pao, phm, phr); in outstream_message()
305 outstream_host_buffer_allocate(pao, phm, phr); in outstream_message()
308 outstream_host_buffer_get_info(pao, phm, phr); in outstream_message()
311 outstream_host_buffer_free(pao, phm, phr); in outstream_message()
314 outstream_start(pao, phm, phr); in outstream_message()
317 outstream_open(pao, phm, phr); in outstream_message()
320 outstream_reset(pao, phm, phr); in outstream_message()
323 hw_message(pao, phm, phr); in outstream_message()
329 struct hpi_message *phm, struct hpi_response *phr) in instream_message() argument
333 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in instream_message()
343 instream_read(pao, phm, phr); in instream_message()
346 instream_get_info(pao, phm, phr); in instream_message()
349 instream_host_buffer_allocate(pao, phm, phr); in instream_message()
352 instream_host_buffer_get_info(pao, phm, phr); in instream_message()
355 instream_host_buffer_free(pao, phm, phr); in instream_message()
358 instream_start(pao, phm, phr); in instream_message()
361 hw_message(pao, phm, phr); in instream_message()
372 struct hpi_response *phr) in _HPI_6205() argument
377 hpi_init_response(phr, phm->object, phm->function, in _HPI_6205()
386 phr->error = HPI_ERROR_PROCESSING_MESSAGE; in _HPI_6205()
393 subsys_message(pao, phm, phr); in _HPI_6205()
397 adapter_message(pao, phm, phr); in _HPI_6205()
401 control_message(pao, phm, phr); in _HPI_6205()
405 outstream_message(pao, phm, phr); in _HPI_6205()
409 instream_message(pao, phm, phr); in _HPI_6205()
413 hw_message(pao, phm, phr); in _HPI_6205()
419 phr->error = HPI_ERROR_INVALID_TYPE; in _HPI_6205()
424 void HPI_6205(struct hpi_message *phm, struct hpi_response *phr) in HPI_6205() argument
433 _HPI_6205(NULL, phm, phr); in HPI_6205()
438 _HPI_6205(pao, phm, phr); in HPI_6205()
440 hpi_init_response(phr, phm->object, phm->function, in HPI_6205()
453 struct hpi_response *phr) in subsys_create_adapter() argument
467 phr->error = HPI_ERROR_MEMORY_ALLOC; in subsys_create_adapter()
476 phr->error = HPI_ERROR_DSP_BOOTLOAD; in subsys_create_adapter()
477 phr->specific_error = err; in subsys_create_adapter()
479 phr->error = err; in subsys_create_adapter()
481 phr->u.s.data = os_error_code; in subsys_create_adapter()
485 phr->u.s.adapter_type = ao.type; in subsys_create_adapter()
486 phr->u.s.adapter_index = ao.index; in subsys_create_adapter()
487 phr->error = 0; in subsys_create_adapter()
492 struct hpi_message *phm, struct hpi_response *phr) in adapter_delete() argument
497 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in adapter_delete()
509 phr->error = 0; in adapter_delete()
730 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_allocate() argument
737 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_host_buffer_allocate()
748 phr->u.d.u.stream_info.data_available = in outstream_host_buffer_allocate()
750 phr->u.d.u.stream_info.buffer_size = in outstream_host_buffer_allocate()
769 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_host_buffer_allocate()
781 phr->u.d.u.stream_info.auxiliary_data_available = in outstream_host_buffer_allocate()
788 phr->error = HPI_ERROR_MEMORY_ALLOC; in outstream_host_buffer_allocate()
805 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_host_buffer_allocate()
819 hw_message(pao, phm, phr); in outstream_host_buffer_allocate()
821 if (phr->error in outstream_host_buffer_allocate()
832 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_get_info() argument
844 phr->error = HPI_ERROR_INVALID_OPERATION; in outstream_host_buffer_get_info()
849 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_get_info()
851 phr->u.d.u.hostbuffer_info.p_buffer = p_bbm_data; in outstream_host_buffer_get_info()
852 phr->u.d.u.hostbuffer_info.p_status = status; in outstream_host_buffer_get_info()
854 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_get_info()
861 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_free() argument
870 hw_message(pao, phm, phr); in outstream_host_buffer_free()
881 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_free()
893 struct hpi_message *phm, struct hpi_response *phr) in outstream_write() argument
902 hw_message(pao, phm, phr); in outstream_write()
906 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_write()
911 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_write()
927 phr->error = HPI_ERROR_INVALID_OPERATION; in outstream_write()
957 hw_message(pao, phm, phr); /* send the format to the DSP */ in outstream_write()
959 if (phr->error) in outstream_write()
967 struct hpi_message *phm, struct hpi_response *phr) in outstream_get_info() argument
974 hw_message(pao, phm, phr); in outstream_get_info()
978 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_get_info()
982 phr->u.d.u.stream_info.state = (u16)status->stream_state; in outstream_get_info()
983 phr->u.d.u.stream_info.samples_transferred = in outstream_get_info()
985 phr->u.d.u.stream_info.buffer_size = status->size_in_bytes; in outstream_get_info()
986 phr->u.d.u.stream_info.data_available = in outstream_get_info()
988 phr->u.d.u.stream_info.auxiliary_data_available = in outstream_get_info()
993 struct hpi_message *phm, struct hpi_response *phr) in outstream_start() argument
995 hw_message(pao, phm, phr); in outstream_start()
999 struct hpi_message *phm, struct hpi_response *phr) in outstream_reset() argument
1003 hw_message(pao, phm, phr); in outstream_reset()
1007 struct hpi_message *phm, struct hpi_response *phr) in outstream_open() argument
1009 outstream_reset(pao, phm, phr); in outstream_open()
1016 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_allocate() argument
1023 hpi_init_response(phr, phm->object, phm->function, 0); in instream_host_buffer_allocate()
1030 phr->u.d.u.stream_info.data_available = in instream_host_buffer_allocate()
1032 phr->u.d.u.stream_info.buffer_size = in instream_host_buffer_allocate()
1051 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_host_buffer_allocate()
1061 phr->u.d.u.stream_info.auxiliary_data_available = in instream_host_buffer_allocate()
1067 phr->error = HPI_ERROR_MEMORY_ALLOC; in instream_host_buffer_allocate()
1081 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_host_buffer_allocate()
1096 hw_message(pao, phm, phr); in instream_host_buffer_allocate()
1098 if (phr->error in instream_host_buffer_allocate()
1109 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_get_info() argument
1121 phr->error = HPI_ERROR_INVALID_OPERATION; in instream_host_buffer_get_info()
1126 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_get_info()
1128 phr->u.d.u.hostbuffer_info.p_buffer = p_bbm_data; in instream_host_buffer_get_info()
1129 phr->u.d.u.hostbuffer_info.p_status = status; in instream_host_buffer_get_info()
1131 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_get_info()
1138 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_free() argument
1147 hw_message(pao, phm, phr); in instream_host_buffer_free()
1158 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_free()
1166 struct hpi_message *phm, struct hpi_response *phr) in instream_start() argument
1168 hw_message(pao, phm, phr); in instream_start()
1177 struct hpi_message *phm, struct hpi_response *phr) in instream_read() argument
1188 hw_message(pao, phm, phr); in instream_read()
1191 hpi_init_response(phr, phm->object, phm->function, 0); in instream_read()
1196 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_read()
1205 phr->error = HPI_ERROR_INVALID_OPERATION; in instream_read()
1228 struct hpi_message *phm, struct hpi_response *phr) in instream_get_info() argument
1234 hw_message(pao, phm, phr); in instream_get_info()
1240 hpi_init_response(phr, phm->object, phm->function, 0); in instream_get_info()
1242 phr->u.d.u.stream_info.state = (u16)status->stream_state; in instream_get_info()
1243 phr->u.d.u.stream_info.samples_transferred = in instream_get_info()
1245 phr->u.d.u.stream_info.buffer_size = status->size_in_bytes; in instream_get_info()
1246 phr->u.d.u.stream_info.data_available = in instream_get_info()
1248 phr->u.d.u.stream_info.auxiliary_data_available = in instream_get_info()
2085 struct hpi_message *phm, struct hpi_response *phr) in message_response_sequence() argument
2094 phr->error = HPI_ERROR_MESSAGE_BUFFER_TOO_SMALL; in message_response_sequence()
2095 phr->specific_error = sizeof(interface->u.message_buffer); in message_response_sequence()
2096 phr->size = sizeof(struct hpi_response_header); in message_response_sequence()
2131 if (interface->u.response_buffer.response.size <= phr->size) in message_response_sequence()
2132 memcpy(phr, &interface->u.response_buffer, in message_response_sequence()
2138 phr->size); in message_response_sequence()
2139 memcpy(phr, &interface->u.response_buffer, in message_response_sequence()
2141 phr->error = HPI_ERROR_RESPONSE_BUFFER_TOO_SMALL; in message_response_sequence()
2142 phr->specific_error = in message_response_sequence()
2144 phr->size = sizeof(struct hpi_response_header); in message_response_sequence()
2164 err = hpi_validate_response(phm, phr); in message_response_sequence()
2169 struct hpi_response *phr) in hw_message() argument
2176 err = message_response_sequence(pao, phm, phr); in hw_message()
2182 phr->error = HPI_ERROR_DSP_COMMUNICATION; in hw_message()
2183 phr->specific_error = err; in hw_message()
2185 phr->error = err; in hw_message()
2191 phr->size = sizeof(struct hpi_response_header); in hw_message()
2196 if (phr->error != 0) /* something failed in the DSP */ in hw_message()
2213 phr->error = err; in hw_message()