/linux-3.4.99/drivers/net/ethernet/dec/tulip/ |
D | media.c | 90 int dataval = (read_cmd & (1 << i)) ? MDIO_DATA_WRITE1 : 0; in tulip_mdio_read() local 92 iowrite32(MDIO_ENB | dataval, mdio_addr); in tulip_mdio_read() 94 iowrite32(MDIO_ENB | dataval | MDIO_SHIFT_CLK, mdio_addr); in tulip_mdio_read() 149 int dataval = (cmd & (1 << i)) ? MDIO_DATA_WRITE1 : 0; in tulip_mdio_write() local 150 iowrite32(MDIO_ENB | dataval, mdio_addr); in tulip_mdio_write() 152 iowrite32(MDIO_ENB | dataval | MDIO_SHIFT_CLK, mdio_addr); in tulip_mdio_write()
|
D | eeprom.c | 361 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in tulip_read_eeprom() local 362 iowrite32(EE_ENB | dataval, ee_addr); in tulip_read_eeprom() 364 iowrite32(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom()
|
D | winbond-840.c | 518 short dataval = (read_cmd & (1 << i)) ? EE_Write1 : EE_Write0; in eeprom_read() local 519 iowrite32(dataval, ee_addr); in eeprom_read() 521 iowrite32(dataval | EE_ShiftClk, ee_addr); in eeprom_read() 584 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read() local 586 iowrite32(dataval, mdio_addr); in mdio_read() 588 iowrite32(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read() 617 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write() local 619 iowrite32(dataval, mdio_addr); in mdio_write() 621 iowrite32(dataval | MDIO_ShiftClk, mdio_addr); in mdio_write()
|
D | de2104x.c | 1765 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in tulip_read_eeprom() local 1766 writel(EE_ENB | dataval, ee_addr); in tulip_read_eeprom() 1768 writel(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom()
|
/linux-3.4.99/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 768 short dataval = (read_cmd & (1 << i)) ? EE_DO : 0; in read_eeprom() local 769 outb_p(EE_EEP|EE_CS|dataval, ee_addr); in read_eeprom() 770 outb_p(EE_EEP|EE_CS|dataval|EE_CK, ee_addr); in read_eeprom() 795 short dataval; in write_asic() local 807 dataval = (read_cmd & (1 << i)) ? EE_DO : 0; in write_asic() 808 outb_p(EE_ASIC|EE_CS|EE_DI|dataval, ee_addr); in write_asic() 809 outb_p(EE_ASIC|EE_CS|EE_DI|dataval|EE_CK, ee_addr); in write_asic() 810 outb_p(EE_ASIC|EE_CS|EE_DI|dataval, ee_addr); in write_asic() 818 dataval = (asic_data & (1 << i)) ? EE_ADOT : 0; in write_asic() 819 outb_p(EE_ASIC|EE_CS|dataval, ee_addr); in write_asic() [all …]
|
/linux-3.4.99/drivers/media/video/cx23885/ |
D | cx23885-417.c | 391 u32 dataval; in mc417_register_read() local 439 dataval = tempval & 0x000000FF; in mc417_register_read() 451 dataval |= ((tempval & 0x000000FF) << 8); in mc417_register_read() 461 dataval |= ((tempval & 0x000000FF) << 16); in mc417_register_read() 471 dataval |= ((tempval & 0x000000FF) << 24); in mc417_register_read() 475 *value = dataval; in mc417_register_read() 549 u32 dataval; in mc417_memory_read() local 593 dataval = ((tempval & 0x000000FF) << 24); in mc417_memory_read() 605 dataval |= ((tempval & 0x000000FF) << 16); in mc417_memory_read() 615 dataval |= ((tempval & 0x000000FF) << 8); in mc417_memory_read() [all …]
|
/linux-3.4.99/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 556 int dataval = (read_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_read() local 557 outw(dataval, mdio_addr); in mdio_read() 558 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_read() 580 int dataval = (write_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_write() local 581 outw(dataval, mdio_addr); in mdio_write() 582 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_write()
|
D | 3c59x.c | 3137 int dataval = (read_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_read() local 3138 window_write16(vp, dataval, 4, Wn4_PhysicalMgmt); in mdio_read() 3140 window_write16(vp, dataval | MDIO_SHIFT_CLK, in mdio_read() 3174 int dataval = (write_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_write() local 3175 window_write16(vp, dataval, 4, Wn4_PhysicalMgmt); in mdio_write() 3177 window_write16(vp, dataval | MDIO_SHIFT_CLK, in mdio_write()
|
/linux-3.4.99/drivers/net/ethernet/sis/ |
D | sis900.c | 826 u32 dataval = (read_cmd & (1 << i)) ? EEDI | EECS : EECS; in read_eeprom() local 827 outl(dataval, ee_addr); in read_eeprom() 829 outl(dataval | EECLK, ee_addr); in read_eeprom() 899 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_read() local 900 outl(dataval, mdio_addr); in mdio_read() 902 outl(dataval | MDC, mdio_addr); in mdio_read() 943 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write() local 944 outb(dataval, mdio_addr); in mdio_write() 946 outb(dataval | MDC, mdio_addr); in mdio_write() 953 int dataval = (value & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write() local [all …]
|
/linux-3.4.99/drivers/net/ethernet/realtek/ |
D | 8139too.c | 1184 int dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in read_eeprom() local 1185 RTL_W8 (Cfg9346, EE_ENB | dataval); in read_eeprom() 1187 RTL_W8 (Cfg9346, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom() 1273 int dataval = (mii_cmd & (1 << i)) ? MDIO_DATA_OUT : 0; in mdio_read() local 1275 RTL_W8 (Config4, MDIO_DIR | dataval); in mdio_read() 1277 RTL_W8 (Config4, MDIO_DIR | dataval | MDIO_CLK); in mdio_read() 1321 int dataval = in mdio_write() local 1323 RTL_W8 (Config4, dataval); in mdio_write() 1325 RTL_W8 (Config4, dataval | MDIO_CLK); in mdio_write()
|
D | 8139cp.c | 1668 int dataval = (cmd & (1 << i)) ? EE_DATA_WRITE : 0; in eeprom_cmd() local 1669 writeb (EE_ENB | dataval, ee_addr); in eeprom_cmd() 1671 writeb (EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in eeprom_cmd()
|
/linux-3.4.99/drivers/net/ethernet/dlink/ |
D | sundance.c | 763 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read() local 765 iowrite8(dataval, mdio_addr); in mdio_read() 767 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read() 793 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write() local 795 iowrite8(dataval, mdio_addr); in mdio_write() 797 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_write()
|
/linux-3.4.99/drivers/net/ethernet/fujitsu/ |
D | at1700.c | 511 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in read_eeprom() local 513 outb(dataval, ee_daddr); in read_eeprom()
|
/linux-3.4.99/drivers/net/ethernet/smsc/ |
D | epic100.c | 596 short dataval = (read_cmd & (1 << i)) ? EE_WRITE_1 : EE_WRITE_0; in read_eeprom() local 597 outl(EE_ENB | dataval, ee_addr); in read_eeprom() 599 outl(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in read_eeprom()
|
/linux-3.4.99/drivers/net/wan/lmc/ |
D | lmc_main.c | 1766 int dataval = (command & (1 << i)) ? 0x20000 : 0; in lmc_mii_readreg() local 1768 LMC_CSR_WRITE (sc, csr_9, dataval); in lmc_mii_readreg() 1771 LMC_CSR_WRITE (sc, csr_9, dataval | 0x10000); in lmc_mii_readreg()
|
/linux-3.4.99/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 1017 short dataval = (read_cmd & (1 << i)) ? EE_Write1 : EE_Write0; in eeprom_read() local 1018 writel(dataval, ee_addr); in eeprom_read() 1020 writel(dataval | EE_ShiftClk, ee_addr); in eeprom_read()
|