Lines Matching full:pdo

171 static void hpi6000_send_dsp_interrupt(struct dsp_obj *pdo);
179 static void hpi_write_word(struct dsp_obj *pdo, u32 address, u32 data);
181 static u32 hpi_read_word(struct dsp_obj *pdo, u32 address);
183 static void hpi_write_block(struct dsp_obj *pdo, u32 address, u32 *pdata,
186 static void hpi_read_block(struct dsp_obj *pdo, u32 address, u32 *pdata,
711 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_adapter_boot_load_dsp() local
715 iowrite32(0x00010001, pdo->prHPI_control); in hpi6000_adapter_boot_load_dsp()
720 iowrite32(test_data, pdo->prHPI_address); in hpi6000_adapter_boot_load_dsp()
721 data = ioread32(pdo->prHPI_address); in hpi6000_adapter_boot_load_dsp()
736 if (HpiReadWord(pdo,0x01B7C118) == 0x8000) in hpi6000_adapter_boot_load_dsp()
745 hpi_write_word(pdo, 0x01B7C100, 0x0000); in hpi6000_adapter_boot_load_dsp()
750 hpi_write_word(pdo, 0x01B7C120, 0x8002); in hpi6000_adapter_boot_load_dsp()
754 hpi_write_word(pdo, 0x01B7C11C, 0x8001); in hpi6000_adapter_boot_load_dsp()
758 hpi_write_word(pdo, 0x01B7C118, 0x8000); in hpi6000_adapter_boot_load_dsp()
764 hpi_write_word(pdo, 0x01B7C100, 0x0001); in hpi6000_adapter_boot_load_dsp()
780 hpi_write_word(pdo, test_addr + i, test_data); in hpi6000_adapter_boot_load_dsp()
781 data = hpi_read_word(pdo, test_addr + i); in hpi6000_adapter_boot_load_dsp()
817 hpi_write_word(pdo, 0x01800000, 0x34A8); in hpi6000_adapter_boot_load_dsp()
830 hpi_write_word(pdo, 0x01800008, 0x00000030); in hpi6000_adapter_boot_load_dsp()
850 hpi_write_word(pdo, 0x01800020, 0x001BDF29); in hpi6000_adapter_boot_load_dsp()
865 hpi_write_word(pdo, 0x01800018, 0x47117000); in hpi6000_adapter_boot_load_dsp()
868 hpi_write_word(pdo, 0x0180001C, 0x00000410); in hpi6000_adapter_boot_load_dsp()
886 hpi_write_word(pdo, 0x01800004, cE1); in hpi6000_adapter_boot_load_dsp()
898 hpi_write_word(pdo, test_addr, test_data); in hpi6000_adapter_boot_load_dsp()
899 data = hpi_read_word(pdo, test_addr); in hpi6000_adapter_boot_load_dsp()
916 hpi_write_word(pdo, test_addr + i, test_data); in hpi6000_adapter_boot_load_dsp()
922 data = hpi_read_word(pdo, test_addr + i); in hpi6000_adapter_boot_load_dsp()
992 data = hpi_read_word(pdo, address); in hpi6000_adapter_boot_load_dsp()
1015 hpi_write_word(pdo, address, 0); in hpi6000_adapter_boot_load_dsp()
1021 hpi_write_word(pdo, HPI_HIF_ADDR(dsp_number), dsp_index); in hpi6000_adapter_boot_load_dsp()
1026 hpi_write_word(pdo, HPI_HIF_ADDR(adapter_info), in hpi6000_adapter_boot_load_dsp()
1030 iowrite32(0x00030003, pdo->prHPI_control); in hpi6000_adapter_boot_load_dsp()
1043 read = hpi_read_word(pdo, in hpi6000_adapter_boot_load_dsp()
1070 hpi_read_word(pdo, in hpi6000_adapter_boot_load_dsp()
1107 hpi_write_word(pdo, PLD_BASE_ADDRESS + 4L, test_data); in hpi6000_adapter_boot_load_dsp()
1108 read = hpi_read_word(pdo, in hpi6000_adapter_boot_load_dsp()
1116 hpi_write_word(pdo, PLD_BASE_ADDRESS + 4L, test_data); in hpi6000_adapter_boot_load_dsp()
1117 read = hpi_read_word(pdo, in hpi6000_adapter_boot_load_dsp()
1131 static int hpi_set_address(struct dsp_obj *pdo, u32 address) in hpi_set_address() argument
1136 iowrite32(address, pdo->prHPI_address); in hpi_set_address()
1137 } while (hpi6000_check_PCI2040_error_flag(pdo->pa_parent_adapter, in hpi_set_address()
1148 static void hpi_write_word(struct dsp_obj *pdo, u32 address, u32 data) in hpi_write_word() argument
1150 if (hpi_set_address(pdo, address)) in hpi_write_word()
1152 iowrite32(data, pdo->prHPI_data); in hpi_write_word()
1156 static u32 hpi_read_word(struct dsp_obj *pdo, u32 address) in hpi_read_word() argument
1160 if (hpi_set_address(pdo, address)) in hpi_read_word()
1164 data = ioread32(pdo->prHPI_data); in hpi_read_word()
1169 static void hpi_write_block(struct dsp_obj *pdo, u32 address, u32 *pdata, in hpi_write_block() argument
1177 if (hpi_set_address(pdo, address)) in hpi_write_block()
1180 iowrite32_rep(pdo->prHPI_data_auto_inc, pdata, length16); in hpi_write_block()
1184 iowrite32(*(pdata + length - 1), pdo->prHPI_data); in hpi_write_block()
1189 static void hpi_read_block(struct dsp_obj *pdo, u32 address, u32 *pdata, in hpi_read_block() argument
1197 if (hpi_set_address(pdo, address)) in hpi_read_block()
1200 ioread32_rep(pdo->prHPI_data_auto_inc, pdata, length16); in hpi_read_block()
1204 *(pdata + length - 1) = ioread32(pdo->prHPI_data); in hpi_read_block()
1211 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_dsp_block_write32() local
1227 hpi_write_block(pdo, local_hpi_address, pdata, in hpi6000_dsp_block_write32()
1249 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_dsp_block_read32() local
1265 hpi_read_block(pdo, local_hpi_address, pdata, in hpi6000_dsp_block_read32()
1287 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_message_response_sequence() local
1307 hpi_read_word(pdo, in hpi6000_message_response_sequence()
1327 hpi6000_send_dsp_interrupt(pdo); in hpi6000_message_response_sequence()
1338 hpi_read_word(pdo, in hpi6000_message_response_sequence()
1352 length = hpi_read_word(pdo, HPI_HIF_ADDR(length)); in hpi6000_message_response_sequence()
1369 hpi6000_send_dsp_interrupt(pdo); in hpi6000_message_response_sequence()
1406 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_send_data() local
1426 hpi6000_send_dsp_interrupt(pdo); in hpi6000_send_data()
1435 address = hpi_read_word(pdo, HPI_HIF_ADDR(address)); in hpi6000_send_data()
1437 length = hpi_read_word(pdo, HPI_HIF_ADDR(length)); in hpi6000_send_data()
1466 hpi6000_send_dsp_interrupt(pdo); in hpi6000_send_data()
1479 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_get_data() local
1496 hpi6000_send_dsp_interrupt(pdo); in hpi6000_get_data()
1505 address = hpi_read_word(pdo, HPI_HIF_ADDR(address)); in hpi6000_get_data()
1506 length = hpi_read_word(pdo, HPI_HIF_ADDR(length)); in hpi6000_get_data()
1527 hpi6000_send_dsp_interrupt(pdo); in hpi6000_get_data()
1534 static void hpi6000_send_dsp_interrupt(struct dsp_obj *pdo) in hpi6000_send_dsp_interrupt() argument
1536 iowrite32(0x00030003, pdo->prHPI_control); /* DSPINT */ in hpi6000_send_dsp_interrupt()
1543 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_send_host_command() local
1548 hpi_write_word(pdo, HPI_HIF_ADDR(host_cmd), host_cmd); in hpi6000_send_host_command()
1550 hpi_set_address(pdo, HPI_HIF_ADDR(host_cmd)); in hpi6000_send_host_command()
1554 iowrite32(0x00040004, pdo->prHPI_control); in hpi6000_send_host_command()
1589 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_wait_dsp_ack() local
1597 hPIC = ioread32(pdo->prHPI_control); in hpi6000_wait_dsp_ack()
1608 ack = hpi_read_word(pdo, HPI_HIF_ADDR(dsp_ack)); in hpi6000_wait_dsp_ack()
1632 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_update_control_cache() local
1642 hpi_read_word((struct dsp_obj *)pdo, in hpi6000_update_control_cache()
1656 if (pdo->control_cache_address_on_dsp == 0) { in hpi6000_update_control_cache()
1659 hpi_read_word((struct dsp_obj *)pdo, in hpi6000_update_control_cache()
1662 length = hpi_read_word((struct dsp_obj *)pdo, in hpi6000_update_control_cache()
1671 pdo->control_cache_address_on_dsp = address; in hpi6000_update_control_cache()
1672 pdo->control_cache_length_on_dsp = length; in hpi6000_update_control_cache()
1674 address = pdo->control_cache_address_on_dsp; in hpi6000_update_control_cache()
1675 length = pdo->control_cache_length_on_dsp; in hpi6000_update_control_cache()
1685 hpi_write_word((struct dsp_obj *)pdo, in hpi6000_update_control_cache()
1688 hpi_set_address(pdo, HPI_HIF_ADDR(host_cmd)); in hpi6000_update_control_cache()