• Home
  • Raw
  • Download

Lines Matching refs:module

125 static struct dsp_segment_desc * get_segment_desc (struct dsp_module_desc * module, int seg_type)  in get_segment_desc()  argument
128 for (i = 0;i < module->nsegments; ++i) { in get_segment_desc()
129 if (module->segments[i].segment_type == seg_type) { in get_segment_desc()
130 return (module->segments + i); in get_segment_desc()
151 static int add_symbols (struct snd_cs46xx * chip, struct dsp_module_desc * module) in add_symbols() argument
156 if (module->symbol_table.nsymbols > 0) { in add_symbols()
157 if (!strcmp(module->symbol_table.symbols[0].symbol_name, "OVERLAYBEGINADDRESS") && in add_symbols()
158 module->symbol_table.symbols[0].symbol_type == SYMBOL_CONSTANT ) { in add_symbols()
159 module->overlay_begin_address = module->symbol_table.symbols[0].address; in add_symbols()
163 for (i = 0;i < module->symbol_table.nsymbols; ++i) { in add_symbols()
172 module->symbol_table.symbols[i].symbol_name, in add_symbols()
173 module->symbol_table.symbols[i].symbol_type) == NULL) { in add_symbols()
175 ins->symbol_table.symbols[ins->symbol_table.nsymbols] = module->symbol_table.symbols[i]; in add_symbols()
176 …symbols[ins->symbol_table.nsymbols].address += ((ins->code.offset / 2) - module->overlay_begin_add… in add_symbols()
177 ins->symbol_table.symbols[ins->symbol_table.nsymbols].module = module; in add_symbols()
188 module->symbol_table.symbols[i].symbol_name); */ in add_symbols()
221 ins->symbol_table.symbols[index].module = NULL; in add_symbol()
363 int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module) in cs46xx_dsp_load_module() argument
366 struct dsp_segment_desc * code = get_segment_desc (module,SEGTYPE_SP_PROGRAM); in cs46xx_dsp_load_module()
377 "dsp_spos: loading module %s into DSP\n", module->module_name); in cs46xx_dsp_load_module()
384 err = dsp_load_parameter(chip, get_segment_desc(module, in cs46xx_dsp_load_module()
394 err = dsp_load_sample(chip, get_segment_desc(module, in cs46xx_dsp_load_module()
414 module->load_address = ins->code.offset; in cs46xx_dsp_load_module()
415 module->overlay_begin_address = 0x000; in cs46xx_dsp_load_module()
419 if (snd_BUG_ON(!module->symbol_table.symbols)) in cs46xx_dsp_load_module()
421 if (add_symbols(chip,module)) { in cs46xx_dsp_load_module()
433module->nfixups = shadow_and_reallocate_code(chip,code->data,code->size,module->overlay_begin_addr… in cs46xx_dsp_load_module()
447 ins->modules[ins->nmodules] = *module; in cs46xx_dsp_load_module()
516 if (ins->symbol_table.symbols[i].module != NULL) { in cs46xx_dsp_proc_symbol_table_read()
517 module_str = ins->symbol_table.symbols[i].module->module_name; in cs46xx_dsp_proc_symbol_table_read()
1986 struct dsp_module_desc *module = &ins->modules[i]; in cs46xx_dsp_resume() local
1990 seg = get_segment_desc(module, SEGTYPE_SP_PARAMETER); in cs46xx_dsp_resume()
1995 seg = get_segment_desc(module, SEGTYPE_SP_SAMPLE); in cs46xx_dsp_resume()
2000 seg = get_segment_desc(module, SEGTYPE_SP_PROGRAM); in cs46xx_dsp_resume()
2004 doffset = seg->offset * 4 + module->load_address * 4 in cs46xx_dsp_resume()
2008 ins->code.data + module->load_address, in cs46xx_dsp_resume()