Lines Matching refs:last_word
461 int first_word, last_word; in igc_ethtool_get_eeprom() local
472 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igc_ethtool_get_eeprom()
474 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igc_ethtool_get_eeprom()
481 last_word - first_word + 1, in igc_ethtool_get_eeprom()
484 for (i = 0; i < last_word - first_word + 1; i++) { in igc_ethtool_get_eeprom()
493 for (i = 0; i < last_word - first_word + 1; i++) in igc_ethtool_get_eeprom()
508 int max_len, first_word, last_word, ret_val = 0; in igc_ethtool_set_eeprom() local
527 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igc_ethtool_set_eeprom()
546 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igc_ethtool_set_eeprom()
547 &eeprom_buff[last_word - first_word]); in igc_ethtool_set_eeprom()
551 for (i = 0; i < last_word - first_word + 1; i++) in igc_ethtool_set_eeprom()
556 for (i = 0; i < last_word - first_word + 1; i++) in igc_ethtool_set_eeprom()
560 last_word - first_word + 1, eeprom_buff); in igc_ethtool_set_eeprom()