/openbmc/u-boot/board/micronas/vct/ |
H A D | smc_eeprom.c | 45 #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 D | smc911x_eeprom.c | 71 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 D | lan7x.c | 140 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 D | smsc95xx.c | 63 #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 D | lan7x.h | 39 #define E2P_CMD 0x040 macro
|
/openbmc/u-boot/drivers/net/ |
H A D | smc911x.h | 291 #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 D | lan743x_ethtool.c | 375 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 D | lan743x_main.h | 86 #define E2P_CMD (0x040) macro
|
/openbmc/linux/drivers/net/ethernet/smsc/ |
H A D | smsc9420.h | 244 #define E2P_CMD (0xF8) macro
|
H A D | smsc9420.c | 195 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 D | smsc911x.h | 291 #define E2P_CMD 0xB0 macro
|
H A D | smsc911x.c | 1628 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 D | smsc95xx.h | 140 #define E2P_CMD (0x30) macro
|
H A D | smsc75xx.h | 190 #define E2P_CMD (0x0040) macro
|
H A D | smsc75xx.c | 303 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 D | smsc95xx.c | 318 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 D | lan78xx.h | 297 #define E2P_CMD (0x040) macro
|
H A D | lan78xx.c | 331 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()
|