Lines Matching refs:last_word
515 int last_word; in e1000_get_eeprom() local
525 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom()
527 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
536 last_word - first_word + 1, in e1000_get_eeprom()
539 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
552 (last_word - first_word + 1)); in e1000_get_eeprom()
555 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
574 int last_word; in e1000_set_eeprom() local
591 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom()
609 ret_val = e1000_read_nvm(hw, last_word, 1, in e1000_set_eeprom()
610 &eeprom_buff[last_word - first_word]); in e1000_set_eeprom()
616 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
621 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
625 last_word - first_word + 1, eeprom_buff); in e1000_set_eeprom()