Lines Matching refs:core_id
336 int skl_dsp_get_core(struct sst_dsp *ctx, unsigned int core_id) in skl_dsp_get_core() argument
341 if (core_id >= skl->cores.count) { in skl_dsp_get_core()
342 dev_err(ctx->dev, "invalid core id: %d\n", core_id); in skl_dsp_get_core()
346 skl->cores.usage_count[core_id]++; in skl_dsp_get_core()
348 if (skl->cores.state[core_id] == SKL_DSP_RESET) { in skl_dsp_get_core()
349 ret = ctx->fw_ops.set_state_D0(ctx, core_id); in skl_dsp_get_core()
351 dev_err(ctx->dev, "unable to get core%d\n", core_id); in skl_dsp_get_core()
358 core_id, skl->cores.state[core_id], in skl_dsp_get_core()
359 skl->cores.usage_count[core_id]); in skl_dsp_get_core()
365 int skl_dsp_put_core(struct sst_dsp *ctx, unsigned int core_id) in skl_dsp_put_core() argument
370 if (core_id >= skl->cores.count) { in skl_dsp_put_core()
371 dev_err(ctx->dev, "invalid core id: %d\n", core_id); in skl_dsp_put_core()
375 if ((--skl->cores.usage_count[core_id] == 0) && in skl_dsp_put_core()
376 (skl->cores.state[core_id] != SKL_DSP_RESET)) { in skl_dsp_put_core()
377 ret = ctx->fw_ops.set_state_D3(ctx, core_id); in skl_dsp_put_core()
380 core_id, ret); in skl_dsp_put_core()
381 skl->cores.usage_count[core_id]++; in skl_dsp_put_core()
386 core_id, skl->cores.state[core_id], in skl_dsp_put_core()
387 skl->cores.usage_count[core_id]); in skl_dsp_put_core()