Home
last modified time | relevance | path

Searched refs:dataval (Results 1 – 16 of 16) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/dec/tulip/
Dmedia.c90 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()
Deeprom.c361 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()
Dwinbond-840.c518 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()
Dde2104x.c1765 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/
Dpcnet_cs.c768 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/
Dcx23885-417.c391 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/
D3c574_cs.c556 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()
D3c59x.c3137 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/
Dsis900.c826 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/
D8139too.c1184 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()
D8139cp.c1668 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/
Dsundance.c763 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/
Dat1700.c511 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/
Depic100.c596 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/
Dlmc_main.c1766 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/
Dnatsemi.c1017 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()