Lines Matching refs:first_word
739 int first_word, last_word; in igb_get_eeprom() local
748 first_word = eeprom->offset >> 1; in igb_get_eeprom()
751 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_eeprom()
757 ret_val = hw->nvm.ops.read(hw, first_word, 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()
762 ret_val = hw->nvm.ops.read(hw, first_word + i, 1, 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
803 first_word = eeprom->offset >> 1; in igb_set_eeprom()
815 ret_val = hw->nvm.ops.read(hw, first_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()
836 ret_val = hw->nvm.ops.write(hw, first_word, in igb_set_eeprom()
837 last_word - first_word + 1, eeprom_buff); in igb_set_eeprom()
3227 u16 first_word, last_word; in igb_get_module_eeprom() local
3233 first_word = ee->offset >> 1; in igb_get_module_eeprom()
3236 dataword = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_module_eeprom()
3242 for (i = 0; i < last_word - first_word + 1; i++) { in igb_get_module_eeprom()
3243 status = igb_read_phy_reg_i2c(hw, (first_word + i) * 2, in igb_get_module_eeprom()