Lines Matching refs:fwlen
401 unsigned int nums, fwlen, fwsize; in load_firmware() local
425 fwlen = 0; in load_firmware()
427 nums = module->symbol_table.nsymbols = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
437 if (fwlen + 2 + DSP_MAX_SYMBOL_NAME / 4 > fwsize) in load_firmware()
439 entry->address = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
440 memcpy(entry->symbol_name, &fwdat[fwlen], DSP_MAX_SYMBOL_NAME - 1); in load_firmware()
441 fwlen += DSP_MAX_SYMBOL_NAME / 4; in load_firmware()
442 entry->symbol_type = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
445 if (fwlen >= fwsize) in load_firmware()
447 nums = module->nsegments = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
456 if (fwlen + 3 > fwsize) in load_firmware()
458 entry->segment_type = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
459 entry->offset = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
460 entry->size = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
461 if (fwlen + entry->size > fwsize) in load_firmware()
466 memcpy_le32(entry->data, &fwdat[fwlen], entry->size * 4); in load_firmware()
467 fwlen += entry->size; in load_firmware()