Lines Matching refs:dsp_index
157 u16 dsp_index, u32 hpi_address, u32 *source, u32 count);
159 u16 dsp_index, u32 hpi_address, u32 *dest, u32 count);
171 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr);
176 static short hpi6000_wait_dsp_ack(struct hpi_adapter_obj *pao, u16 dsp_index,
180 u16 dsp_index, u32 host_cmd);
184 static short hpi6000_send_data(struct hpi_adapter_obj *pao, u16 dsp_index,
187 static short hpi6000_get_data(struct hpi_adapter_obj *pao, u16 dsp_index,
414 u32 dsp_index = 0; in subsys_create_adapter() local
452 for (dsp_index = 0; dsp_index < MAX_DSPS; dsp_index++) { in subsys_create_adapter()
454 phw->ado[dsp_index].pa_parent_adapter = pao; in subsys_create_adapter()
475 u32 dsp_index = 0; in create_adapter_obj() local
489 for (dsp_index = 0; dsp_index < MAX_DSPS; dsp_index++) { in create_adapter_obj()
490 phw->ado[dsp_index].prHPI_control = in create_adapter_obj()
492 DSP_SPACING * dsp_index); in create_adapter_obj()
494 phw->ado[dsp_index].prHPI_address = in create_adapter_obj()
496 DSP_SPACING * dsp_index); in create_adapter_obj()
497 phw->ado[dsp_index].prHPI_data = in create_adapter_obj()
498 phw->dw2040_HPIDSP + (DATA + DSP_SPACING * dsp_index); in create_adapter_obj()
500 phw->ado[dsp_index].prHPI_data_auto_inc = in create_adapter_obj()
502 DSP_SPACING * dsp_index); in create_adapter_obj()
505 phw->ado[dsp_index].prHPI_control, in create_adapter_obj()
506 phw->ado[dsp_index].prHPI_address, in create_adapter_obj()
507 phw->ado[dsp_index].prHPI_data, in create_adapter_obj()
508 phw->ado[dsp_index].prHPI_data_auto_inc); in create_adapter_obj()
510 phw->ado[dsp_index].pa_parent_adapter = pao; in create_adapter_obj()
621 phr->u.ax.assert.dsp_index = -1; /* "dsp index" */ in adapter_get_asserts()
650 u32 dsp_index = 0; in hpi6000_adapter_boot_load_dsp() local
721 for (dsp_index = 0; dsp_index < phw->num_dsp; dsp_index++) { in hpi6000_adapter_boot_load_dsp()
722 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_adapter_boot_load_dsp()
735 test_data, data, dsp_index); in hpi6000_adapter_boot_load_dsp()
797 data, dsp_index); in hpi6000_adapter_boot_load_dsp()
915 dsp_index); in hpi6000_adapter_boot_load_dsp()
938 data, dsp_index); in hpi6000_adapter_boot_load_dsp()
975 error = hpi6000_dsp_block_write32(pao, (u16)dsp_index, in hpi6000_adapter_boot_load_dsp()
1009 dsp_index); in hpi6000_adapter_boot_load_dsp()
1032 hpi_write_word(pdo, HPI_HIF_ADDR(dsp_number), dsp_index); in hpi6000_adapter_boot_load_dsp()
1036 if (dsp_index > 0) in hpi6000_adapter_boot_load_dsp()
1076 if (dsp_index == 0) { in hpi6000_adapter_boot_load_dsp()
1219 u16 dsp_index, u32 hpi_address, u32 *source, u32 count) in hpi6000_dsp_block_write32() argument
1222 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_dsp_block_write32()
1257 u16 dsp_index, u32 hpi_address, u32 *dest, u32 count) in hpi6000_dsp_block_read32() argument
1260 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_dsp_block_read32()
1297 u16 dsp_index, struct hpi_message *phm, struct hpi_response *phr) in hpi6000_message_response_sequence() argument
1300 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_message_response_sequence()
1308 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_IDLE); in hpi6000_message_response_sequence()
1334 if (hpi6000_dsp_block_write32(pao, dsp_index, address, p_data, in hpi6000_message_response_sequence()
1338 if (hpi6000_send_host_command(pao, dsp_index, HPI_HIF_GET_RESP)) in hpi6000_message_response_sequence()
1342 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_GET_RESP); in hpi6000_message_response_sequence()
1375 if (hpi6000_dsp_block_read32(pao, dsp_index, address, p_data, in hpi6000_message_response_sequence()
1380 if (hpi6000_send_host_command(pao, dsp_index, HPI_HIF_IDLE)) in hpi6000_message_response_sequence()
1415 static short hpi6000_send_data(struct hpi_adapter_obj *pao, u16 dsp_index, in hpi6000_send_data() argument
1419 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_send_data()
1431 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_IDLE); in hpi6000_send_data()
1435 if (hpi6000_send_host_command(pao, dsp_index, in hpi6000_send_data()
1441 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_SEND_DATA); in hpi6000_send_data()
1467 if (hpi6000_dsp_block_write32(pao, dsp_index, in hpi6000_send_data()
1476 if (hpi6000_send_host_command(pao, dsp_index, HPI_HIF_IDLE)) in hpi6000_send_data()
1488 static short hpi6000_get_data(struct hpi_adapter_obj *pao, u16 dsp_index, in hpi6000_get_data() argument
1492 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_get_data()
1502 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_IDLE); in hpi6000_get_data()
1506 if (hpi6000_send_host_command(pao, dsp_index, in hpi6000_get_data()
1511 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_GET_DATA); in hpi6000_get_data()
1529 if (hpi6000_dsp_block_read32(pao, dsp_index, in hpi6000_get_data()
1538 if (hpi6000_send_host_command(pao, dsp_index, HPI_HIF_IDLE)) in hpi6000_get_data()
1553 u16 dsp_index, u32 host_cmd) in hpi6000_send_host_command() argument
1556 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_send_host_command()
1598 static short hpi6000_wait_dsp_ack(struct hpi_adapter_obj *pao, u16 dsp_index, in hpi6000_wait_dsp_ack() argument
1602 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_wait_dsp_ack()
1643 const u16 dsp_index = 0; in hpi6000_update_control_cache() local
1645 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_update_control_cache()
1691 if (hpi6000_dsp_block_read32(pao, dsp_index, address, in hpi6000_update_control_cache()
1743 u16 dsp_index = 0; in hw_message() local
1748 dsp_index = 0; in hw_message()
1750 dsp_index = get_dsp_index(pao, phm); in hw_message()
1760 if (add_index != dsp_index) { in hw_message()
1768 error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr); in hw_message()
1779 error = hpi6000_send_data(pao, dsp_index, phm, phr); in hw_message()
1783 error = hpi6000_get_data(pao, dsp_index, phm, phr); in hw_message()
1786 phr->u.ax.assert.dsp_index = 0; /* dsp 0 default */ in hw_message()
1792 phr->u.ax.assert.dsp_index = 1; in hw_message()