• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/asihpi/

Lines Matching refs:phm

23  void HPI_6000(struct hpi_message *phm, struct hpi_response *phr)
170 struct hpi_message *phm);
172 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr);
174 static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm,
186 struct hpi_message *phm, struct hpi_response *phr);
189 struct hpi_message *phm, struct hpi_response *phr);
201 static void subsys_create_adapter(struct hpi_message *phm,
204 static void subsys_delete_adapter(struct hpi_message *phm,
208 struct hpi_message *phm, struct hpi_response *phr);
218 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr)
221 switch (phm->function) {
232 subsys_create_adapter(phm, phr);
235 subsys_delete_adapter(phm, phr);
244 struct hpi_message *phm, struct hpi_response *phr)
247 switch (phm->function) {
251 err = hpi6000_update_control_cache(pao, phm);
259 pao->priv)->p_cache, phm,
263 hw_message(pao, phm, phr);
266 hw_message(pao, phm, phr);
269 hw_message(pao, phm, phr);
271 p_cache, phm, phr);
280 struct hpi_message *phm, struct hpi_response *phr)
282 switch (phm->function) {
284 hw_message(pao, phm, phr);
287 adapter_get_asserts(pao, phm, phr);
299 hw_message(pao, phm, phr);
308 struct hpi_message *phm, struct hpi_response *phr)
310 switch (phm->function) {
321 hw_message(pao, phm, phr);
327 struct hpi_message *phm, struct hpi_response *phr)
330 switch (phm->function) {
341 hw_message(pao, phm, phr);
351 void HPI_6000(struct hpi_message *phm, struct hpi_response *phr)
358 HPI_DEBUG_LOG(DEBUG, "O %d,F %x\n", phm->object, phm->function);
361 if (phm->object != HPI_OBJ_SUBSYSTEM) {
362 pao = hpi_find_adapter(phm->adapter_index);
366 phm->object, phm->function);
371 hpi_init_response(phr, phm->object, phm->function,
374 phm->object, phm->function);
379 if (phm->function != HPI_SUBSYS_CREATE_ADAPTER)
380 hpi_init_response(phr, phm->object, phm->function,
383 switch (phm->type) {
385 switch (phm->object) {
387 subsys_message(phm, phr);
394 adapter_message(pao, phm, phr);
398 control_message(pao, phm, phr);
402 outstream_message(pao, phm, phr);
406 instream_message(pao, phm, phr);
410 hw_message(pao, phm, phr);
429 static void subsys_create_adapter(struct hpi_message *phm,
444 if (phm->u.s.resource.bus_type != HPI_BUS_PCI)
446 if (phm->u.s.resource.r.pci->vendor_id != HPI_PCI_VENDOR_ID_TI)
448 if (phm->u.s.resource.r.pci->device_id != HPI_PCI_DEV_ID_PCI2040)
459 /*? memcpy(&ao.Pci,&phm->u.s.Resource.r.Pci,sizeof(ao.Pci)); */
460 ao.pci = *phm->u.s.resource.r.pci;
491 static void subsys_delete_adapter(struct hpi_message *phm,
497 pao = hpi_find_adapter(phm->adapter_index);
641 struct hpi_message *phm, struct hpi_response *phr)
656 hw_message(pao, phm, phr); /*get DSP asserts */
1324 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr)
1364 length = phm->size;
1367 p_data = (u32 *)phm;
1415 error = hpi_validate_response(phm, phr);
1447 struct hpi_message *phm, struct hpi_response *phr)
1454 u32 *p_data = (u32 *)phm->u.d.u.data.pb_data;
1460 while ((data_sent < (phm->u.d.u.data.data_size & ~3L))
1520 struct hpi_message *phm, struct hpi_response *phr)
1527 u32 *p_data = (u32 *)phm->u.d.u.data.pb_data;
1532 while (data_got < (phm->u.d.u.data.data_size & ~3L)) {
1672 struct hpi_message *phm)
1749 static u16 get_dsp_index(struct hpi_adapter_obj *pao, struct hpi_message *phm)
1752 switch (phm->object) {
1754 if (phm->obj_index < 2)
1758 ret = phm->obj_index;
1770 static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm,
1780 dsp_index = get_dsp_index(pao, phm);
1783 if ((phm->function == HPI_ISTREAM_GROUP_ADD)
1784 || (phm->function == HPI_OSTREAM_GROUP_ADD)) {
1787 hm.obj_index = phm->u.d.u.stream.stream_index;
1788 hm.object = phm->u.d.u.stream.object_type;
1798 error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr);
1812 switch (phm->function) {
1815 error = hpi6000_send_data(pao, dsp_index, phm, phr);
1819 error = hpi6000_get_data(pao, dsp_index, phm, phr);
1827 1, phm, phr);