Lines Matching refs:sst_module

411 	struct sst_module *module, *mtmp;  in sst_fw_unload()
478 struct sst_module *sst_module_new(struct sst_fw *sst_fw, in sst_module_new()
482 struct sst_module *sst_module; in sst_module_new() local
484 sst_module = kzalloc(sizeof(*sst_module), GFP_KERNEL); in sst_module_new()
485 if (sst_module == NULL) in sst_module_new()
488 sst_module->id = template->id; in sst_module_new()
489 sst_module->dsp = dsp; in sst_module_new()
490 sst_module->sst_fw = sst_fw; in sst_module_new()
491 sst_module->scratch_size = template->scratch_size; in sst_module_new()
492 sst_module->persistent_size = template->persistent_size; in sst_module_new()
493 sst_module->entry = template->entry; in sst_module_new()
494 sst_module->state = SST_MODULE_STATE_UNLOADED; in sst_module_new()
496 INIT_LIST_HEAD(&sst_module->block_list); in sst_module_new()
497 INIT_LIST_HEAD(&sst_module->runtime_list); in sst_module_new()
500 list_add(&sst_module->list, &dsp->module_list); in sst_module_new()
503 return sst_module; in sst_module_new()
508 void sst_module_free(struct sst_module *sst_module) in sst_module_free() argument
510 struct sst_dsp *dsp = sst_module->dsp; in sst_module_free()
513 list_del(&sst_module->list); in sst_module_free()
516 kfree(sst_module); in sst_module_free()
520 struct sst_module_runtime *sst_module_runtime_new(struct sst_module *module, in sst_module_runtime_new()
781 int sst_module_alloc_blocks(struct sst_module *module) in sst_module_alloc_blocks()
840 int sst_module_free_blocks(struct sst_module *module) in sst_module_free_blocks()
855 struct sst_module *module = runtime->module; in sst_module_runtime_alloc_blocks()
927 struct sst_module *module = runtime->module; in sst_module_runtime_save()
973 struct sst_module *module = runtime->module; in sst_module_runtime_restore()
1068 struct sst_module *module; in sst_block_alloc_scratch()
1146 struct sst_module *sst_module_get_from_id(struct sst_dsp *dsp, u32 id) in sst_module_get_from_id()
1148 struct sst_module *module; in sst_module_get_from_id()
1165 struct sst_module *module, u32 id) in sst_module_runtime_get_from_id()