Lines Matching refs:dsp

282 	struct sst_dsp *dsp;  member
449 sst_dsp_read(hsw->dsp, &fw_ready, offset, sizeof(fw_ready)); in hsw_fw_ready()
451 sst_dsp_mailbox_init(hsw->dsp, fw_ready.inbox_offset, in hsw_fw_ready()
492 sst_dsp_inbox_read(hsw->dsp, glitch, sizeof(*glitch)); in hsw_notification_work()
502 sst_dsp_inbox_read(hsw->dsp, pos, sizeof(*pos)); in hsw_notification_work()
515 sst_dsp_shim_update_bits(hsw->dsp, SST_IPCD, in hsw_notification_work()
519 sst_dsp_shim_update_bits(hsw->dsp, SST_IMRX, SST_IMRX_BUSY, 0); in hsw_notification_work()
576 sst_dsp_inbox_read(hsw->dsp, msg->rx_data, in hsw_process_reply()
581 sst_dsp_outbox_read(hsw->dsp, msg->rx_data, in hsw_process_reply()
712 hsw->dsp, &stream->curr_pos, sizeof(stream->curr_pos)); in hsw_log_message()
722 struct sst_dsp *sst = hsw->dsp; in hsw_process_notification()
782 ipcx = sst_dsp_ipc_msg_rx(hsw->dsp); in hsw_irq_thread()
848 sst_dsp_read(hsw->dsp, volume, in sst_hsw_stream_get_volume()
913 sst_dsp_read(hsw->dsp, volume, in sst_hsw_mixer_get_volume()
979 struct sst_dsp *sst = hsw->dsp; in sst_hsw_stream_new()
1005 struct sst_dsp *sst = hsw->dsp; in sst_hsw_stream_free()
1160 struct sst_dsp *dsp = sst_hsw_get_dsp(hsw); in sst_hsw_stream_set_module_info() local
1174 sst_dsp_get_offset(dsp, runtime->persistent_offset, SST_MEM_DRAM); in sst_hsw_stream_set_module_info()
1178 sst_dsp_get_offset(dsp, dsp->scratch_offset, SST_MEM_DRAM); in sst_hsw_stream_set_module_info()
1179 stream->request.scratch_mem.size = dsp->scratch_size; in sst_hsw_stream_set_module_info()
1373 sst_dsp_read(hsw->dsp, &rpos, in sst_hsw_get_dsp_position()
1385 sst_dsp_read(hsw->dsp, &ppos, in sst_hsw_get_dsp_presentation_position()
1460 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_runtime_module_create() local
1465 module = sst_module_get_from_id(dsp, mod_id); in sst_hsw_runtime_module_create()
1467 dev_err(dsp->dev, "error: failed to get module %d for pcm\n", in sst_hsw_runtime_module_create()
1474 dev_err(dsp->dev, "error: failed to create module %d runtime\n", in sst_hsw_runtime_module_create()
1481 dev_err(dsp->dev, "error: failed to alloc blocks for module %d runtime\n", in sst_hsw_runtime_module_create()
1487 dev_dbg(dsp->dev, "runtime id %d created for module %d\n", runtime->id, in sst_hsw_runtime_module_create()
1501 struct sst_dsp *sst = hsw->dsp; in sst_hsw_dx_state_dump()
1554 struct sst_dsp *sst = hsw->dsp; in sst_hsw_dx_state_restore()
1583 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_dsp_load() local
1589 ret = sst_dsp_wake(dsp); in sst_hsw_dsp_load()
1595 ret = sst_dsp_dma_get_channel(dsp, 0); in sst_hsw_dsp_load()
1601 list_for_each_entry_safe_reverse(sst_fw, t, &dsp->fw_list, list) { in sst_hsw_dsp_load()
1605 sst_dsp_dma_put_channel(dsp); in sst_hsw_dsp_load()
1609 ret = sst_block_alloc_scratch(hsw->dsp); in sst_hsw_dsp_load()
1613 sst_dsp_dma_put_channel(dsp); in sst_hsw_dsp_load()
1619 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_dsp_restore() local
1624 ret = sst_dsp_dma_get_channel(dsp, 0); in sst_hsw_dsp_restore()
1633 sst_dsp_dma_put_channel(dsp); in sst_hsw_dsp_restore()
1636 sst_dsp_dma_put_channel(dsp); in sst_hsw_dsp_restore()
1639 sst_dsp_boot(dsp); in sst_hsw_dsp_restore()
1654 sst_dsp_stall(hsw->dsp); in sst_hsw_dsp_runtime_suspend()
1668 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_dsp_runtime_sleep() local
1670 list_for_each_entry_safe(sst_fw, t, &dsp->fw_list, list) { in sst_hsw_dsp_runtime_sleep()
1673 sst_block_free_scratch(dsp); in sst_hsw_dsp_runtime_sleep()
1677 sst_dsp_sleep(dsp); in sst_hsw_dsp_runtime_sleep()
1702 sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCD), in sst_hsw_dsp_runtime_resume()
1703 sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCX)); in sst_hsw_dsp_runtime_resume()
1720 return hsw->dsp; in sst_hsw_get_dsp()
1730 module = sst_module_get_from_id(hsw->dsp, id); in sst_hsw_init_module_state()
1745 module = sst_module_get_from_id(hsw->dsp, module_id); in sst_hsw_is_module_loaded()
1756 module = sst_module_get_from_id(hsw->dsp, module_id); in sst_hsw_is_module_active()
1847 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_module_load() local
1851 module = sst_module_get_from_id(dsp, module_id); in sst_hsw_module_load()
1856 fw = dsp->pdata->fw; in sst_hsw_module_load()
1872 hsw_sst_fw = sst_fw_new(dsp, fw, hsw); in sst_hsw_module_load()
1878 module = sst_module_get_from_id(dsp, module_id); in sst_hsw_module_load()
1903 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_module_enable() local
1915 module = sst_module_get_from_id(dsp, module_id); in sst_hsw_module_enable()
1937 sst_dsp_get_offset(dsp, in sst_hsw_module_enable()
1942 sst_dsp_get_offset(dsp, in sst_hsw_module_enable()
1943 dsp->scratch_offset, SST_MEM_DRAM); in sst_hsw_module_enable()
1969 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_module_disable() local
1981 module = sst_module_get_from_id(dsp, module_id); in sst_hsw_module_disable()
2053 dma_free_coherent(hsw->dsp->dma_dev, in sst_hsw_module_set_param()
2067 sst_dsp_outbox_write(ipc->dsp, msg->tx_data, msg->tx_size); in hsw_tx_msg()
2068 sst_dsp_ipc_msg_tx(ipc->dsp, msg->header); in hsw_tx_msg()
2073 struct sst_dsp *sst = ipc->dsp; in hsw_shim_dbg()
2130 hsw->dsp = sst_dsp_new(dev, &hsw_dev, pdata); in sst_hsw_dsp_init()
2131 if (hsw->dsp == NULL) { in sst_hsw_dsp_init()
2136 ipc->dsp = hsw->dsp; in sst_hsw_dsp_init()
2139 hsw->dx_context = dma_alloc_coherent(hsw->dsp->dma_dev, in sst_hsw_dsp_init()
2147 sst_dsp_reset(hsw->dsp); in sst_hsw_dsp_init()
2158 ret = sst_block_alloc_scratch(hsw->dsp); in sst_hsw_dsp_init()
2166 sst_dsp_boot(hsw->dsp); in sst_hsw_dsp_init()
2172 sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCD), in sst_hsw_dsp_init()
2173 sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCX)); in sst_hsw_dsp_init()
2190 pdata->dsp = hsw; in sst_hsw_dsp_init()
2194 sst_dsp_reset(hsw->dsp); in sst_hsw_dsp_init()
2195 sst_fw_free_all(hsw->dsp); in sst_hsw_dsp_init()
2197 dma_free_coherent(hsw->dsp->dma_dev, SST_HSW_DX_CONTEXT_SIZE, in sst_hsw_dsp_init()
2200 sst_dsp_free(hsw->dsp); in sst_hsw_dsp_init()
2210 struct sst_hsw *hsw = pdata->dsp; in sst_hsw_dsp_free()
2212 sst_dsp_reset(hsw->dsp); in sst_hsw_dsp_free()
2213 sst_fw_free_all(hsw->dsp); in sst_hsw_dsp_free()
2214 dma_free_coherent(hsw->dsp->dma_dev, SST_HSW_DX_CONTEXT_SIZE, in sst_hsw_dsp_free()
2216 sst_dsp_free(hsw->dsp); in sst_hsw_dsp_free()