Lines Matching defs:phm

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