Lines Matching refs:first_word
514 int first_word; in e1000_get_eeprom() local
524 first_word = eeprom->offset >> 1; in e1000_get_eeprom()
527 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
535 ret_val = e1000_read_nvm(hw, first_word, 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()
540 ret_val = e1000_read_nvm(hw, first_word + i, 1, 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()
573 int first_word; in e1000_set_eeprom() local
590 first_word = eeprom->offset >> 1; in e1000_set_eeprom()
603 ret_val = e1000_read_nvm(hw, first_word, 1, &eeprom_buff[0]); 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()
624 ret_val = e1000_write_nvm(hw, first_word, in e1000_set_eeprom()
625 last_word - first_word + 1, eeprom_buff); in e1000_set_eeprom()
633 if ((first_word <= NVM_CHECKSUM_REG) || in e1000_set_eeprom()