Lines Matching refs:eeprom_buff
639 u16 *eeprom_buff; in asix_get_eeprom() local
651 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_get_eeprom()
653 if (!eeprom_buff) in asix_get_eeprom()
659 &eeprom_buff[i - first_word], 0) < 0) { in asix_get_eeprom()
660 kfree(eeprom_buff); in asix_get_eeprom()
665 memcpy(data, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in asix_get_eeprom()
666 kfree(eeprom_buff); in asix_get_eeprom()
674 u16 *eeprom_buff; in asix_set_eeprom() local
691 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_set_eeprom()
693 if (!eeprom_buff) in asix_set_eeprom()
700 &eeprom_buff[0], 0); in asix_set_eeprom()
709 &eeprom_buff[last_word - first_word], 0); in asix_set_eeprom()
716 memcpy((u8 *)eeprom_buff + (eeprom->offset & 1), data, eeprom->len); 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()
747 kfree(eeprom_buff); in asix_set_eeprom()