/drivers/misc/eeprom/ |
H A D | eeprom_93cx6.c | 30 static inline void eeprom_93cx6_pulse_high(struct eeprom_93cx6 *eeprom) argument 32 eeprom->reg_data_clock = 1; 33 eeprom->register_write(eeprom); 43 static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom) argument 45 eeprom->reg_data_clock = 0; 46 eeprom->register_write(eeprom); 56 static void eeprom_93cx6_startup(struct eeprom_93cx6 *eeprom) argument 61 eeprom 76 eeprom_93cx6_cleanup(struct eeprom_93cx6 *eeprom) argument 93 eeprom_93cx6_write_bits(struct eeprom_93cx6 *eeprom, const u16 data, const u16 count) argument 132 eeprom_93cx6_read_bits(struct eeprom_93cx6 *eeprom, u16 *data, const u16 count) argument 181 eeprom_93cx6_read(struct eeprom_93cx6 *eeprom, const u8 word, u16 *data) argument 223 eeprom_93cx6_multiread(struct eeprom_93cx6 *eeprom, const u8 word, __le16 *data, const u16 words) argument 245 eeprom_93cx6_wren(struct eeprom_93cx6 *eeprom, bool enable) argument 277 eeprom_93cx6_write(struct eeprom_93cx6 *eeprom, u8 addr, u16 data) argument [all...] |
H A D | Makefile | 3 obj-$(CONFIG_EEPROM_LEGACY) += eeprom.o
|
/drivers/net/wireless/iwlwifi/ |
H A D | iwl-eeprom-read.h | 68 int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size);
|
H A D | iwl-eeprom-parse.c | 67 #include "iwl-eeprom-parse.h" 204 static u16 iwl_eeprom_query16(const u8 *eeprom, size_t eeprom_size, int offset) argument 208 return le16_to_cpup((__le16 *)(eeprom + offset)); 211 static u32 eeprom_indirect_address(const u8 *eeprom, size_t eeprom_size, argument 221 offset = iwl_eeprom_query16(eeprom, eeprom_size, 225 offset = iwl_eeprom_query16(eeprom, eeprom_size, 229 offset = iwl_eeprom_query16(eeprom, eeprom_size, 233 offset = iwl_eeprom_query16(eeprom, eeprom_size, 237 offset = iwl_eeprom_query16(eeprom, eeprom_size, 241 offset = iwl_eeprom_query16(eeprom, eeprom_siz 261 iwl_eeprom_query_addr(const u8 *eeprom, size_t eeprom_size, u32 offset) argument 272 iwl_eeprom_read_calib(const u8 *eeprom, size_t eeprom_size, struct iwl_nvm_data *data) argument 413 iwl_eeprom_enhanced_txpower(struct device *dev, struct iwl_nvm_data *data, const u8 *eeprom, size_t eeprom_size, int n_channels) argument 474 iwl_init_band_reference(const struct iwl_cfg *cfg, const u8 *eeprom, size_t eeprom_size, int eeprom_band, int *eeprom_ch_count, const struct iwl_eeprom_channel **ch_info, const u8 **eeprom_ch_array) argument 568 iwl_init_channel_map(struct device *dev, const struct iwl_cfg *cfg, struct iwl_nvm_data *data, const u8 *eeprom, size_t eeprom_size) argument 802 iwl_init_sbands(struct device *dev, const struct iwl_cfg *cfg, struct iwl_nvm_data *data, const u8 *eeprom, size_t eeprom_size) argument 837 iwl_parse_eeprom_data(struct device *dev, const struct iwl_cfg *cfg, const u8 *eeprom, size_t eeprom_size) argument [all...] |
H A D | Makefile | 7 iwlwifi-objs += iwl-eeprom-read.o iwl-eeprom-parse.o
|
/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-eeprom.c | 23 #include "pvrusb2-eeprom.h" 33 Read and analyze data in the eeprom. Use tveeprom to figure out 48 u8 *eeprom; local 56 eeprom = kmalloc(EEPROM_SIZE,GFP_KERNEL); 57 if (!eeprom) { 60 " required to read eeprom"); 64 trace_eeprom("Value for eeprom addr from controller was 0x%x", 67 /* Seems that if the high bit is set, then the *real* eeprom 72 /* FX2 documentation states that a 16bit-addressed eeprom is 77 trace_eeprom("Examining %d byte eeprom a 120 u8 *eeprom; local [all...] |
/drivers/fmc/ |
H A D | fmc-match.c | 60 /* If we know the eeprom length, try to read it off the device */ 61 if (fmc->eeprom_len && !fmc->eeprom) { 62 fmc->eeprom = kzalloc(fmc->eeprom_len, GFP_KERNEL); 63 if (!fmc->eeprom) 66 ret = fmc->op->read_ee(fmc, 0, fmc->eeprom, fmc->eeprom_len); 71 /* If no eeprom, continue with other matches */ 72 if (!fmc->eeprom) 77 /* So we have the eeprom: parse the FRU part (if any) */ 78 h = (void *)fmc->eeprom; 102 kfree(fmc->eeprom); [all...] |
H A D | Makefile | 12 obj-$(CONFIG_FMC_WRITE_EEPROM) += fmc-write-eeprom.o
|
/drivers/net/wireless/p54/ |
H A D | Makefile | 1 p54common-objs := eeprom.o fwio.o txrx.o main.o
|
/drivers/thunderbolt/ |
H A D | Makefile | 2 thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o
|
/drivers/net/wireless/rt2x00/ |
H A D | rt2800pci.c | 90 static void rt2800pci_eepromregister_read(struct eeprom_93cx6 *eeprom) argument 92 struct rt2x00_dev *rt2x00dev = eeprom->data; 97 eeprom->reg_data_in = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_IN); 98 eeprom->reg_data_out = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_OUT); 99 eeprom->reg_data_clock = 101 eeprom->reg_chip_select = 105 static void rt2800pci_eepromregister_write(struct eeprom_93cx6 *eeprom) argument 107 struct rt2x00_dev *rt2x00dev = eeprom->data; 110 rt2x00_set_field32(®, E2PROM_CSR_DATA_IN, !!eeprom->reg_data_in); 111 rt2x00_set_field32(®, E2PROM_CSR_DATA_OUT, !!eeprom 122 struct eeprom_93cx6 eeprom; local [all...] |
H A D | rt2x00debug.h | 63 RT2X00DEBUGFS_REGISTER_ENTRY(eeprom, u16);
|
H A D | rt2x00soc.c | 39 kfree(rt2x00dev->eeprom); 40 rt2x00dev->eeprom = NULL; 58 rt2x00dev->eeprom = kzalloc(rt2x00dev->ops->eeprom_size, GFP_KERNEL); 59 if (!rt2x00dev->eeprom)
|
H A D | rt2x00pci.c | 41 kfree(rt2x00dev->eeprom); 42 rt2x00dev->eeprom = NULL; 58 rt2x00dev->eeprom = kzalloc(rt2x00dev->ops->eeprom_size, GFP_KERNEL); 59 if (!rt2x00dev->eeprom)
|
/drivers/net/wireless/libertas/ |
H A D | ethtool.c | 38 struct ethtool_eeprom *eeprom, u8 * bytes) 46 if (eeprom->offset + eeprom->len > LBS_EEPROM_LEN || 47 eeprom->len > LBS_EEPROM_READ_LEN) { 53 LBS_EEPROM_READ_LEN + eeprom->len); 55 cmd.offset = cpu_to_le16(eeprom->offset); 56 cmd.len = cpu_to_le16(eeprom->len); 59 memcpy(bytes, cmd.value, eeprom->len); 37 lbs_ethtool_get_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom, u8 * bytes) argument
|
/drivers/media/pci/solo6x10/ |
H A D | Makefile | 3 solo6x10-v4l2-enc.o solo6x10-g723.o solo6x10-eeprom.o
|
/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_ethtool.c | 209 struct ethtool_eeprom *eeprom, u8 *bytes) 218 if (eeprom->len == 0) 224 eeprom->magic = hw->vendor_id | (hw->device_id << 16); 226 first_dword = eeprom->offset >> 2; 227 last_dword = (eeprom->offset + eeprom->len - 1) >> 2; 241 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), 242 eeprom->len); 249 struct ethtool_eeprom *eeprom, u8 *bytes) 259 if (eeprom 208 atl1e_get_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, u8 *bytes) argument 248 atl1e_set_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, u8 *bytes) argument [all...] |
/drivers/net/ethernet/dec/tulip/ |
H A D | Makefile | 17 tulip-objs := eeprom.o interrupt.o media.o \
|
/drivers/net/ethernet/intel/ixgb/ |
H A D | ixgb_ee.c | 380 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; 427 * The 16-bit value read from the eeprom 455 * Reads eeprom and stores data in shared structure. 456 * Validates eeprom checksum and eeprom signature. 461 * true: if eeprom read is successful 473 ee_map = (struct ixgb_ee_map_type *)hw->eeprom; 475 pr_debug("Reading eeprom data\n"); 480 hw->eeprom[i] = cpu_to_le16(ee_data); 501 * Local function to check if the eeprom signatur [all...] |
H A D | ixgb_ethtool.c | 368 struct ethtool_eeprom *eeprom, u8 *bytes) 376 if (eeprom->len == 0) { 381 eeprom->magic = hw->vendor_id | (hw->device_id << 16); 385 if (eeprom->offset > eeprom->offset + eeprom->len) { 390 if ((eeprom->offset + eeprom->len) > max_len) 391 eeprom->len = (max_len - eeprom 367 ixgb_get_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, u8 *bytes) argument 413 ixgb_set_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, u8 *bytes) argument [all...] |
/drivers/net/usb/ |
H A D | asix_common.c | 435 int asix_get_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, argument 443 if (eeprom->len == 0) 446 eeprom->magic = AX_EEPROM_MAGIC; 448 first_word = eeprom->offset >> 1; 449 last_word = (eeprom->offset + eeprom->len - 1) >> 1; 456 /* ax8817x returns 2 bytes from eeprom on read */ 465 memcpy(data, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); 470 int asix_set_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, argument [all...] |
/drivers/media/common/b2c2/ |
H A D | Makefile | 2 b2c2-flexcop-objs += flexcop-sram.o flexcop-eeprom.o flexcop-misc.o
|
/drivers/mtd/maps/ |
H A D | pismo.c | 219 struct pismo_eeprom eeprom; local 239 ret = pismo_eeprom_read(client, &eeprom, 0, sizeof(eeprom)); 245 dev_info(&client->dev, "%.15s board found\n", eeprom.board); 247 for (i = 0; i < ARRAY_SIZE(eeprom.cs); i++) 248 if (eeprom.cs[i].type != 0xff) 249 pismo_add_one(pismo, i, &eeprom.cs[i],
|
/drivers/media/pci/ttpci/ |
H A D | Makefile | 12 obj-$(CONFIG_TTPCI_EEPROM) += ttpci-eeprom.o
|
/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_ethtool.c | 185 struct ethtool_eeprom *eeprom, u8 *bytes) 194 if (eeprom->len == 0) 200 eeprom->magic = adapter->pdev->vendor | 203 first_dword = eeprom->offset >> 2; 204 last_dword = (eeprom->offset + eeprom->len - 1) >> 2; 218 memcpy(bytes, (u8 *)eeprom_buff + (eeprom->offset & 3), 219 eeprom->len); 184 atl1c_get_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, u8 *bytes) argument
|