Lines Matching refs:phm

169 	struct hpi_message *phm);
171 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr);
173 static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm,
185 struct hpi_message *phm, struct hpi_response *phr);
188 struct hpi_message *phm, struct hpi_response *phr);
200 static void subsys_create_adapter(struct hpi_message *phm,
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
221 switch (phm->function) { in subsys_message()
223 subsys_create_adapter(phm, phr); in subsys_message()
232 struct hpi_message *phm, struct hpi_response *phr) in control_message() argument
236 switch (phm->function) { in control_message()
240 err = hpi6000_update_control_cache(pao, phm); 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
273 switch (phm->function) { in adapter_message()
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
291 switch (phm->function) { 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
311 switch (phm->function) { 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
336 if (phm->object != HPI_OBJ_SUBSYSTEM) { in HPI_6000()
337 pao = hpi_find_adapter(phm->adapter_index); in HPI_6000()
339 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
342 phm->adapter_index); in HPI_6000()
348 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
351 phm->adapter_index); in HPI_6000()
356 if (phm->function != HPI_SUBSYS_CREATE_ADAPTER) in HPI_6000()
357 hpi_init_response(phr, phm->object, phm->function, in HPI_6000()
360 switch (phm->type) { in HPI_6000()
362 switch (phm->object) { in HPI_6000()
364 subsys_message(phm, phr); 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()
406 static void subsys_create_adapter(struct hpi_message *phm, in subsys_create_adapter() argument
428 ao.pci = *phm->u.s.resource.r.pci; in subsys_create_adapter()
463 struct hpi_message *phm, struct hpi_response *phr) in adapter_delete() argument
612 struct hpi_message *phm, struct hpi_response *phr) in adapter_get_asserts() argument
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
1330 length = phm->size; in hpi6000_message_response_sequence()
1333 p_data = (u32 *)phm; 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
1420 u32 *p_data = (u32 *)phm->u.d.u.data.pb_data; in hpi6000_send_data()
1426 while ((data_sent < (phm->u.d.u.data.data_size & ~3L)) in hpi6000_send_data()
1486 struct hpi_message *phm, struct hpi_response *phr) in hpi6000_get_data() argument
1493 u32 *p_data = (u32 *)phm->u.d.u.data.pb_data; in hpi6000_get_data()
1498 while (data_got < (phm->u.d.u.data.data_size & ~3L)) { in hpi6000_get_data()
1638 struct hpi_message *phm) in hpi6000_update_control_cache() argument
1715 static u16 get_dsp_index(struct hpi_adapter_obj *pao, struct hpi_message *phm) in get_dsp_index() argument
1718 switch (phm->object) { in get_dsp_index()
1720 if (phm->obj_index < 2) in get_dsp_index()
1724 ret = phm->obj_index; in get_dsp_index()
1736 static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm, in hw_message() argument
1747 dsp_index = get_dsp_index(pao, phm); in hw_message()
1750 if ((phm->function == HPI_ISTREAM_GROUP_ADD) in hw_message()
1751 || (phm->function == HPI_OSTREAM_GROUP_ADD)) { in hw_message()
1754 hm.obj_index = phm->u.d.u.stream.stream_index; in hw_message()
1755 hm.object = phm->u.d.u.stream.object_type; in hw_message()
1765 error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr); in hw_message()
1773 switch (phm->function) { 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()
1788 1, phm, phr); in hw_message()