Lines Matching refs:skl

49 	struct skl_dev *skl = ctx->thread_context;  in bxt_load_library()  local
55 ret = skl_prepare_lib_load(skl, &skl->lib_info[i], &stripped_fw, in bxt_load_library()
73 ret = skl_sst_ipc_load_library(&skl->ipc, dma_id, i, true); in bxt_load_library()
184 struct skl_dev *skl = ctx->thread_context; in bxt_load_base_firmware() local
196 if (skl->is_first_boot) { in bxt_load_base_firmware()
232 ret = wait_event_timeout(skl->boot_wait, skl->boot_complete, in bxt_load_base_firmware()
240 skl->fw_loaded = true; in bxt_load_base_firmware()
268 struct skl_dev *skl = ctx->thread_context; in bxt_d0i3_target_state() local
269 struct skl_d0i3_data *d0i3 = &skl->d0i3; in bxt_d0i3_target_state()
271 if (skl->cores.state[SKL_DSP_CORE0_ID] != SKL_DSP_RUNNING) in bxt_d0i3_target_state()
288 struct skl_dev *skl = container_of(work, in bxt_set_dsp_D0i3() local
290 struct sst_dsp *ctx = skl->dsp; in bxt_set_dsp_D0i3()
291 struct skl_d0i3_data *d0i3 = &skl->d0i3; in bxt_set_dsp_D0i3()
314 ret = skl_ipc_set_d0ix(&skl->ipc, &msg); in bxt_set_dsp_D0i3()
322 if (skl->update_d0i3c) in bxt_set_dsp_D0i3()
323 skl->update_d0i3c(skl->dev, true); in bxt_set_dsp_D0i3()
326 skl->cores.state[SKL_DSP_CORE0_ID] = SKL_DSP_RUNNING_D0I3; in bxt_set_dsp_D0i3()
331 struct skl_dev *skl = ctx->thread_context; in bxt_schedule_dsp_D0i3() local
332 struct skl_d0i3_data *d0i3 = &skl->d0i3; in bxt_schedule_dsp_D0i3()
350 struct skl_dev *skl = ctx->thread_context; in bxt_set_dsp_D0i0() local
355 cancel_delayed_work_sync(&skl->d0i3.work); in bxt_set_dsp_D0i0()
358 if (skl->cores.state[SKL_DSP_CORE0_ID] != SKL_DSP_RUNNING_D0I3) in bxt_set_dsp_D0i0()
368 if (skl->d0i3.state == SKL_DSP_D0I3_STREAMING) in bxt_set_dsp_D0i0()
372 if (skl->update_d0i3c) in bxt_set_dsp_D0i0()
373 skl->update_d0i3c(skl->dev, false); in bxt_set_dsp_D0i0()
375 ret = skl_ipc_set_d0ix(&skl->ipc, &msg); in bxt_set_dsp_D0i0()
381 skl->cores.state[SKL_DSP_CORE0_ID] = SKL_DSP_RUNNING; in bxt_set_dsp_D0i0()
382 skl->d0i3.state = SKL_DSP_D0I3_NONE; in bxt_set_dsp_D0i0()
389 struct skl_dev *skl = ctx->thread_context; in bxt_set_dsp_D0() local
394 if (skl->fw_loaded == false) { in bxt_set_dsp_D0()
395 skl->boot_complete = false; in bxt_set_dsp_D0()
402 if (skl->lib_count > 1) { in bxt_set_dsp_D0()
403 ret = bxt_load_library(ctx, skl->lib_info, in bxt_set_dsp_D0()
404 skl->lib_count); in bxt_set_dsp_D0()
410 skl->cores.state[core_id] = SKL_DSP_RUNNING; in bxt_set_dsp_D0()
432 skl->boot_complete = false; in bxt_set_dsp_D0()
440 ret = wait_event_timeout(skl->boot_wait, in bxt_set_dsp_D0()
441 skl->boot_complete, in bxt_set_dsp_D0()
463 ret = skl_ipc_set_dx(&skl->ipc, BXT_INSTANCE_ID, in bxt_set_dsp_D0()
472 skl->cores.state[core_id] = SKL_DSP_RUNNING; in bxt_set_dsp_D0()
486 struct skl_dev *skl = ctx->thread_context; in bxt_set_dsp_D3() local
495 ret = skl_ipc_set_dx(&skl->ipc, BXT_INSTANCE_ID, in bxt_set_dsp_D3()
505 skl->fw_loaded = false; in bxt_set_dsp_D3()
518 skl->cores.state[core_id] = SKL_DSP_RESET; in bxt_set_dsp_D3()
548 struct skl_dev *skl; in bxt_sst_dsp_init() local
558 skl = *dsp; in bxt_sst_dsp_init()
559 sst = skl->dsp; in bxt_sst_dsp_init()
571 ret = skl_ipc_init(dev, skl); in bxt_sst_dsp_init()
578 skl->ipc.ops.check_dsp_lp_on = skl_ipc_check_D0i0; in bxt_sst_dsp_init()
580 skl->boot_complete = false; in bxt_sst_dsp_init()
581 init_waitqueue_head(&skl->boot_wait); in bxt_sst_dsp_init()
582 INIT_DELAYED_WORK(&skl->d0i3.work, bxt_set_dsp_D0i3); in bxt_sst_dsp_init()
583 skl->d0i3.state = SKL_DSP_D0I3_NONE; in bxt_sst_dsp_init()
589 int bxt_sst_init_fw(struct device *dev, struct skl_dev *skl) in bxt_sst_init_fw() argument
592 struct sst_dsp *sst = skl->dsp; in bxt_sst_init_fw()
602 if (skl->lib_count > 1) { in bxt_sst_init_fw()
603 ret = sst->fw_ops.load_library(sst, skl->lib_info, in bxt_sst_init_fw()
604 skl->lib_count); in bxt_sst_init_fw()
610 skl->is_first_boot = false; in bxt_sst_init_fw()
616 void bxt_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl) in bxt_sst_dsp_cleanup() argument
619 skl_release_library(skl->lib_info, skl->lib_count); in bxt_sst_dsp_cleanup()
620 if (skl->dsp->fw) in bxt_sst_dsp_cleanup()
621 release_firmware(skl->dsp->fw); in bxt_sst_dsp_cleanup()
622 skl_freeup_uuid_list(skl); in bxt_sst_dsp_cleanup()
623 skl_ipc_free(&skl->ipc); in bxt_sst_dsp_cleanup()
624 skl->dsp->ops->free(skl->dsp); in bxt_sst_dsp_cleanup()