Lines Matching refs:eeprom_buff
738 u16 *eeprom_buff; in igb_get_eeprom() local
751 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_eeprom()
753 if (!eeprom_buff) in igb_get_eeprom()
759 eeprom_buff); in igb_get_eeprom()
763 &eeprom_buff[i]); in igb_get_eeprom()
771 le16_to_cpus(&eeprom_buff[i]); in igb_get_eeprom()
773 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), in igb_get_eeprom()
775 kfree(eeprom_buff); in igb_get_eeprom()
785 u16 *eeprom_buff; in igb_set_eeprom() local
805 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in igb_set_eeprom()
806 if (!eeprom_buff) in igb_set_eeprom()
809 ptr = (void *)eeprom_buff; in igb_set_eeprom()
816 &eeprom_buff[0]); in igb_set_eeprom()
824 &eeprom_buff[last_word - first_word]); in igb_set_eeprom()
831 le16_to_cpus(&eeprom_buff[i]); in igb_set_eeprom()
836 cpu_to_le16s(&eeprom_buff[i]); in igb_set_eeprom()
839 last_word - first_word + 1, eeprom_buff); in igb_set_eeprom()
847 kfree(eeprom_buff); in igb_set_eeprom()