Home | History | Annotate | Download | only in ixgbe

Lines Matching defs:eeprom

66 	struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
82 eeprom->ops.init_params = ixgbe_init_eeprom_params_X550;
83 eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X550;
84 eeprom->ops.read = ixgbe_read_ee_hostif_X550;
85 eeprom->ops.read_buffer = ixgbe_read_ee_hostif_buffer_X550;
86 eeprom->ops.write = ixgbe_write_ee_hostif_X550;
87 eeprom->ops.write_buffer = ixgbe_write_ee_hostif_buffer_X550;
88 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X550;
89 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X550;
248 "CS4227 EEPROM did not load successfully.");
329 msec_delay(hw->eeprom.semaphore_delay);
715 struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
789 /* EEPROM */
790 eeprom->ops.init_params = ixgbe_init_eeprom_params_X540;
791 eeprom->ops.read = ixgbe_read_ee_hostif_X550;
792 eeprom->ops.read_buffer = ixgbe_read_ee_hostif_buffer_X550;
793 eeprom->ops.write = ixgbe_write_ee_hostif_X550;
794 eeprom->ops.write_buffer = ixgbe_write_ee_hostif_buffer_X550;
795 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X550;
796 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X550;
797 eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X550;
1184 * ixgbe_init_eeprom_params_X550 - Initialize EEPROM params
1187 * Initializes the EEPROM parameters ixgbe_eeprom_info within the
1188 * ixgbe_hw struct in order to set up EEPROM access.
1192 struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
1198 if (eeprom->type == ixgbe_eeprom_uninitialized) {
1199 eeprom->semaphore_delay = 10;
1200 eeprom->type = ixgbe_flash;
1205 eeprom->word_size = 1 << (eeprom_size +
1208 DEBUGOUT2("Eeprom params: type = %d, size = %d\n",
1209 eeprom->type, eeprom->word_size);
3297 * ixgbe_read_ee_hostif_X550 - Read EEPROM word using a host interface command
3300 * @offset: offset of word in the EEPROM to read
3301 * @data: word read from the EEPROM
3303 * Reads a 16 bit word from the EEPROM using the hostif.
3341 * ixgbe_read_ee_hostif_buffer_X550- Read EEPROM word(s) using hostif
3343 * @offset: offset of word in the EEPROM to read
3345 * @data: word(s) read from the EEPROM
3347 * Reads a 16 bit word(s) from the EEPROM using the hostif.
3364 DEBUGOUT("EEPROM read buffer - semaphore failed\n");
3417 * ixgbe_write_ee_hostif_data_X550 - Write EEPROM word using hostif
3419 EEPROM to write
3420 * @data: word write to the EEPROM
3422 * Write a 16 bit word to the EEPROM using the hostif.
3460 * ixgbe_write_ee_hostif_X550 - Write EEPROM word using hostif
3462 * @offset: offset of word in the EEPROM to write
3463 * @data: word write to the EEPROM
3465 * Write a 16 bit word to the EEPROM using the hostif.
3487 * ixgbe_write_ee_hostif_buffer_X550 - Write EEPROM word(s) using hostif
3489 * @offset: offset of word in the EEPROM to write
3491 * @data: word(s) write to the EEPROM
3493 * Write a 16 bit word(s) to the EEPROM using the hostif.
3506 DEBUGOUT("EEPROM write buffer - semaphore failed\n");
3515 DEBUGOUT("Eeprom buffered write failed\n");
3529 * @ptr: pointer offset in eeprom
3552 DEBUGOUT("Failed to read EEPROM image\n");
3571 (ptr + length) >= hw->eeprom.word_size)
3589 DEBUGOUT("Failed to read EEPROM image\n");
3616 hw->eeprom.ops.init_params(hw);
3624 DEBUGOUT("Failed to read EEPROM image\n");
3654 pointer >= hw->eeprom.word_size)
3693 * ixgbe_validate_eeprom_checksum_X550 - Validate EEPROM checksum
3697 * Performs checksum calculation and validates the EEPROM checksum. If the
3708 /* Read the first word from the EEPROM. If this times out or fails, do
3710 * EEPROM read fails
3712 status = hw->eeprom.ops.read(hw, 0, &checksum);
3714 DEBUGOUT("EEPROM read failed\n");
3718 status = hw->eeprom.ops.calc_checksum(hw);
3729 /* Verify read checksum from EEPROM is the same as
3735 "Invalid EEPROM checksum");
3746 * ixgbe_update_eeprom_checksum_X550 - Updates the EEPROM checksum and flash
3749 * After writing EEPROM to shadow RAM using EEWR register, software calculates
3750 * checksum and updates the EEPROM and instructs the hardware to update
3760 /* Read the first word from the EEPROM. If this times out or fails, do
3762 * EEPROM read fails
3766 DEBUGOUT("EEPROM read failed\n");
3787 * ixgbe_update_flash_X550 - Instruct HW to copy EEPROM to Flash device
3790 * Issue a shadow RAM dump to FW to copy EEPROM from shadow RAM to the flash.
3978 status = ixgbe_read_eeprom(hw, NVM_INIT_CTRL_3, &hw->eeprom.ctrl_word_3);
3986 if (!link_up || !(hw->eeprom.ctrl_word_3 & NVM_INIT_CTRL_3_LPLU) ||
4067 u16 word = hw->eeprom.ctrl_word_3;
4115 /* 10gig parts do not have a word in the EEPROM to determine the