Lines Matching refs:last_word
666 int first_word, last_word; in asix_get_eeprom() local
675 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_get_eeprom()
677 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_get_eeprom()
683 for (i = first_word; i <= last_word; i++) { in asix_get_eeprom()
701 int first_word, last_word; in asix_set_eeprom() local
715 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_set_eeprom()
717 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_set_eeprom()
734 ret = asix_read_cmd(dev, AX_CMD_READ_EEPROM, last_word, 0, 2, in asix_set_eeprom()
735 &eeprom_buff[last_word - first_word], 0); in asix_set_eeprom()
737 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in asix_set_eeprom()
752 for (i = first_word; i <= last_word; i++) { in asix_set_eeprom()