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);
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);
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);
208 struct hpi_message *phm, struct hpi_response *phr);
233 struct hpi_message *phm, struct hpi_response *phr) in subsys_message() argument
237 subsys_create_adapter(phm, phr); in subsys_message()
240 phr->error = HPI_ERROR_INVALID_FUNC; in subsys_message()
246 struct hpi_message *phm, struct hpi_response *phr) in control_message() argument
256 if (hpi_check_control_cache(phw->p_cache, phm, phr)) { in control_message()
263 hw_message(pao, phm, phr); in control_message()
264 if (pending_cache_error && !phr->error) in control_message()
265 phr->error = pending_cache_error; in control_message()
268 hw_message(pao, phm, phr); in control_message()
271 hw_message(pao, phm, phr); in control_message()
274 phr); in control_message()
277 phr->error = HPI_ERROR_INVALID_FUNC; in control_message()
283 struct hpi_message *phm, struct hpi_response *phr) in adapter_message() argument
287 adapter_delete(pao, phm, phr); in adapter_message()
290 hw_message(pao, phm, phr); in adapter_message()
296 struct hpi_message *phm, struct hpi_response *phr) in outstream_message() argument
300 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in outstream_message()
310 outstream_write(pao, phm, phr); in outstream_message()
313 outstream_get_info(pao, phm, phr); in outstream_message()
316 outstream_host_buffer_allocate(pao, phm, phr); in outstream_message()
319 outstream_host_buffer_get_info(pao, phm, phr); in outstream_message()
322 outstream_host_buffer_free(pao, phm, phr); in outstream_message()
325 outstream_start(pao, phm, phr); in outstream_message()
328 outstream_open(pao, phm, phr); in outstream_message()
331 outstream_reset(pao, phm, phr); in outstream_message()
334 hw_message(pao, phm, phr); in outstream_message()
340 struct hpi_message *phm, struct hpi_response *phr) in instream_message() argument
344 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in instream_message()
354 instream_read(pao, phm, phr); in instream_message()
357 instream_get_info(pao, phm, phr); in instream_message()
360 instream_host_buffer_allocate(pao, phm, phr); in instream_message()
363 instream_host_buffer_get_info(pao, phm, phr); in instream_message()
366 instream_host_buffer_free(pao, phm, phr); in instream_message()
369 instream_start(pao, phm, phr); in instream_message()
372 hw_message(pao, phm, phr); in instream_message()
383 struct hpi_response *phr) in _HPI_6205() argument
388 hpi_init_response(phr, phm->object, phm->function, in _HPI_6205()
397 phr->error = HPI_ERROR_PROCESSING_MESSAGE; in _HPI_6205()
404 subsys_message(pao, phm, phr); in _HPI_6205()
408 adapter_message(pao, phm, phr); in _HPI_6205()
412 control_message(pao, phm, phr); in _HPI_6205()
416 outstream_message(pao, phm, phr); in _HPI_6205()
420 instream_message(pao, phm, phr); in _HPI_6205()
424 hw_message(pao, phm, phr); in _HPI_6205()
430 phr->error = HPI_ERROR_INVALID_TYPE; in _HPI_6205()
435 void HPI_6205(struct hpi_message *phm, struct hpi_response *phr) in HPI_6205() argument
444 _HPI_6205(NULL, phm, phr); in HPI_6205()
449 _HPI_6205(pao, phm, phr); in HPI_6205()
451 hpi_init_response(phr, phm->object, phm->function, in HPI_6205()
464 struct hpi_response *phr) in subsys_create_adapter() argument
478 phr->error = HPI_ERROR_MEMORY_ALLOC; in subsys_create_adapter()
487 phr->error = HPI_ERROR_DSP_BOOTLOAD; in subsys_create_adapter()
488 phr->specific_error = err; in subsys_create_adapter()
490 phr->error = err; in subsys_create_adapter()
492 phr->u.s.data = os_error_code; in subsys_create_adapter()
496 phr->u.s.adapter_type = ao.type; in subsys_create_adapter()
497 phr->u.s.adapter_index = ao.index; in subsys_create_adapter()
498 phr->error = 0; in subsys_create_adapter()
503 struct hpi_message *phm, struct hpi_response *phr) in adapter_delete() argument
508 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in adapter_delete()
520 phr->error = 0; in adapter_delete()
741 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_allocate() argument
748 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_host_buffer_allocate()
759 phr->u.d.u.stream_info.data_available = in outstream_host_buffer_allocate()
761 phr->u.d.u.stream_info.buffer_size = in outstream_host_buffer_allocate()
780 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_host_buffer_allocate()
792 phr->u.d.u.stream_info.auxiliary_data_available = in outstream_host_buffer_allocate()
799 phr->error = HPI_ERROR_MEMORY_ALLOC; in outstream_host_buffer_allocate()
816 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_host_buffer_allocate()
830 hw_message(pao, phm, phr); in outstream_host_buffer_allocate()
832 if (phr->error in outstream_host_buffer_allocate()
843 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_get_info() argument
855 phr->error = HPI_ERROR_INVALID_OPERATION; in outstream_host_buffer_get_info()
860 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_get_info()
862 phr->u.d.u.hostbuffer_info.p_buffer = p_bbm_data; in outstream_host_buffer_get_info()
863 phr->u.d.u.hostbuffer_info.p_status = status; in outstream_host_buffer_get_info()
865 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_get_info()
872 struct hpi_message *phm, struct hpi_response *phr) in outstream_host_buffer_free() argument
881 hw_message(pao, phm, phr); in outstream_host_buffer_free()
892 hpi_init_response(phr, HPI_OBJ_OSTREAM, in outstream_host_buffer_free()
904 struct hpi_message *phm, struct hpi_response *phr) in outstream_write() argument
913 hw_message(pao, phm, phr); in outstream_write()
917 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_write()
922 phr->error = HPI_ERROR_INVALID_DATASIZE; in outstream_write()
938 phr->error = HPI_ERROR_INVALID_OPERATION; in outstream_write()
968 hw_message(pao, phm, phr); /* send the format to the DSP */ in outstream_write()
970 if (phr->error) in outstream_write()
978 struct hpi_message *phm, struct hpi_response *phr) in outstream_get_info() argument
985 hw_message(pao, phm, phr); in outstream_get_info()
989 hpi_init_response(phr, phm->object, phm->function, 0); in outstream_get_info()
993 phr->u.d.u.stream_info.state = (u16)status->stream_state; in outstream_get_info()
994 phr->u.d.u.stream_info.samples_transferred = in outstream_get_info()
996 phr->u.d.u.stream_info.buffer_size = status->size_in_bytes; in outstream_get_info()
997 phr->u.d.u.stream_info.data_available = in outstream_get_info()
999 phr->u.d.u.stream_info.auxiliary_data_available = in outstream_get_info()
1004 struct hpi_message *phm, struct hpi_response *phr) in outstream_start() argument
1006 hw_message(pao, phm, phr); in outstream_start()
1010 struct hpi_message *phm, struct hpi_response *phr) in outstream_reset() argument
1014 hw_message(pao, phm, phr); in outstream_reset()
1018 struct hpi_message *phm, struct hpi_response *phr) in outstream_open() argument
1020 outstream_reset(pao, phm, phr); in outstream_open()
1027 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_allocate() argument
1034 hpi_init_response(phr, phm->object, phm->function, 0); in instream_host_buffer_allocate()
1041 phr->u.d.u.stream_info.data_available = in instream_host_buffer_allocate()
1043 phr->u.d.u.stream_info.buffer_size = in instream_host_buffer_allocate()
1062 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_host_buffer_allocate()
1072 phr->u.d.u.stream_info.auxiliary_data_available = in instream_host_buffer_allocate()
1078 phr->error = HPI_ERROR_MEMORY_ALLOC; in instream_host_buffer_allocate()
1092 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_host_buffer_allocate()
1107 hw_message(pao, phm, phr); in instream_host_buffer_allocate()
1109 if (phr->error in instream_host_buffer_allocate()
1120 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_get_info() argument
1132 phr->error = HPI_ERROR_INVALID_OPERATION; in instream_host_buffer_get_info()
1137 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_get_info()
1139 phr->u.d.u.hostbuffer_info.p_buffer = p_bbm_data; in instream_host_buffer_get_info()
1140 phr->u.d.u.hostbuffer_info.p_status = status; in instream_host_buffer_get_info()
1142 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_get_info()
1149 struct hpi_message *phm, struct hpi_response *phr) in instream_host_buffer_free() argument
1158 hw_message(pao, phm, phr); in instream_host_buffer_free()
1169 hpi_init_response(phr, HPI_OBJ_ISTREAM, in instream_host_buffer_free()
1177 struct hpi_message *phm, struct hpi_response *phr) in instream_start() argument
1179 hw_message(pao, phm, phr); in instream_start()
1188 struct hpi_message *phm, struct hpi_response *phr) in instream_read() argument
1199 hw_message(pao, phm, phr); in instream_read()
1202 hpi_init_response(phr, phm->object, phm->function, 0); in instream_read()
1207 phr->error = HPI_ERROR_INVALID_DATASIZE; in instream_read()
1216 phr->error = HPI_ERROR_INVALID_OPERATION; in instream_read()
1239 struct hpi_message *phm, struct hpi_response *phr) in instream_get_info() argument
1245 hw_message(pao, phm, phr); in instream_get_info()
1251 hpi_init_response(phr, phm->object, phm->function, 0); in instream_get_info()
1253 phr->u.d.u.stream_info.state = (u16)status->stream_state; in instream_get_info()
1254 phr->u.d.u.stream_info.samples_transferred = in instream_get_info()
1256 phr->u.d.u.stream_info.buffer_size = status->size_in_bytes; in instream_get_info()
1257 phr->u.d.u.stream_info.data_available = in instream_get_info()
1259 phr->u.d.u.stream_info.auxiliary_data_available = in instream_get_info()
2096 struct hpi_message *phm, struct hpi_response *phr) in message_response_sequence() argument
2105 phr->error = HPI_ERROR_MESSAGE_BUFFER_TOO_SMALL; in message_response_sequence()
2106 phr->specific_error = sizeof(interface->u.message_buffer); in message_response_sequence()
2107 phr->size = sizeof(struct hpi_response_header); in message_response_sequence()
2142 if (interface->u.response_buffer.response.size <= phr->size) in message_response_sequence()
2143 memcpy(phr, &interface->u.response_buffer, in message_response_sequence()
2149 phr->size); in message_response_sequence()
2150 memcpy(phr, &interface->u.response_buffer, in message_response_sequence()
2152 phr->error = HPI_ERROR_RESPONSE_BUFFER_TOO_SMALL; in message_response_sequence()
2153 phr->specific_error = in message_response_sequence()
2155 phr->size = sizeof(struct hpi_response_header); in message_response_sequence()
2175 err = hpi_validate_response(phm, phr); in message_response_sequence()
2180 struct hpi_response *phr) in hw_message() argument
2187 err = message_response_sequence(pao, phm, phr); in hw_message()
2193 phr->error = HPI_ERROR_DSP_COMMUNICATION; in hw_message()
2194 phr->specific_error = err; in hw_message()
2196 phr->error = err; in hw_message()
2202 phr->size = sizeof(struct hpi_response_header); in hw_message()
2207 if (phr->error != 0) /* something failed in the DSP */ in hw_message()
2224 phr->error = err; in hw_message()