Lines Matching refs:phr

62 	struct hpi_response *phr)  in hw_entry_point()  argument
66 hpi_entry_points[phm->adapter_index] (phm, phr); in hw_entry_point()
68 hpi_init_response(phr, phm->object, phm->function, in hw_entry_point()
72 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr);
73 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr);
75 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr);
76 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr);
78 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr,
80 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr,
82 static void instream_open(struct hpi_message *phm, struct hpi_response *phr,
84 static void instream_close(struct hpi_message *phm, struct hpi_response *phr,
89 static u16 HPIMSGX__init(struct hpi_message *phm, struct hpi_response *phr);
146 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr, in subsys_message() argument
156 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
158 phr->u.s.version = HPI_VER >> 8; /* return major.minor */ in subsys_message()
159 phr->u.s.data = HPI_VER; /* return major.minor.release */ in subsys_message()
163 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, HPI_SUBSYS_OPEN, 0); in subsys_message()
167 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, HPI_SUBSYS_CLOSE, in subsys_message()
177 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
180 HPI_COMMON(phm, phr); in subsys_message()
183 HPI_COMMON(phm, phr); in subsys_message()
185 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
191 HPI_COMMON(phm, phr); in subsys_message()
195 HPIMSGX__init(phm, phr); in subsys_message()
200 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, in subsys_message()
206 static void adapter_message(struct hpi_message *phm, struct hpi_response *phr, in adapter_message() argument
211 adapter_open(phm, phr); in adapter_message()
214 adapter_close(phm, phr); in adapter_message()
226 hw_entry_point(phm, phr); in adapter_message()
230 hw_entry_point(phm, phr); in adapter_message()
235 static void mixer_message(struct hpi_message *phm, struct hpi_response *phr) in mixer_message() argument
239 mixer_open(phm, phr); in mixer_message()
242 mixer_close(phm, phr); in mixer_message()
245 hw_entry_point(phm, phr); in mixer_message()
251 struct hpi_response *phr, void *h_owner) in outstream_message() argument
254 hpi_init_response(phr, HPI_OBJ_OSTREAM, phm->function, in outstream_message()
261 outstream_open(phm, phr, h_owner); in outstream_message()
264 outstream_close(phm, phr, h_owner); in outstream_message()
267 hw_entry_point(phm, phr); in outstream_message()
273 struct hpi_response *phr, void *h_owner) in instream_message() argument
276 hpi_init_response(phr, HPI_OBJ_ISTREAM, phm->function, in instream_message()
283 instream_open(phm, phr, h_owner); in instream_message()
286 instream_close(phm, phr, h_owner); in instream_message()
289 hw_entry_point(phm, phr); in instream_message()
297 void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr, in hpi_send_recv_ex() argument
305 hpi_init_response(phr, phm->object, phm->function, in hpi_send_recv_ex()
312 hpi_init_response(phr, phm->object, phm->function, in hpi_send_recv_ex()
319 subsys_message(phm, phr, h_owner); in hpi_send_recv_ex()
323 adapter_message(phm, phr, h_owner); in hpi_send_recv_ex()
327 mixer_message(phm, phr); in hpi_send_recv_ex()
331 outstream_message(phm, phr, h_owner); in hpi_send_recv_ex()
335 instream_message(phm, phr, h_owner); in hpi_send_recv_ex()
339 hw_entry_point(phm, phr); in hpi_send_recv_ex()
344 HPI_DEBUG_RESPONSE(phr); in hpi_send_recv_ex()
346 if (phr->error >= HPI_ERROR_DSP_COMMUNICATION) { in hpi_send_recv_ex()
352 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr) in adapter_open() argument
355 memcpy(phr, &rESP_HPI_ADAPTER_OPEN[phm->adapter_index], in adapter_open()
359 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr) in adapter_close() argument
362 hpi_init_response(phr, HPI_OBJ_ADAPTER, HPI_ADAPTER_CLOSE, 0); in adapter_close()
365 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr) in mixer_open() argument
367 memcpy(phr, &rESP_HPI_MIXER_OPEN[phm->adapter_index], in mixer_open()
371 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr) in mixer_close() argument
373 hpi_init_response(phr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE, 0); in mixer_close()
376 static void instream_open(struct hpi_message *phm, struct hpi_response *phr, in instream_open() argument
383 hpi_init_response(phr, HPI_OBJ_ISTREAM, HPI_ISTREAM_OPEN, 0); in instream_open()
388 phr->error = HPI_ERROR_OBJ_ALREADY_OPEN; in instream_open()
391 memcpy(phr, in instream_open()
411 phr->error = hr.error; in instream_open()
417 memcpy(phr, in instream_open()
426 static void instream_close(struct hpi_message *phm, struct hpi_response *phr, in instream_close() argument
433 hpi_init_response(phr, HPI_OBJ_ISTREAM, HPI_ISTREAM_CLOSE, 0); in instream_close()
455 phr->error = hr.error; in instream_close()
468 phr->error = HPI_ERROR_OBJ_NOT_OPEN; in instream_close()
473 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr, in outstream_open() argument
480 hpi_init_response(phr, HPI_OBJ_OSTREAM, HPI_OSTREAM_OPEN, 0); in outstream_open()
485 phr->error = HPI_ERROR_OBJ_ALREADY_OPEN; in outstream_open()
488 memcpy(phr, in outstream_open()
508 phr->error = hr.error; in outstream_open()
514 memcpy(phr, in outstream_open()
523 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr, in outstream_close() argument
530 hpi_init_response(phr, HPI_OBJ_OSTREAM, HPI_OSTREAM_CLOSE, 0); in outstream_close()
553 phr->error = hr.error; in outstream_close()
566 phr->error = HPI_ERROR_OBJ_NOT_OPEN; in outstream_close()
690 struct hpi_response *phr in HPIMSGX__init() argument
708 phr->error = HPI_ERROR_PROCESSING_MESSAGE; in HPIMSGX__init()
709 return phr->error; in HPIMSGX__init()
721 memcpy(phr, &hr, hr.size); in HPIMSGX__init()
722 return phr->error; in HPIMSGX__init()