Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/media/pci/solo6x10/
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-v6.1/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.c359 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in tulip_read_eeprom() local
360 iowrite32(EE_ENB | dataval, ee_addr); in tulip_read_eeprom()
362 iowrite32(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom()
Dwinbond-840.c500 short dataval = (read_cmd & (1 << i)) ? EE_Write1 : EE_Write0; in eeprom_read() local
501 iowrite32(dataval, ee_addr); in eeprom_read()
503 iowrite32(dataval | EE_ShiftClk, ee_addr); in eeprom_read()
566 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read() local
568 iowrite32(dataval, mdio_addr); in mdio_read()
570 iowrite32(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read()
599 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write() local
601 iowrite32(dataval, mdio_addr); in mdio_write()
603 iowrite32(dataval | MDIO_ShiftClk, mdio_addr); in mdio_write()
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-v6.1/drivers/media/pci/cx23885/
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()
592 dataval |= ((tempval & 0x000000FF) << 16); in mc417_memory_read()
602 dataval |= ((tempval & 0x000000FF) << 8); in mc417_memory_read()
[all …]
/Linux-v6.1/drivers/net/ethernet/8390/
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()
821 outb_p(EE_ASIC|EE_CS|EE_DI|dataval|EE_CK, 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()
[all …]
/Linux-v6.1/drivers/net/ethernet/3com/
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()
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-v6.1/drivers/net/ethernet/sis/
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()
960 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write() local
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
[all …]
/Linux-v6.1/drivers/net/ethernet/realtek/
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()
D8139cp.c1686 int dataval = (cmd & (1 << i)) ? EE_DATA_WRITE : 0; in eeprom_cmd() local
1687 writeb (EE_ENB | dataval, ee_addr); in eeprom_cmd()
1689 writeb (EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in eeprom_cmd()
/Linux-v6.1/drivers/net/ethernet/dlink/
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-v6.1/drivers/net/ethernet/smsc/
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-v6.1/drivers/net/ethernet/natsemi/
Dnatsemi.c1014 short dataval = (read_cmd & (1 << i)) ? EE_Write1 : EE_Write0; in eeprom_read() local
1015 writel(dataval, ee_addr); in eeprom_read()
1017 writel(dataval | EE_ShiftClk, ee_addr); in eeprom_read()