Lines Matching defs:cnl
3 * cnl-sst.c - DSP library functions for CNL platform
26 #include "cnl-sst-dsp.h"
127 struct skl_dev *cnl = ctx->thread_context;
139 if (cnl->is_first_boot) {
167 ret = wait_event_timeout(cnl->boot_wait, cnl->boot_complete,
176 cnl->fw_loaded = true;
190 struct skl_dev *cnl = ctx->thread_context;
195 if (!cnl->fw_loaded) {
196 cnl->boot_complete = false;
203 cnl->cores.state[core_id] = SKL_DSP_RUNNING;
218 cnl->boot_complete = false;
220 ret = wait_event_timeout(cnl->boot_wait, cnl->boot_complete,
234 ret = skl_ipc_set_dx(&cnl->ipc, CNL_INSTANCE_ID,
242 cnl->cores.state[core_id] = SKL_DSP_RUNNING;
253 struct skl_dev *cnl = ctx->thread_context;
261 ret = skl_ipc_set_dx(&cnl->ipc, CNL_INSTANCE_ID,
267 cnl->fw_loaded = false;
283 cnl->cores.state[core_id] = SKL_DSP_RESET;
315 struct skl_dev *cnl = dsp->thread_context;
316 struct sst_generic_ipc *ipc = &cnl->ipc;
408 static int cnl_ipc_init(struct device *dev, struct skl_dev *cnl)
413 ipc = &cnl->ipc;
414 ipc->dsp = cnl->dsp;
426 * ipc registers are different for cnl
439 struct skl_dev *cnl;
449 cnl = *dsp;
450 sst = cnl->dsp;
463 ret = cnl_ipc_init(dev, cnl);
469 cnl->boot_complete = false;
470 init_waitqueue_head(&cnl->boot_wait);