Lines Matching refs:adapter_index
75 if ((phm->adapter_index < HPI_MAX_ADAPTERS) in hw_entry_point()
76 && hpi_entry_points[phm->adapter_index]) in hw_entry_point()
77 hpi_entry_points[phm->adapter_index] (phm, phr); in hw_entry_point()
98 static void HPIMSGX__reset(u16 adapter_index);
101 static void HPIMSGX__cleanup(u16 adapter_index, void *h_owner);
165 if (phm->adapter_index != HPI_ADAPTER_INDEX_INVALID) in subsys_message()
168 phm->adapter_index, phm->function); in subsys_message()
233 HPIMSGX__cleanup(phm->adapter_index, h_owner); in adapter_message()
239 hm.adapter_index = phm->adapter_index; in adapter_message()
269 if (phm->obj_index >= aDAPTER_INFO[phm->adapter_index].num_outstreams) { in outstream_message()
291 if (phm->obj_index >= aDAPTER_INFO[phm->adapter_index].num_instreams) { in instream_message()
326 if (phm->adapter_index >= HPI_MAX_ADAPTERS in hpi_send_recv_ex()
327 && phm->adapter_index != HPIMSGX_ALLADAPTERS) { in hpi_send_recv_ex()
371 memcpy(phr, &rESP_HPI_ADAPTER_OPEN[phm->adapter_index], in adapter_open()
383 memcpy(phr, &rESP_HPI_MIXER_OPEN[phm->adapter_index], in mixer_open()
403 if (instream_user_open[phm->adapter_index][phm->obj_index].open_flag) in instream_open()
405 else if (rESP_HPI_ISTREAM_OPEN[phm->adapter_index] in instream_open()
408 &rESP_HPI_ISTREAM_OPEN[phm->adapter_index][phm-> in instream_open()
412 instream_user_open[phm->adapter_index][phm-> in instream_open()
419 hm.adapter_index = phm->adapter_index; in instream_open()
425 instream_user_open[phm->adapter_index][phm-> in instream_open()
429 instream_user_open[phm->adapter_index][phm-> in instream_open()
431 instream_user_open[phm->adapter_index][phm-> in instream_open()
434 &rESP_HPI_ISTREAM_OPEN[phm->adapter_index] in instream_open()
453 instream_user_open[phm->adapter_index][phm-> in instream_close()
458 instream_user_open[phm->adapter_index][phm-> in instream_close()
464 hm.adapter_index = phm->adapter_index; in instream_close()
469 instream_user_open[phm->adapter_index][phm-> in instream_close()
473 instream_user_open[phm->adapter_index][phm-> in instream_close()
475 instream_user_open[phm->adapter_index][phm-> in instream_close()
481 h_owner, phm->adapter_index, phm->obj_index, in instream_close()
482 instream_user_open[phm->adapter_index][phm-> in instream_close()
500 if (outstream_user_open[phm->adapter_index][phm->obj_index].open_flag) in outstream_open()
502 else if (rESP_HPI_OSTREAM_OPEN[phm->adapter_index] in outstream_open()
505 &rESP_HPI_OSTREAM_OPEN[phm->adapter_index][phm-> in outstream_open()
509 outstream_user_open[phm->adapter_index][phm-> in outstream_open()
516 hm.adapter_index = phm->adapter_index; in outstream_open()
522 outstream_user_open[phm->adapter_index][phm-> in outstream_open()
526 outstream_user_open[phm->adapter_index][phm-> in outstream_open()
528 outstream_user_open[phm->adapter_index][phm-> in outstream_open()
531 &rESP_HPI_OSTREAM_OPEN[phm->adapter_index] in outstream_open()
551 outstream_user_open[phm->adapter_index][phm-> in outstream_close()
556 outstream_user_open[phm->adapter_index][phm-> in outstream_close()
562 hm.adapter_index = phm->adapter_index; in outstream_close()
567 outstream_user_open[phm->adapter_index][phm-> in outstream_close()
571 outstream_user_open[phm->adapter_index][phm-> in outstream_close()
573 outstream_user_open[phm->adapter_index][phm-> in outstream_close()
579 h_owner, phm->adapter_index, phm->obj_index, in outstream_close()
580 outstream_user_open[phm->adapter_index][phm-> in outstream_close()
598 hm.adapter_index = adapter; in adapter_prepare()
608 hm.adapter_index = adapter; in adapter_prepare()
621 hm.adapter_index = adapter; in adapter_prepare()
634 hm.adapter_index = adapter; in adapter_prepare()
645 hm.adapter_index = adapter; in adapter_prepare()
653 static void HPIMSGX__reset(u16 adapter_index) in HPIMSGX__reset() argument
659 if (adapter_index == HPIMSGX_ALLADAPTERS) { in HPIMSGX__reset()
689 } else if (adapter_index < HPI_MAX_ADAPTERS) { in HPIMSGX__reset()
690 rESP_HPI_ADAPTER_OPEN[adapter_index].h.error = in HPIMSGX__reset()
692 rESP_HPI_MIXER_OPEN[adapter_index].h.error = in HPIMSGX__reset()
695 rESP_HPI_OSTREAM_OPEN[adapter_index][i].h.error = in HPIMSGX__reset()
697 rESP_HPI_ISTREAM_OPEN[adapter_index][i].h.error = in HPIMSGX__reset()
730 hpi_entry_points[hr.u.s.adapter_index] = entry_point_func; in HPIMSGX__init()
735 adapter_prepare(hr.u.s.adapter_index); in HPIMSGX__init()
741 static void HPIMSGX__cleanup(u16 adapter_index, void *h_owner) in HPIMSGX__cleanup() argument
748 if (adapter_index == HPIMSGX_ALLADAPTERS) { in HPIMSGX__cleanup()
752 adapter = adapter_index; in HPIMSGX__cleanup()
770 hm.adapter_index = (u16)adapter; in HPIMSGX__cleanup()
794 hm.adapter_index = (u16)adapter; in HPIMSGX__cleanup()