Lines Matching refs:eeprom
205 struct ethtool_eeprom *eeprom, u8 *bytes) in atl1e_get_eeprom() argument
214 if (eeprom->len == 0) in atl1e_get_eeprom()
220 eeprom->magic = hw->vendor_id | (hw->device_id << 16); in atl1e_get_eeprom()
222 first_dword = eeprom->offset >> 2; in atl1e_get_eeprom()
223 last_dword = (eeprom->offset + eeprom->len - 1) >> 2; in atl1e_get_eeprom()
237 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl1e_get_eeprom()
238 eeprom->len); in atl1e_get_eeprom()
245 struct ethtool_eeprom *eeprom, u8 *bytes) in atl1e_set_eeprom() argument
255 if (eeprom->len == 0) in atl1e_set_eeprom()
258 if (eeprom->magic != (hw->vendor_id | (hw->device_id << 16))) in atl1e_set_eeprom()
261 first_dword = eeprom->offset >> 2; in atl1e_set_eeprom()
262 last_dword = (eeprom->offset + eeprom->len - 1) >> 2; in atl1e_set_eeprom()
269 if (eeprom->offset & 3) { in atl1e_set_eeprom()
278 if (((eeprom->offset + eeprom->len) & 3)) { in atl1e_set_eeprom()
290 memcpy(ptr, bytes, eeprom->len); in atl1e_set_eeprom()