Lines Matching refs:phr

160 	u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr);
163 struct hpi_response *phr);
174 struct hpi_message *phm, struct hpi_response *phr);
177 struct hpi_message *phm, struct hpi_response *phr);
190 struct hpi_response *phr);
193 struct hpi_message *phm, struct hpi_response *phr);
196 struct hpi_message *phm, struct hpi_response *phr);
208 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr) in subsys_message() argument
212 subsys_create_adapter(phm, phr); in subsys_message()
215 phr->error = HPI_ERROR_INVALID_FUNC; in subsys_message()
221 struct hpi_message *phm, struct hpi_response *phr) in control_message() argument
233 phr->error = in control_message()
235 phr->specific_error = err; in control_message()
237 phr->error = err; in control_message()
242 if (hpi_check_control_cache(phw->p_cache, phm, phr)) in control_message()
245 hw_message(pao, phm, phr); in control_message()
248 hw_message(pao, phm, phr); in control_message()
249 hpi_cmn_control_cache_sync_to_msg(phw->p_cache, phm, phr); in control_message()
254 hw_message(pao, phm, phr); in control_message()
260 struct hpi_message *phm, struct hpi_response *phr) in adapter_message() argument
264 adapter_get_asserts(pao, phm, phr); in adapter_message()
268 adapter_delete(pao, phm, phr); in adapter_message()
272 hw_message(pao, phm, phr); in adapter_message()
278 struct hpi_message *phm, struct hpi_response *phr) in outstream_message() argument
288 phr->error = HPI_ERROR_INVALID_FUNC; in outstream_message()
291 hw_message(pao, phm, phr); in outstream_message()
297 struct hpi_message *phm, struct hpi_response *phr) in instream_message() argument
308 phr->error = HPI_ERROR_INVALID_FUNC; in instream_message()
311 hw_message(pao, phm, phr); in instream_message()
321 void HPI_6000(struct hpi_message *phm, struct hpi_response *phr) in HPI_6000() argument
328 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
337 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
346 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
353 subsys_message(phm, phr); in HPI_6000()
357 phr->size = in HPI_6000()
360 adapter_message(pao, phm, phr); in HPI_6000()
364 control_message(pao, phm, phr); in HPI_6000()
368 outstream_message(pao, phm, phr); in HPI_6000()
372 instream_message(pao, phm, phr); in HPI_6000()
376 hw_message(pao, phm, phr); in HPI_6000()
382 phr->error = HPI_ERROR_INVALID_TYPE; in HPI_6000()
396 struct hpi_response *phr) in subsys_create_adapter() argument
412 phr->error = HPI_ERROR_MEMORY_ALLOC; in subsys_create_adapter()
423 phr->error = HPI_ERROR_DSP_BOOTLOAD; in subsys_create_adapter()
424 phr->specific_error = err; in subsys_create_adapter()
426 phr->error = err; in subsys_create_adapter()
429 phr->u.s.data = os_error_code; in subsys_create_adapter()
437 phr->error = HPI_ERROR_BAD_ADAPTER; in subsys_create_adapter()
446 phr->u.s.adapter_type = ao.type; in subsys_create_adapter()
447 phr->u.s.adapter_index = ao.index; in subsys_create_adapter()
448 phr->error = 0; in subsys_create_adapter()
452 struct hpi_message *phm, struct hpi_response *phr) in adapter_delete() argument
456 phr->error = 0; in adapter_delete()
601 struct hpi_message *phm, struct hpi_response *phr) in adapter_get_asserts() argument
606 phr->u.ax.assert.p1 = in adapter_get_asserts()
608 phr->u.ax.assert.p2 = 0; in adapter_get_asserts()
609 phr->u.ax.assert.count = 1; /* assert count */ in adapter_get_asserts()
610 phr->u.ax.assert.dsp_index = -1; /* "dsp index" */ in adapter_get_asserts()
611 strcpy(phr->u.ax.assert.sz_message, "PCI2040 error"); in adapter_get_asserts()
612 phr->u.ax.assert.dsp_msg_addr = 0; in adapter_get_asserts()
615 phr->error = 0; in adapter_get_asserts()
618 hw_message(pao, phm, phr); /*get DSP asserts */ in adapter_get_asserts()
1286 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr) in hpi6000_message_response_sequence() argument
1359 if (length > phr->size) in hpi6000_message_response_sequence()
1363 p_data = (u32 *)phr; in hpi6000_message_response_sequence()
1373 error = hpi_validate_response(phm, phr); in hpi6000_message_response_sequence()
1405 struct hpi_message *phm, struct hpi_response *phr) in hpi6000_send_data() argument
1415 (void)phr; in hpi6000_send_data()
1478 struct hpi_message *phm, struct hpi_response *phr) in hpi6000_get_data() argument
1487 (void)phr; /* this parameter not used! */ in hpi6000_get_data()
1729 struct hpi_response *phr) in hw_message() argument
1750 phr->error = HPI_ERROR_NO_INTERDSP_GROUPS; in hw_message()
1757 error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr); in hw_message()
1762 if (phr->error) /* something failed in the DSP */ in hw_message()
1768 error = hpi6000_send_data(pao, dsp_index, phm, phr); in hw_message()
1772 error = hpi6000_get_data(pao, dsp_index, phm, phr); in hw_message()
1775 phr->u.ax.assert.dsp_index = 0; /* dsp 0 default */ in hw_message()
1777 if (!phr->u.ax.assert.count) { in hw_message()
1780 1, phm, phr); in hw_message()
1781 phr->u.ax.assert.dsp_index = 1; in hw_message()
1789 phr->error = HPI_ERROR_DSP_COMMUNICATION; in hw_message()
1790 phr->specific_error = error; in hw_message()
1792 phr->error = error; in hw_message()
1796 phr->size = sizeof(struct hpi_response_header); in hw_message()