Lines Matching refs:cnl
127 struct skl_dev *cnl = ctx->thread_context; in cnl_load_base_firmware() local
139 if (cnl->is_first_boot) { in cnl_load_base_firmware()
167 ret = wait_event_timeout(cnl->boot_wait, cnl->boot_complete, in cnl_load_base_firmware()
176 cnl->fw_loaded = true; in cnl_load_base_firmware()
190 struct skl_dev *cnl = ctx->thread_context; in cnl_set_dsp_D0() local
195 if (!cnl->fw_loaded) { in cnl_set_dsp_D0()
196 cnl->boot_complete = false; in cnl_set_dsp_D0()
203 cnl->cores.state[core_id] = SKL_DSP_RUNNING; in cnl_set_dsp_D0()
218 cnl->boot_complete = false; in cnl_set_dsp_D0()
220 ret = wait_event_timeout(cnl->boot_wait, cnl->boot_complete, in cnl_set_dsp_D0()
234 ret = skl_ipc_set_dx(&cnl->ipc, CNL_INSTANCE_ID, in cnl_set_dsp_D0()
242 cnl->cores.state[core_id] = SKL_DSP_RUNNING; in cnl_set_dsp_D0()
253 struct skl_dev *cnl = ctx->thread_context; in cnl_set_dsp_D3() local
261 ret = skl_ipc_set_dx(&cnl->ipc, CNL_INSTANCE_ID, in cnl_set_dsp_D3()
267 cnl->fw_loaded = false; in cnl_set_dsp_D3()
283 cnl->cores.state[core_id] = SKL_DSP_RESET; in cnl_set_dsp_D3()
315 struct skl_dev *cnl = dsp->thread_context; in cnl_dsp_irq_thread_handler() local
316 struct sst_generic_ipc *ipc = &cnl->ipc; in cnl_dsp_irq_thread_handler()
408 static int cnl_ipc_init(struct device *dev, struct skl_dev *cnl) in cnl_ipc_init() argument
413 ipc = &cnl->ipc; in cnl_ipc_init()
414 ipc->dsp = cnl->dsp; in cnl_ipc_init()
439 struct skl_dev *cnl; in cnl_sst_dsp_init() local
449 cnl = *dsp; in cnl_sst_dsp_init()
450 sst = cnl->dsp; in cnl_sst_dsp_init()
463 ret = cnl_ipc_init(dev, cnl); in cnl_sst_dsp_init()
469 cnl->boot_complete = false; in cnl_sst_dsp_init()
470 init_waitqueue_head(&cnl->boot_wait); in cnl_sst_dsp_init()