Lines Matching refs:module

417 	struct sst_module *module, *mtmp;  in sst_fw_unload()  local
425 list_for_each_entry_safe(module, mtmp, &dsp->module_list, list) { in sst_fw_unload()
426 if (module->sst_fw == sst_fw) { in sst_fw_unload()
429 list_for_each_entry_safe(runtime, rtmp, &module->runtime_list, list) { in sst_fw_unload()
437 block_list_remove(dsp, &module->block_list); in sst_fw_unload()
438 list_del(&module->list); in sst_fw_unload()
439 kfree(module); in sst_fw_unload()
526 struct sst_module_runtime *sst_module_runtime_new(struct sst_module *module, in sst_module_runtime_new() argument
529 struct sst_dsp *dsp = module->dsp; in sst_module_runtime_new()
538 runtime->module = module; in sst_module_runtime_new()
542 list_add(&runtime->list, &module->runtime_list); in sst_module_runtime_new()
787 int sst_module_alloc_blocks(struct sst_module *module) in sst_module_alloc_blocks() argument
789 struct sst_dsp *dsp = module->dsp; in sst_module_alloc_blocks()
790 struct sst_fw *sst_fw = module->sst_fw; in sst_module_alloc_blocks()
795 ba.size = module->size; in sst_module_alloc_blocks()
796 ba.type = module->type; in sst_module_alloc_blocks()
797 ba.offset = module->offset; in sst_module_alloc_blocks()
805 ret = block_alloc_fixed(dsp, &ba, &module->block_list); in sst_module_alloc_blocks()
809 module->offset, module->size); in sst_module_alloc_blocks()
815 ret = block_list_prepare(dsp, &module->block_list); in sst_module_alloc_blocks()
824 dsp->addr.lpe_base + module->offset, in sst_module_alloc_blocks()
825 sst_fw->dmable_fw_paddr + module->data_offset, in sst_module_alloc_blocks()
826 module->size); in sst_module_alloc_blocks()
832 sst_memcpy32(dsp->addr.lpe + module->offset, module->data, in sst_module_alloc_blocks()
833 module->size); in sst_module_alloc_blocks()
839 block_list_remove(dsp, &module->block_list); in sst_module_alloc_blocks()
846 int sst_module_free_blocks(struct sst_module *module) in sst_module_free_blocks() argument
848 struct sst_dsp *dsp = module->dsp; in sst_module_free_blocks()
851 block_list_remove(dsp, &module->block_list); in sst_module_free_blocks()
861 struct sst_module *module = runtime->module; in sst_module_runtime_alloc_blocks() local
865 if (module->persistent_size == 0) in sst_module_runtime_alloc_blocks()
869 ba.size = module->persistent_size; in sst_module_runtime_alloc_blocks()
895 module->persistent_size); in sst_module_runtime_alloc_blocks()
912 block_list_remove(dsp, &module->block_list); in sst_module_runtime_alloc_blocks()
933 struct sst_module *module = runtime->module; in sst_module_runtime_save() local
938 module->persistent_size); in sst_module_runtime_save()
941 module->persistent_size, in sst_module_runtime_save()
958 module->persistent_size); in sst_module_runtime_save()
967 module->persistent_size); in sst_module_runtime_save()
979 struct sst_module *module = runtime->module; in sst_module_runtime_restore() local
984 module->persistent_size); in sst_module_runtime_restore()
1001 context->dma_buffer, module->persistent_size); in sst_module_runtime_restore()
1009 context->buffer, module->persistent_size); in sst_module_runtime_restore()
1011 dma_free_coherent(dsp->dma_dev, module->persistent_size, in sst_module_runtime_restore()
1074 struct sst_module *module; in sst_block_alloc_scratch() local
1082 list_for_each_entry(module, &dsp->module_list, list) { in sst_block_alloc_scratch()
1084 module->id, module->scratch_size); in sst_block_alloc_scratch()
1085 if (dsp->scratch_size < module->scratch_size) in sst_block_alloc_scratch()
1086 dsp->scratch_size = module->scratch_size; in sst_block_alloc_scratch()
1154 struct sst_module *module; in sst_module_get_from_id() local
1158 list_for_each_entry(module, &dsp->module_list, list) { in sst_module_get_from_id()
1159 if (module->id == id) { in sst_module_get_from_id()
1161 return module; in sst_module_get_from_id()
1171 struct sst_module *module, u32 id) in sst_module_runtime_get_from_id() argument
1174 struct sst_dsp *dsp = module->dsp; in sst_module_runtime_get_from_id()
1178 list_for_each_entry(runtime, &module->runtime_list, list) { in sst_module_runtime_get_from_id()