Home
last modified time | relevance | path

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

/linux/drivers/media/pci/solo6x10/
A Dsolo6x10-eeprom.c62 int dataval = (cmd & (1 << i)) ? EE_DATA_WRITE : 0; in solo_eeprom_cmd() local
64 solo_eeprom_reg_write(solo_dev, SOLO_EEPROM_ENABLE | dataval); in solo_eeprom_cmd()
66 EE_SHIFT_CLK | dataval); in solo_eeprom_cmd()
124 unsigned int dataval = ((__force unsigned)data >> i) & 1; in solo_eeprom_write() local
128 EE_ENB | (dataval << 1) | EE_SHIFT_CLK); in solo_eeprom_write()
/linux/drivers/net/ethernet/dec/tulip/
A 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()
A Deeprom.c358 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in tulip_read_eeprom() local
359 iowrite32(EE_ENB | dataval, ee_addr); in tulip_read_eeprom()
361 iowrite32(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom()
A Dwinbond-840.c502 short dataval = (read_cmd & (1 << i)) ? EE_Write1 : EE_Write0; in eeprom_read() local
503 iowrite32(dataval, ee_addr); in eeprom_read()
505 iowrite32(dataval | EE_ShiftClk, ee_addr); in eeprom_read()
568 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read() local
570 iowrite32(dataval, mdio_addr); in mdio_read()
572 iowrite32(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read()
601 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write() local
603 iowrite32(dataval, mdio_addr); in mdio_write()
605 iowrite32(dataval | MDIO_ShiftClk, mdio_addr); in mdio_write()
A Dde2104x.c1777 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in tulip_read_eeprom() local
1778 writel(EE_ENB | dataval, ee_addr); in tulip_read_eeprom()
1780 writel(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom()
/linux/drivers/media/pci/cx23885/
A Dcx23885-417.c378 u32 dataval; in mc417_register_read() local
426 dataval = tempval & 0x000000FF; in mc417_register_read()
438 dataval |= ((tempval & 0x000000FF) << 8); in mc417_register_read()
448 dataval |= ((tempval & 0x000000FF) << 16); in mc417_register_read()
458 dataval |= ((tempval & 0x000000FF) << 24); in mc417_register_read()
462 *value = dataval; in mc417_register_read()
536 u32 dataval; in mc417_memory_read() local
580 dataval = ((tempval & 0x000000FF) << 24); in mc417_memory_read()
602 dataval |= ((tempval & 0x000000FF) << 8); in mc417_memory_read()
612 dataval |= (tempval & 0x000000FF); in mc417_memory_read()
[all …]
/linux/drivers/net/ethernet/8390/
A Dpcnet_cs.c780 short dataval = (read_cmd & (1 << i)) ? EE_DO : 0; in read_eeprom() local
781 outb_p(EE_EEP|EE_CS|dataval, ee_addr); in read_eeprom()
782 outb_p(EE_EEP|EE_CS|dataval|EE_CK, ee_addr); in read_eeprom()
807 short dataval; in write_asic() local
819 dataval = (read_cmd & (1 << i)) ? EE_DO : 0; in write_asic()
820 outb_p(EE_ASIC|EE_CS|EE_DI|dataval, ee_addr); in write_asic()
822 outb_p(EE_ASIC|EE_CS|EE_DI|dataval, ee_addr); in write_asic()
830 dataval = (asic_data & (1 << i)) ? EE_ADOT : 0; in write_asic()
831 outb_p(EE_ASIC|EE_CS|dataval, ee_addr); in write_asic()
832 outb_p(EE_ASIC|EE_CS|dataval|EE_CK, ee_addr); in write_asic()
[all …]
/linux/drivers/net/ethernet/sis/
A Dsis900.c836 u32 dataval = (read_cmd & (1 << i)) ? EEDI | EECS : EECS; in read_eeprom() local
838 sw32(mear, dataval); in read_eeprom()
840 sw32(mear, dataval | EECLK); in read_eeprom()
914 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_read() local
916 sw32(mear, dataval); in mdio_read()
918 sw32(mear, dataval | MDC); in mdio_read()
962 sw8(mear, dataval); in mdio_write()
964 sw8(mear, dataval | MDC); in mdio_write()
971 int dataval = (value & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write() local
973 sw32(mear, dataval); in mdio_write()
[all …]
/linux/drivers/net/ethernet/3com/
A D3c574_cs.c553 int dataval = (read_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_read() local
554 outw(dataval, mdio_addr); in mdio_read()
555 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_read()
577 int dataval = (write_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_write() local
578 outw(dataval, mdio_addr); in mdio_write()
579 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_write()
A D3c59x.c3168 int dataval = (read_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_read() local
3169 window_write16(vp, dataval, 4, Wn4_PhysicalMgmt); in mdio_read()
3171 window_write16(vp, dataval | MDIO_SHIFT_CLK, in mdio_read()
3205 int dataval = (write_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_write() local
3206 window_write16(vp, dataval, 4, Wn4_PhysicalMgmt); in mdio_write()
3208 window_write16(vp, dataval | MDIO_SHIFT_CLK, in mdio_write()
/linux/drivers/net/ethernet/realtek/
A D8139too.c1165 int dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in read_eeprom() local
1166 RTL_W8 (Cfg9346, EE_ENB | dataval); in read_eeprom()
1168 RTL_W8 (Cfg9346, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom()
1254 int dataval = (mii_cmd & (1 << i)) ? MDIO_DATA_OUT : 0; in mdio_read() local
1256 RTL_W8 (Config4, MDIO_DIR | dataval); in mdio_read()
1258 RTL_W8 (Config4, MDIO_DIR | dataval | MDIO_CLK); in mdio_read()
1302 int dataval = in mdio_write() local
1304 RTL_W8 (Config4, dataval); in mdio_write()
1306 RTL_W8 (Config4, dataval | MDIO_CLK); in mdio_write()
A 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()
/linux/drivers/net/ethernet/dlink/
A Dsundance.c773 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read() local
775 iowrite8(dataval, mdio_addr); in mdio_read()
777 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read()
803 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write() local
805 iowrite8(dataval, mdio_addr); in mdio_write()
807 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_write()
/linux/drivers/net/ethernet/smsc/
A Depic100.c584 short dataval = (read_cmd & (1 << i)) ? EE_WRITE_1 : EE_WRITE_0; in read_eeprom() local
585 ew32(EECTL, EE_ENB | dataval); in read_eeprom()
587 ew32(EECTL, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom()
/linux/drivers/net/wan/lmc/
A Dlmc_main.c1667 int dataval = (command & (1 << i)) ? 0x20000 : 0; in lmc_mii_readreg() local
1669 LMC_CSR_WRITE (sc, csr_9, dataval); in lmc_mii_readreg()
1672 LMC_CSR_WRITE (sc, csr_9, dataval | 0x10000); in lmc_mii_readreg()
/linux/drivers/net/ethernet/natsemi/
A Dnatsemi.c1016 short dataval = (read_cmd & (1 << i)) ? EE_Write1 : EE_Write0; in eeprom_read() local
1017 writel(dataval, ee_addr); in eeprom_read()
1019 writel(dataval | EE_ShiftClk, ee_addr); in eeprom_read()

Completed in 66 milliseconds