Lines Matching refs:phm

158 	struct hpi_message *phm);
160 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr);
162 static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm,
174 struct hpi_message *phm, struct hpi_response *phr);
177 struct hpi_message *phm, struct hpi_response *phr);
189 static void subsys_create_adapter(struct hpi_message *phm,
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
210 switch (phm->function) { in subsys_message()
212 subsys_create_adapter(phm, phr); in subsys_message()
221 struct hpi_message *phm, struct hpi_response *phr) in control_message() argument
225 switch (phm->function) { in control_message()
229 err = hpi6000_update_control_cache(pao, phm); 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
262 switch (phm->function) { in adapter_message()
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
280 switch (phm->function) { 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
300 switch (phm->function) { 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
325 if (phm->object != HPI_OBJ_SUBSYSTEM) { in HPI_6000()
326 pao = hpi_find_adapter(phm->adapter_index); in HPI_6000()
328 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
331 phm->adapter_index); in HPI_6000()
337 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
340 phm->adapter_index); in HPI_6000()
345 if (phm->function != HPI_SUBSYS_CREATE_ADAPTER) in HPI_6000()
346 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
349 switch (phm->type) { in HPI_6000()
351 switch (phm->object) { in HPI_6000()
353 subsys_message(phm, phr); 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()
395 static void subsys_create_adapter(struct hpi_message *phm, in subsys_create_adapter() argument
417 ao.pci = *phm->u.s.resource.r.pci; in subsys_create_adapter()
452 struct hpi_message *phm, struct hpi_response *phr) in adapter_delete() argument
601 struct hpi_message *phm, struct hpi_response *phr) in adapter_get_asserts() argument
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
1319 length = phm->size; in hpi6000_message_response_sequence()
1322 p_data = (u32 *)phm; 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
1412 u32 *p_data = (u32 *)phm->u.d.u.data.pb_data; in hpi6000_send_data()
1418 while ((data_sent < (phm->u.d.u.data.data_size & ~3L)) in hpi6000_send_data()
1478 struct hpi_message *phm, struct hpi_response *phr) in hpi6000_get_data() argument
1485 u32 *p_data = (u32 *)phm->u.d.u.data.pb_data; in hpi6000_get_data()
1490 while (data_got < (phm->u.d.u.data.data_size & ~3L)) { in hpi6000_get_data()
1630 struct hpi_message *phm) in hpi6000_update_control_cache() argument
1707 static u16 get_dsp_index(struct hpi_adapter_obj *pao, struct hpi_message *phm) in get_dsp_index() argument
1710 switch (phm->object) { in get_dsp_index()
1712 if (phm->obj_index < 2) in get_dsp_index()
1716 ret = phm->obj_index; in get_dsp_index()
1728 static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm, in hw_message() argument
1739 dsp_index = get_dsp_index(pao, phm); in hw_message()
1742 if ((phm->function == HPI_ISTREAM_GROUP_ADD) in hw_message()
1743 || (phm->function == HPI_OSTREAM_GROUP_ADD)) { in hw_message()
1746 hm.obj_index = phm->u.d.u.stream.stream_index; in hw_message()
1747 hm.object = phm->u.d.u.stream.object_type; in hw_message()
1757 error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr); in hw_message()
1765 switch (phm->function) { 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()
1780 1, phm, phr); in hw_message()