Lines Matching defs:phr

12  void HPI_6000(struct hpi_message *phm, struct hpi_response *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)
212 subsys_create_adapter(phm, phr);
215 phr->error = HPI_ERROR_INVALID_FUNC;
221 struct hpi_message *phm, struct hpi_response *phr)
233 phr->error =
235 phr->specific_error = err;
237 phr->error = err;
242 if (hpi_check_control_cache(phw->p_cache, phm, phr))
245 hw_message(pao, phm, phr);
248 hw_message(pao, phm, phr);
249 hpi_cmn_control_cache_sync_to_msg(phw->p_cache, phm, phr);
254 hw_message(pao, phm, phr);
260 struct hpi_message *phm, struct hpi_response *phr)
264 adapter_get_asserts(pao, phm, phr);
268 adapter_delete(pao, phm, phr);
272 hw_message(pao, phm, phr);
278 struct hpi_message *phm, struct hpi_response *phr)
288 phr->error = HPI_ERROR_INVALID_FUNC;
291 hw_message(pao, phm, phr);
297 struct hpi_message *phm, struct hpi_response *phr)
308 phr->error = HPI_ERROR_INVALID_FUNC;
311 hw_message(pao, phm, phr);
321 void HPI_6000(struct hpi_message *phm, struct hpi_response *phr)
328 hpi_init_response(phr, phm->object, phm->function,
337 hpi_init_response(phr, phm->object, phm->function,
346 hpi_init_response(phr, phm->object, phm->function,
353 subsys_message(phm, phr);
357 phr->size =
360 adapter_message(pao, phm, phr);
364 control_message(pao, phm, phr);
368 outstream_message(pao, phm, phr);
372 instream_message(pao, phm, phr);
376 hw_message(pao, phm, phr);
382 phr->error = HPI_ERROR_INVALID_TYPE;
396 struct hpi_response *phr)
412 phr->error = HPI_ERROR_MEMORY_ALLOC;
423 phr->error = HPI_ERROR_DSP_BOOTLOAD;
424 phr->specific_error = err;
426 phr->error = err;
429 phr->u.s.data = os_error_code;
437 phr->error = HPI_ERROR_BAD_ADAPTER;
446 phr->u.s.adapter_type = ao.type;
447 phr->u.s.adapter_index = ao.index;
448 phr->error = 0;
452 struct hpi_message *phm, struct hpi_response *phr)
456 phr->error = 0;
601 struct hpi_message *phm, struct hpi_response *phr)
606 phr->u.ax.assert.p1 =
608 phr->u.ax.assert.p2 = 0;
609 phr->u.ax.assert.count = 1; /* assert count */
610 phr->u.ax.assert.dsp_index = -1; /* "dsp index" */
611 strscpy(phr->u.ax.assert.sz_message, "PCI2040 error");
612 phr->u.ax.assert.dsp_msg_addr = 0;
615 phr->error = 0;
618 hw_message(pao, phm, phr); /*get DSP asserts */
1284 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr)
1357 if (length > phr->size)
1361 p_data = (u32 *)phr;
1371 error = hpi_validate_response(phm, phr);
1403 struct hpi_message *phm, struct hpi_response *phr)
1413 (void)phr;
1476 struct hpi_message *phm, struct hpi_response *phr)
1485 (void)phr; /* this parameter not used! */
1727 struct hpi_response *phr)
1748 phr->error = HPI_ERROR_NO_INTERDSP_GROUPS;
1755 error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr);
1760 if (phr->error) /* something failed in the DSP */
1766 error = hpi6000_send_data(pao, dsp_index, phm, phr);
1770 error = hpi6000_get_data(pao, dsp_index, phm, phr);
1773 phr->u.ax.assert.dsp_index = 0; /* dsp 0 default */
1775 if (!phr->u.ax.assert.count) {
1778 1, phm, phr);
1779 phr->u.ax.assert.dsp_index = 1;
1787 phr->error = HPI_ERROR_DSP_COMMUNICATION;
1788 phr->specific_error = error;
1790 phr->error = error;
1794 phr->size = sizeof(struct hpi_response_header);