Searched refs:sst_drv_ctx (Results 1 – 6 of 6) sorted by relevance
/sound/soc/intel/atom/sst/ |
D | sst_stream.c | 28 int sst_alloc_stream_mrfld(struct intel_sst_drv *sst_drv_ctx, void *params) in sst_alloc_stream_mrfld() argument 36 dev_dbg(sst_drv_ctx->dev, "Enter\n"); in sst_alloc_stream_mrfld() 40 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_alloc_stream_mrfld() 72 sst_drv_ctx->streams[str_id].status = STREAM_INIT; in sst_alloc_stream_mrfld() 73 sst_drv_ctx->streams[str_id].prev = STREAM_UN_INIT; in sst_alloc_stream_mrfld() 74 sst_drv_ctx->streams[str_id].pipe_id = str_params->device_type; in sst_alloc_stream_mrfld() 75 sst_drv_ctx->streams[str_id].task_id = str_params->task; in sst_alloc_stream_mrfld() 76 sst_drv_ctx->streams[str_id].num_ch = num_ch; in sst_alloc_stream_mrfld() 78 if (sst_drv_ctx->info.lpe_viewpt_rqd) in sst_alloc_stream_mrfld() 79 str_info->alloc_param.ts = sst_drv_ctx->info.mailbox_start + in sst_alloc_stream_mrfld() [all …]
|
D | sst_loader.c | 55 int intel_sst_reset_dsp_mrfld(struct intel_sst_drv *sst_drv_ctx) in intel_sst_reset_dsp_mrfld() argument 59 dev_dbg(sst_drv_ctx->dev, "sst: Resetting the DSP in mrfld\n"); in intel_sst_reset_dsp_mrfld() 60 csr.full = sst_shim_read64(sst_drv_ctx->shim, SST_CSR); in intel_sst_reset_dsp_mrfld() 62 dev_dbg(sst_drv_ctx->dev, "value:0x%llx\n", csr.full); in intel_sst_reset_dsp_mrfld() 65 sst_shim_write64(sst_drv_ctx->shim, SST_CSR, csr.full); in intel_sst_reset_dsp_mrfld() 66 csr.full = sst_shim_read64(sst_drv_ctx->shim, SST_CSR); in intel_sst_reset_dsp_mrfld() 68 dev_dbg(sst_drv_ctx->dev, "value:0x%llx\n", csr.full); in intel_sst_reset_dsp_mrfld() 71 sst_shim_write64(sst_drv_ctx->shim, SST_CSR, csr.full); in intel_sst_reset_dsp_mrfld() 73 csr.full = sst_shim_read64(sst_drv_ctx->shim, SST_CSR); in intel_sst_reset_dsp_mrfld() 74 dev_dbg(sst_drv_ctx->dev, "value:0x%llx\n", csr.full); in intel_sst_reset_dsp_mrfld() [all …]
|
D | sst_ipc.c | 116 int sst_post_message_mrfld(struct intel_sst_drv *sst_drv_ctx, in sst_post_message_mrfld() argument 125 dev_dbg(sst_drv_ctx->dev, "Enter: sync: %d\n", sync); in sst_post_message_mrfld() 126 spin_lock_irqsave(&sst_drv_ctx->ipc_spin_lock, irq_flags); in sst_post_message_mrfld() 127 header.full = sst_shim_read64(sst_drv_ctx->shim, SST_IPCX); in sst_post_message_mrfld() 131 dev_err(sst_drv_ctx->dev, in sst_post_message_mrfld() 138 header.full = sst_shim_read64(sst_drv_ctx->shim, SST_IPCX); in sst_post_message_mrfld() 141 if (list_empty(&sst_drv_ctx->ipc_dispatch_list)) { in sst_post_message_mrfld() 143 spin_unlock_irqrestore(&sst_drv_ctx->ipc_spin_lock, irq_flags); in sst_post_message_mrfld() 144 dev_dbg(sst_drv_ctx->dev, in sst_post_message_mrfld() 150 spin_unlock_irqrestore(&sst_drv_ctx->ipc_spin_lock, irq_flags); in sst_post_message_mrfld() [all …]
|
D | sst_pvt.c | 66 struct intel_sst_drv *sst_drv_ctx, int sst_state) in sst_set_fw_state_locked() argument 68 mutex_lock(&sst_drv_ctx->sst_lock); in sst_set_fw_state_locked() 69 sst_drv_ctx->sst_state = sst_state; in sst_set_fw_state_locked() 70 mutex_unlock(&sst_drv_ctx->sst_lock); in sst_set_fw_state_locked() 82 int sst_wait_interruptible(struct intel_sst_drv *sst_drv_ctx, in sst_wait_interruptible() argument 87 if (!wait_event_interruptible(sst_drv_ctx->wait_queue, in sst_wait_interruptible() 91 dev_err(sst_drv_ctx->dev, in sst_wait_interruptible() 95 dev_dbg(sst_drv_ctx->dev, "event up\n"); in sst_wait_interruptible() 99 dev_err(sst_drv_ctx->dev, "signal interrupted\n"); in sst_wait_interruptible() 115 int sst_wait_timeout(struct intel_sst_drv *sst_drv_ctx, struct sst_block *block) in sst_wait_timeout() argument [all …]
|
D | sst_pci.c | 116 struct intel_sst_drv *sst_drv_ctx; in intel_sst_probe() local 120 ret = sst_alloc_drv_context(&sst_drv_ctx, &pci->dev, pci->device); in intel_sst_probe() 124 sst_drv_ctx->pdata = sst_pdata; in intel_sst_probe() 125 sst_drv_ctx->irq_num = pci->irq; in intel_sst_probe() 126 snprintf(sst_drv_ctx->firmware_name, sizeof(sst_drv_ctx->firmware_name), in intel_sst_probe() 128 sst_drv_ctx->dev_id, ".bin"); in intel_sst_probe() 130 ret = sst_context_init(sst_drv_ctx); in intel_sst_probe() 137 dev_err(sst_drv_ctx->dev, in intel_sst_probe() 141 sst_drv_ctx->pci = pci_dev_get(pci); in intel_sst_probe() 142 ret = sst_platform_get_resources(sst_drv_ctx); in intel_sst_probe() [all …]
|
D | sst.h | 430 int sst_realloc_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 431 int sst_pause_stream(struct intel_sst_drv *sst_drv_ctx, int id); 432 int sst_resume_stream(struct intel_sst_drv *sst_drv_ctx, int id); 433 int sst_drop_stream(struct intel_sst_drv *sst_drv_ctx, int id); 434 int sst_free_stream(struct intel_sst_drv *sst_drv_ctx, int id); 435 int sst_start_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 440 int sst_get_stream(struct intel_sst_drv *sst_drv_ctx, 445 int sst_drain_stream(struct intel_sst_drv *sst_drv_ctx, 457 int sst_get_block_stream(struct intel_sst_drv *sst_drv_ctx); 460 int sst_wait_interruptible(struct intel_sst_drv *sst_drv_ctx, [all …]
|