Lines Matching refs:sst_module
422 struct sst_module *module, *mtmp; in sst_fw_unload()
489 struct sst_module *sst_module_new(struct sst_fw *sst_fw, in sst_module_new()
493 struct sst_module *sst_module; in sst_module_new() local
495 sst_module = kzalloc(sizeof(*sst_module), GFP_KERNEL); in sst_module_new()
496 if (sst_module == NULL) in sst_module_new()
499 sst_module->id = template->id; in sst_module_new()
500 sst_module->dsp = dsp; in sst_module_new()
501 sst_module->sst_fw = sst_fw; in sst_module_new()
502 sst_module->scratch_size = template->scratch_size; in sst_module_new()
503 sst_module->persistent_size = template->persistent_size; in sst_module_new()
504 sst_module->entry = template->entry; in sst_module_new()
505 sst_module->state = SST_MODULE_STATE_UNLOADED; in sst_module_new()
507 INIT_LIST_HEAD(&sst_module->block_list); in sst_module_new()
508 INIT_LIST_HEAD(&sst_module->runtime_list); in sst_module_new()
511 list_add(&sst_module->list, &dsp->module_list); in sst_module_new()
514 return sst_module; in sst_module_new()
519 void sst_module_free(struct sst_module *sst_module) in sst_module_free() argument
521 struct sst_dsp *dsp = sst_module->dsp; in sst_module_free()
524 list_del(&sst_module->list); in sst_module_free()
527 kfree(sst_module); in sst_module_free()
531 struct sst_module_runtime *sst_module_runtime_new(struct sst_module *module, in sst_module_runtime_new()
792 int sst_module_alloc_blocks(struct sst_module *module) in sst_module_alloc_blocks()
851 int sst_module_free_blocks(struct sst_module *module) in sst_module_free_blocks()
866 struct sst_module *module = runtime->module; in sst_module_runtime_alloc_blocks()
938 struct sst_module *module = runtime->module; in sst_module_runtime_save()
984 struct sst_module *module = runtime->module; in sst_module_runtime_restore()
1079 struct sst_module *module; in sst_block_alloc_scratch()
1157 struct sst_module *sst_module_get_from_id(struct sst_dsp *dsp, u32 id) in sst_module_get_from_id()
1159 struct sst_module *module; in sst_module_get_from_id()
1176 struct sst_module *module, u32 id) in sst_module_runtime_get_from_id()