Lines Matching refs:sst_module
417 struct sst_module *module, *mtmp; in sst_fw_unload()
484 struct sst_module *sst_module_new(struct sst_fw *sst_fw, in sst_module_new()
488 struct sst_module *sst_module; in sst_module_new() local
490 sst_module = kzalloc(sizeof(*sst_module), GFP_KERNEL); in sst_module_new()
491 if (sst_module == NULL) in sst_module_new()
494 sst_module->id = template->id; in sst_module_new()
495 sst_module->dsp = dsp; in sst_module_new()
496 sst_module->sst_fw = sst_fw; in sst_module_new()
497 sst_module->scratch_size = template->scratch_size; in sst_module_new()
498 sst_module->persistent_size = template->persistent_size; in sst_module_new()
499 sst_module->entry = template->entry; in sst_module_new()
500 sst_module->state = SST_MODULE_STATE_UNLOADED; in sst_module_new()
502 INIT_LIST_HEAD(&sst_module->block_list); in sst_module_new()
503 INIT_LIST_HEAD(&sst_module->runtime_list); in sst_module_new()
506 list_add(&sst_module->list, &dsp->module_list); in sst_module_new()
509 return sst_module; in sst_module_new()
514 void sst_module_free(struct sst_module *sst_module) in sst_module_free() argument
516 struct sst_dsp *dsp = sst_module->dsp; in sst_module_free()
519 list_del(&sst_module->list); in sst_module_free()
522 kfree(sst_module); in sst_module_free()
526 struct sst_module_runtime *sst_module_runtime_new(struct sst_module *module, in sst_module_runtime_new()
787 int sst_module_alloc_blocks(struct sst_module *module) in sst_module_alloc_blocks()
846 int sst_module_free_blocks(struct sst_module *module) in sst_module_free_blocks()
861 struct sst_module *module = runtime->module; in sst_module_runtime_alloc_blocks()
933 struct sst_module *module = runtime->module; in sst_module_runtime_save()
979 struct sst_module *module = runtime->module; in sst_module_runtime_restore()
1074 struct sst_module *module; in sst_block_alloc_scratch()
1152 struct sst_module *sst_module_get_from_id(struct sst_dsp *dsp, u32 id) in sst_module_get_from_id()
1154 struct sst_module *module; in sst_module_get_from_id()
1171 struct sst_module *module, u32 id) in sst_module_runtime_get_from_id()