Lines Matching refs:eeprom_buff
1881 u32 *eeprom_buff; in atl2_get_eeprom() local
1897 eeprom_buff = kmalloc_array(last_dword - first_dword + 1, sizeof(u32), in atl2_get_eeprom()
1899 if (!eeprom_buff) in atl2_get_eeprom()
1903 if (!atl2_read_eeprom(hw, i*4, &(eeprom_buff[i-first_dword]))) { in atl2_get_eeprom()
1909 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl2_get_eeprom()
1912 kfree(eeprom_buff); in atl2_get_eeprom()
1922 u32 *eeprom_buff; in atl2_set_eeprom() local
1937 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in atl2_set_eeprom()
1938 if (!eeprom_buff) in atl2_set_eeprom()
1941 ptr = eeprom_buff; in atl2_set_eeprom()
1946 if (!atl2_read_eeprom(hw, first_dword*4, &(eeprom_buff[0]))) { in atl2_set_eeprom()
1958 &(eeprom_buff[last_dword - first_dword]))) { in atl2_set_eeprom()
1968 if (!atl2_write_eeprom(hw, ((first_dword+i)*4), eeprom_buff[i])) { in atl2_set_eeprom()
1974 kfree(eeprom_buff); in atl2_set_eeprom()