Home
last modified time | relevance | path

Searched refs:E2P_CMD (Results 1 – 18 of 18) sorted by relevance

/openbmc/u-boot/board/micronas/vct/
H A Dsmc_eeprom.c45 #define E2P_CMD (SMSC9118_BASE + 0xB0) macro
141 if ((temp = smc911x_reg_read(E2P_CMD)) & E2P_CMD_EPC_BUSY_) { in eeprom_read_location()
146 smc911x_reg_write(E2P_CMD, in eeprom_read_location()
169 if (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_) { in eeprom_enable_erase_and_write()
173 smc911x_reg_write(E2P_CMD, (E2P_CMD_EPC_BUSY_ | E2P_CMD_EPC_CMD_EWEN_)); in eeprom_enable_erase_and_write()
192 if (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_) { in eeprom_disable_erase_and_write()
217 if (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_) { in eeprom_write_location()
223 smc911x_reg_write(E2P_CMD, in eeprom_write_location()
244 if (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_) { in eeprom_erase_all()
268 if (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_) { in eeprom_reload()
[all …]
/openbmc/u-boot/examples/standalone/
H A Dsmc911x_eeprom.c71 if (smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) { in do_eeprom_cmd()
73 smc911x_reg_read(dev, E2P_CMD)); in do_eeprom_cmd()
77 smc911x_reg_write(dev, E2P_CMD, E2P_CMD_EPC_BUSY | cmd | reg); in do_eeprom_cmd()
79 while (smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) in do_eeprom_cmd()
82 smc911x_reg_read(dev, E2P_CMD)); in do_eeprom_cmd()
252 while (smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) in smc911x_init()
255 smc911x_reg_read(dev, E2P_CMD)); in smc911x_init()
/openbmc/u-boot/drivers/usb/eth/
H A Dlan7x.c140 E2P_CMD, E2P_CMD_EPC_BUSY, in lan7x_eeprom_confirm_not_busy()
147 E2P_CMD, in lan7x_wait_eeprom()
165 lan7x_write_reg(udev, E2P_CMD, val); in lan7x_read_eeprom()
H A Dsmsc95xx.c63 #define E2P_CMD 0x30 macro
270 smsc95xx_read_reg(udev, E2P_CMD, &val); in smsc95xx_eeprom_confirm_not_busy()
286 smsc95xx_read_reg(udev, E2P_CMD, &val); in smsc95xx_wait_eeprom()
311 smsc95xx_write_reg(udev, E2P_CMD, val); in smsc95xx_read_eeprom()
H A Dlan7x.h39 #define E2P_CMD 0x040 macro
/openbmc/u-boot/drivers/net/
H A Dsmc911x.h291 #define E2P_CMD 0xB0 macro
483 while (timeout-- && smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) in smc911x_reset()
/openbmc/linux/drivers/net/ethernet/microchip/
H A Dlan743x_ethtool.c375 val = lan743x_csr_read(adapter, E2P_CMD); in lan743x_eeprom_wait()
398 val = lan743x_csr_read(adapter, E2P_CMD); in lan743x_eeprom_confirm_not_busy()
427 lan743x_csr_write(adapter, E2P_CMD, val); in lan743x_eeprom_read()
457 lan743x_csr_write(adapter, E2P_CMD, val); in lan743x_eeprom_write()
471 lan743x_csr_write(adapter, E2P_CMD, val); in lan743x_eeprom_write()
1243 rb[ETH_E2P_CMD] = lan743x_csr_read(adapter, E2P_CMD); in lan743x_common_regs()
H A Dlan743x_main.h86 #define E2P_CMD (0x040) macro
/openbmc/linux/drivers/net/ethernet/smsc/
H A Dsmsc9420.h244 #define E2P_CMD (0xF8) macro
H A Dsmsc9420.c195 if (smsc9420_reg_read(pd, E2P_CMD) & E2P_CMD_EPC_BUSY_) { in smsc9420_eeprom_reload()
200 smsc9420_reg_write(pd, E2P_CMD, in smsc9420_eeprom_reload()
205 if (!(smsc9420_reg_read(pd, E2P_CMD) & E2P_CMD_EPC_BUSY_)) in smsc9420_eeprom_reload()
278 if (smsc9420_reg_read(pd, E2P_CMD) & E2P_CMD_EPC_BUSY_) { in smsc9420_eeprom_send_cmd()
284 smsc9420_reg_write(pd, E2P_CMD, e2cmd); in smsc9420_eeprom_send_cmd()
288 e2cmd = smsc9420_reg_read(pd, E2P_CMD); in smsc9420_eeprom_send_cmd()
H A Dsmsc911x.h291 #define E2P_CMD 0xB0 macro
H A Dsmsc911x.c1628 while ((smsc911x_reg_read(pdata, E2P_CMD) & E2P_CMD_EPC_BUSY_) && in smsc911x_open()
2022 if (smsc911x_reg_read(pdata, E2P_CMD) & E2P_CMD_EPC_BUSY_) { in smsc911x_eeprom_send_cmd()
2028 smsc911x_reg_write(pdata, E2P_CMD, e2cmd); in smsc911x_eeprom_send_cmd()
2032 e2cmd = smsc911x_reg_read(pdata, E2P_CMD); in smsc911x_eeprom_send_cmd()
/openbmc/linux/drivers/net/usb/
H A Dsmsc95xx.h140 #define E2P_CMD (0x30) macro
H A Dsmsc75xx.h190 #define E2P_CMD (0x0040) macro
H A Dsmsc75xx.c303 ret = smsc75xx_read_reg(dev, E2P_CMD, &val); in smsc75xx_wait_eeprom()
329 ret = smsc75xx_read_reg(dev, E2P_CMD, &val); in smsc75xx_eeprom_confirm_not_busy()
360 ret = smsc75xx_write_reg(dev, E2P_CMD, val); in smsc75xx_read_eeprom()
398 ret = smsc75xx_write_reg(dev, E2P_CMD, val); in smsc75xx_write_eeprom()
420 ret = smsc75xx_write_reg(dev, E2P_CMD, val); in smsc75xx_write_eeprom()
1262 ret = smsc75xx_read_reg(dev, E2P_CMD, &buf); in smsc75xx_reset()
H A Dsmsc95xx.c318 ret = smsc95xx_read_reg(dev, E2P_CMD, &val); in smsc95xx_wait_eeprom()
344 ret = smsc95xx_read_reg(dev, E2P_CMD, &val); in smsc95xx_eeprom_confirm_not_busy()
375 ret = smsc95xx_write_reg(dev, E2P_CMD, val); in smsc95xx_read_eeprom()
413 ret = smsc95xx_write_reg(dev, E2P_CMD, val); in smsc95xx_write_eeprom()
435 ret = smsc95xx_write_reg(dev, E2P_CMD, val); in smsc95xx_write_eeprom()
H A Dlan78xx.h297 #define E2P_CMD (0x040) macro
H A Dlan78xx.c331 E2P_CMD,
861 ret = lan78xx_read_reg(dev, E2P_CMD, &val); in lan78xx_wait_eeprom()
886 ret = lan78xx_read_reg(dev, E2P_CMD, &val); in lan78xx_eeprom_confirm_not_busy()
925 ret = lan78xx_write_reg(dev, E2P_CMD, val); in lan78xx_read_raw_eeprom()
992 ret = lan78xx_write_reg(dev, E2P_CMD, val); in lan78xx_write_raw_eeprom()
1014 ret = lan78xx_write_reg(dev, E2P_CMD, val); in lan78xx_write_raw_eeprom()