Home
last modified time | relevance | path

Searched refs:ee_addr (Results 1 – 9 of 9) sorted by relevance

/drivers/net/ethernet/dec/tulip/
Deeprom.c335 #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 …]
Dwinbond-840.c491 #define eeprom_delay(ee_addr) ioread32(ee_addr) argument
507 void __iomem *ee_addr = addr + EECtrl; in eeprom_read() local
509 iowrite32(EE_ChipSelect, ee_addr); in eeprom_read()
514 iowrite32(dataval, ee_addr); in eeprom_read()
515 eeprom_delay(ee_addr); in eeprom_read()
516 iowrite32(dataval | EE_ShiftClk, ee_addr); in eeprom_read()
517 eeprom_delay(ee_addr); in eeprom_read()
519 iowrite32(EE_ChipSelect, ee_addr); in eeprom_read()
520 eeprom_delay(ee_addr); in eeprom_read()
523 iowrite32(EE_ChipSelect | EE_ShiftClk, ee_addr); in eeprom_read()
[all …]
Dde2104x.c1756 void __iomem *ee_addr = regs + ROMCmd; in tulip_read_eeprom() local
1759 writel(EE_ENB & ~EE_CS, ee_addr); in tulip_read_eeprom()
1760 writel(EE_ENB, ee_addr); in tulip_read_eeprom()
1765 writel(EE_ENB | dataval, ee_addr); in tulip_read_eeprom()
1766 readl(ee_addr); in tulip_read_eeprom()
1767 writel(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom()
1768 readl(ee_addr); in tulip_read_eeprom()
1769 retval = (retval << 1) | ((readl(ee_addr) & EE_DATA_READ) ? 1 : 0); in tulip_read_eeprom()
1771 writel(EE_ENB, ee_addr); in tulip_read_eeprom()
1772 readl(ee_addr); in tulip_read_eeprom()
[all …]
/drivers/net/ethernet/8390/
Dpcnet_cs.c762 unsigned int ee_addr = ioaddr + DLINK_EEPROM; in read_eeprom() local
765 outb(0, ee_addr); in read_eeprom()
766 outb(EE_EEP|EE_CS, ee_addr); in read_eeprom()
771 outb_p(EE_EEP|EE_CS|dataval, ee_addr); in read_eeprom()
772 outb_p(EE_EEP|EE_CS|dataval|EE_CK, ee_addr); in read_eeprom()
774 outb(EE_EEP|EE_CS, ee_addr); in read_eeprom()
777 outb_p(EE_EEP|EE_CS | EE_CK, ee_addr); in read_eeprom()
778 retval = (retval << 1) | ((inb(ee_addr) & EE_DI) ? 1 : 0); in read_eeprom()
779 outb_p(EE_EEP|EE_CS, ee_addr); in read_eeprom()
783 outb(0, ee_addr); in read_eeprom()
[all …]
/drivers/net/ethernet/realtek/
D8139cp.c1656 #define eeprom_delay() readb(ee_addr)
1671 static void eeprom_cmd_start(void __iomem *ee_addr) in eeprom_cmd_start() argument
1673 writeb (EE_ENB & ~EE_CS, ee_addr); in eeprom_cmd_start()
1674 writeb (EE_ENB, ee_addr); in eeprom_cmd_start()
1678 static void eeprom_cmd(void __iomem *ee_addr, int cmd, int cmd_len) in eeprom_cmd() argument
1685 writeb (EE_ENB | dataval, ee_addr); in eeprom_cmd()
1687 writeb (EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in eeprom_cmd()
1690 writeb (EE_ENB, ee_addr); in eeprom_cmd()
1694 static void eeprom_cmd_end(void __iomem *ee_addr) in eeprom_cmd_end() argument
1696 writeb(0, ee_addr); in eeprom_cmd_end()
[all …]
/drivers/net/ethernet/natsemi/
Dnatsemi.c990 #define eeprom_delay(ee_addr) readl(ee_addr) argument
1004 void __iomem *ee_addr = addr + EECtrl; in eeprom_read() local
1007 writel(EE_Write0, ee_addr); in eeprom_read()
1012 writel(dataval, ee_addr); in eeprom_read()
1013 eeprom_delay(ee_addr); in eeprom_read()
1014 writel(dataval | EE_ShiftClk, ee_addr); in eeprom_read()
1015 eeprom_delay(ee_addr); in eeprom_read()
1017 writel(EE_ChipSelect, ee_addr); in eeprom_read()
1018 eeprom_delay(ee_addr); in eeprom_read()
1021 writel(EE_ChipSelect | EE_ShiftClk, ee_addr); in eeprom_read()
[all …]
/drivers/scsi/
DFlashPoint.c840 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 …]
/drivers/net/ethernet/dlink/
Dsundance.c724 #define eeprom_delay(ee_addr) ioread32(ee_addr) argument
/drivers/net/ethernet/ti/
Dtlan.c3258 static int tlan_ee_read_byte(struct net_device *dev, u8 ee_addr, u8 *data) in tlan_ee_read_byte() argument
3273 err = tlan_ee_send_byte(dev->base_addr, ee_addr, TLAN_EEPROM_ACK); in tlan_ee_read_byte()