/linux-6.1.9/drivers/media/pci/solo6x10/ |
D | solo6x10-eeprom.c | 62 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-6.1.9/drivers/net/ethernet/dec/tulip/ |
D | media.c | 89 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()
|
D | eeprom.c | 359 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()
|
D | winbond-840.c | 500 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()
|
D | de2104x.c | 1777 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-6.1.9/drivers/media/pci/cx23885/ |
D | cx23885-417.c | 378 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-6.1.9/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 780 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-6.1.9/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 553 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()
|
D | 3c59x.c | 3168 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-6.1.9/drivers/net/ethernet/sis/ |
D | sis900.c | 836 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-6.1.9/drivers/net/ethernet/realtek/ |
D | 8139too.c | 1165 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()
|
D | 8139cp.c | 1686 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-6.1.9/drivers/net/ethernet/dlink/ |
D | sundance.c | 773 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-6.1.9/drivers/net/ethernet/smsc/ |
D | epic100.c | 584 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-6.1.9/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 1014 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()
|