Lines Matching defs:eeprom
69 struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
78 /* EEPROM */
79 eeprom->ops.init_params = ixgbe_init_eeprom_params_X540;
80 eeprom->ops.read = ixgbe_read_eerd_X540;
81 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_X540;
82 eeprom->ops.write = ixgbe_write_eewr_X540;
83 eeprom->ops.write_buffer = ixgbe_write_eewr_buffer_X540;
84 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X540;
85 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X540;
86 eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X540;
368 * ixgbe_init_eeprom_params_X540 - Initialize EEPROM params
371 * Initializes the EEPROM parameters ixgbe_eeprom_info within the
372 * ixgbe_hw struct in order to set up EEPROM access.
376 struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
382 if (eeprom->type == ixgbe_eeprom_uninitialized) {
383 eeprom->semaphore_delay = 10;
384 eeprom->type = ixgbe_flash;
389 eeprom->word_size = 1 << (eeprom_size +
392 DEBUGOUT2("Eeprom params: type = %d, size = %d\n",
393 eeprom->type, eeprom->word_size);
400 * ixgbe_read_eerd_X540- Read EEPROM word using EERD
402 * @offset: offset of word in the EEPROM to read
403 * @data: word read from the EEPROM
405 * Reads a 16 bit word from the EEPROM using the EERD register.
424 * ixgbe_read_eerd_buffer_X540- Read EEPROM word(s) using EERD
426 * @offset: offset of word in the EEPROM to read
428 * @data: word(s) read from the EEPROM
430 * Reads a 16 bit word(s) from the EEPROM using the EERD register.
451 * ixgbe_write_eewr_X540 - Write EEPROM word using EEWR
453 * @offset: offset of word in the EEPROM to write
454 * @data: word write to the EEPROM
456 * Write a 16 bit word to the EEPROM using the EEWR register.
475 * ixgbe_write_eewr_buffer_X540 - Write EEPROM word(s) using EEWR
477 * @offset: offset of word in the EEPROM to write
479 * @data: word(s) write to the EEPROM
481 * Write a 16 bit word(s) to the EEPROM using the EEWR register.
520 /* Do not use hw->eeprom.ops.read because we do not want to take
532 DEBUGOUT("EEPROM read failed\n");
546 DEBUGOUT("EEPROM read failed\n");
552 pointer >= hw->eeprom.word_size)
556 DEBUGOUT("EEPROM read failed\n");
562 (pointer + length) >= hw->eeprom.word_size)
567 DEBUGOUT("EEPROM read failed\n");
580 * ixgbe_validate_eeprom_checksum_X540 - Validate EEPROM checksum
584 * Performs checksum calculation and validates the EEPROM checksum. If the
596 /* Read the first word from the EEPROM. If this times out or fails, do
598 * EEPROM read fails
600 status = hw->eeprom.ops.read(hw, 0, &checksum);
602 DEBUGOUT("EEPROM read failed\n");
609 status = hw->eeprom.ops.calc_checksum(hw);
615 /* Do not use hw->eeprom.ops.read because we do not want to take
623 /* Verify read checksum from EEPROM is the same as
628 "Invalid EEPROM checksum");
643 * ixgbe_update_eeprom_checksum_X540 - Updates the EEPROM checksum and flash
646 * After writing EEPROM to shadow RAM using EEWR register, software calculates
647 * checksum and updates the EEPROM and instructs the hardware to update
657 /* Read the first word from the EEPROM. If this times out or fails, do
659 * EEPROM read fails
661 status = hw->eeprom.ops.read(hw, 0, &checksum);
663 DEBUGOUT("EEPROM read failed\n");
670 status = hw->eeprom.ops.calc_checksum(hw);
676 /* Do not use hw->eeprom.ops.write because we do not want to
692 * ixgbe_update_flash_X540 - Instruct HW to copy EEPROM to Flash device
696 * EEPROM from shadow RAM to the flash device.
934 * was not granted because we don't have access to the EEPROM