Lines Matching defs:code
177 /* Load ASIC code - done after the DSP is loaded */
183 u8 *code;
191 code = (u8 *)fw->data;
203 if (write_dsp(chip, code[i]) < 0)
225 program that is used to load the real DSP code. */
230 u16 *code;
254 /* The DSP code is an array of 16 bit words. The array is divided up
266 code = (u16 *)fw->data;
269 of the first section, so the first real section of code is pointed
271 index = code[0];
277 words = code[index++];
280 address = ((u32)code[index] << 16) + code[index + 1];
293 /* Write out this block of code to the DSP */
297 data = ((u32)code[index] << 16) + code[index + 1];
299 DE_INIT(("install_resident_loader: Failed to write DSP code\n"));
330 static int load_dsp(struct echoaudio *chip, u16 *code)
335 if (chip->dsp_code == code) {
340 chip->dsp_code = NULL; /* Current DSP code not loaded */
341 chip->asic_loaded = FALSE; /* Loading the DSP code will reset the ASIC */
378 index = code[0];
386 block_type = code[index];
393 mem_type = code[index++];
396 words = code[index++];
401 address = ((u32)code[index] << 16) + code[index + 1];
418 data = ((u32)code[index] << 16) + code[index + 1];
458 chip->dsp_code = code; /* Show which DSP code loaded */
472 /* load_firmware takes care of loading the DSP and any ASIC code. */
974 chip->dsp_code = NULL; /* Current DSP code not loaded */