Home | History | Annotate | Download | only in usb

Lines Matching defs:eeprom

419 	 * Read the whole EEPROM content and parse it.
981 struct upgt_lmac_eeprom *eeprom;
987 DPRINTF(1, "%s: request EEPROM block (offset=%d, len=%d)\n",
993 len = sizeof(*mem) + sizeof(*eeprom) + block;
1001 eeprom = (struct upgt_lmac_eeprom *)(mem + 1);
1002 eeprom->header1.flags = 0;
1003 eeprom->header1.type = UPGT_H1_TYPE_CTRL;
1004 eeprom->header1.len = htole16((
1008 eeprom->header2.reqid = htole32(sc->sc_memaddr_frame_start);
1009 eeprom->header2.type = htole16(UPGT_H2_TYPE_EEPROM);
1010 eeprom->header2.flags = 0;
1012 eeprom->offset = htole16(offset);
1013 eeprom->len = htole16(block);
1015 mem->chksum = upgt_chksum_le((uint32_t *)eeprom,
1021 "could not transmit EEPROM data URB\n");
1030 "timeout while waiting for EEPROM data\n");
1053 /* calculate eeprom options start offset */
1060 /* the eeprom option length is stored in words */
1068 DPRINTF(1, "%s: EEPROM name len=%d\n",
1072 DPRINTF(1, "%s: EEPROM serial len=%d\n",
1076 DPRINTF(1, "%s: EEPROM mac len=%d\n",
1082 DPRINTF(1, "%s: EEPROM hwrx len=%d\n",
1088 DPRINTF(1, "%s: EEPROM chip len=%d\n",
1092 DPRINTF(1, "%s: EEPROM freq3 len=%d\n",
1099 DPRINTF(1, "%s: EEPROM freq4 len=%d\n",
1106 DPRINTF(1, "%s: EEPROM freq5 len=%d\n",
1110 DPRINTF(1, "%s: EEPROM freq6 len=%d\n",
1117 DPRINTF(1, "%s: EEPROM end len=%d\n",
1122 DPRINTF(1, "%s: EEPROM off without end option\n",
1126 DPRINTF(1, "%s: EEPROM unknown type 0x%04x len=%d\n",
1131 /* jump to next EEPROM option */
1771 struct upgt_lmac_eeprom *eeprom;
1796 eeprom = (struct upgt_lmac_eeprom *)(data_rx->buf + 4);
1797 uint16_t eeprom_offset = le16toh(eeprom->offset);
1798 uint16_t eeprom_len = le16toh(eeprom->len);
1800 DPRINTF(2, "%s: received EEPROM block (offset=%d, len=%d)\n",
1808 /* EEPROM data has arrived in time, wakeup upgt_eeprom_read */
1809 /* Note eeprom data arrived */