• Home
  • Raw
  • Download

Lines Matching refs:phr

72 	struct hpi_response *phr)  in hw_entry_point()  argument
76 hpi_entry_points[phm->adapter_index] (phm, phr); in hw_entry_point()
78 hpi_init_response(phr, phm->object, phm->function, in hw_entry_point()
82 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr);
83 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr);
85 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr);
86 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr);
88 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr,
90 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr,
92 static void instream_open(struct hpi_message *phm, struct hpi_response *phr,
94 static void instream_close(struct hpi_message *phm, struct hpi_response *phr,
99 static u16 HPIMSGX__init(struct hpi_message *phm, struct hpi_response *phr);
161 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr, in subsys_message() argument
171 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
173 phr->u.s.version = HPI_VER >> 8; /* return major.minor */ in subsys_message()
174 phr->u.s.data = HPI_VER; /* return major.minor.release */ in subsys_message()
178 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, HPI_SUBSYS_OPEN, 0); in subsys_message()
182 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, HPI_SUBSYS_CLOSE, in subsys_message()
192 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
195 HPI_COMMON(phm, phr); in subsys_message()
198 HPI_COMMON(phm, phr); in subsys_message()
200 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, in subsys_message()
206 HPI_COMMON(phm, phr); in subsys_message()
210 HPIMSGX__init(phm, phr); in subsys_message()
215 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, in subsys_message()
221 static void adapter_message(struct hpi_message *phm, struct hpi_response *phr, in adapter_message() argument
226 adapter_open(phm, phr); in adapter_message()
229 adapter_close(phm, phr); in adapter_message()
241 hw_entry_point(phm, phr); in adapter_message()
245 hw_entry_point(phm, phr); in adapter_message()
250 static void mixer_message(struct hpi_message *phm, struct hpi_response *phr) in mixer_message() argument
254 mixer_open(phm, phr); in mixer_message()
257 mixer_close(phm, phr); in mixer_message()
260 hw_entry_point(phm, phr); in mixer_message()
266 struct hpi_response *phr, void *h_owner) in outstream_message() argument
269 hpi_init_response(phr, HPI_OBJ_OSTREAM, phm->function, in outstream_message()
276 outstream_open(phm, phr, h_owner); in outstream_message()
279 outstream_close(phm, phr, h_owner); in outstream_message()
282 hw_entry_point(phm, phr); in outstream_message()
288 struct hpi_response *phr, void *h_owner) in instream_message() argument
291 hpi_init_response(phr, HPI_OBJ_ISTREAM, phm->function, in instream_message()
298 instream_open(phm, phr, h_owner); in instream_message()
301 instream_close(phm, phr, h_owner); in instream_message()
304 hw_entry_point(phm, phr); in instream_message()
312 void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr, in hpi_send_recv_ex() argument
318 hpi_init_response(phr, phm->object, phm->function, in hpi_send_recv_ex()
325 hpi_init_response(phr, phm->object, phm->function, in hpi_send_recv_ex()
332 subsys_message(phm, phr, h_owner); in hpi_send_recv_ex()
336 adapter_message(phm, phr, h_owner); in hpi_send_recv_ex()
340 mixer_message(phm, phr); in hpi_send_recv_ex()
344 outstream_message(phm, phr, h_owner); in hpi_send_recv_ex()
348 instream_message(phm, phr, h_owner); in hpi_send_recv_ex()
352 hw_entry_point(phm, phr); in hpi_send_recv_ex()
355 HPI_DEBUG_RESPONSE(phr); in hpi_send_recv_ex()
359 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr) in adapter_open() argument
362 memcpy(phr, &rESP_HPI_ADAPTER_OPEN[phm->adapter_index], in adapter_open()
366 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr) in adapter_close() argument
369 hpi_init_response(phr, HPI_OBJ_ADAPTER, HPI_ADAPTER_CLOSE, 0); in adapter_close()
372 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr) in mixer_open() argument
374 memcpy(phr, &rESP_HPI_MIXER_OPEN[phm->adapter_index], in mixer_open()
378 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr) in mixer_close() argument
380 hpi_init_response(phr, HPI_OBJ_MIXER, HPI_MIXER_CLOSE, 0); in mixer_close()
383 static void instream_open(struct hpi_message *phm, struct hpi_response *phr, in instream_open() argument
390 hpi_init_response(phr, HPI_OBJ_ISTREAM, HPI_ISTREAM_OPEN, 0); in instream_open()
395 phr->error = HPI_ERROR_OBJ_ALREADY_OPEN; in instream_open()
398 memcpy(phr, in instream_open()
418 phr->error = hr.error; in instream_open()
424 memcpy(phr, in instream_open()
433 static void instream_close(struct hpi_message *phm, struct hpi_response *phr, in instream_close() argument
440 hpi_init_response(phr, HPI_OBJ_ISTREAM, HPI_ISTREAM_CLOSE, 0); in instream_close()
462 phr->error = hr.error; in instream_close()
475 phr->error = HPI_ERROR_OBJ_NOT_OPEN; in instream_close()
480 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr, in outstream_open() argument
487 hpi_init_response(phr, HPI_OBJ_OSTREAM, HPI_OSTREAM_OPEN, 0); in outstream_open()
492 phr->error = HPI_ERROR_OBJ_ALREADY_OPEN; in outstream_open()
495 memcpy(phr, in outstream_open()
515 phr->error = hr.error; in outstream_open()
521 memcpy(phr, in outstream_open()
530 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr, in outstream_close() argument
537 hpi_init_response(phr, HPI_OBJ_OSTREAM, HPI_OSTREAM_CLOSE, 0); in outstream_close()
560 phr->error = hr.error; in outstream_close()
573 phr->error = HPI_ERROR_OBJ_NOT_OPEN; in outstream_close()
697 struct hpi_response *phr in HPIMSGX__init() argument
715 phr->error = HPI_ERROR_PROCESSING_MESSAGE; in HPIMSGX__init()
716 return phr->error; in HPIMSGX__init()
728 memcpy(phr, &hr, hr.size); in HPIMSGX__init()
729 return phr->error; in HPIMSGX__init()