Home
last modified time | relevance | path

Searched refs:eeprom_data (Results 1 – 25 of 30) sorted by relevance

12

/drivers/media/common/
Dtveeprom.c416 unsigned char *eeprom_data) in tveeprom_hauppauge_analog() argument
458 if (eeprom_data[0] == 0x1a && in tveeprom_hauppauge_analog()
459 eeprom_data[1] == 0xeb && in tveeprom_hauppauge_analog()
460 eeprom_data[2] == 0x67 && in tveeprom_hauppauge_analog()
461 eeprom_data[3] == 0x95) in tveeprom_hauppauge_analog()
463 else if ((eeprom_data[0] & 0xe1) == 0x01 && in tveeprom_hauppauge_analog()
464 eeprom_data[1] == 0x00 && in tveeprom_hauppauge_analog()
465 eeprom_data[2] == 0x00 && in tveeprom_hauppauge_analog()
466 eeprom_data[8] == 0x84) in tveeprom_hauppauge_analog()
468 else if (eeprom_data[1] == 0x70 && in tveeprom_hauppauge_analog()
[all …]
/drivers/i2c/
Di2c-slave-eeprom.c29 struct eeprom_data { struct
48 struct eeprom_data *eeprom = i2c_get_clientdata(client); in i2c_slave_eeprom_slave_cb() argument
96 struct eeprom_data *eeprom; in i2c_slave_eeprom_bin_read()
111 struct eeprom_data *eeprom; in i2c_slave_eeprom_bin_write()
123 static int i2c_slave_init_eeprom_data(struct eeprom_data *eeprom, struct i2c_client *client, in i2c_slave_init_eeprom_data()
127 const char *eeprom_data; in i2c_slave_init_eeprom_data() local
128 int ret = device_property_read_string(&client->dev, "firmware-name", &eeprom_data); in i2c_slave_init_eeprom_data()
131 ret = request_firmware_into_buf(&fw, eeprom_data, &client->dev, in i2c_slave_init_eeprom_data()
145 struct eeprom_data *eeprom; in i2c_slave_eeprom_probe()
150 eeprom = devm_kzalloc(&client->dev, sizeof(struct eeprom_data) + size, GFP_KERNEL); in i2c_slave_eeprom_probe()
[all …]
/drivers/misc/eeprom/
Deeprom.c33 struct eeprom_data { struct
44 struct eeprom_data *data = i2c_get_clientdata(client); in eeprom_update_client() argument
80 struct eeprom_data *data = i2c_get_clientdata(client); in eeprom_read()
148 struct eeprom_data *data; in eeprom_probe()
150 data = devm_kzalloc(&client->dev, sizeof(struct eeprom_data), in eeprom_probe()
/drivers/net/wireless/intel/iwlwifi/
Diwl-eeprom-read.c218 __le16 *eeprom_data) in iwl_read_otp_word() argument
252 *eeprom_data = cpu_to_le16(r >> 16); in iwl_read_otp_word()
406 __le16 eeprom_data; in iwl_read_eeprom() local
408 ret = iwl_read_otp_word(trans, addr, &eeprom_data); in iwl_read_eeprom()
411 e[cache_addr / 2] = eeprom_data; in iwl_read_eeprom()
/drivers/media/usb/gspca/
Dtv8532.c86 static const u8 eeprom_data[][3] = { variable
136 for (i = 0; i < ARRAY_SIZE(eeprom_data); i++) { in tv_8532WriteEEprom()
138 reg_w1(gspca_dev, R04_WTRAM_DATA_L, eeprom_data[i][2]); in tv_8532WriteEEprom()
139 reg_w1(gspca_dev, R05_WTRAM_DATA_M, eeprom_data[i][1]); in tv_8532WriteEEprom()
140 reg_w1(gspca_dev, R06_WTRAM_DATA_H, eeprom_data[i][0]); in tv_8532WriteEEprom()
/drivers/net/ethernet/intel/e1000/
De1000_hw.c644 u16 eeprom_data; in e1000_adjust_serdes_amplitude() local
659 &eeprom_data); in e1000_adjust_serdes_amplitude()
663 if (eeprom_data != EEPROM_RESERVED_WORD) { in e1000_adjust_serdes_amplitude()
665 eeprom_data &= EEPROM_SERDES_AMPLITUDE_MASK; in e1000_adjust_serdes_amplitude()
667 e1000_write_phy_reg(hw, M88E1000_PHY_EXT_CTRL, eeprom_data); in e1000_adjust_serdes_amplitude()
689 u16 eeprom_data; in e1000_setup_link() local
701 1, &eeprom_data); in e1000_setup_link()
706 if ((eeprom_data & EEPROM_WORD0F_PAUSE_MASK) == 0) in e1000_setup_link()
708 else if ((eeprom_data & EEPROM_WORD0F_PAUSE_MASK) == in e1000_setup_link()
738 1, &eeprom_data); in e1000_setup_link()
[all …]
/drivers/media/pci/bt8xx/
Dbttv-cards.c77 unsigned char eeprom_data[256]);
2888 static unsigned char eeprom_data[256]; variable
2965 static void identify_by_eeprom(struct bttv *btv, unsigned char eeprom_data[256]) in identify_by_eeprom()
2969 if (0 == strncmp(eeprom_data,"GET MM20xPCTV",13)) in identify_by_eeprom()
2971 else if (0 == strncmp(eeprom_data+20,"Picolo",7)) in identify_by_eeprom()
2973 else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0) in identify_by_eeprom()
3331 bttv_readee(btv,eeprom_data,0xa0); in bttv_init_card2()
3332 identify_by_eeprom(btv,eeprom_data); in bttv_init_card2()
3360 bttv_readee(btv,eeprom_data,0xa0); in bttv_init_card2()
3365 bttv_readee(btv,eeprom_data,0xa0); in bttv_init_card2()
[all …]
/drivers/staging/comedi/drivers/
Dcb_pcidda.c149 u16 eeprom_data[EEPROM_SIZE]; /* software copy of board's eeprom */ member
271 offset = devpriv->eeprom_data[0x7 + index]; in cb_pcidda_calibrate()
272 gain = devpriv->eeprom_data[0x8 + index]; in cb_pcidda_calibrate()
377 devpriv->eeprom_data[i] = cb_pcidda_read_eeprom(dev, i); in cb_pcidda_auto_attach()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_phy.h168 u8 *eeprom_data);
172 u8 eeprom_data);
Dixgbe_82598.c22 u8 *eeprom_data);
952 u8 byte_offset, u8 *eeprom_data) in ixgbe_read_i2c_phy_82598() argument
1004 *eeprom_data = (u8)(sfp_data >> 8); in ixgbe_read_i2c_phy_82598()
1023 u8 *eeprom_data) in ixgbe_read_i2c_eeprom_82598() argument
1026 byte_offset, eeprom_data); in ixgbe_read_i2c_eeprom_82598()
Dixgbe_common.c4333 u8 rs, eeprom_data; in ixgbe_set_soft_rate_select_speed() local
4351 &eeprom_data); in ixgbe_set_soft_rate_select_speed()
4357 eeprom_data = (eeprom_data & ~IXGBE_SFF_SOFT_RS_SELECT_MASK) | rs; in ixgbe_set_soft_rate_select_speed()
4361 eeprom_data); in ixgbe_set_soft_rate_select_speed()
4370 &eeprom_data); in ixgbe_set_soft_rate_select_speed()
4376 eeprom_data = (eeprom_data & ~IXGBE_SFF_SOFT_RS_SELECT_MASK) | rs; in ixgbe_set_soft_rate_select_speed()
4380 eeprom_data); in ixgbe_set_soft_rate_select_speed()
Dixgbe_phy.c1940 u8 *eeprom_data) in ixgbe_read_i2c_eeprom_generic() argument
1944 eeprom_data); in ixgbe_read_i2c_eeprom_generic()
1972 u8 eeprom_data) in ixgbe_write_i2c_eeprom_generic() argument
1976 eeprom_data); in ixgbe_write_i2c_eeprom_generic()
/drivers/media/usb/au0828/
Dau0828-cards.c142 static void hauppauge_eeprom(struct au0828_dev *dev, u8 *eeprom_data) in hauppauge_eeprom() argument
146 tveeprom_hauppauge_analog(&tv, eeprom_data); in hauppauge_eeprom()
/drivers/media/pci/cx88/
Dcx88-cards.c2853 static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data) in leadtek_eeprom() argument
2855 if (eeprom_data[4] != 0x7d || in leadtek_eeprom()
2856 eeprom_data[5] != 0x10 || in leadtek_eeprom()
2857 eeprom_data[7] != 0x66) { in leadtek_eeprom()
2863 switch (eeprom_data[6]) { in leadtek_eeprom()
2877 core->board.tuner_type, eeprom_data[0]); in leadtek_eeprom()
2880 static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data) in hauppauge_eeprom() argument
2884 tveeprom_hauppauge_analog(&tv, eeprom_data); in hauppauge_eeprom()
2978 static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data) in gdi_eeprom() argument
2980 const char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner)) in gdi_eeprom()
[all …]
/drivers/media/pci/cx23885/
Dcx23885-cards.c1220 static void viewcast_eeprom(struct cx23885_dev *dev, u8 *eeprom_data) in viewcast_eeprom() argument
1225 if (*(eeprom_data + 0x00) != 0x59) { in viewcast_eeprom()
1231 sn = (*(eeprom_data + 0x06) << 24) | in viewcast_eeprom()
1232 (*(eeprom_data + 0x05) << 16) | in viewcast_eeprom()
1233 (*(eeprom_data + 0x04) << 8) | in viewcast_eeprom()
1234 (*(eeprom_data + 0x03)); in viewcast_eeprom()
1242 static void hauppauge_eeprom(struct cx23885_dev *dev, u8 *eeprom_data) in hauppauge_eeprom() argument
1246 tveeprom_hauppauge_analog(&tv, eeprom_data); in hauppauge_eeprom()
/drivers/scsi/qla4xxx/
Dql4_def.h616 struct eeprom_data *nvram;
969 offsetof(struct eeprom_data, isp4010.ext_hw_conf) / 2 : in eeprom_ext_hw_conf_offset()
970 offsetof(struct eeprom_data, isp4022.ext_hw_conf) / 2); in eeprom_ext_hw_conf_offset()
Dql4_nvram.h104 struct eeprom_data { struct
/drivers/media/pci/saa7164/
Dsaa7164-cards.c769 static void hauppauge_eeprom(struct saa7164_dev *dev, u8 *eeprom_data) in hauppauge_eeprom() argument
773 tveeprom_hauppauge_analog(&tv, eeprom_data); in hauppauge_eeprom()
/drivers/net/ethernet/qlogic/
Dqla3xxx.h867 struct eeprom_data { struct
1170 struct eeprom_data nvram_data;
/drivers/net/wireless/ath/ath9k/
Deeprom.c125 return ath9k_hw_nvram_read_array(pdata->eeprom_data, in ath9k_hw_nvram_read_pdata()
126 ARRAY_SIZE(pdata->eeprom_data), in ath9k_hw_nvram_read_pdata()
/drivers/net/ethernet/agere/
Det131x.c457 u8 eeprom_data[2]; member
726 eeprom_read(adapter, 0x70, &adapter->eeprom_data[0]); in et131x_init_eeprom()
727 eeprom_read(adapter, 0x71, &adapter->eeprom_data[1]); in et131x_init_eeprom()
729 if (adapter->eeprom_data[0] != 0xcd) in et131x_init_eeprom()
731 adapter->eeprom_data[1] = 0x00; in et131x_init_eeprom()
1479 if ((adapter->eeprom_data[1] & 0x4) == 0) { in et131x_xcvr_init()
1485 if ((adapter->eeprom_data[1] & 0x8) == 0) in et131x_xcvr_init()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c1381 u8 eeprom_addr, eeprom_data[XGBE_SFP_EEPROM_MAX]; in xgbe_phy_module_eeprom() local
1430 eeprom_data, XGBE_SFP_EEPROM_BASE_LEN); in xgbe_phy_module_eeprom()
1438 sfp_eeprom = (struct xgbe_sfp_eeprom *)eeprom_data; in xgbe_phy_module_eeprom()
1445 eeprom_data + XGBE_SFP_EEPROM_BASE_LEN, in xgbe_phy_module_eeprom()
1460 data[i] = eeprom_data[j]; in xgbe_phy_module_eeprom()
/drivers/net/ethernet/smsc/
Dsmsc9420.c347 u8 eeprom_data[SMSC9420_EEPROM_SIZE]; in smsc9420_ethtool_get_eeprom() local
354 int ret = smsc9420_eeprom_read_location(pd, i, eeprom_data); in smsc9420_ethtool_get_eeprom()
361 memcpy(data, &eeprom_data[eeprom->offset], len); in smsc9420_ethtool_get_eeprom()
Dsmsc911x.c2084 u8 eeprom_data[SMSC911X_EEPROM_SIZE]; in smsc911x_ethtool_get_eeprom() local
2092 int ret = smsc911x_eeprom_read_location(pdata, i, eeprom_data); in smsc911x_ethtool_get_eeprom()
2099 memcpy(data, &eeprom_data[eeprom->offset], len); in smsc911x_ethtool_get_eeprom()
/drivers/net/ethernet/micrel/
Dksz884x.c5919 static u16 eeprom_data[EEPROM_SIZE] = { 0 }; variable
6263 u8 *eeprom_byte = (u8 *) eeprom_data; in netdev_get_eeprom()
6269 eeprom_data[i] = eeprom_read(&hw_priv->hw, i); in netdev_get_eeprom()
6301 eeprom_data[i] = eeprom_read(&hw_priv->hw, i); in netdev_set_eeprom()
6302 memcpy(eeprom_word, eeprom_data, EEPROM_SIZE * 2); in netdev_set_eeprom()
6305 if (eeprom_word[i] != eeprom_data[i]) { in netdev_set_eeprom()
6306 eeprom_data[i] = eeprom_word[i]; in netdev_set_eeprom()
6307 eeprom_write(&hw_priv->hw, i, eeprom_data[i]); in netdev_set_eeprom()

12