Lines Matching full:eeprom

91 	if (hw->eeprom.type != e1000_eeprom_spi) {  in spi_setup_slave()
92 E1000_ERR(hw, "No attached SPI EEPROM found!\n"); in spi_setup_slave()
107 E1000_DBG(hw->nic, "EEPROM SPI access requested\n"); in spi_setup_slave()
114 E1000_DBG(hw->nic, "EEPROM SPI access released\n"); in spi_free_slave()
122 E1000_ERR(hw, "EEPROM SPI cannot be acquired!\n"); in spi_claim_bus()
157 /* The EEPROM opcodes */
165 /* The EEPROM status bits */
178 * of the EEPROM commands at this time.
210 (off >> (hw->eeprom.address_bits - 8)) & 0xff, off & 0xff in e1000_spi_eeprom_write_page()
215 if (e1000_spi_xfer(hw, 8 + hw->eeprom.address_bits, op, NULL, intr)) in e1000_spi_eeprom_write_page()
228 (off >> (hw->eeprom.address_bits - 8)) & 0xff, off & 0xff in e1000_spi_eeprom_read_page()
233 if (e1000_spi_xfer(hw, 8 + hw->eeprom.address_bits, op, NULL, intr)) in e1000_spi_eeprom_read_page()
254 /* Interruptibly wait for the EEPROM to be ready */ in e1000_spi_eeprom_dump()
261 u16 pg_off = off & (hw->eeprom.page_size - 1); in e1000_spi_eeprom_dump()
262 u16 pg_len = hw->eeprom.page_size - pg_off; in e1000_spi_eeprom_dump()
286 u16 pg_off = off & (hw->eeprom.page_size - 1); in e1000_spi_eeprom_program()
287 u16 pg_len = hw->eeprom.page_size - pg_off; in e1000_spi_eeprom_program()
291 /* Interruptibly wait for the EEPROM to be ready */ in e1000_spi_eeprom_program()
335 else if (offset < (hw->eeprom.word_size << 1)) in do_e1000_spi_show()
336 length = (hw->eeprom.word_size << 1) - offset; in do_e1000_spi_show()
355 /* Acquire the EEPROM and perform the dump */ in do_e1000_spi_show()
357 E1000_ERR(hw, "EEPROM SPI cannot be acquired!\n"); in do_e1000_spi_show()
370 printf("%s: ===== Intel e1000 EEPROM (0x%04hX - 0x%04hX) =====", in do_e1000_spi_show()
413 /* Acquire the EEPROM */ in do_e1000_spi_dump()
415 E1000_ERR(hw, "EEPROM SPI cannot be acquired!\n"); in do_e1000_spi_dump()
427 printf("%s: ===== EEPROM DUMP COMPLETE =====\n", hw->name); in do_e1000_spi_dump()
448 /* Acquire the EEPROM */ in do_e1000_spi_program()
450 E1000_ERR(hw, "EEPROM SPI cannot be acquired!\n"); in do_e1000_spi_program()
462 printf("%s: ===== EEPROM PROGRAMMED =====\n", hw->name); in do_e1000_spi_program()
486 E1000_ERR(hw, "Unable to allocate EEPROM buffer!\n"); in do_e1000_spi_checksum()
490 /* Acquire the EEPROM */ in do_e1000_spi_checksum()
492 E1000_ERR(hw, "EEPROM SPI cannot be acquired!\n"); in do_e1000_spi_checksum()
496 /* Read the EEPROM */ in do_e1000_spi_checksum()
511 printf("%s: INFO: EEPROM checksum is correct! (0x%04hx)\n", in do_e1000_spi_checksum()
518 E1000_ERR(hw, "EEPROM checksum is incorrect!\n"); in do_e1000_spi_checksum()
529 printf("%s: Reprogramming the EEPROM checksum...\n", hw->name); in do_e1000_spi_checksum()
551 if (hw->eeprom.type != e1000_eeprom_spi) { in do_e1000_spi()
552 E1000_ERR(hw, "No attached SPI EEPROM found (%d)!\n", in do_e1000_spi()
553 hw->eeprom.type); in do_e1000_spi()
557 /* Check the eeprom sub-sub-command arguments */ in do_e1000_spi()