Lines Matching refs:first_word
355 int i, max_len, first_word, last_word; in ixgb_get_eeprom() local
375 first_word = eeprom->offset >> 1; in ixgb_get_eeprom()
378 eeprom_buff = kmalloc_array(last_word - first_word + 1, in ixgb_get_eeprom()
385 for (i = 0; i <= (last_word - first_word); i++) in ixgb_get_eeprom()
386 eeprom_buff[i] = ixgb_get_eeprom_word(hw, (first_word + i)); in ixgb_get_eeprom()
403 int max_len, first_word, last_word; in ixgb_set_eeprom() local
420 first_word = eeprom->offset >> 1; in ixgb_set_eeprom()
431 eeprom_buff[0] = ixgb_read_eeprom(hw, first_word); in ixgb_set_eeprom()
437 eeprom_buff[last_word - first_word] in ixgb_set_eeprom()
442 for (i = 0; i <= (last_word - first_word); i++) in ixgb_set_eeprom()
443 ixgb_write_eeprom(hw, first_word + i, eeprom_buff[i]); in ixgb_set_eeprom()
446 if (first_word <= EEPROM_CHECKSUM_REG) in ixgb_set_eeprom()