/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/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/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/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/dsa/ |
D | mv88e6352.c | 126 struct ethtool_eeprom *eeprom, u8 *data) in mv88e6352_get_eeprom() argument 132 offset = eeprom->offset; in mv88e6352_get_eeprom() 133 len = eeprom->len; in mv88e6352_get_eeprom() 134 eeprom->len = 0; in mv88e6352_get_eeprom() 136 eeprom->magic = 0xc3ec4951; in mv88e6352_get_eeprom() 153 eeprom->len++; in mv88e6352_get_eeprom() 168 eeprom->len += 2; in mv88e6352_get_eeprom() 182 eeprom->len++; in mv88e6352_get_eeprom() 227 struct ethtool_eeprom *eeprom, u8 *data) in mv88e6352_set_eeprom() argument 233 if (eeprom->magic != 0xc3ec4951) in mv88e6352_set_eeprom() [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/usb/ |
D | asix_common.c | 472 int asix_get_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, in asix_get_eeprom() argument 480 if (eeprom->len == 0) in asix_get_eeprom() 483 eeprom->magic = AX_EEPROM_MAGIC; in asix_get_eeprom() 485 first_word = eeprom->offset >> 1; in asix_get_eeprom() 486 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_get_eeprom() 502 memcpy(data, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in asix_get_eeprom() 507 int asix_set_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, in asix_set_eeprom() argument 517 eeprom->len, eeprom->offset, eeprom->magic); in asix_set_eeprom() 519 if (eeprom->len == 0) in asix_set_eeprom() 522 if (eeprom->magic != AX_EEPROM_MAGIC) in asix_set_eeprom() [all …]
|
/drivers/net/wireless/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/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/ethernet/intel/ixgbe/ |
D | ixgbe_common.c | 507 ret_val = hw->eeprom.ops.read(hw, IXGBE_PBANUM0_PTR, &data); in ixgbe_read_pba_string_generic() 513 ret_val = hw->eeprom.ops.read(hw, IXGBE_PBANUM1_PTR, &pba_ptr); in ixgbe_read_pba_string_generic() 559 ret_val = hw->eeprom.ops.read(hw, pba_ptr, &length); in ixgbe_read_pba_string_generic() 581 ret_val = hw->eeprom.ops.read(hw, pba_ptr + offset, &data); in ixgbe_read_pba_string_generic() 793 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_eeprom_params_generic() local 797 if (eeprom->type == ixgbe_eeprom_uninitialized) { in ixgbe_init_eeprom_params_generic() 798 eeprom->type = ixgbe_eeprom_none; in ixgbe_init_eeprom_params_generic() 801 eeprom->semaphore_delay = 10; in ixgbe_init_eeprom_params_generic() 803 eeprom->word_page_size = 0; in ixgbe_init_eeprom_params_generic() 811 eeprom->type = ixgbe_eeprom_spi; in ixgbe_init_eeprom_params_generic() [all …]
|
D | ixgbe_x540.c | 202 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_eeprom_params_X540() local 206 if (eeprom->type == ixgbe_eeprom_uninitialized) { in ixgbe_init_eeprom_params_X540() 207 eeprom->semaphore_delay = 10; in ixgbe_init_eeprom_params_X540() 208 eeprom->type = ixgbe_flash; in ixgbe_init_eeprom_params_X540() 213 eeprom->word_size = 1 << (eeprom_size + in ixgbe_init_eeprom_params_X540() 217 eeprom->type, eeprom->word_size); in ixgbe_init_eeprom_params_X540() 360 pointer >= hw->eeprom.word_size) in ixgbe_calc_eeprom_checksum_X540() 371 (pointer + length) >= hw->eeprom.word_size) in ixgbe_calc_eeprom_checksum_X540() 407 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X540() 416 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_validate_eeprom_checksum_X540() [all …]
|
/drivers/net/wireless/ |
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/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/net/ethernet/atheros/atl1c/ |
D | atl1c_ethtool.c | 185 struct ethtool_eeprom *eeprom, u8 *bytes) in atl1c_get_eeprom() argument 194 if (eeprom->len == 0) in atl1c_get_eeprom() 200 eeprom->magic = adapter->pdev->vendor | in atl1c_get_eeprom() 203 first_dword = eeprom->offset >> 2; in atl1c_get_eeprom() 204 last_dword = (eeprom->offset + eeprom->len - 1) >> 2; in atl1c_get_eeprom() 218 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), in atl1c_get_eeprom() 219 eeprom->len); in atl1c_get_eeprom()
|
/drivers/net/ethernet/8390/ |
D | ax88796.c | 524 static void ax_eeprom_register_read(struct eeprom_93cx6 *eeprom) in ax_eeprom_register_read() argument 526 struct ei_device *ei_local = eeprom->data; in ax_eeprom_register_read() 529 eeprom->reg_data_in = reg & AX_MEMR_EEI; in ax_eeprom_register_read() 530 eeprom->reg_data_out = reg & AX_MEMR_EEO; /* Input pin */ in ax_eeprom_register_read() 531 eeprom->reg_data_clock = reg & AX_MEMR_EECLK; in ax_eeprom_register_read() 532 eeprom->reg_chip_select = reg & AX_MEMR_EECS; in ax_eeprom_register_read() 535 static void ax_eeprom_register_write(struct eeprom_93cx6 *eeprom) in ax_eeprom_register_write() argument 537 struct ei_device *ei_local = eeprom->data; in ax_eeprom_register_write() 542 if (eeprom->reg_data_in) in ax_eeprom_register_write() 544 if (eeprom->reg_data_clock) in ax_eeprom_register_write() [all …]
|