/drivers/misc/eeprom/ |
D | eeprom_93cx6.c | 30 static inline void eeprom_93cx6_pulse_high(struct eeprom_93cx6 *eeprom) in eeprom_93cx6_pulse_high() argument 32 eeprom->reg_data_clock = 1; in eeprom_93cx6_pulse_high() 33 eeprom->register_write(eeprom); in eeprom_93cx6_pulse_high() 43 static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom) in eeprom_93cx6_pulse_low() argument 45 eeprom->reg_data_clock = 0; in eeprom_93cx6_pulse_low() 46 eeprom->register_write(eeprom); in eeprom_93cx6_pulse_low() 56 static void eeprom_93cx6_startup(struct eeprom_93cx6 *eeprom) in eeprom_93cx6_startup() argument 61 eeprom->register_read(eeprom); in eeprom_93cx6_startup() 62 eeprom->reg_data_in = 0; in eeprom_93cx6_startup() 63 eeprom->reg_data_out = 0; in eeprom_93cx6_startup() [all …]
|
/drivers/nvmem/ |
D | lpc18xx_eeprom.c | 56 static inline void lpc18xx_eeprom_writel(struct lpc18xx_eeprom_dev *eeprom, in lpc18xx_eeprom_writel() argument 59 writel(val, eeprom->reg_base + reg); in lpc18xx_eeprom_writel() 62 static inline u32 lpc18xx_eeprom_readl(struct lpc18xx_eeprom_dev *eeprom, in lpc18xx_eeprom_readl() argument 65 return readl(eeprom->reg_base + reg); in lpc18xx_eeprom_readl() 68 static int lpc18xx_eeprom_busywait_until_prog(struct lpc18xx_eeprom_dev *eeprom) in lpc18xx_eeprom_busywait_until_prog() argument 77 val = lpc18xx_eeprom_readl(eeprom, LPC18XX_EEPROM_INTSTAT); in lpc18xx_eeprom_busywait_until_prog() 80 lpc18xx_eeprom_writel(eeprom, LPC18XX_EEPROM_INTSTATCLR, in lpc18xx_eeprom_busywait_until_prog() 95 struct lpc18xx_eeprom_dev *eeprom = context; in lpc18xx_eeprom_gather_write() local 103 if ((reg > eeprom->size - LPC18XX_EEPROM_PAGE_SIZE) || in lpc18xx_eeprom_gather_write() 104 (reg + bytes > eeprom->size - LPC18XX_EEPROM_PAGE_SIZE)) in lpc18xx_eeprom_gather_write() [all …]
|
/drivers/i2c/ |
D | i2c-slave-eeprom.c | 36 struct eeprom_data *eeprom = i2c_get_clientdata(client); in i2c_slave_eeprom_slave_cb() local 40 if (eeprom->first_write) { in i2c_slave_eeprom_slave_cb() 41 eeprom->buffer_idx = *val; in i2c_slave_eeprom_slave_cb() 42 eeprom->first_write = false; in i2c_slave_eeprom_slave_cb() 44 spin_lock(&eeprom->buffer_lock); in i2c_slave_eeprom_slave_cb() 45 eeprom->buffer[eeprom->buffer_idx++] = *val; in i2c_slave_eeprom_slave_cb() 46 spin_unlock(&eeprom->buffer_lock); in i2c_slave_eeprom_slave_cb() 52 eeprom->buffer_idx++; in i2c_slave_eeprom_slave_cb() 55 spin_lock(&eeprom->buffer_lock); in i2c_slave_eeprom_slave_cb() 56 *val = eeprom->buffer[eeprom->buffer_idx]; in i2c_slave_eeprom_slave_cb() [all …]
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | eeprom.c | 105 mt7601u_has_tssi(struct mt7601u_dev *dev, u8 *eeprom) in mt7601u_has_tssi() argument 107 u16 nic_conf1 = get_unaligned_le16(eeprom + MT_EE_NIC_CONF_1); in mt7601u_has_tssi() 113 mt7601u_set_chip_cap(struct mt7601u_dev *dev, u8 *eeprom) in mt7601u_set_chip_cap() argument 115 u16 nic_conf0 = get_unaligned_le16(eeprom + MT_EE_NIC_CONF_0); in mt7601u_set_chip_cap() 116 u16 nic_conf1 = get_unaligned_le16(eeprom + MT_EE_NIC_CONF_1); in mt7601u_set_chip_cap() 121 dev->ee->tssi_enabled = mt7601u_has_tssi(dev, eeprom) && in mt7601u_set_chip_cap() 138 mt7601u_set_macaddr(struct mt7601u_dev *dev, const u8 *eeprom) in mt7601u_set_macaddr() argument 140 const void *src = eeprom + MT_EE_MAC_ADDR; in mt7601u_set_macaddr() 159 u8 *eeprom, u8 max_pwr) in mt7601u_set_channel_target_power() argument 161 u8 trgt_pwr = eeprom[MT_EE_TX_TSSI_TARGET_POWER]; in mt7601u_set_channel_target_power() [all …]
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800pci.c | 90 static void rt2800pci_eepromregister_read(struct eeprom_93cx6 *eeprom) in rt2800pci_eepromregister_read() argument 92 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_read() 97 eeprom->reg_data_in = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_IN); in rt2800pci_eepromregister_read() 98 eeprom->reg_data_out = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_OUT); in rt2800pci_eepromregister_read() 99 eeprom->reg_data_clock = in rt2800pci_eepromregister_read() 101 eeprom->reg_chip_select = in rt2800pci_eepromregister_read() 105 static void rt2800pci_eepromregister_write(struct eeprom_93cx6 *eeprom) in rt2800pci_eepromregister_write() argument 107 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_write() 110 rt2x00_set_field32(®, E2PROM_CSR_DATA_IN, !!eeprom->reg_data_in); in rt2800pci_eepromregister_write() 111 rt2x00_set_field32(®, E2PROM_CSR_DATA_OUT, !!eeprom->reg_data_out); in rt2800pci_eepromregister_write() [all …]
|
D | rt2800lib.c | 775 u16 eeprom; in rt2800_agc_to_rssi() local 781 rt2800_eeprom_read(rt2x00dev, EEPROM_RSSI_BG, &eeprom); in rt2800_agc_to_rssi() 782 offset0 = rt2x00_get_field16(eeprom, EEPROM_RSSI_BG_OFFSET0); in rt2800_agc_to_rssi() 783 offset1 = rt2x00_get_field16(eeprom, EEPROM_RSSI_BG_OFFSET1); in rt2800_agc_to_rssi() 784 rt2800_eeprom_read(rt2x00dev, EEPROM_RSSI_BG2, &eeprom); in rt2800_agc_to_rssi() 785 offset2 = rt2x00_get_field16(eeprom, EEPROM_RSSI_BG2_OFFSET2); in rt2800_agc_to_rssi() 787 rt2800_eeprom_read(rt2x00dev, EEPROM_RSSI_A, &eeprom); in rt2800_agc_to_rssi() 788 offset0 = rt2x00_get_field16(eeprom, EEPROM_RSSI_A_OFFSET0); in rt2800_agc_to_rssi() 789 offset1 = rt2x00_get_field16(eeprom, EEPROM_RSSI_A_OFFSET1); in rt2800_agc_to_rssi() 790 rt2800_eeprom_read(rt2x00dev, EEPROM_RSSI_A2, &eeprom); in rt2800_agc_to_rssi() [all …]
|
D | rt61pci.c | 174 static void rt61pci_eepromregister_read(struct eeprom_93cx6 *eeprom) in rt61pci_eepromregister_read() argument 176 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt61pci_eepromregister_read() 181 eeprom->reg_data_in = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_IN); in rt61pci_eepromregister_read() 182 eeprom->reg_data_out = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_OUT); in rt61pci_eepromregister_read() 183 eeprom->reg_data_clock = in rt61pci_eepromregister_read() 185 eeprom->reg_chip_select = in rt61pci_eepromregister_read() 189 static void rt61pci_eepromregister_write(struct eeprom_93cx6 *eeprom) in rt61pci_eepromregister_write() argument 191 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt61pci_eepromregister_write() 194 rt2x00_set_field32(®, E2PROM_CSR_DATA_IN, !!eeprom->reg_data_in); in rt61pci_eepromregister_write() 195 rt2x00_set_field32(®, E2PROM_CSR_DATA_OUT, !!eeprom->reg_data_out); in rt61pci_eepromregister_write() [all …]
|
D | rt2400pci.c | 136 static void rt2400pci_eepromregister_read(struct eeprom_93cx6 *eeprom) in rt2400pci_eepromregister_read() argument 138 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2400pci_eepromregister_read() 143 eeprom->reg_data_in = !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_IN); in rt2400pci_eepromregister_read() 144 eeprom->reg_data_out = !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_OUT); in rt2400pci_eepromregister_read() 145 eeprom->reg_data_clock = in rt2400pci_eepromregister_read() 147 eeprom->reg_chip_select = in rt2400pci_eepromregister_read() 151 static void rt2400pci_eepromregister_write(struct eeprom_93cx6 *eeprom) in rt2400pci_eepromregister_write() argument 153 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2400pci_eepromregister_write() 156 rt2x00_set_field32(®, CSR21_EEPROM_DATA_IN, !!eeprom->reg_data_in); in rt2400pci_eepromregister_write() 157 rt2x00_set_field32(®, CSR21_EEPROM_DATA_OUT, !!eeprom->reg_data_out); in rt2400pci_eepromregister_write() [all …]
|
D | rt2500pci.c | 136 static void rt2500pci_eepromregister_read(struct eeprom_93cx6 *eeprom) in rt2500pci_eepromregister_read() argument 138 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2500pci_eepromregister_read() 143 eeprom->reg_data_in = !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_IN); in rt2500pci_eepromregister_read() 144 eeprom->reg_data_out = !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_OUT); in rt2500pci_eepromregister_read() 145 eeprom->reg_data_clock = in rt2500pci_eepromregister_read() 147 eeprom->reg_chip_select = in rt2500pci_eepromregister_read() 151 static void rt2500pci_eepromregister_write(struct eeprom_93cx6 *eeprom) in rt2500pci_eepromregister_write() argument 153 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2500pci_eepromregister_write() 156 rt2x00_set_field32(®, CSR21_EEPROM_DATA_IN, !!eeprom->reg_data_in); in rt2500pci_eepromregister_write() 157 rt2x00_set_field32(®, CSR21_EEPROM_DATA_OUT, !!eeprom->reg_data_out); in rt2500pci_eepromregister_write() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-eeprom.c | 48 u8 *eeprom; in pvr2_eeprom_fetch() local 56 eeprom = kmalloc(EEPROM_SIZE,GFP_KERNEL); in pvr2_eeprom_fetch() 57 if (!eeprom) { in pvr2_eeprom_fetch() 92 memset(eeprom,0,EEPROM_SIZE); in pvr2_eeprom_fetch() 104 msg[1].buf = eeprom+tcnt; in pvr2_eeprom_fetch() 109 kfree(eeprom); in pvr2_eeprom_fetch() 113 return eeprom; in pvr2_eeprom_fetch() 120 u8 *eeprom; in pvr2_eeprom_analyze() local 125 eeprom = pvr2_eeprom_fetch(hdw); in pvr2_eeprom_analyze() 126 if (!eeprom) in pvr2_eeprom_analyze() [all …]
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-eeprom-parse.c | 206 static u16 iwl_eeprom_query16(const u8 *eeprom, size_t eeprom_size, int offset) in iwl_eeprom_query16() argument 210 return le16_to_cpup((__le16 *)(eeprom + offset)); in iwl_eeprom_query16() 213 static u32 eeprom_indirect_address(const u8 *eeprom, size_t eeprom_size, in eeprom_indirect_address() argument 223 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address() 227 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address() 231 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address() 235 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address() 239 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address() 243 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address() 247 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address() [all …]
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_ethtool.c | 368 struct ethtool_eeprom *eeprom, u8 *bytes) in ixgb_get_eeprom() argument 376 if (eeprom->len == 0) { in ixgb_get_eeprom() 381 eeprom->magic = hw->vendor_id | (hw->device_id << 16); in ixgb_get_eeprom() 385 if (eeprom->offset > eeprom->offset + eeprom->len) { in ixgb_get_eeprom() 390 if ((eeprom->offset + eeprom->len) > max_len) in ixgb_get_eeprom() 391 eeprom->len = (max_len - eeprom->offset); in ixgb_get_eeprom() 393 first_word = eeprom->offset >> 1; in ixgb_get_eeprom() 394 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgb_get_eeprom() 405 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in ixgb_get_eeprom() 414 struct ethtool_eeprom *eeprom, u8 *bytes) in ixgb_set_eeprom() argument [all …]
|
D | ixgb_ee.c | 380 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_write_eeprom() 473 ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_get_eeprom_data() 480 hw->eeprom[i] = cpu_to_le16(ee_data); in ixgb_get_eeprom_data() 513 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_check_and_get_eeprom_data() 537 return hw->eeprom[index]; in ixgb_get_eeprom_word() 555 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_get_ee_mac_addr() 580 return le16_to_cpu(hw->eeprom[EEPROM_PBA_1_2_REG]) in ixgb_get_ee_pba_number() 581 | (le16_to_cpu(hw->eeprom[EEPROM_PBA_3_4_REG])<<16); in ixgb_get_ee_pba_number() 598 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_get_ee_device_id()
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_ethtool.c | 209 struct ethtool_eeprom *eeprom, u8 *bytes) in atl1e_get_eeprom() argument 218 if (eeprom->len == 0) in atl1e_get_eeprom() 224 eeprom->magic = hw->vendor_id | (hw->device_id << 16); in atl1e_get_eeprom() 226 first_dword = eeprom->offset >> 2; in atl1e_get_eeprom() 227 last_dword = (eeprom->offset + eeprom->len - 1) >> 2; in atl1e_get_eeprom() 241 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl1e_get_eeprom() 242 eeprom->len); in atl1e_get_eeprom() 249 struct ethtool_eeprom *eeprom, u8 *bytes) in atl1e_set_eeprom() argument 259 if (eeprom->len == 0) in atl1e_set_eeprom() 262 if (eeprom->magic != (hw->vendor_id | (hw->device_id << 16))) in atl1e_set_eeprom() [all …]
|
/drivers/fmc/ |
D | fmc-match.c | 61 if (fmc->eeprom_len && !fmc->eeprom) { in fmc_fill_id_info() 62 fmc->eeprom = kzalloc(fmc->eeprom_len, GFP_KERNEL); in fmc_fill_id_info() 63 if (!fmc->eeprom) in fmc_fill_id_info() 66 ret = fmc->op->read_ee(fmc, 0, fmc->eeprom, fmc->eeprom_len); in fmc_fill_id_info() 72 if (!fmc->eeprom) in fmc_fill_id_info() 78 h = (void *)fmc->eeprom; in fmc_fill_id_info() 102 kfree(fmc->eeprom); in fmc_fill_id_info() 103 fmc->eeprom = NULL; in fmc_fill_id_info()
|
/drivers/net/wireless/marvell/libertas/ |
D | ethtool.c | 38 struct ethtool_eeprom *eeprom, u8 * bytes) in lbs_ethtool_get_eeprom() argument 46 if (eeprom->offset + eeprom->len > LBS_EEPROM_LEN || in lbs_ethtool_get_eeprom() 47 eeprom->len > LBS_EEPROM_READ_LEN) { in lbs_ethtool_get_eeprom() 53 LBS_EEPROM_READ_LEN + eeprom->len); in lbs_ethtool_get_eeprom() 55 cmd.offset = cpu_to_le16(eeprom->offset); in lbs_ethtool_get_eeprom() 56 cmd.len = cpu_to_le16(eeprom->len); in lbs_ethtool_get_eeprom() 59 memcpy(bytes, cmd.value, eeprom->len); in lbs_ethtool_get_eeprom()
|
/drivers/net/dsa/mv88e6xxx/ |
D | global2.c | 250 struct ethtool_eeprom *eeprom, u8 *data) in mv88e6xxx_g2_get_eeprom16() argument 252 unsigned int offset = eeprom->offset; in mv88e6xxx_g2_get_eeprom16() 253 unsigned int len = eeprom->len; in mv88e6xxx_g2_get_eeprom16() 257 eeprom->len = 0; in mv88e6xxx_g2_get_eeprom16() 268 eeprom->len++; in mv88e6xxx_g2_get_eeprom16() 281 eeprom->len += 2; in mv88e6xxx_g2_get_eeprom16() 293 eeprom->len++; in mv88e6xxx_g2_get_eeprom16() 300 struct ethtool_eeprom *eeprom, u8 *data) in mv88e6xxx_g2_set_eeprom16() argument 302 unsigned int offset = eeprom->offset; in mv88e6xxx_g2_set_eeprom16() 303 unsigned int len = eeprom->len; in mv88e6xxx_g2_set_eeprom16() [all …]
|
D | global2.h | 32 struct ethtool_eeprom *eeprom, u8 *data); 34 struct ethtool_eeprom *eeprom, u8 *data); 68 struct ethtool_eeprom *eeprom, in mv88e6xxx_g2_get_eeprom16() argument 75 struct ethtool_eeprom *eeprom, in mv88e6xxx_g2_set_eeprom16() argument
|
/drivers/net/usb/ |
D | asix_common.c | 595 int asix_get_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, in asix_get_eeprom() argument 603 if (eeprom->len == 0) in asix_get_eeprom() 606 eeprom->magic = AX_EEPROM_MAGIC; in asix_get_eeprom() 608 first_word = eeprom->offset >> 1; in asix_get_eeprom() 609 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_get_eeprom() 625 memcpy(data, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in asix_get_eeprom() 630 int asix_set_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, in asix_set_eeprom() argument 640 eeprom->len, eeprom->offset, eeprom->magic); in asix_set_eeprom() 642 if (eeprom->len == 0) in asix_set_eeprom() 645 if (eeprom->magic != AX_EEPROM_MAGIC) in asix_set_eeprom() [all …]
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_hw.c | 3477 struct e1000_eeprom_info *eeprom = &hw->eeprom; in e1000_init_eeprom_params() local 3487 eeprom->type = e1000_eeprom_microwire; in e1000_init_eeprom_params() 3488 eeprom->word_size = 64; in e1000_init_eeprom_params() 3489 eeprom->opcode_bits = 3; in e1000_init_eeprom_params() 3490 eeprom->address_bits = 6; in e1000_init_eeprom_params() 3491 eeprom->delay_usec = 50; in e1000_init_eeprom_params() 3498 eeprom->type = e1000_eeprom_microwire; in e1000_init_eeprom_params() 3499 eeprom->opcode_bits = 3; in e1000_init_eeprom_params() 3500 eeprom->delay_usec = 50; in e1000_init_eeprom_params() 3502 eeprom->word_size = 256; in e1000_init_eeprom_params() [all …]
|
/drivers/net/wireless/admtek/ |
D | adm8211.c | 79 static void adm8211_eeprom_register_read(struct eeprom_93cx6 *eeprom) in adm8211_eeprom_register_read() argument 81 struct adm8211_priv *priv = eeprom->data; in adm8211_eeprom_register_read() 84 eeprom->reg_data_in = reg & ADM8211_SPR_SDI; in adm8211_eeprom_register_read() 85 eeprom->reg_data_out = reg & ADM8211_SPR_SDO; in adm8211_eeprom_register_read() 86 eeprom->reg_data_clock = reg & ADM8211_SPR_SCLK; in adm8211_eeprom_register_read() 87 eeprom->reg_chip_select = reg & ADM8211_SPR_SCS; in adm8211_eeprom_register_read() 90 static void adm8211_eeprom_register_write(struct eeprom_93cx6 *eeprom) in adm8211_eeprom_register_write() argument 92 struct adm8211_priv *priv = eeprom->data; in adm8211_eeprom_register_write() 95 if (eeprom->reg_data_in) in adm8211_eeprom_register_write() 97 if (eeprom->reg_data_out) in adm8211_eeprom_register_write() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.c | 526 ret_val = hw->eeprom.ops.read(hw, IXGBE_PBANUM0_PTR, &data); in ixgbe_read_pba_string_generic() 532 ret_val = hw->eeprom.ops.read(hw, IXGBE_PBANUM1_PTR, &pba_ptr); in ixgbe_read_pba_string_generic() 578 ret_val = hw->eeprom.ops.read(hw, pba_ptr, &length); in ixgbe_read_pba_string_generic() 600 ret_val = hw->eeprom.ops.read(hw, pba_ptr + offset, &data); in ixgbe_read_pba_string_generic() 717 hw->eeprom.ops.read(hw, IXGBE_EEPROM_CTRL_4, &ee_ctrl_4); in ixgbe_set_lan_id_multi_port_pcie() 826 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_eeprom_params_generic() local 830 if (eeprom->type == ixgbe_eeprom_uninitialized) { in ixgbe_init_eeprom_params_generic() 831 eeprom->type = ixgbe_eeprom_none; in ixgbe_init_eeprom_params_generic() 834 eeprom->semaphore_delay = 10; in ixgbe_init_eeprom_params_generic() 836 eeprom->word_page_size = 0; in ixgbe_init_eeprom_params_generic() [all …]
|
/drivers/scsi/ |
D | dc395x.c | 337 struct NvRamType eeprom; /* eeprom settings for this adapter */ member 633 static void eeprom_index_to_delay(struct NvRamType *eeprom) in eeprom_index_to_delay() argument 635 eeprom->delay_time = eeprom_index_to_delay_map[eeprom->delay_time]; in eeprom_index_to_delay() 662 static void eeprom_override(struct NvRamType *eeprom) in eeprom_override() argument 668 eeprom->scsi_id = (u8)cfg_data[CFG_ADAPTER_ID].value; in eeprom_override() 671 eeprom->channel_cfg = (u8)cfg_data[CFG_ADAPTER_MODE].value; in eeprom_override() 674 eeprom->delay_time = delay_to_eeprom_index( in eeprom_override() 678 eeprom->max_tag = (u8)cfg_data[CFG_TAGS].value; in eeprom_override() 683 eeprom->target[id].cfg0 = in eeprom_override() 687 eeprom->target[id].period = in eeprom_override() [all …]
|
/drivers/mtd/maps/ |
D | pismo.c | 219 struct pismo_eeprom eeprom; in pismo_probe() local 239 ret = pismo_eeprom_read(client, &eeprom, 0, sizeof(eeprom)); in pismo_probe() 245 dev_info(&client->dev, "%.15s board found\n", eeprom.board); in pismo_probe() 247 for (i = 0; i < ARRAY_SIZE(eeprom.cs); i++) in pismo_probe() 248 if (eeprom.cs[i].type != 0xff) in pismo_probe() 249 pismo_add_one(pismo, i, &eeprom.cs[i], in pismo_probe()
|
/drivers/staging/rtl8188eu/hal/ |
D | usb_halinit.c | 1054 struct eeprom_priv *eeprom = GET_EEPROM_EFUSE_PRIV(adapt); in Hal_EfuseParseMACAddr_8188EU() local 1058 eeprom->mac_addr[i] = sMacAddr[i]; in Hal_EfuseParseMACAddr_8188EU() 1061 memcpy(eeprom->mac_addr, &hwinfo[EEPROM_MAC_ADDR_88EU], ETH_ALEN); in Hal_EfuseParseMACAddr_8188EU() 1065 eeprom->mac_addr)); in Hal_EfuseParseMACAddr_8188EU() 1073 struct eeprom_priv *eeprom = GET_EEPROM_EFUSE_PRIV(adapt); in readAdapterInfo_8188EU() local 1076 Hal_EfuseParseIDCode88E(adapt, eeprom->efuse_eeprom_data); in readAdapterInfo_8188EU() 1077 Hal_EfuseParsePIDVID_8188EU(adapt, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag); in readAdapterInfo_8188EU() 1078 Hal_EfuseParseMACAddr_8188EU(adapt, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag); in readAdapterInfo_8188EU() 1080 Hal_ReadPowerSavingMode88E(adapt, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag); in readAdapterInfo_8188EU() 1081 Hal_ReadTxPowerInfo88E(adapt, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag); in readAdapterInfo_8188EU() [all …]
|