Lines Matching refs:eeprom_buff
364 u16 *eeprom_buff; in igc_get_eeprom() local
376 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igc_get_eeprom()
378 if (!eeprom_buff) in igc_get_eeprom()
384 eeprom_buff); in igc_get_eeprom()
388 &eeprom_buff[i]); in igc_get_eeprom()
396 le16_to_cpus(&eeprom_buff[i]); in igc_get_eeprom()
398 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), in igc_get_eeprom()
400 kfree(eeprom_buff); in igc_get_eeprom()
411 u16 *eeprom_buff; in igc_set_eeprom() local
430 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in igc_set_eeprom()
431 if (!eeprom_buff) in igc_set_eeprom()
434 ptr = (void *)eeprom_buff; in igc_set_eeprom()
441 &eeprom_buff[0]); in igc_set_eeprom()
449 &eeprom_buff[last_word - first_word]); in igc_set_eeprom()
454 le16_to_cpus(&eeprom_buff[i]); in igc_set_eeprom()
459 eeprom_buff[i] = cpu_to_le16(eeprom_buff[i]); in igc_set_eeprom()
462 last_word - first_word + 1, eeprom_buff); in igc_set_eeprom()
469 kfree(eeprom_buff); in igc_set_eeprom()