Lines Matching refs:runtime
418 struct sst_module_runtime *runtime, *rtmp; in sst_fw_unload() local
429 list_for_each_entry_safe(runtime, rtmp, &module->runtime_list, list) { in sst_fw_unload()
431 block_list_remove(dsp, &runtime->block_list); in sst_fw_unload()
432 list_del(&runtime->list); in sst_fw_unload()
433 kfree(runtime); in sst_fw_unload()
530 struct sst_module_runtime *runtime; in sst_module_runtime_new() local
532 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in sst_module_runtime_new()
533 if (runtime == NULL) in sst_module_runtime_new()
536 runtime->id = id; in sst_module_runtime_new()
537 runtime->dsp = dsp; in sst_module_runtime_new()
538 runtime->module = module; in sst_module_runtime_new()
539 INIT_LIST_HEAD(&runtime->block_list); in sst_module_runtime_new()
542 list_add(&runtime->list, &module->runtime_list); in sst_module_runtime_new()
545 return runtime; in sst_module_runtime_new()
549 void sst_module_runtime_free(struct sst_module_runtime *runtime) in sst_module_runtime_free() argument
551 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_free()
554 list_del(&runtime->list); in sst_module_runtime_free()
557 kfree(runtime); in sst_module_runtime_free()
857 int sst_module_runtime_alloc_blocks(struct sst_module_runtime *runtime, in sst_module_runtime_alloc_blocks() argument
860 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_alloc_blocks()
861 struct sst_module *module = runtime->module; in sst_module_runtime_alloc_blocks()
883 ret = block_alloc_fixed(dsp, &ba, &runtime->block_list); in sst_module_runtime_alloc_blocks()
890 ret = block_alloc(dsp, &ba, &runtime->block_list); in sst_module_runtime_alloc_blocks()
899 runtime->persistent_offset = ba.offset; in sst_module_runtime_alloc_blocks()
902 ret = block_list_prepare(dsp, &runtime->block_list); in sst_module_runtime_alloc_blocks()
918 int sst_module_runtime_free_blocks(struct sst_module_runtime *runtime) in sst_module_runtime_free_blocks() argument
920 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_free_blocks()
923 block_list_remove(dsp, &runtime->block_list); in sst_module_runtime_free_blocks()
929 int sst_module_runtime_save(struct sst_module_runtime *runtime, in sst_module_runtime_save() argument
932 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_save()
933 struct sst_module *module = runtime->module; in sst_module_runtime_save()
937 runtime->id, runtime->persistent_offset, in sst_module_runtime_save()
957 dsp->addr.lpe_base + runtime->persistent_offset, in sst_module_runtime_save()
966 runtime->persistent_offset, in sst_module_runtime_save()
975 int sst_module_runtime_restore(struct sst_module_runtime *runtime, in sst_module_runtime_restore() argument
978 struct sst_dsp *dsp = runtime->dsp; in sst_module_runtime_restore()
979 struct sst_module *module = runtime->module; in sst_module_runtime_restore()
983 runtime->id, runtime->persistent_offset, in sst_module_runtime_restore()
1000 dsp->addr.lpe_base + runtime->persistent_offset, in sst_module_runtime_restore()
1008 sst_memcpy32(dsp->addr.lpe + runtime->persistent_offset, in sst_module_runtime_restore()
1173 struct sst_module_runtime *runtime; in sst_module_runtime_get_from_id() local
1178 list_for_each_entry(runtime, &module->runtime_list, list) { in sst_module_runtime_get_from_id()
1179 if (runtime->id == id) { in sst_module_runtime_get_from_id()
1181 return runtime; in sst_module_runtime_get_from_id()