Lines Matching refs:first_word
640 int first_word, last_word; in asix_get_eeprom() local
648 first_word = eeprom->offset >> 1; in asix_get_eeprom()
651 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_get_eeprom()
657 for (i = first_word; i <= last_word; i++) { in asix_get_eeprom()
659 &eeprom_buff[i - first_word], 0) < 0) { in asix_get_eeprom()
675 int first_word, last_word; in asix_set_eeprom() local
688 first_word = eeprom->offset >> 1; in asix_set_eeprom()
691 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_set_eeprom()
699 ret = asix_read_cmd(dev, AX_CMD_READ_EEPROM, first_word, 0, 2, in asix_set_eeprom()
702 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", first_word); in asix_set_eeprom()
709 &eeprom_buff[last_word - first_word], 0); in asix_set_eeprom()
726 for (i = first_word; i <= last_word; i++) { in asix_set_eeprom()
728 i, eeprom_buff[i - first_word]); in asix_set_eeprom()
730 eeprom_buff[i - first_word], 0, NULL, 0); in asix_set_eeprom()