Home
last modified time | relevance | path

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

/drivers/media/pci/solo6x10/
Dsolo6x10-eeprom.c71 int dataval = (cmd & (1 << i)) ? EE_DATA_WRITE : 0; in solo_eeprom_cmd() local
73 solo_eeprom_reg_write(solo_dev, SOLO_EEPROM_ENABLE | dataval); in solo_eeprom_cmd()
75 EE_SHIFT_CLK | dataval); in solo_eeprom_cmd()
133 unsigned int dataval = ((__force unsigned)data >> i) & 1; in solo_eeprom_write() local
137 EE_ENB | (dataval << 1) | EE_SHIFT_CLK); in solo_eeprom_write()
/drivers/net/ethernet/dec/tulip/
Dmedia.c89 int dataval = (read_cmd & (1 << i)) ? MDIO_DATA_WRITE1 : 0; in tulip_mdio_read() local
91 iowrite32(MDIO_ENB | dataval, mdio_addr); in tulip_mdio_read()
93 iowrite32(MDIO_ENB | dataval | MDIO_SHIFT_CLK, mdio_addr); in tulip_mdio_read()
148 int dataval = (cmd & (1 << i)) ? MDIO_DATA_WRITE1 : 0; in tulip_mdio_write() local
149 iowrite32(MDIO_ENB | dataval, mdio_addr); in tulip_mdio_write()
151 iowrite32(MDIO_ENB | dataval | MDIO_SHIFT_CLK, mdio_addr); in tulip_mdio_write()
Deeprom.c360 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in tulip_read_eeprom() local
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()
Dwinbond-840.c513 short dataval = (read_cmd & (1 << i)) ? EE_Write1 : EE_Write0; in eeprom_read() local
514 iowrite32(dataval, ee_addr); in eeprom_read()
516 iowrite32(dataval | EE_ShiftClk, ee_addr); in eeprom_read()
579 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read() local
581 iowrite32(dataval, mdio_addr); in mdio_read()
583 iowrite32(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read()
612 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write() local
614 iowrite32(dataval, mdio_addr); in mdio_write()
616 iowrite32(dataval | MDIO_ShiftClk, mdio_addr); in mdio_write()
Dde2104x.c1764 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in tulip_read_eeprom() local
1765 writel(EE_ENB | dataval, ee_addr); in tulip_read_eeprom()
1767 writel(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom()
/drivers/media/pci/cx23885/
Dcx23885-417.c387 u32 dataval; in mc417_register_read() local
435 dataval = tempval & 0x000000FF; in mc417_register_read()
447 dataval |= ((tempval & 0x000000FF) << 8); in mc417_register_read()
457 dataval |= ((tempval & 0x000000FF) << 16); in mc417_register_read()
467 dataval |= ((tempval & 0x000000FF) << 24); in mc417_register_read()
471 *value = dataval; in mc417_register_read()
545 u32 dataval; in mc417_memory_read() local
589 dataval = ((tempval & 0x000000FF) << 24); in mc417_memory_read()
601 dataval |= ((tempval & 0x000000FF) << 16); in mc417_memory_read()
611 dataval |= ((tempval & 0x000000FF) << 8); in mc417_memory_read()
[all …]
/drivers/net/ethernet/8390/
Dpcnet_cs.c770 short dataval = (read_cmd & (1 << i)) ? EE_DO : 0; in read_eeprom() local
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()
797 short dataval; in write_asic() local
809 dataval = (read_cmd & (1 << i)) ? EE_DO : 0; in write_asic()
810 outb_p(EE_ASIC|EE_CS|EE_DI|dataval, ee_addr); in write_asic()
811 outb_p(EE_ASIC|EE_CS|EE_DI|dataval|EE_CK, ee_addr); in write_asic()
812 outb_p(EE_ASIC|EE_CS|EE_DI|dataval, ee_addr); in write_asic()
820 dataval = (asic_data & (1 << i)) ? EE_ADOT : 0; in write_asic()
821 outb_p(EE_ASIC|EE_CS|dataval, ee_addr); in write_asic()
[all …]
/drivers/net/ethernet/sis/
Dsis900.c827 u32 dataval = (read_cmd & (1 << i)) ? EEDI | EECS : EECS; in read_eeprom() local
829 sw32(mear, dataval); in read_eeprom()
831 sw32(mear, dataval | EECLK); in read_eeprom()
905 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_read() local
907 sw32(mear, dataval); in mdio_read()
909 sw32(mear, dataval | MDC); in mdio_read()
951 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write() local
953 sw8(mear, dataval); in mdio_write()
955 sw8(mear, dataval | MDC); in mdio_write()
962 int dataval = (value & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write() local
[all …]
/drivers/net/ethernet/3com/
D3c574_cs.c555 int dataval = (read_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_read() local
556 outw(dataval, mdio_addr); in mdio_read()
557 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_read()
579 int dataval = (write_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_write() local
580 outw(dataval, mdio_addr); in mdio_write()
581 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_write()
D3c59x.c3171 int dataval = (read_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_read() local
3172 window_write16(vp, dataval, 4, Wn4_PhysicalMgmt); in mdio_read()
3174 window_write16(vp, dataval | MDIO_SHIFT_CLK, in mdio_read()
3208 int dataval = (write_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_write() local
3209 window_write16(vp, dataval, 4, Wn4_PhysicalMgmt); in mdio_write()
3211 window_write16(vp, dataval | MDIO_SHIFT_CLK, in mdio_write()
/drivers/net/ethernet/realtek/
D8139too.c1157 int dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in read_eeprom() local
1158 RTL_W8 (Cfg9346, EE_ENB | dataval); in read_eeprom()
1160 RTL_W8 (Cfg9346, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom()
1246 int dataval = (mii_cmd & (1 << i)) ? MDIO_DATA_OUT : 0; in mdio_read() local
1248 RTL_W8 (Config4, MDIO_DIR | dataval); in mdio_read()
1250 RTL_W8 (Config4, MDIO_DIR | dataval | MDIO_CLK); in mdio_read()
1294 int dataval = in mdio_write() local
1296 RTL_W8 (Config4, dataval); in mdio_write()
1298 RTL_W8 (Config4, dataval | MDIO_CLK); in mdio_write()
D8139cp.c1684 int dataval = (cmd & (1 << i)) ? EE_DATA_WRITE : 0; in eeprom_cmd() local
1685 writeb (EE_ENB | dataval, ee_addr); in eeprom_cmd()
1687 writeb (EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in eeprom_cmd()
/drivers/net/ethernet/dlink/
Dsundance.c782 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read() local
784 iowrite8(dataval, mdio_addr); in mdio_read()
786 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read()
812 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write() local
814 iowrite8(dataval, mdio_addr); in mdio_write()
816 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_write()
/drivers/net/ethernet/smsc/
Depic100.c582 short dataval = (read_cmd & (1 << i)) ? EE_WRITE_1 : EE_WRITE_0; in read_eeprom() local
583 ew32(EECTL, EE_ENB | dataval); in read_eeprom()
585 ew32(EECTL, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom()
/drivers/net/wan/lmc/
Dlmc_main.c1751 int dataval = (command & (1 << i)) ? 0x20000 : 0; in lmc_mii_readreg() local
1753 LMC_CSR_WRITE (sc, csr_9, dataval); in lmc_mii_readreg()
1756 LMC_CSR_WRITE (sc, csr_9, dataval | 0x10000); in lmc_mii_readreg()
/drivers/net/ethernet/natsemi/
Dnatsemi.c1011 short dataval = (read_cmd & (1 << i)) ? EE_Write1 : EE_Write0; in eeprom_read() local
1012 writel(dataval, ee_addr); in eeprom_read()
1014 writel(dataval | EE_ShiftClk, ee_addr); in eeprom_read()