• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/asihpi/

Lines Matching refs:phm

67 static inline void hw_entry_point(struct hpi_message *phm,
73 if (phm->adapter_index < HPI_MAX_ADAPTERS) {
74 ep = (hpi_handler_func *) hpi_entry_points[phm->
77 HPI_DEBUG_MESSAGE(DEBUG, phm);
78 ep(phm, phr);
83 hpi_init_response(phr, phm->object, phm->function,
87 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr);
88 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr);
90 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr);
91 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr);
93 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr,
95 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr,
97 static void instream_open(struct hpi_message *phm, struct hpi_response *phr,
99 static void instream_close(struct hpi_message *phm, struct hpi_response *phr,
103 static u16 HPIMSGX__init(struct hpi_message *phm, struct hpi_response *phr);
167 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr,
170 switch (phm->function) {
197 HPI_COMMON(phm, phr);
200 HPI_COMMON(phm, phr);
208 HPI_COMMON(phm, phr);
222 int count = phm->adapter_index;
265 HPIMSGX__init(phm, phr);
268 HPIMSGX__cleanup(phm->adapter_index, h_owner);
275 hm.adapter_index = phm->adapter_index;
278 hw_entry_point(phm, phr);
280 aw_adapter_list[phm->adapter_index]
282 hpi_entry_points[phm->adapter_index] = NULL;
285 hw_entry_point(phm, phr);
290 static void adapter_message(struct hpi_message *phm, struct hpi_response *phr,
293 switch (phm->function) {
295 adapter_open(phm, phr);
298 adapter_close(phm, phr);
301 hw_entry_point(phm, phr);
306 static void mixer_message(struct hpi_message *phm, struct hpi_response *phr)
308 switch (phm->function) {
310 mixer_open(phm, phr);
313 mixer_close(phm, phr);
316 hw_entry_point(phm, phr);
321 static void outstream_message(struct hpi_message *phm,
324 if (phm->obj_index >= aDAPTER_INFO[phm->adapter_index].num_outstreams) {
325 hpi_init_response(phr, HPI_OBJ_OSTREAM, phm->function,
330 switch (phm->function) {
332 outstream_open(phm, phr, h_owner);
335 outstream_close(phm, phr, h_owner);
338 hw_entry_point(phm, phr);
343 static void instream_message(struct hpi_message *phm,
346 if (phm->obj_index >= aDAPTER_INFO[phm->adapter_index].num_instreams) {
347 hpi_init_response(phr, HPI_OBJ_ISTREAM, phm->function,
352 switch (phm->function) {
354 instream_open(phm, phr, h_owner);
357 instream_close(phm, phr, h_owner);
360 hw_entry_point(phm, phr);
368 void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr,
371 HPI_DEBUG_MESSAGE(DEBUG, phm);
373 if (phm->type != HPI_TYPE_MESSAGE) {
374 hpi_init_response(phr, phm->object, phm->function,
379 if (phm->adapter_index >= HPI_MAX_ADAPTERS
380 && phm->adapter_index != HPIMSGX_ALLADAPTERS) {
381 hpi_init_response(phr, phm->object, phm->function,
386 switch (phm->object) {
388 subsys_message(phm, phr, h_owner);
392 adapter_message(phm, phr, h_owner);
396 mixer_message(phm, phr);
400 outstream_message(phm, phr, h_owner);
404 instream_message(phm, phr, h_owner);
408 hw_entry_point(phm, phr);
416 HPI_DEBUG_MESSAGE(ERROR, phm);
418 if (phm->adapter_index < HPI_MAX_ADAPTERS)
419 ep = hpi_entry_points[phm->adapter_index];
434 hpi_debug_data((u16 *)phm,
435 sizeof(*phm) / sizeof(u16));
439 static void adapter_open(struct hpi_message *phm, struct hpi_response *phr)
442 memcpy(phr, &rESP_HPI_ADAPTER_OPEN[phm->adapter_index],
446 static void adapter_close(struct hpi_message *phm, struct hpi_response *phr)
452 static void mixer_open(struct hpi_message *phm, struct hpi_response *phr)
454 memcpy(phr, &rESP_HPI_MIXER_OPEN[phm->adapter_index],
458 static void mixer_close(struct hpi_message *phm, struct hpi_response *phr)
463 static void instream_open(struct hpi_message *phm, struct hpi_response *phr,
474 if (instream_user_open[phm->adapter_index][phm->obj_index].open_flag)
476 else if (rESP_HPI_ISTREAM_OPEN[phm->adapter_index]
477 [phm->obj_index].h.error)
479 &rESP_HPI_ISTREAM_OPEN[phm->adapter_index][phm->
483 instream_user_open[phm->adapter_index][phm->
490 hm.adapter_index = phm->adapter_index;
491 hm.obj_index = phm->obj_index;
496 instream_user_open[phm->adapter_index][phm->
500 instream_user_open[phm->adapter_index][phm->
502 instream_user_open[phm->adapter_index][phm->
505 &rESP_HPI_ISTREAM_OPEN[phm->adapter_index]
506 [phm->obj_index],
513 static void instream_close(struct hpi_message *phm, struct hpi_response *phr,
524 instream_user_open[phm->adapter_index][phm->
528 phm->wAdapterIndex, phm->wObjIndex, hOwner); */
529 instream_user_open[phm->adapter_index][phm->
535 hm.adapter_index = phm->adapter_index;
536 hm.obj_index = phm->obj_index;
540 instream_user_open[phm->adapter_index][phm->
544 instream_user_open[phm->adapter_index][phm->
546 instream_user_open[phm->adapter_index][phm->
552 h_owner, phm->adapter_index, phm->obj_index,
553 instream_user_open[phm->adapter_index][phm->
560 static void outstream_open(struct hpi_message *phm, struct hpi_response *phr,
571 if (outstream_user_open[phm->adapter_index][phm->obj_index].open_flag)
573 else if (rESP_HPI_OSTREAM_OPEN[phm->adapter_index]
574 [phm->obj_index].h.error)
576 &rESP_HPI_OSTREAM_OPEN[phm->adapter_index][phm->
580 outstream_user_open[phm->adapter_index][phm->
587 hm.adapter_index = phm->adapter_index;
588 hm.obj_index = phm->obj_index;
593 outstream_user_open[phm->adapter_index][phm->
597 outstream_user_open[phm->adapter_index][phm->
599 outstream_user_open[phm->adapter_index][phm->
602 &rESP_HPI_OSTREAM_OPEN[phm->adapter_index]
603 [phm->obj_index],
610 static void outstream_close(struct hpi_message *phm, struct hpi_response *phr,
622 outstream_user_open[phm->adapter_index][phm->
626 phm->wAdapterIndex, phm->wObjIndex, hOwner); */
627 outstream_user_open[phm->adapter_index][phm->
633 hm.adapter_index = phm->adapter_index;
634 hm.obj_index = phm->obj_index;
638 outstream_user_open[phm->adapter_index][phm->
642 outstream_user_open[phm->adapter_index][phm->
644 outstream_user_open[phm->adapter_index][phm->
650 h_owner, phm->adapter_index, phm->obj_index,
651 outstream_user_open[phm->adapter_index][phm->
793 static u16 HPIMSGX__init(struct hpi_message *phm,
807 hpi_init_response(&hr, phm->object, phm->function,
814 hpi_lookup_entry_point_function(phm->u.s.resource.r.pci);
817 HPI_DEBUG_MESSAGE(DEBUG, phm);
818 entry_point_func(phm, &hr);