/linux-6.6.21/drivers/net/ethernet/dec/tulip/ |
D | eeprom.c | 334 #define eeprom_delay() ioread32(ee_addr) 345 void __iomem *ee_addr = tp->base_addr + CSR9; in tulip_read_eeprom() local 354 iowrite32(EE_ENB & ~EE_CS, ee_addr); in tulip_read_eeprom() 355 iowrite32(EE_ENB, ee_addr); in tulip_read_eeprom() 360 iowrite32(EE_ENB | dataval, ee_addr); in tulip_read_eeprom() 362 iowrite32(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom() 364 retval = (retval << 1) | ((ioread32(ee_addr) & EE_DATA_READ) ? 1 : 0); in tulip_read_eeprom() 366 iowrite32(EE_ENB, ee_addr); in tulip_read_eeprom() 370 iowrite32(EE_ENB | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom() 372 retval = (retval << 1) | ((ioread32(ee_addr) & EE_DATA_READ) ? 1 : 0); in tulip_read_eeprom() [all …]
|
D | winbond-840.c | 478 #define eeprom_delay(ee_addr) ioread32(ee_addr) argument 494 void __iomem *ee_addr = addr + EECtrl; in eeprom_read() local 496 iowrite32(EE_ChipSelect, ee_addr); in eeprom_read() 501 iowrite32(dataval, ee_addr); in eeprom_read() 502 eeprom_delay(ee_addr); in eeprom_read() 503 iowrite32(dataval | EE_ShiftClk, ee_addr); in eeprom_read() 504 eeprom_delay(ee_addr); in eeprom_read() 506 iowrite32(EE_ChipSelect, ee_addr); in eeprom_read() 507 eeprom_delay(ee_addr); in eeprom_read() 510 iowrite32(EE_ChipSelect | EE_ShiftClk, ee_addr); in eeprom_read() [all …]
|
D | de2104x.c | 1769 void __iomem *ee_addr = regs + ROMCmd; in tulip_read_eeprom() local 1772 writel(EE_ENB & ~EE_CS, ee_addr); in tulip_read_eeprom() 1773 writel(EE_ENB, ee_addr); in tulip_read_eeprom() 1778 writel(EE_ENB | dataval, ee_addr); in tulip_read_eeprom() 1779 readl(ee_addr); in tulip_read_eeprom() 1780 writel(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom() 1781 readl(ee_addr); in tulip_read_eeprom() 1782 retval = (retval << 1) | ((readl(ee_addr) & EE_DATA_READ) ? 1 : 0); in tulip_read_eeprom() 1784 writel(EE_ENB, ee_addr); in tulip_read_eeprom() 1785 readl(ee_addr); in tulip_read_eeprom() [all …]
|
/linux-6.6.21/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 771 unsigned int ee_addr = ioaddr + DLINK_EEPROM; in read_eeprom() local 774 outb(0, ee_addr); in read_eeprom() 775 outb(EE_EEP|EE_CS, ee_addr); in read_eeprom() 780 outb_p(EE_EEP|EE_CS|dataval, ee_addr); in read_eeprom() 781 outb_p(EE_EEP|EE_CS|dataval|EE_CK, ee_addr); in read_eeprom() 783 outb(EE_EEP|EE_CS, ee_addr); in read_eeprom() 786 outb_p(EE_EEP|EE_CS | EE_CK, ee_addr); in read_eeprom() 787 retval = (retval << 1) | ((inb(ee_addr) & EE_DI) ? 1 : 0); in read_eeprom() 788 outb_p(EE_EEP|EE_CS, ee_addr); in read_eeprom() 792 outb(0, ee_addr); in read_eeprom() [all …]
|
/linux-6.6.21/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 1658 #define eeprom_delay() readb(ee_addr) 1673 static void eeprom_cmd_start(void __iomem *ee_addr) in eeprom_cmd_start() argument 1675 writeb (EE_ENB & ~EE_CS, ee_addr); in eeprom_cmd_start() 1676 writeb (EE_ENB, ee_addr); in eeprom_cmd_start() 1680 static void eeprom_cmd(void __iomem *ee_addr, int cmd, int cmd_len) in eeprom_cmd() argument 1687 writeb (EE_ENB | dataval, ee_addr); in eeprom_cmd() 1689 writeb (EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in eeprom_cmd() 1692 writeb (EE_ENB, ee_addr); in eeprom_cmd() 1696 static void eeprom_cmd_end(void __iomem *ee_addr) in eeprom_cmd_end() argument 1698 writeb(0, ee_addr); in eeprom_cmd_end() [all …]
|
/linux-6.6.21/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 993 #define eeprom_delay(ee_addr) readl(ee_addr) argument 1007 void __iomem *ee_addr = addr + EECtrl; in eeprom_read() local 1010 writel(EE_Write0, ee_addr); in eeprom_read() 1015 writel(dataval, ee_addr); in eeprom_read() 1016 eeprom_delay(ee_addr); in eeprom_read() 1017 writel(dataval | EE_ShiftClk, ee_addr); in eeprom_read() 1018 eeprom_delay(ee_addr); in eeprom_read() 1020 writel(EE_ChipSelect, ee_addr); in eeprom_read() 1021 eeprom_delay(ee_addr); in eeprom_read() 1024 writel(EE_ChipSelect | EE_ShiftClk, ee_addr); in eeprom_read() [all …]
|
/linux-6.6.21/drivers/scsi/ |
D | FlashPoint.c | 812 unsigned short ee_addr); 814 unsigned short ee_addr); 816 unsigned short ee_addr); 818 unsigned short ee_addr); 7274 unsigned short ee_addr) in FPT_utilEEWrite() argument 7285 FPT_utilEESendCmdAddr(p_port, EE_WRITE, ee_addr); in FPT_utilEEWrite() 7325 unsigned short ee_addr) in FPT_utilEERead() argument 7330 ee_data1 = FPT_utilEEReadOrg(p_port, ee_addr); in FPT_utilEERead() 7332 ee_data2 = FPT_utilEEReadOrg(p_port, ee_addr); in FPT_utilEERead() 7354 static unsigned short FPT_utilEEReadOrg(u32 p_port, unsigned short ee_addr) in FPT_utilEEReadOrg() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/dlink/ |
D | sundance.c | 715 #define eeprom_delay(ee_addr) ioread32(ee_addr) argument
|
/linux-6.6.21/drivers/net/ethernet/ti/ |
D | tlan.c | 3242 static int tlan_ee_read_byte(struct net_device *dev, u8 ee_addr, u8 *data) in tlan_ee_read_byte() argument 3257 err = tlan_ee_send_byte(dev->base_addr, ee_addr, TLAN_EEPROM_ACK); in tlan_ee_read_byte()
|