Lines Matching refs:fwlen
387 unsigned int nums, fwlen, fwsize; in load_firmware() local
411 fwlen = 0; in load_firmware()
413 nums = module->symbol_table.nsymbols = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
423 if (fwlen + 2 + DSP_MAX_SYMBOL_NAME / 4 > fwsize) in load_firmware()
425 entry->address = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
426 memcpy(entry->symbol_name, &fwdat[fwlen], DSP_MAX_SYMBOL_NAME - 1); in load_firmware()
427 fwlen += DSP_MAX_SYMBOL_NAME / 4; in load_firmware()
428 entry->symbol_type = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
431 if (fwlen >= fwsize) in load_firmware()
433 nums = module->nsegments = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
442 if (fwlen + 3 > fwsize) in load_firmware()
444 entry->segment_type = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
445 entry->offset = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
446 entry->size = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
447 if (fwlen + entry->size > fwsize) in load_firmware()
452 memcpy_le32(entry->data, &fwdat[fwlen], entry->size * 4); in load_firmware()
453 fwlen += entry->size; in load_firmware()