Lines Matching refs:code
179 /* Load ASIC code - done after the DSP is loaded */
185 u8 *code;
193 code = (u8 *)fw->data;
205 if (write_dsp(chip, code[i]) < 0)
226 program that is used to load the real DSP code. */
231 u16 *code;
256 /* The DSP code is an array of 16 bit words. The array is divided up
268 code = (u16 *)fw->data;
271 of the first section, so the first real section of code is pointed
273 index = code[0];
279 words = code[index++];
282 address = ((u32)code[index] << 16) + code[index + 1];
297 /* Write out this block of code to the DSP */
301 data = ((u32)code[index] << 16) + code[index + 1];
304 "install_resident_loader: Failed to write DSP code\n");
335 static int load_dsp(struct echoaudio *chip, u16 *code)
340 if (chip->dsp_code == code) {
345 chip->dsp_code = NULL; /* Current DSP code not loaded */
346 chip->asic_loaded = false; /* Loading the DSP code will reset the ASIC */
386 index = code[0];
394 block_type = code[index];
401 mem_type = code[index++];
404 words = code[index++];
409 address = ((u32)code[index] << 16) + code[index + 1];
429 data = ((u32)code[index] << 16) + code[index + 1];
474 chip->dsp_code = code; /* Show which DSP code loaded */
488 /* load_firmware takes care of loading the DSP and any ASIC code. */
983 chip->dsp_code = NULL; /* Current DSP code not loaded */