Lines Matching refs:dsp
287 static bool skl_ipc_is_dsp_busy(struct sst_dsp *dsp) in skl_ipc_is_dsp_busy() argument
291 hipci = sst_dsp_shim_read_unlocked(dsp, SKL_ADSP_REG_HIPCI); in skl_ipc_is_dsp_busy()
301 sst_dsp_outbox_write(ipc->dsp, msg->tx.data, msg->tx.size); in skl_ipc_tx_msg()
302 sst_dsp_shim_write_unlocked(ipc->dsp, SKL_ADSP_REG_HIPCIE, in skl_ipc_tx_msg()
304 sst_dsp_shim_write_unlocked(ipc->dsp, SKL_ADSP_REG_HIPCI, in skl_ipc_tx_msg()
308 int skl_ipc_check_D0i0(struct sst_dsp *dsp, bool state) in skl_ipc_check_D0i0() argument
313 if (!dsp->fw_ops.set_state_D0i0) in skl_ipc_check_D0i0()
318 ret = dsp->fw_ops.set_state_D0i0(dsp); in skl_ipc_check_D0i0()
320 ret = dsp->fw_ops.set_state_D0i3(dsp); in skl_ipc_check_D0i0()
417 ipc->dsp->fw_ops.get_fw_errcode(ipc->dsp)); in skl_ipc_set_reply_error_code()
424 ipc->dsp->fw_ops.get_fw_errcode(ipc->dsp)); in skl_ipc_set_reply_error_code()
428 ipc->dsp->fw_ops.get_fw_errcode(ipc->dsp)); in skl_ipc_set_reply_error_code()
442 spin_lock_irqsave(&ipc->dsp->spinlock, flags); in skl_ipc_process_reply()
444 spin_unlock_irqrestore(&ipc->dsp->spinlock, flags); in skl_ipc_process_reply()
455 sst_dsp_inbox_read(ipc->dsp, msg->rx.data, msg->rx.size); in skl_ipc_process_reply()
484 spin_lock_irqsave(&ipc->dsp->spinlock, flags); in skl_ipc_process_reply()
486 spin_unlock_irqrestore(&ipc->dsp->spinlock, flags); in skl_ipc_process_reply()
491 struct sst_dsp *dsp = context; in skl_dsp_irq_thread_handler() local
492 struct skl_dev *skl = dsp->thread_context; in skl_dsp_irq_thread_handler()
498 if (dsp->intr_status & SKL_ADSPIS_CL_DMA) in skl_dsp_irq_thread_handler()
499 skl_cldma_process_intr(dsp); in skl_dsp_irq_thread_handler()
502 if (!(dsp->intr_status & SKL_ADSPIS_IPC)) in skl_dsp_irq_thread_handler()
505 hipcie = sst_dsp_shim_read_unlocked(dsp, SKL_ADSP_REG_HIPCIE); in skl_dsp_irq_thread_handler()
506 hipct = sst_dsp_shim_read_unlocked(dsp, SKL_ADSP_REG_HIPCT); in skl_dsp_irq_thread_handler()
507 hipcte = sst_dsp_shim_read_unlocked(dsp, SKL_ADSP_REG_HIPCTE); in skl_dsp_irq_thread_handler()
511 sst_dsp_shim_update_bits(dsp, SKL_ADSP_REG_HIPCCTL, in skl_dsp_irq_thread_handler()
515 sst_dsp_shim_update_bits_forced(dsp, SKL_ADSP_REG_HIPCIE, in skl_dsp_irq_thread_handler()
521 sst_dsp_shim_update_bits(dsp, SKL_ADSP_REG_HIPCCTL, in skl_dsp_irq_thread_handler()
529 dev_dbg(dsp->dev, "IPC irq: Firmware respond primary:%x\n", in skl_dsp_irq_thread_handler()
531 dev_dbg(dsp->dev, "IPC irq: Firmware respond extension:%x\n", in skl_dsp_irq_thread_handler()
538 dev_dbg(dsp->dev, "IPC irq: Notification from firmware\n"); in skl_dsp_irq_thread_handler()
542 sst_dsp_shim_update_bits_forced(dsp, SKL_ADSP_REG_HIPCT, in skl_dsp_irq_thread_handler()
550 skl_ipc_int_enable(dsp); in skl_dsp_irq_thread_handler()
605 ipc->dsp = skl->dsp; in skl_ipc_init()
625 sst_dsp_shim_update_bits(ipc->dsp, SKL_ADSP_REG_HIPCCTL, in skl_ipc_free()
629 sst_dsp_shim_update_bits(ipc->dsp, SKL_ADSP_REG_HIPCCTL, in skl_ipc_free()