Lines Matching refs:length
323 unsigned int length = 0; in do_e1000_spi_show() local
337 length = simple_strtoul(argv[1], NULL, 0); in do_e1000_spi_show()
339 length = (hw->eeprom.word_size << 1) - offset; in do_e1000_spi_show()
342 if (!length) { in do_e1000_spi_show()
346 if ((0x10000 < length) || (0x10000 - length < offset)) { in do_e1000_spi_show()
352 buffer = malloc(length); in do_e1000_spi_show()
364 err = e1000_spi_eeprom_dump(hw, buffer, offset, length, true); in do_e1000_spi_show()
374 hw->name, offset, offset + length - 1); in do_e1000_spi_show()
375 for (i = 0; i < length; i++) { in do_e1000_spi_show()
392 unsigned int length; in do_e1000_spi_dump() local
404 length = simple_strtoul(argv[2], NULL, 0); in do_e1000_spi_dump()
407 if (!length) { in do_e1000_spi_dump()
411 if ((0x10000 < length) || (0x10000 - length < offset)) { in do_e1000_spi_dump()
423 if (e1000_spi_eeprom_dump(hw, dest, offset, length, true) < 0) { in do_e1000_spi_dump()
437 unsigned int length; in do_e1000_spi_program() local
449 length = simple_strtoul(argv[2], NULL, 0); in do_e1000_spi_program()
458 if (e1000_spi_eeprom_program(hw, source, offset, length, true) < 0) { in do_e1000_spi_program()
472 uint16_t i, length, checksum = 0, checksum_reg; in do_e1000_spi_checksum() local
486 length = sizeof(uint16_t) * (EEPROM_CHECKSUM_REG + 1); in do_e1000_spi_checksum()
487 buffer = malloc(length); in do_e1000_spi_checksum()
500 if (e1000_spi_eeprom_dump(hw, buffer, 0, length, true) < 0) { in do_e1000_spi_checksum()