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()
1372 if (hpi6000_dsp_block_read32(pao, dsp_index, address, p_data, in hpi6000_message_response_sequence()
1377 if (hpi6000_send_host_command(pao, dsp_index, HPI_HIF_IDLE)) in hpi6000_message_response_sequence()
1412 static short hpi6000_send_data(struct hpi_adapter_obj *pao, u16 dsp_index, in hpi6000_send_data() argument
1416 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_send_data()
1428 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_IDLE); in hpi6000_send_data()
1432 if (hpi6000_send_host_command(pao, dsp_index, in hpi6000_send_data()
1438 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_SEND_DATA); in hpi6000_send_data()
1464 if (hpi6000_dsp_block_write32(pao, dsp_index, in hpi6000_send_data()
1473 if (hpi6000_send_host_command(pao, dsp_index, HPI_HIF_IDLE)) in hpi6000_send_data()
1485 static short hpi6000_get_data(struct hpi_adapter_obj *pao, u16 dsp_index, in hpi6000_get_data() argument
1489 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_get_data()
1499 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_IDLE); in hpi6000_get_data()
1503 if (hpi6000_send_host_command(pao, dsp_index, in hpi6000_get_data()
1508 ack = hpi6000_wait_dsp_ack(pao, dsp_index, HPI_HIF_GET_DATA); in hpi6000_get_data()
1526 if (hpi6000_dsp_block_read32(pao, dsp_index, in hpi6000_get_data()
1535 if (hpi6000_send_host_command(pao, dsp_index, HPI_HIF_IDLE)) in hpi6000_get_data()
1550 u16 dsp_index, u32 host_cmd) in hpi6000_send_host_command() argument
1553 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_send_host_command()
1595 static short hpi6000_wait_dsp_ack(struct hpi_adapter_obj *pao, u16 dsp_index, in hpi6000_wait_dsp_ack() argument
1599 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_wait_dsp_ack()
1640 const u16 dsp_index = 0; in hpi6000_update_control_cache() local
1642 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_update_control_cache()
1688 if (hpi6000_dsp_block_read32(pao, dsp_index, address, in hpi6000_update_control_cache()
1740 u16 dsp_index = 0; in hw_message() local
1745 dsp_index = 0; in hw_message()
1747 dsp_index = get_dsp_index(pao, phm); in hw_message()
1757 if (add_index != dsp_index) { in hw_message()
1765 error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr); 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()
1783 phr->u.ax.assert.dsp_index = 0; /* dsp 0 default */ in hw_message()
1789 phr->u.ax.assert.dsp_index = 1; in hw_message()