Lines Matching refs:module

411 	struct sst_module *module, *mtmp;  in sst_fw_unload()  local
419 list_for_each_entry_safe(module, mtmp, &dsp->module_list, list) { in sst_fw_unload()
420 if (module->sst_fw == sst_fw) { in sst_fw_unload()
423 list_for_each_entry_safe(runtime, rtmp, &module->runtime_list, list) { in sst_fw_unload()
431 block_list_remove(dsp, &module->block_list); in sst_fw_unload()
432 list_del(&module->list); in sst_fw_unload()
433 kfree(module); in sst_fw_unload()
520 struct sst_module_runtime *sst_module_runtime_new(struct sst_module *module, in sst_module_runtime_new() argument
523 struct sst_dsp *dsp = module->dsp; in sst_module_runtime_new()
532 runtime->module = module; in sst_module_runtime_new()
536 list_add(&runtime->list, &module->runtime_list); in sst_module_runtime_new()
781 int sst_module_alloc_blocks(struct sst_module *module) in sst_module_alloc_blocks() argument
783 struct sst_dsp *dsp = module->dsp; in sst_module_alloc_blocks()
784 struct sst_fw *sst_fw = module->sst_fw; in sst_module_alloc_blocks()
789 ba.size = module->size; in sst_module_alloc_blocks()
790 ba.type = module->type; in sst_module_alloc_blocks()
791 ba.offset = module->offset; in sst_module_alloc_blocks()
799 ret = block_alloc_fixed(dsp, &ba, &module->block_list); in sst_module_alloc_blocks()
803 module->offset, module->size); in sst_module_alloc_blocks()
809 ret = block_list_prepare(dsp, &module->block_list); in sst_module_alloc_blocks()
818 dsp->addr.lpe_base + module->offset, in sst_module_alloc_blocks()
819 sst_fw->dmable_fw_paddr + module->data_offset, in sst_module_alloc_blocks()
820 module->size); in sst_module_alloc_blocks()
826 sst_memcpy32(dsp->addr.lpe + module->offset, module->data, in sst_module_alloc_blocks()
827 module->size); in sst_module_alloc_blocks()
833 block_list_remove(dsp, &module->block_list); in sst_module_alloc_blocks()
840 int sst_module_free_blocks(struct sst_module *module) in sst_module_free_blocks() argument
842 struct sst_dsp *dsp = module->dsp; in sst_module_free_blocks()
845 block_list_remove(dsp, &module->block_list); in sst_module_free_blocks()
855 struct sst_module *module = runtime->module; in sst_module_runtime_alloc_blocks() local
859 if (module->persistent_size == 0) in sst_module_runtime_alloc_blocks()
863 ba.size = module->persistent_size; in sst_module_runtime_alloc_blocks()
889 module->persistent_size); in sst_module_runtime_alloc_blocks()
906 block_list_remove(dsp, &module->block_list); in sst_module_runtime_alloc_blocks()
927 struct sst_module *module = runtime->module; in sst_module_runtime_save() local
932 module->persistent_size); in sst_module_runtime_save()
935 module->persistent_size, in sst_module_runtime_save()
952 module->persistent_size); in sst_module_runtime_save()
961 module->persistent_size); in sst_module_runtime_save()
973 struct sst_module *module = runtime->module; in sst_module_runtime_restore() local
978 module->persistent_size); in sst_module_runtime_restore()
995 context->dma_buffer, module->persistent_size); in sst_module_runtime_restore()
1003 context->buffer, module->persistent_size); in sst_module_runtime_restore()
1005 dma_free_coherent(dsp->dma_dev, module->persistent_size, in sst_module_runtime_restore()
1068 struct sst_module *module; in sst_block_alloc_scratch() local
1076 list_for_each_entry(module, &dsp->module_list, list) { in sst_block_alloc_scratch()
1078 module->id, module->scratch_size); in sst_block_alloc_scratch()
1079 if (dsp->scratch_size < module->scratch_size) in sst_block_alloc_scratch()
1080 dsp->scratch_size = module->scratch_size; in sst_block_alloc_scratch()
1148 struct sst_module *module; in sst_module_get_from_id() local
1152 list_for_each_entry(module, &dsp->module_list, list) { in sst_module_get_from_id()
1153 if (module->id == id) { in sst_module_get_from_id()
1155 return module; in sst_module_get_from_id()
1165 struct sst_module *module, u32 id) in sst_module_runtime_get_from_id() argument
1168 struct sst_dsp *dsp = module->dsp; in sst_module_runtime_get_from_id()
1172 list_for_each_entry(runtime, &module->runtime_list, list) { in sst_module_runtime_get_from_id()