Lines Matching refs:phr

73 	struct hpi_response *phr)  in hw_entry_point()  argument
77 hpi_entry_points[phm->adapter_index] (phm, phr); in hw_entry_point()
79 hpi_init_response(phr, phm->object, phm->function, in hw_entry_point()
83 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr);
84 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr);
86 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr);
87 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr);
89 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr,
91 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr,
93 static void instream_open(struct hpi_message *phm, struct hpi_response *phr,
95 static void instream_close(struct hpi_message *phm, struct hpi_response *phr,
100 static u16 HPIMSGX__init(struct hpi_message *phm, struct hpi_response *phr);
162 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr, in subsys_message() argument
172 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
174 phr->u.s.version = HPI_VER >> 8; /* return major.minor */ in subsys_message()
175 phr->u.s.data = HPI_VER; /* return major.minor.release */ in subsys_message()
179 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, HPI_SUBSYS_OPEN, 0); in subsys_message()
183 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, HPI_SUBSYS_CLOSE, in subsys_message()
193 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
196 HPI_COMMON(phm, phr); in subsys_message()
199 HPI_COMMON(phm, phr); in subsys_message()
201 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
207 HPI_COMMON(phm, phr); in subsys_message()
211 HPIMSGX__init(phm, phr); in subsys_message()
216 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, in subsys_message()
222 static void adapter_message(struct hpi_message *phm, struct hpi_response *phr, in adapter_message() argument
227 adapter_open(phm, phr); in adapter_message()
230 adapter_close(phm, phr); in adapter_message()
242 hw_entry_point(phm, phr); in adapter_message()
246 hw_entry_point(phm, phr); in adapter_message()
251 static void mixer_message(struct hpi_message *phm, struct hpi_response *phr) in mixer_message() argument
255 mixer_open(phm, phr); in mixer_message()
258 mixer_close(phm, phr); in mixer_message()
261 hw_entry_point(phm, phr); in mixer_message()
267 struct hpi_response *phr, void *h_owner) in outstream_message() argument
270 hpi_init_response(phr, HPI_OBJ_OSTREAM, phm->function, in outstream_message()
277 outstream_open(phm, phr, h_owner); in outstream_message()
280 outstream_close(phm, phr, h_owner); in outstream_message()
283 hw_entry_point(phm, phr); in outstream_message()
289 struct hpi_response *phr, void *h_owner) in instream_message() argument
292 hpi_init_response(phr, HPI_OBJ_ISTREAM, phm->function, in instream_message()
299 instream_open(phm, phr, h_owner); in instream_message()
302 instream_close(phm, phr, h_owner); in instream_message()
305 hw_entry_point(phm, phr); in instream_message()
313 void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr, in hpi_send_recv_ex() argument
321 hpi_init_response(phr, phm->object, phm->function, in hpi_send_recv_ex()
328 hpi_init_response(phr, phm->object, phm->function, in hpi_send_recv_ex()
335 subsys_message(phm, phr, h_owner); in hpi_send_recv_ex()
339 adapter_message(phm, phr, h_owner); in hpi_send_recv_ex()
343 mixer_message(phm, phr); in hpi_send_recv_ex()
347 outstream_message(phm, phr, h_owner); in hpi_send_recv_ex()
351 instream_message(phm, phr, h_owner); in hpi_send_recv_ex()
355 hw_entry_point(phm, phr); in hpi_send_recv_ex()
360 HPI_DEBUG_RESPONSE(phr); in hpi_send_recv_ex()
362 if (phr->error >= HPI_ERROR_DSP_COMMUNICATION) { in hpi_send_recv_ex()
368 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr) in adapter_open() argument
371 memcpy(phr, &rESP_HPI_ADAPTER_OPEN[phm->adapter_index], in adapter_open()
375 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr) in adapter_close() argument
378 hpi_init_response(phr, HPI_OBJ_ADAPTER, HPI_ADAPTER_CLOSE, 0); in adapter_close()
381 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr) in mixer_open() argument
383 memcpy(phr, &rESP_HPI_MIXER_OPEN[phm->adapter_index], in mixer_open()
387 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr) in mixer_close() argument
389 hpi_init_response(phr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE, 0); in mixer_close()
392 static void instream_open(struct hpi_message *phm, struct hpi_response *phr, in instream_open() argument
399 hpi_init_response(phr, HPI_OBJ_ISTREAM, HPI_ISTREAM_OPEN, 0); in instream_open()
404 phr->error = HPI_ERROR_OBJ_ALREADY_OPEN; in instream_open()
407 memcpy(phr, in instream_open()
427 phr->error = hr.error; in instream_open()
433 memcpy(phr, in instream_open()
442 static void instream_close(struct hpi_message *phm, struct hpi_response *phr, in instream_close() argument
449 hpi_init_response(phr, HPI_OBJ_ISTREAM, HPI_ISTREAM_CLOSE, 0); in instream_close()
471 phr->error = hr.error; in instream_close()
484 phr->error = HPI_ERROR_OBJ_NOT_OPEN; in instream_close()
489 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr, in outstream_open() argument
496 hpi_init_response(phr, HPI_OBJ_OSTREAM, HPI_OSTREAM_OPEN, 0); in outstream_open()
501 phr->error = HPI_ERROR_OBJ_ALREADY_OPEN; in outstream_open()
504 memcpy(phr, in outstream_open()
524 phr->error = hr.error; in outstream_open()
530 memcpy(phr, in outstream_open()
539 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr, in outstream_close() argument
546 hpi_init_response(phr, HPI_OBJ_OSTREAM, HPI_OSTREAM_CLOSE, 0); in outstream_close()
569 phr->error = hr.error; in outstream_close()
582 phr->error = HPI_ERROR_OBJ_NOT_OPEN; in outstream_close()
706 struct hpi_response *phr in HPIMSGX__init() argument
724 phr->error = HPI_ERROR_PROCESSING_MESSAGE; in HPIMSGX__init()
725 return phr->error; in HPIMSGX__init()
737 memcpy(phr, &hr, hr.size); in HPIMSGX__init()
738 return phr->error; in HPIMSGX__init()