Lines Matching refs:eeprom
205 struct ethtool_eeprom *eeprom, u8 *bytes)
214 if (eeprom->len == 0)
220 eeprom->magic = hw->vendor_id | (hw->device_id << 16);
222 first_dword = eeprom->offset >> 2;
223 last_dword = (eeprom->offset + eeprom->len - 1) >> 2;
237 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3),
238 eeprom->len);
245 struct ethtool_eeprom *eeprom, u8 *bytes)
255 if (eeprom->len == 0)
258 if (eeprom->magic != (hw->vendor_id | (hw->device_id << 16)))
261 first_dword = eeprom->offset >> 2;
262 last_dword = (eeprom->offset + eeprom->len - 1) >> 2;
269 if (eeprom->offset & 3) {
278 if (((eeprom->offset + eeprom->len) & 3)) {
289 /* Device's eeprom is always little-endian, word addressable */
290 memcpy(ptr, bytes, eeprom->len);