Lines Matching refs:last_word
584 int first_word, last_word; in ax88179_get_eeprom() local
593 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_get_eeprom()
594 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom()
600 for (i = first_word; i <= last_word; i++) { in ax88179_get_eeprom()
622 int last_word; in ax88179_set_eeprom() local
636 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_set_eeprom()
638 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom()
655 ret = ax88179_read_cmd(dev, AX_ACCESS_EEPROM, last_word, 1, 2, in ax88179_set_eeprom()
656 &eeprom_buff[last_word - first_word]); in ax88179_set_eeprom()
658 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in ax88179_set_eeprom()
665 for (i = first_word; i <= last_word; i++) { in ax88179_set_eeprom()