Lines Matching refs:eeprom_buff
529 u16 *eeprom_buff; in ax88179_get_eeprom() local
540 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom()
542 if (!eeprom_buff) in ax88179_get_eeprom()
548 &eeprom_buff[i - first_word]); in ax88179_get_eeprom()
550 kfree(eeprom_buff); in ax88179_get_eeprom()
555 memcpy(data, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in ax88179_get_eeprom()
556 kfree(eeprom_buff); in ax88179_get_eeprom()
565 u16 *eeprom_buff; in ax88179_set_eeprom() local
583 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom()
585 if (!eeprom_buff) in ax88179_set_eeprom()
592 &eeprom_buff[0]); in ax88179_set_eeprom()
601 &eeprom_buff[last_word - first_word]); in ax88179_set_eeprom()
608 memcpy((u8 *)eeprom_buff + (eeprom->offset & 1), data, eeprom->len); 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()
631 kfree(eeprom_buff); in ax88179_set_eeprom()