Lines Matching defs:phr

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