Lines Matching refs:last_word
426 int first_word, last_word; in e1000_get_eeprom() local
436 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom()
438 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
445 last_word - first_word + 1, in e1000_get_eeprom()
448 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
457 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
474 int max_len, first_word, last_word, ret_val = 0; in e1000_set_eeprom() local
486 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom()
505 ret_val = e1000_read_eeprom(hw, last_word, 1, in e1000_set_eeprom()
506 &eeprom_buff[last_word - first_word]); in e1000_set_eeprom()
510 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
515 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
519 last_word - first_word + 1, eeprom_buff); in e1000_set_eeprom()