Lines Matching defs:eeprom

1118 	priv->nic_type = priv->eeprom[EEPROM_NIC_TYPE];
1598 * Add a device attribute to view/control the delay between eeprom
2584 * access to the eeprom, but during device initialization (before the
2590 * the eeprom, along with some helper functions to find information in
2591 * the per device private data's copy of the eeprom.
2594 * select and why do have to keep driving the eeprom clock?), read
2603 /* the eeprom requires some time to complete the operation */
2624 /* push a single bit down to the eeprom */
2632 /* push an opcode followed by an address down to the eeprom */
2646 /* pull 16 bits off the eeprom, one bit at a time */
2658 /* Read the byte off the eeprom one bit at a time */
2675 /* data's copy of the eeprom data */
2678 memcpy(mac, &priv->eeprom[EEPROM_MAC_ADDRESS], ETH_ALEN);
2684 __le16 *eeprom = (__le16 *) priv->eeprom;
2688 /* read entire contents of eeprom into private buffer */
2690 eeprom[i] = cpu_to_le16(eeprom_read_u16(priv, (u8) i));
2697 * load eeprom data into the designated region in SRAM. If neither
2714 if (priv->eeprom[EEPROM_VERSION] != 0) {
2717 /* write the eeprom data to sram */
2719 ipw_write8(priv, IPW_EEPROM_DATA + i, priv->eeprom[i]);
2721 /* Do not load eeprom data on fatal error or suspend */
2726 /* Load eeprom data on fatal error or suspend */
3632 /* read eeprom data */
3635 /* initialize the eeprom region of sram */
10456 struct ethtool_eeprom *eeprom, u8 * bytes)
10460 if (eeprom->offset + eeprom->len > IPW_EEPROM_IMAGE_SIZE)
10463 memcpy(bytes, &p->eeprom[eeprom->offset], eeprom->len);
10469 struct ethtool_eeprom *eeprom, u8 * bytes)
10474 if (eeprom->offset + eeprom->len > IPW_EEPROM_IMAGE_SIZE)
10477 memcpy(&p->eeprom[eeprom->offset], bytes, eeprom->len);
10479 ipw_write8(p, i + IPW_EEPROM_DATA, p->eeprom[i]);
10803 unsigned char bt_caps = priv->eeprom[EEPROM_SKU_CAPABILITY];
11134 if (!memcmp(&priv->eeprom[EEPROM_COUNTRY_CODE],
11141 priv->eeprom[EEPROM_COUNTRY_CODE + 0],
11142 priv->eeprom[EEPROM_COUNTRY_CODE + 1],
11143 priv->eeprom[EEPROM_COUNTRY_CODE + 2]);
11177 /* Load the microcode, firmware, and eeprom.