/Linux-v5.10/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-v5.10/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 | 358 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()
|
D | winbond-840.c | 502 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()
|
D | de2104x.c | 1775 short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in tulip_read_eeprom() local 1776 writel(EE_ENB | dataval, ee_addr); in tulip_read_eeprom() 1778 writel(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in tulip_read_eeprom()
|
/Linux-v5.10/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-v5.10/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 770 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 …]
|
/Linux-v5.10/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 554 int dataval = (read_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_read() local 555 outw(dataval, mdio_addr); in mdio_read() 556 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_read() 578 int dataval = (write_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_write() local 579 outw(dataval, mdio_addr); in mdio_write() 580 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_write()
|
D | 3c59x.c | 3166 int dataval = (read_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_read() local 3167 window_write16(vp, dataval, 4, Wn4_PhysicalMgmt); in mdio_read() 3169 window_write16(vp, dataval | MDIO_SHIFT_CLK, in mdio_read() 3203 int dataval = (write_cmd&(1<<i)) ? MDIO_DATA_WRITE1 : MDIO_DATA_WRITE0; in mdio_write() local 3204 window_write16(vp, dataval, 4, Wn4_PhysicalMgmt); in mdio_write() 3206 window_write16(vp, dataval | MDIO_SHIFT_CLK, in mdio_write()
|
/Linux-v5.10/drivers/net/ethernet/sis/ |
D | sis900.c | 831 u32 dataval = (read_cmd & (1 << i)) ? EEDI | EECS : EECS; in read_eeprom() local 833 sw32(mear, dataval); in read_eeprom() 835 sw32(mear, dataval | EECLK); in read_eeprom() 909 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_read() local 911 sw32(mear, dataval); in mdio_read() 913 sw32(mear, dataval | MDC); in mdio_read() 955 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write() local 957 sw8(mear, dataval); in mdio_write() 959 sw8(mear, dataval | MDC); in mdio_write() 966 int dataval = (value & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write() local [all …]
|
/Linux-v5.10/drivers/net/ethernet/realtek/ |
D | 8139too.c | 1164 int dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; in read_eeprom() local 1165 RTL_W8 (Cfg9346, EE_ENB | dataval); in read_eeprom() 1167 RTL_W8 (Cfg9346, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom() 1253 int dataval = (mii_cmd & (1 << i)) ? MDIO_DATA_OUT : 0; in mdio_read() local 1255 RTL_W8 (Config4, MDIO_DIR | dataval); in mdio_read() 1257 RTL_W8 (Config4, MDIO_DIR | dataval | MDIO_CLK); in mdio_read() 1301 int dataval = in mdio_write() local 1303 RTL_W8 (Config4, dataval); in mdio_write() 1305 RTL_W8 (Config4, dataval | MDIO_CLK); in mdio_write()
|
D | 8139cp.c | 1684 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-v5.10/drivers/net/ethernet/dlink/ |
D | sundance.c | 771 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read() local 773 iowrite8(dataval, mdio_addr); in mdio_read() 775 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read() 801 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write() local 803 iowrite8(dataval, mdio_addr); in mdio_write() 805 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_write()
|
/Linux-v5.10/drivers/net/ethernet/smsc/ |
D | epic100.c | 582 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()
|
/Linux-v5.10/drivers/net/wan/lmc/ |
D | lmc_main.c | 1671 int dataval = (command & (1 << i)) ? 0x20000 : 0; in lmc_mii_readreg() local 1673 LMC_CSR_WRITE (sc, csr_9, dataval); in lmc_mii_readreg() 1676 LMC_CSR_WRITE (sc, csr_9, dataval | 0x10000); in lmc_mii_readreg()
|
/Linux-v5.10/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 1017 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()
|