Lines Matching full:eeprom
181 * ixgbe_init_eeprom_params_X540 - Initialize EEPROM params
184 * Initializes the EEPROM parameters ixgbe_eeprom_info within the
185 * ixgbe_hw struct in order to set up EEPROM access.
189 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_eeprom_params_X540() local
191 if (eeprom->type == ixgbe_eeprom_uninitialized) { in ixgbe_init_eeprom_params_X540()
195 eeprom->semaphore_delay = 10; in ixgbe_init_eeprom_params_X540()
196 eeprom->type = ixgbe_flash; in ixgbe_init_eeprom_params_X540()
200 eeprom->word_size = BIT(eeprom_size + in ixgbe_init_eeprom_params_X540()
203 hw_dbg(hw, "Eeprom params: type = %d, size = %d\n", in ixgbe_init_eeprom_params_X540()
204 eeprom->type, eeprom->word_size); in ixgbe_init_eeprom_params_X540()
211 * ixgbe_read_eerd_X540- Read EEPROM word using EERD
213 * @offset: offset of word in the EEPROM to read
214 * @data: word read from the EEPROM
216 * Reads a 16 bit word from the EEPROM using the EERD register.
232 * ixgbe_read_eerd_buffer_X540 - Read EEPROM word(s) using EERD
234 * @offset: offset of word in the EEPROM to read
236 * @data: word(s) read from the EEPROM
238 * Reads a 16 bit word(s) from the EEPROM using the EERD register.
255 * ixgbe_write_eewr_X540 - Write EEPROM word using EEWR
257 * @offset: offset of word in the EEPROM to write
258 * @data: word write to the EEPROM
260 * Write a 16 bit word to the EEPROM using the EEWR register.
276 * ixgbe_write_eewr_buffer_X540 - Write EEPROM word(s) using EEWR
278 * @offset: offset of word in the EEPROM to write
280 * @data: word(s) write to the EEPROM
282 * Write a 16 bit word(s) to the EEPROM using the EEWR register.
318 * Do not use hw->eeprom.ops.read because we do not want to take in ixgbe_calc_eeprom_checksum_X540()
326 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_calc_eeprom_checksum_X540()
341 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_calc_eeprom_checksum_X540()
347 pointer >= hw->eeprom.word_size) in ixgbe_calc_eeprom_checksum_X540()
351 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_calc_eeprom_checksum_X540()
357 (pointer + length) >= hw->eeprom.word_size) in ixgbe_calc_eeprom_checksum_X540()
362 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_calc_eeprom_checksum_X540()
375 * ixgbe_validate_eeprom_checksum_X540 - Validate EEPROM checksum
379 * Performs checksum calculation and validates the EEPROM checksum. If the
389 /* Read the first word from the EEPROM. If this times out or fails, do in ixgbe_validate_eeprom_checksum_X540()
391 * EEPROM read fails in ixgbe_validate_eeprom_checksum_X540()
393 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X540()
395 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_validate_eeprom_checksum_X540()
402 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_validate_eeprom_checksum_X540()
408 /* Do not use hw->eeprom.ops.read because we do not want to take in ixgbe_validate_eeprom_checksum_X540()
416 /* Verify read checksum from EEPROM is the same as in ixgbe_validate_eeprom_checksum_X540()
420 hw_dbg(hw, "Invalid EEPROM checksum"); in ixgbe_validate_eeprom_checksum_X540()
435 * ixgbe_update_eeprom_checksum_X540 - Updates the EEPROM checksum and flash
438 * After writing EEPROM to shadow RAM using EEWR register, software calculates
439 * checksum and updates the EEPROM and instructs the hardware to update
447 /* Read the first word from the EEPROM. If this times out or fails, do in ixgbe_update_eeprom_checksum_X540()
449 * EEPROM read fails in ixgbe_update_eeprom_checksum_X540()
451 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_update_eeprom_checksum_X540()
453 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_update_eeprom_checksum_X540()
460 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_update_eeprom_checksum_X540()
466 /* Do not use hw->eeprom.ops.write because we do not want to in ixgbe_update_eeprom_checksum_X540()
481 * ixgbe_update_flash_X540 - Instruct HW to copy EEPROM to Flash device
485 * EEPROM from shadow RAM to the flash device.
696 * was not granted because we do not have access to the EEPROM in ixgbe_get_swfw_sync_semaphore()