Lines Matching full:eeprom
188 * ixgbe_init_eeprom_params_X540 - Initialize EEPROM params
191 * Initializes the EEPROM parameters ixgbe_eeprom_info within the
192 * ixgbe_hw struct in order to set up EEPROM access.
196 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_eeprom_params_X540() local
198 if (eeprom->type == ixgbe_eeprom_uninitialized) { in ixgbe_init_eeprom_params_X540()
202 eeprom->semaphore_delay = 10; in ixgbe_init_eeprom_params_X540()
203 eeprom->type = ixgbe_flash; in ixgbe_init_eeprom_params_X540()
207 eeprom->word_size = BIT(eeprom_size + in ixgbe_init_eeprom_params_X540()
210 hw_dbg(hw, "Eeprom params: type = %d, size = %d\n", in ixgbe_init_eeprom_params_X540()
211 eeprom->type, eeprom->word_size); in ixgbe_init_eeprom_params_X540()
218 * ixgbe_read_eerd_X540- Read EEPROM word using EERD
220 * @offset: offset of word in the EEPROM to read
221 * @data: word read from the EEPROM
223 * Reads a 16 bit word from the EEPROM using the EERD register.
239 * ixgbe_read_eerd_buffer_X540 - Read EEPROM word(s) using EERD
241 * @offset: offset of word in the EEPROM to read
243 * @data: word(s) read from the EEPROM
245 * Reads a 16 bit word(s) from the EEPROM using the EERD register.
262 * ixgbe_write_eewr_X540 - Write EEPROM word using EEWR
264 * @offset: offset of word in the EEPROM to write
265 * @data: word write to the EEPROM
267 * Write a 16 bit word to the EEPROM using the EEWR register.
283 * ixgbe_write_eewr_buffer_X540 - Write EEPROM word(s) using EEWR
285 * @offset: offset of word in the EEPROM to write
287 * @data: word(s) write to the EEPROM
289 * Write a 16 bit word(s) to the EEPROM using the EEWR register.
325 * Do not use hw->eeprom.ops.read because we do not want to take in ixgbe_calc_eeprom_checksum_X540()
333 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_calc_eeprom_checksum_X540()
348 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_calc_eeprom_checksum_X540()
354 pointer >= hw->eeprom.word_size) in ixgbe_calc_eeprom_checksum_X540()
358 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_calc_eeprom_checksum_X540()
364 (pointer + length) >= hw->eeprom.word_size) in ixgbe_calc_eeprom_checksum_X540()
369 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_calc_eeprom_checksum_X540()
382 * ixgbe_validate_eeprom_checksum_X540 - Validate EEPROM checksum
386 * Performs checksum calculation and validates the EEPROM checksum. If the
396 /* Read the first word from the EEPROM. If this times out or fails, do in ixgbe_validate_eeprom_checksum_X540()
398 * EEPROM read fails in ixgbe_validate_eeprom_checksum_X540()
400 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X540()
402 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_validate_eeprom_checksum_X540()
409 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_validate_eeprom_checksum_X540()
415 /* Do not use hw->eeprom.ops.read because we do not want to take in ixgbe_validate_eeprom_checksum_X540()
423 /* Verify read checksum from EEPROM is the same as in ixgbe_validate_eeprom_checksum_X540()
427 hw_dbg(hw, "Invalid EEPROM checksum"); in ixgbe_validate_eeprom_checksum_X540()
442 * ixgbe_update_eeprom_checksum_X540 - Updates the EEPROM checksum and flash
445 * After writing EEPROM to shadow RAM using EEWR register, software calculates
446 * checksum and updates the EEPROM and instructs the hardware to update
454 /* Read the first word from the EEPROM. If this times out or fails, do in ixgbe_update_eeprom_checksum_X540()
456 * EEPROM read fails in ixgbe_update_eeprom_checksum_X540()
458 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_update_eeprom_checksum_X540()
460 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_update_eeprom_checksum_X540()
467 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_update_eeprom_checksum_X540()
473 /* Do not use hw->eeprom.ops.write because we do not want to in ixgbe_update_eeprom_checksum_X540()
488 * ixgbe_update_flash_X540 - Instruct HW to copy EEPROM to Flash device
492 * EEPROM from shadow RAM to the flash device.
703 * was not granted because we do not have access to the EEPROM in ixgbe_get_swfw_sync_semaphore()