Lines Matching refs:sst_module
413 struct sst_module *module, *mtmp; in sst_fw_unload()
480 struct sst_module *sst_module_new(struct sst_fw *sst_fw, in sst_module_new()
484 struct sst_module *sst_module; in sst_module_new() local
486 sst_module = kzalloc(sizeof(*sst_module), GFP_KERNEL); in sst_module_new()
487 if (sst_module == NULL) in sst_module_new()
490 sst_module->id = template->id; in sst_module_new()
491 sst_module->dsp = dsp; in sst_module_new()
492 sst_module->sst_fw = sst_fw; in sst_module_new()
493 sst_module->scratch_size = template->scratch_size; in sst_module_new()
494 sst_module->persistent_size = template->persistent_size; in sst_module_new()
495 sst_module->entry = template->entry; in sst_module_new()
496 sst_module->state = SST_MODULE_STATE_UNLOADED; in sst_module_new()
498 INIT_LIST_HEAD(&sst_module->block_list); in sst_module_new()
499 INIT_LIST_HEAD(&sst_module->runtime_list); in sst_module_new()
502 list_add(&sst_module->list, &dsp->module_list); in sst_module_new()
505 return sst_module; in sst_module_new()
510 void sst_module_free(struct sst_module *sst_module) in sst_module_free() argument
512 struct sst_dsp *dsp = sst_module->dsp; in sst_module_free()
515 list_del(&sst_module->list); in sst_module_free()
518 kfree(sst_module); in sst_module_free()
522 struct sst_module_runtime *sst_module_runtime_new(struct sst_module *module, in sst_module_runtime_new()
783 int sst_module_alloc_blocks(struct sst_module *module) in sst_module_alloc_blocks()
842 int sst_module_free_blocks(struct sst_module *module) in sst_module_free_blocks()
857 struct sst_module *module = runtime->module; in sst_module_runtime_alloc_blocks()
929 struct sst_module *module = runtime->module; in sst_module_runtime_save()
975 struct sst_module *module = runtime->module; in sst_module_runtime_restore()
1070 struct sst_module *module; in sst_block_alloc_scratch()
1148 struct sst_module *sst_module_get_from_id(struct sst_dsp *dsp, u32 id) in sst_module_get_from_id()
1150 struct sst_module *module; in sst_module_get_from_id()
1167 struct sst_module *module, u32 id) in sst_module_runtime_get_from_id()