Lines Matching refs:last_word
507 int last_word; in e1000_get_eeprom() local
517 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom()
519 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
528 last_word - first_word + 1, in e1000_get_eeprom()
531 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
544 (last_word - first_word + 1)); in e1000_get_eeprom()
547 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
566 int last_word; in e1000_set_eeprom() local
583 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom()
601 ret_val = e1000_read_nvm(hw, last_word, 1, in e1000_set_eeprom()
602 &eeprom_buff[last_word - first_word]); in e1000_set_eeprom()
608 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
613 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
617 last_word - first_word + 1, eeprom_buff); in e1000_set_eeprom()