Lines Matching refs:last_word
530 int first_word, last_word; in ax88179_get_eeprom() local
539 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_get_eeprom()
540 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom()
546 for (i = first_word; i <= last_word; i++) { in ax88179_get_eeprom()
567 int last_word; in ax88179_set_eeprom() local
581 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_set_eeprom()
583 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom()
600 ret = ax88179_read_cmd(dev, AX_ACCESS_EEPROM, last_word, 1, 2, in ax88179_set_eeprom()
601 &eeprom_buff[last_word - first_word]); in ax88179_set_eeprom()
603 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in ax88179_set_eeprom()
610 for (i = first_word; i <= last_word; i++) { in ax88179_set_eeprom()