Lines Matching refs:dsp_index
210 static u32 boot_loader_read_mem32(struct hpi_adapter_obj *pao, int dsp_index,
214 int dsp_index, u32 address, u32 data);
217 int dsp_index);
219 static u16 boot_loader_test_memory(struct hpi_adapter_obj *pao, int dsp_index,
223 int dsp_index);
226 int dsp_index);
228 static u16 boot_loader_test_pld(struct hpi_adapter_obj *pao, int dsp_index);
825 status->dsp_index = 0; in outstream_host_buffer_allocate()
826 status->host_index = status->dsp_index; in outstream_host_buffer_allocate()
900 status->dsp_index); in outstream_get_space_available()
1102 status->dsp_index = 0; in instream_host_buffer_allocate()
1103 status->host_index = status->dsp_index; in instream_host_buffer_allocate()
1184 return status->dsp_index - status->host_index; in instream_get_bytes_available()
1523 static u32 boot_loader_read_mem32(struct hpi_adapter_obj *pao, int dsp_index, in boot_loader_read_mem32() argument
1530 if (dsp_index == 0) { in boot_loader_read_mem32()
1553 } else if (dsp_index == 1) { in boot_loader_read_mem32()
1566 int dsp_index, u32 address, u32 data) in boot_loader_write_mem32() argument
1572 if (dsp_index == 0) { in boot_loader_write_mem32()
1595 } else if (dsp_index == 1) { in boot_loader_write_mem32()
1611 static u16 boot_loader_config_emif(struct hpi_adapter_obj *pao, int dsp_index) in boot_loader_config_emif() argument
1613 if (dsp_index == 0) { in boot_loader_config_emif()
1626 boot_loader_write_mem32(pao, dsp_index, 0x01800000, 0x3779); in boot_loader_config_emif()
1637 boot_loader_write_mem32(pao, dsp_index, 0x01800008, setting); in boot_loader_config_emif()
1638 if (setting != boot_loader_read_mem32(pao, dsp_index, in boot_loader_config_emif()
1650 boot_loader_write_mem32(pao, dsp_index, 0x01800004, setting); in boot_loader_config_emif()
1651 if (setting != boot_loader_read_mem32(pao, dsp_index, in boot_loader_config_emif()
1662 boot_loader_write_mem32(pao, dsp_index, 0x01800010, setting); in boot_loader_config_emif()
1663 if (setting != boot_loader_read_mem32(pao, dsp_index, in boot_loader_config_emif()
1673 boot_loader_write_mem32(pao, dsp_index, 0x01800014, setting); in boot_loader_config_emif()
1674 if (setting != boot_loader_read_mem32(pao, dsp_index, in boot_loader_config_emif()
1680 boot_loader_write_mem32(pao, dsp_index, 0x01800018, in boot_loader_config_emif()
1685 boot_loader_write_mem32(pao, dsp_index, 0x0180001C, in boot_loader_config_emif()
1688 } else if (dsp_index == 1) { in boot_loader_config_emif()
1735 boot_loader_write_mem32(pao, dsp_index, 0x01B7C100, 0x0000); in boot_loader_config_emif()
1738 boot_loader_write_mem32(pao, dsp_index, 0x01B7C120, 0x8002); in boot_loader_config_emif()
1740 boot_loader_write_mem32(pao, dsp_index, 0x01B7C11C, 0x8001); in boot_loader_config_emif()
1742 boot_loader_write_mem32(pao, dsp_index, 0x01B7C118, 0x8000); in boot_loader_config_emif()
1749 boot_loader_write_mem32(pao, dsp_index, 0x01B7C100, 0x0001); in boot_loader_config_emif()
1765 if ((boot_loader_read_mem32(pao, dsp_index, 0x01B7C100) & 0xF) in boot_loader_config_emif()
1771 boot_loader_write_mem32(pao, dsp_index, C6713_EMIF_GCTL, in boot_loader_config_emif()
1785 boot_loader_write_mem32(pao, dsp_index, C6713_EMIF_CE0, in boot_loader_config_emif()
1807 boot_loader_write_mem32(pao, dsp_index, C6713_EMIF_SDRAMEXT, in boot_loader_config_emif()
1827 boot_loader_write_mem32(pao, dsp_index, C6713_EMIF_SDRAMCTL, in boot_loader_config_emif()
1833 boot_loader_write_mem32(pao, dsp_index, in boot_loader_config_emif()
1837 } else if (dsp_index == 2) { in boot_loader_config_emif()
1844 static u16 boot_loader_test_memory(struct hpi_adapter_obj *pao, int dsp_index, in boot_loader_test_memory() argument
1861 boot_loader_write_mem32(pao, dsp_index, test_addr, in boot_loader_test_memory()
1863 data = boot_loader_read_mem32(pao, dsp_index, in boot_loader_test_memory()
1869 test_data, data, dsp_index); in boot_loader_test_memory()
1882 boot_loader_write_mem32(pao, dsp_index, test_addr, test_data); in boot_loader_test_memory()
1883 boot_loader_write_mem32(pao, dsp_index, test_addr + 4, 0); in boot_loader_test_memory()
1884 data = boot_loader_read_mem32(pao, dsp_index, test_addr); in boot_loader_test_memory()
1889 data, dsp_index); in boot_loader_test_memory()
1893 boot_loader_write_mem32(pao, dsp_index, test_addr, 0x0); in boot_loader_test_memory()
1899 boot_loader_write_mem32(pao, dsp_index, test_addr, 0x0); in boot_loader_test_memory()
1905 int dsp_index) in boot_loader_test_internal_memory() argument
1908 if (dsp_index == 0) { in boot_loader_test_internal_memory()
1911 err = boot_loader_test_memory(pao, dsp_index, 0x00000000, in boot_loader_test_internal_memory()
1915 err = boot_loader_test_memory(pao, dsp_index, in boot_loader_test_internal_memory()
1917 } else if (dsp_index == 1) { in boot_loader_test_internal_memory()
1920 err = boot_loader_test_memory(pao, dsp_index, 0x00000000, in boot_loader_test_internal_memory()
1924 err = boot_loader_test_memory(pao, dsp_index, in boot_loader_test_internal_memory()
1935 int dsp_index) in boot_loader_test_external_memory() argument
1940 if (dsp_index == 0) { in boot_loader_test_external_memory()
1949 } else if (dsp_index == 1) { in boot_loader_test_external_memory()
1956 if (boot_loader_test_memory(pao, dsp_index, dRAM_start_address, in boot_loader_test_external_memory()
1962 static u16 boot_loader_test_pld(struct hpi_adapter_obj *pao, int dsp_index) in boot_loader_test_pld() argument
1965 if (dsp_index == 0) { in boot_loader_test_pld()
1969 data = boot_loader_read_mem32(pao, dsp_index, in boot_loader_test_pld()
1973 data = boot_loader_read_mem32(pao, dsp_index, in boot_loader_test_pld()
1978 } else if (dsp_index == 1) { in boot_loader_test_pld()
1982 data = boot_loader_read_mem32(pao, dsp_index, in boot_loader_test_pld()
1987 boot_loader_write_mem32(pao, dsp_index, 0x90000000, in boot_loader_test_pld()