Lines Matching refs:first_word
530 int first_word, last_word; in ax88179_get_eeprom() local
538 first_word = eeprom->offset >> 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()
548 &eeprom_buff[i - first_word]); in ax88179_get_eeprom()
566 int first_word; in ax88179_set_eeprom() local
580 first_word = eeprom->offset >> 1; in ax88179_set_eeprom()
583 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom()
591 ret = ax88179_read_cmd(dev, AX_ACCESS_EEPROM, first_word, 1, 2, in ax88179_set_eeprom()
594 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", first_word); in ax88179_set_eeprom()
601 &eeprom_buff[last_word - first_word]); in ax88179_set_eeprom()
610 for (i = first_word; i <= last_word; i++) { in ax88179_set_eeprom()
612 i, eeprom_buff[i - first_word]); in ax88179_set_eeprom()
614 &eeprom_buff[i - first_word]); in ax88179_set_eeprom()