Lines Matching refs:last_word
739 int first_word, last_word; in igb_get_eeprom() local
749 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igb_get_eeprom()
751 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_eeprom()
758 last_word - first_word + 1, in igb_get_eeprom()
761 for (i = 0; i < last_word - first_word + 1; i++) { in igb_get_eeprom()
770 for (i = 0; i < last_word - first_word + 1; i++) in igb_get_eeprom()
787 int max_len, first_word, last_word, ret_val = 0; in igb_set_eeprom() local
804 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igb_set_eeprom()
823 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igb_set_eeprom()
824 &eeprom_buff[last_word - first_word]); in igb_set_eeprom()
828 for (i = 0; i < last_word - first_word + 1; i++) in igb_set_eeprom()
833 for (i = 0; i < last_word - first_word + 1; i++) in igb_set_eeprom()
837 last_word - first_word + 1, eeprom_buff); in igb_set_eeprom()
3225 u16 first_word, last_word; in igb_get_module_eeprom() local
3232 last_word = (ee->offset + ee->len - 1) >> 1; in igb_get_module_eeprom()
3234 dataword = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_module_eeprom()
3240 for (i = 0; i < last_word - first_word + 1; i++) { in igb_get_module_eeprom()