/Linux-v4.19/drivers/net/ethernet/dec/tulip/ |
D | eeprom.c | 335 #define eeprom_delay() ioread32(ee_addr) 346 void __iomem *ee_addr = tp->base_addr + CSR9; in tulip_read_eeprom() local 355 iowrite32(EE_ENB & ~EE_CS, ee_addr); in tulip_read_eeprom() 356 iowrite32(EE_ENB, ee_addr); in tulip_read_eeprom() 361 iowrite32(EE_ENB | dataval, ee_addr); in tulip_read_eeprom() 363 iowrite32(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom() 365 retval = (retval << 1) | ((ioread32(ee_addr) & EE_DATA_READ) ? 1 : 0); in tulip_read_eeprom() 367 iowrite32(EE_ENB, ee_addr); in tulip_read_eeprom() 371 iowrite32(EE_ENB | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom() 373 retval = (retval << 1) | ((ioread32(ee_addr) & EE_DATA_READ) ? 1 : 0); in tulip_read_eeprom() [all …]
|
D | winbond-840.c | 490 #define eeprom_delay(ee_addr) ioread32(ee_addr) argument 506 void __iomem *ee_addr = addr + EECtrl; in eeprom_read() local 508 iowrite32(EE_ChipSelect, ee_addr); in eeprom_read() 513 iowrite32(dataval, ee_addr); in eeprom_read() 514 eeprom_delay(ee_addr); in eeprom_read() 515 iowrite32(dataval | EE_ShiftClk, ee_addr); in eeprom_read() 516 eeprom_delay(ee_addr); in eeprom_read() 518 iowrite32(EE_ChipSelect, ee_addr); in eeprom_read() 519 eeprom_delay(ee_addr); in eeprom_read() 522 iowrite32(EE_ChipSelect | EE_ShiftClk, ee_addr); in eeprom_read() [all …]
|
D | de2104x.c | 1761 void __iomem *ee_addr = regs + ROMCmd; in tulip_read_eeprom() local 1764 writel(EE_ENB & ~EE_CS, ee_addr); in tulip_read_eeprom() 1765 writel(EE_ENB, ee_addr); in tulip_read_eeprom() 1770 writel(EE_ENB | dataval, ee_addr); in tulip_read_eeprom() 1771 readl(ee_addr); in tulip_read_eeprom() 1772 writel(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom() 1773 readl(ee_addr); in tulip_read_eeprom() 1774 retval = (retval << 1) | ((readl(ee_addr) & EE_DATA_READ) ? 1 : 0); in tulip_read_eeprom() 1776 writel(EE_ENB, ee_addr); in tulip_read_eeprom() 1777 readl(ee_addr); in tulip_read_eeprom() [all …]
|
/Linux-v4.19/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 757 unsigned int ee_addr = ioaddr + DLINK_EEPROM; in read_eeprom() local 760 outb(0, ee_addr); in read_eeprom() 761 outb(EE_EEP|EE_CS, ee_addr); in read_eeprom() 766 outb_p(EE_EEP|EE_CS|dataval, ee_addr); in read_eeprom() 767 outb_p(EE_EEP|EE_CS|dataval|EE_CK, ee_addr); in read_eeprom() 769 outb(EE_EEP|EE_CS, ee_addr); in read_eeprom() 772 outb_p(EE_EEP|EE_CS | EE_CK, ee_addr); in read_eeprom() 773 retval = (retval << 1) | ((inb(ee_addr) & EE_DI) ? 1 : 0); in read_eeprom() 774 outb_p(EE_EEP|EE_CS, ee_addr); in read_eeprom() 778 outb(0, ee_addr); in read_eeprom() [all …]
|
/Linux-v4.19/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 1651 #define eeprom_delay() readb(ee_addr) 1666 static void eeprom_cmd_start(void __iomem *ee_addr) in eeprom_cmd_start() argument 1668 writeb (EE_ENB & ~EE_CS, ee_addr); in eeprom_cmd_start() 1669 writeb (EE_ENB, ee_addr); in eeprom_cmd_start() 1673 static void eeprom_cmd(void __iomem *ee_addr, int cmd, int cmd_len) in eeprom_cmd() argument 1680 writeb (EE_ENB | dataval, ee_addr); in eeprom_cmd() 1682 writeb (EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in eeprom_cmd() 1685 writeb (EE_ENB, ee_addr); in eeprom_cmd() 1689 static void eeprom_cmd_end(void __iomem *ee_addr) in eeprom_cmd_end() argument 1691 writeb(0, ee_addr); in eeprom_cmd_end() [all …]
|
/Linux-v4.19/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 996 #define eeprom_delay(ee_addr) readl(ee_addr) argument 1010 void __iomem *ee_addr = addr + EECtrl; in eeprom_read() local 1013 writel(EE_Write0, ee_addr); in eeprom_read() 1018 writel(dataval, ee_addr); in eeprom_read() 1019 eeprom_delay(ee_addr); in eeprom_read() 1020 writel(dataval | EE_ShiftClk, ee_addr); in eeprom_read() 1021 eeprom_delay(ee_addr); in eeprom_read() 1023 writel(EE_ChipSelect, ee_addr); in eeprom_read() 1024 eeprom_delay(ee_addr); in eeprom_read() 1027 writel(EE_ChipSelect | EE_ShiftClk, ee_addr); in eeprom_read() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | FlashPoint.c | 840 unsigned short ee_addr); 842 unsigned short ee_addr); 844 unsigned short ee_addr); 846 unsigned short ee_addr); 7302 unsigned short ee_addr) in FPT_utilEEWrite() argument 7313 FPT_utilEESendCmdAddr(p_port, EE_WRITE, ee_addr); in FPT_utilEEWrite() 7353 unsigned short ee_addr) in FPT_utilEERead() argument 7358 ee_data1 = FPT_utilEEReadOrg(p_port, ee_addr); in FPT_utilEERead() 7360 ee_data2 = FPT_utilEEReadOrg(p_port, ee_addr); in FPT_utilEERead() 7382 static unsigned short FPT_utilEEReadOrg(u32 p_port, unsigned short ee_addr) in FPT_utilEEReadOrg() argument [all …]
|
/Linux-v4.19/drivers/net/ethernet/dlink/ |
D | sundance.c | 726 #define eeprom_delay(ee_addr) ioread32(ee_addr) argument
|
/Linux-v4.19/drivers/net/ethernet/ti/ |
D | tlan.c | 3250 static int tlan_ee_read_byte(struct net_device *dev, u8 ee_addr, u8 *data) in tlan_ee_read_byte() argument 3265 err = tlan_ee_send_byte(dev->base_addr, ee_addr, TLAN_EEPROM_ACK); in tlan_ee_read_byte()
|