Lines Matching refs:sst
409 struct sst_dsp *sst; in skl_dsp_ctx_init() local
411 sst = devm_kzalloc(dev, sizeof(*sst), GFP_KERNEL); in skl_dsp_ctx_init()
412 if (sst == NULL) in skl_dsp_ctx_init()
415 spin_lock_init(&sst->spinlock); in skl_dsp_ctx_init()
416 mutex_init(&sst->mutex); in skl_dsp_ctx_init()
417 sst->dev = dev; in skl_dsp_ctx_init()
418 sst->sst_dev = sst_dev; in skl_dsp_ctx_init()
419 sst->irq = irq; in skl_dsp_ctx_init()
420 sst->ops = sst_dev->ops; in skl_dsp_ctx_init()
421 sst->thread_context = sst_dev->thread_context; in skl_dsp_ctx_init()
424 if (sst->ops->init) { in skl_dsp_ctx_init()
425 ret = sst->ops->init(sst); in skl_dsp_ctx_init()
430 return sst; in skl_dsp_ctx_init()
433 int skl_dsp_acquire_irq(struct sst_dsp *sst) in skl_dsp_acquire_irq() argument
435 struct sst_dsp_device *sst_dev = sst->sst_dev; in skl_dsp_acquire_irq()
439 ret = request_threaded_irq(sst->irq, sst->ops->irq_handler, in skl_dsp_acquire_irq()
440 sst_dev->thread, IRQF_SHARED, "AudioDSP", sst); in skl_dsp_acquire_irq()
442 dev_err(sst->dev, "unable to grab threaded IRQ %d, disabling device\n", in skl_dsp_acquire_irq()
443 sst->irq); in skl_dsp_acquire_irq()