| /OK3568_Linux_fs/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() 150 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { 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() 175 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_enable_erase_and_write() 192 if (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_) { in eeprom_disable_erase_and_write() 196 smc911x_reg_write(E2P_CMD, (E2P_CMD_EPC_BUSY_ | E2P_CMD_EPC_CMD_EWDS_)); in eeprom_disable_erase_and_write() 198 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_disable_erase_and_write() [all …]
|
| /OK3568_Linux_fs/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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/microchip/ |
| H A D | lan743x_ethtool.c | 158 val = lan743x_csr_read(adapter, E2P_CMD); in lan743x_eeprom_wait() 181 val = lan743x_csr_read(adapter, E2P_CMD); in lan743x_eeprom_confirm_not_busy() 210 lan743x_csr_write(adapter, E2P_CMD, val); in lan743x_eeprom_read() 240 lan743x_csr_write(adapter, E2P_CMD, val); in lan743x_eeprom_write() 254 lan743x_csr_write(adapter, E2P_CMD, val); in lan743x_eeprom_write()
|
| H A D | lan743x_main.h | 63 #define E2P_CMD (0x040) macro
|
| /OK3568_Linux_fs/u-boot/drivers/usb/eth/ |
| H A D | lan7x.c | 141 E2P_CMD, E2P_CMD_EPC_BUSY, in lan7x_eeprom_confirm_not_busy() 148 E2P_CMD, in lan7x_wait_eeprom() 166 lan7x_write_reg(udev, E2P_CMD, val); in lan7x_read_eeprom()
|
| H A D | smsc95xx.c | 64 #define E2P_CMD 0x30 macro 271 smsc95xx_read_reg(udev, E2P_CMD, &val); in smsc95xx_eeprom_confirm_not_busy() 287 smsc95xx_read_reg(udev, E2P_CMD, &val); in smsc95xx_wait_eeprom() 312 smsc95xx_write_reg(udev, E2P_CMD, val); in smsc95xx_read_eeprom()
|
| H A D | lan7x.h | 40 #define E2P_CMD 0x040 macro
|
| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | smc911x.h | 292 #define E2P_CMD 0xB0 macro 484 while (timeout-- && smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) in smc911x_reset()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/smsc/ |
| H A D | smsc9420.h | 245 #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 | smc911x.h | 521 #define E2P_CMD (0xB0) macro 776 #define SMC_GET_E2P_CMD(lp) SMC_inl( lp, E2P_CMD ) 777 #define SMC_SET_E2P_CMD(lp, x) SMC_outl( x, lp, E2P_CMD )
|
| H A D | smsc911x.h | 291 #define E2P_CMD 0xB0 macro
|
| H A D | smsc911x.c | 1618 while ((smsc911x_reg_read(pdata, E2P_CMD) & E2P_CMD_EPC_BUSY_) && in smsc911x_open() 2012 if (smsc911x_reg_read(pdata, E2P_CMD) & E2P_CMD_EPC_BUSY_) { in smsc911x_eeprom_send_cmd() 2018 smsc911x_reg_write(pdata, E2P_CMD, e2cmd); in smsc911x_eeprom_send_cmd() 2022 e2cmd = smsc911x_reg_read(pdata, E2P_CMD); in smsc911x_eeprom_send_cmd()
|
| H A D | smc911x.c | 1545 return (((E2P_CMD - ID_REV)/4 + 1) + in smc911x_ethtool_getregslen() 1558 for(i=ID_REV;i<=E2P_CMD;i+=4) { in smc911x_ethtool_getregs()
|
| /OK3568_Linux_fs/kernel/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 | smsc95xx.c | 312 ret = smsc95xx_read_reg(dev, E2P_CMD, &val); in smsc95xx_wait_eeprom() 338 ret = smsc95xx_read_reg(dev, E2P_CMD, &val); in smsc95xx_eeprom_confirm_not_busy() 369 ret = smsc95xx_write_reg(dev, E2P_CMD, val); in smsc95xx_read_eeprom() 407 ret = smsc95xx_write_reg(dev, E2P_CMD, val); in smsc95xx_write_eeprom() 429 ret = smsc95xx_write_reg(dev, E2P_CMD, val); in smsc95xx_write_eeprom()
|
| H A D | smsc75xx.c | 301 ret = smsc75xx_read_reg(dev, E2P_CMD, &val); in smsc75xx_wait_eeprom() 327 ret = smsc75xx_read_reg(dev, E2P_CMD, &val); in smsc75xx_eeprom_confirm_not_busy() 358 ret = smsc75xx_write_reg(dev, E2P_CMD, val); in smsc75xx_read_eeprom() 396 ret = smsc75xx_write_reg(dev, E2P_CMD, val); in smsc75xx_write_eeprom() 418 ret = smsc75xx_write_reg(dev, E2P_CMD, val); in smsc75xx_write_eeprom() 1259 ret = smsc75xx_read_reg(dev, E2P_CMD, &buf); in smsc75xx_reset()
|
| H A D | lan78xx.h | 297 #define E2P_CMD (0x040) macro
|
| H A D | lan78xx.c | 280 E2P_CMD, 649 ret = lan78xx_read_reg(dev, E2P_CMD, &val); in lan78xx_wait_eeprom() 674 ret = lan78xx_read_reg(dev, E2P_CMD, &val); in lan78xx_eeprom_confirm_not_busy() 713 ret = lan78xx_write_reg(dev, E2P_CMD, val); in lan78xx_read_raw_eeprom() 780 ret = lan78xx_write_reg(dev, E2P_CMD, val); in lan78xx_write_raw_eeprom() 802 ret = lan78xx_write_reg(dev, E2P_CMD, val); in lan78xx_write_raw_eeprom()
|