Lines Matching refs:phr
171 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr);
174 struct hpi_response *phr);
185 struct hpi_message *phm, struct hpi_response *phr);
188 struct hpi_message *phm, struct hpi_response *phr);
201 struct hpi_response *phr);
204 struct hpi_message *phm, struct hpi_response *phr);
207 struct hpi_message *phm, struct hpi_response *phr);
219 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr) in subsys_message() argument
223 subsys_create_adapter(phm, phr); in subsys_message()
226 phr->error = HPI_ERROR_INVALID_FUNC; in subsys_message()
232 struct hpi_message *phm, struct hpi_response *phr) in control_message() argument
244 phr->error = in control_message()
246 phr->specific_error = err; in control_message()
248 phr->error = err; in control_message()
253 if (hpi_check_control_cache(phw->p_cache, phm, phr)) in control_message()
256 hw_message(pao, phm, phr); in control_message()
259 hw_message(pao, phm, phr); in control_message()
260 hpi_cmn_control_cache_sync_to_msg(phw->p_cache, phm, phr); in control_message()
265 hw_message(pao, phm, phr); in control_message()
271 struct hpi_message *phm, struct hpi_response *phr) in adapter_message() argument
275 adapter_get_asserts(pao, phm, phr); in adapter_message()
279 adapter_delete(pao, phm, phr); in adapter_message()
283 hw_message(pao, phm, phr); in adapter_message()
289 struct hpi_message *phm, struct hpi_response *phr) in outstream_message() argument
299 phr->error = HPI_ERROR_INVALID_FUNC; in outstream_message()
302 hw_message(pao, phm, phr); in outstream_message()
308 struct hpi_message *phm, struct hpi_response *phr) in instream_message() argument
319 phr->error = HPI_ERROR_INVALID_FUNC; in instream_message()
322 hw_message(pao, phm, phr); in instream_message()
332 void HPI_6000(struct hpi_message *phm, struct hpi_response *phr) in HPI_6000() argument
339 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
348 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
357 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
364 subsys_message(phm, phr); in HPI_6000()
368 phr->size = in HPI_6000()
371 adapter_message(pao, phm, phr); in HPI_6000()
375 control_message(pao, phm, phr); in HPI_6000()
379 outstream_message(pao, phm, phr); in HPI_6000()
383 instream_message(pao, phm, phr); in HPI_6000()
387 hw_message(pao, phm, phr); in HPI_6000()
393 phr->error = HPI_ERROR_INVALID_TYPE; in HPI_6000()
407 struct hpi_response *phr) in subsys_create_adapter() argument
423 phr->error = HPI_ERROR_MEMORY_ALLOC; in subsys_create_adapter()
434 phr->error = HPI_ERROR_DSP_BOOTLOAD; in subsys_create_adapter()
435 phr->specific_error = err; in subsys_create_adapter()
437 phr->error = err; in subsys_create_adapter()
440 phr->u.s.data = os_error_code; in subsys_create_adapter()
448 phr->error = HPI_ERROR_BAD_ADAPTER; in subsys_create_adapter()
457 phr->u.s.adapter_type = ao.type; in subsys_create_adapter()
458 phr->u.s.adapter_index = ao.index; in subsys_create_adapter()
459 phr->error = 0; in subsys_create_adapter()
463 struct hpi_message *phm, struct hpi_response *phr) in adapter_delete() argument
467 phr->error = 0; in adapter_delete()
612 struct hpi_message *phm, struct hpi_response *phr) in adapter_get_asserts() argument
617 phr->u.ax.assert.p1 = in adapter_get_asserts()
619 phr->u.ax.assert.p2 = 0; in adapter_get_asserts()
620 phr->u.ax.assert.count = 1; /* assert count */ in adapter_get_asserts()
621 phr->u.ax.assert.dsp_index = -1; /* "dsp index" */ in adapter_get_asserts()
622 strcpy(phr->u.ax.assert.sz_message, "PCI2040 error"); in adapter_get_asserts()
623 phr->u.ax.assert.dsp_msg_addr = 0; in adapter_get_asserts()
626 phr->error = 0; in adapter_get_asserts()
629 hw_message(pao, phm, phr); /*get DSP asserts */ in adapter_get_asserts()
1297 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr) in hpi6000_message_response_sequence() argument
1371 p_data = (u32 *)phr; in hpi6000_message_response_sequence()
1381 error = hpi_validate_response(phm, phr); in hpi6000_message_response_sequence()
1413 struct hpi_message *phm, struct hpi_response *phr) in hpi6000_send_data() argument
1423 (void)phr; in hpi6000_send_data()
1486 struct hpi_message *phm, struct hpi_response *phr) in hpi6000_get_data() argument
1495 (void)phr; /* this parameter not used! */ in hpi6000_get_data()
1737 struct hpi_response *phr) in hw_message() argument
1758 phr->error = HPI_ERROR_NO_INTERDSP_GROUPS; in hw_message()
1765 error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr); in hw_message()
1770 if (phr->error) /* something failed in the DSP */ in hw_message()
1776 error = hpi6000_send_data(pao, dsp_index, phm, phr); in hw_message()
1780 error = hpi6000_get_data(pao, dsp_index, phm, phr); in hw_message()
1783 phr->u.ax.assert.dsp_index = 0; /* dsp 0 default */ in hw_message()
1785 if (!phr->u.ax.assert.count) { in hw_message()
1788 1, phm, phr); in hw_message()
1789 phr->u.ax.assert.dsp_index = 1; in hw_message()
1797 phr->error = HPI_ERROR_DSP_COMMUNICATION; in hw_message()
1798 phr->specific_error = error; in hw_message()
1800 phr->error = error; in hw_message()
1804 phr->size = sizeof(struct hpi_response_header); in hw_message()