Lines Matching refs:first_word
426 int first_word, last_word; in e1000_get_eeprom() local
435 first_word = eeprom->offset >> 1; in e1000_get_eeprom()
438 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
444 ret_val = e1000_read_eeprom(hw, first_word, 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()
449 ret_val = e1000_read_eeprom(hw, first_word + i, 1, 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
485 first_word = eeprom->offset >> 1; in e1000_set_eeprom()
497 ret_val = e1000_read_eeprom(hw, first_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()
518 ret_val = e1000_write_eeprom(hw, first_word, in e1000_set_eeprom()
519 last_word - first_word + 1, eeprom_buff); in e1000_set_eeprom()
522 if ((ret_val == 0) && (first_word <= EEPROM_CHECKSUM_REG)) in e1000_set_eeprom()