Lines Matching defs:eeprom_buf
783 * @eeprom_buf: optional pointer to EEPROM image
788 * Reads PBA from EEPROM image when eeprom_buf is not NULL.
789 * Reads PBA from physical EEPROM device when eeprom_buf is NULL.
792 s32 ixgbe_read_pba_raw(struct ixgbe_hw *hw, u16 *eeprom_buf,
802 if (eeprom_buf == NULL) {
809 pba->word[0] = eeprom_buf[IXGBE_PBANUM0_PTR];
810 pba->word[1] = eeprom_buf[IXGBE_PBANUM1_PTR];
820 ret_val = ixgbe_get_pba_block_size(hw, eeprom_buf,
829 if (eeprom_buf == NULL) {
839 &eeprom_buf[pba->word[1]],
853 * @eeprom_buf: optional pointer to EEPROM image
857 * Writes PBA to EEPROM image when eeprom_buf is not NULL.
858 * Writes PBA to physical EEPROM device when eeprom_buf is NULL.
861 s32 ixgbe_write_pba_raw(struct ixgbe_hw *hw, u16 *eeprom_buf,
869 if (eeprom_buf == NULL) {
876 eeprom_buf[IXGBE_PBANUM0_PTR] = pba->word[0];
877 eeprom_buf[IXGBE_PBANUM1_PTR] = pba->word[1];
887 if (eeprom_buf == NULL) {
896 memcpy(&eeprom_buf[pba->word[1]],
911 * @eeprom_buf: optional pointer to EEPROM image
916 * image if the eeprom_buf pointer is not NULL otherwise it accesses physical
920 s32 ixgbe_get_pba_block_size(struct ixgbe_hw *hw, u16 *eeprom_buf,
929 if (eeprom_buf == NULL) {
936 pba_word[0] = eeprom_buf[IXGBE_PBANUM0_PTR];
937 pba_word[1] = eeprom_buf[IXGBE_PBANUM1_PTR];
944 if (eeprom_buf == NULL) {
951 length = eeprom_buf[pba_word[1] + 0];