Lines Matching refs:runtime
412 struct sst_module_runtime *runtime, *rtmp; in sst_fw_unload() local
423 list_for_each_entry_safe(runtime, rtmp, &module->runtime_list, list) { in sst_fw_unload()
425 block_list_remove(dsp, &runtime->block_list); in sst_fw_unload()
426 list_del(&runtime->list); in sst_fw_unload()
427 kfree(runtime); in sst_fw_unload()
524 struct sst_module_runtime *runtime; in sst_module_runtime_new() local
526 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in sst_module_runtime_new()
527 if (runtime == NULL) in sst_module_runtime_new()
530 runtime->id = id; in sst_module_runtime_new()
531 runtime->dsp = dsp; in sst_module_runtime_new()
532 runtime->module = module; in sst_module_runtime_new()
533 INIT_LIST_HEAD(&runtime->block_list); in sst_module_runtime_new()
536 list_add(&runtime->list, &module->runtime_list); in sst_module_runtime_new()
539 return runtime; in sst_module_runtime_new()
543 void sst_module_runtime_free(struct sst_module_runtime *runtime) in sst_module_runtime_free() argument
545 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_free()
548 list_del(&runtime->list); in sst_module_runtime_free()
551 kfree(runtime); in sst_module_runtime_free()
851 int sst_module_runtime_alloc_blocks(struct sst_module_runtime *runtime, in sst_module_runtime_alloc_blocks() argument
854 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_alloc_blocks()
855 struct sst_module *module = runtime->module; in sst_module_runtime_alloc_blocks()
877 ret = block_alloc_fixed(dsp, &ba, &runtime->block_list); in sst_module_runtime_alloc_blocks()
884 ret = block_alloc(dsp, &ba, &runtime->block_list); in sst_module_runtime_alloc_blocks()
893 runtime->persistent_offset = ba.offset; in sst_module_runtime_alloc_blocks()
896 ret = block_list_prepare(dsp, &runtime->block_list); in sst_module_runtime_alloc_blocks()
912 int sst_module_runtime_free_blocks(struct sst_module_runtime *runtime) in sst_module_runtime_free_blocks() argument
914 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_free_blocks()
917 block_list_remove(dsp, &runtime->block_list); in sst_module_runtime_free_blocks()
923 int sst_module_runtime_save(struct sst_module_runtime *runtime, in sst_module_runtime_save() argument
926 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_save()
927 struct sst_module *module = runtime->module; in sst_module_runtime_save()
931 runtime->id, runtime->persistent_offset, in sst_module_runtime_save()
951 dsp->addr.lpe_base + runtime->persistent_offset, in sst_module_runtime_save()
960 runtime->persistent_offset, in sst_module_runtime_save()
969 int sst_module_runtime_restore(struct sst_module_runtime *runtime, in sst_module_runtime_restore() argument
972 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_restore()
973 struct sst_module *module = runtime->module; in sst_module_runtime_restore()
977 runtime->id, runtime->persistent_offset, in sst_module_runtime_restore()
994 dsp->addr.lpe_base + runtime->persistent_offset, in sst_module_runtime_restore()
1002 sst_memcpy32(dsp->addr.lpe + runtime->persistent_offset, in sst_module_runtime_restore()
1167 struct sst_module_runtime *runtime; in sst_module_runtime_get_from_id() local
1172 list_for_each_entry(runtime, &module->runtime_list, list) { in sst_module_runtime_get_from_id()
1173 if (runtime->id == id) { in sst_module_runtime_get_from_id()
1175 return runtime; in sst_module_runtime_get_from_id()