• Home
  • Raw
  • Download

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);
151 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr, in subsys_message() argument
161 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
163 phr->u.s.version = HPI_VER >> 8; /* return major.minor */ in subsys_message()
164 phr->u.s.data = HPI_VER; /* return major.minor.release */ in subsys_message()
168 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, HPI_SUBSYS_OPEN, 0); in subsys_message()
172 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, HPI_SUBSYS_CLOSE, in subsys_message()
182 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
185 HPI_COMMON(phm, phr); in subsys_message()
188 HPI_COMMON(phm, phr); in subsys_message()
190 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
196 HPI_COMMON(phm, phr); in subsys_message()
200 HPIMSGX__init(phm, phr); in subsys_message()
205 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, in subsys_message()
211 static void adapter_message(struct hpi_message *phm, struct hpi_response *phr, in adapter_message() argument
216 adapter_open(phm, phr); in adapter_message()
219 adapter_close(phm, phr); in adapter_message()
231 hw_entry_point(phm, phr); in adapter_message()
235 hw_entry_point(phm, phr); in adapter_message()
240 static void mixer_message(struct hpi_message *phm, struct hpi_response *phr) in mixer_message() argument
244 mixer_open(phm, phr); in mixer_message()
247 mixer_close(phm, phr); in mixer_message()
250 hw_entry_point(phm, phr); in mixer_message()
256 struct hpi_response *phr, void *h_owner) in outstream_message() argument
259 hpi_init_response(phr, HPI_OBJ_OSTREAM, phm->function, in outstream_message()
266 outstream_open(phm, phr, h_owner); in outstream_message()
269 outstream_close(phm, phr, h_owner); in outstream_message()
272 hw_entry_point(phm, phr); in outstream_message()
278 struct hpi_response *phr, void *h_owner) in instream_message() argument
281 hpi_init_response(phr, HPI_OBJ_ISTREAM, phm->function, in instream_message()
288 instream_open(phm, phr, h_owner); in instream_message()
291 instream_close(phm, phr, h_owner); in instream_message()
294 hw_entry_point(phm, phr); in instream_message()
302 void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr, in hpi_send_recv_ex() argument
310 hpi_init_response(phr, phm->object, phm->function, in hpi_send_recv_ex()
317 hpi_init_response(phr, phm->object, phm->function, in hpi_send_recv_ex()
324 subsys_message(phm, phr, h_owner); in hpi_send_recv_ex()
328 adapter_message(phm, phr, h_owner); in hpi_send_recv_ex()
332 mixer_message(phm, phr); in hpi_send_recv_ex()
336 outstream_message(phm, phr, h_owner); in hpi_send_recv_ex()
340 instream_message(phm, phr, h_owner); in hpi_send_recv_ex()
344 hw_entry_point(phm, phr); in hpi_send_recv_ex()
349 HPI_DEBUG_RESPONSE(phr); in hpi_send_recv_ex()
351 if (phr->error >= HPI_ERROR_DSP_COMMUNICATION) { in hpi_send_recv_ex()
357 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr) in adapter_open() argument
360 memcpy(phr, &rESP_HPI_ADAPTER_OPEN[phm->adapter_index], in adapter_open()
364 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr) in adapter_close() argument
367 hpi_init_response(phr, HPI_OBJ_ADAPTER, HPI_ADAPTER_CLOSE, 0); in adapter_close()
370 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr) in mixer_open() argument
372 memcpy(phr, &rESP_HPI_MIXER_OPEN[phm->adapter_index], in mixer_open()
376 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr) in mixer_close() argument
378 hpi_init_response(phr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE, 0); in mixer_close()
381 static void instream_open(struct hpi_message *phm, struct hpi_response *phr, in instream_open() argument
388 hpi_init_response(phr, HPI_OBJ_ISTREAM, HPI_ISTREAM_OPEN, 0); in instream_open()
393 phr->error = HPI_ERROR_OBJ_ALREADY_OPEN; in instream_open()
396 memcpy(phr, in instream_open()
416 phr->error = hr.error; in instream_open()
422 memcpy(phr, in instream_open()
431 static void instream_close(struct hpi_message *phm, struct hpi_response *phr, in instream_close() argument
438 hpi_init_response(phr, HPI_OBJ_ISTREAM, HPI_ISTREAM_CLOSE, 0); in instream_close()
460 phr->error = hr.error; in instream_close()
473 phr->error = HPI_ERROR_OBJ_NOT_OPEN; in instream_close()
478 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr, in outstream_open() argument
485 hpi_init_response(phr, HPI_OBJ_OSTREAM, HPI_OSTREAM_OPEN, 0); in outstream_open()
490 phr->error = HPI_ERROR_OBJ_ALREADY_OPEN; in outstream_open()
493 memcpy(phr, in outstream_open()
513 phr->error = hr.error; in outstream_open()
519 memcpy(phr, in outstream_open()
528 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr, in outstream_close() argument
535 hpi_init_response(phr, HPI_OBJ_OSTREAM, HPI_OSTREAM_CLOSE, 0); in outstream_close()
558 phr->error = hr.error; in outstream_close()
571 phr->error = HPI_ERROR_OBJ_NOT_OPEN; in outstream_close()
695 struct hpi_response *phr in HPIMSGX__init() argument
713 phr->error = HPI_ERROR_PROCESSING_MESSAGE; in HPIMSGX__init()
714 return phr->error; in HPIMSGX__init()
726 memcpy(phr, &hr, hr.size); in HPIMSGX__init()
727 return phr->error; in HPIMSGX__init()