Home
last modified time | relevance | path

Searched refs:mii_cmd (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c558 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() local
566 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read()
588 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value; in mdio_write() local
599 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write()
/drivers/net/ethernet/dlink/
Dsundance.c765 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() local
773 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read()
795 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value; in mdio_write() local
803 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write()
/drivers/net/ethernet/sis/
Dsis900.c904 int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift); in mdio_read() local
914 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_read()
950 int mii_cmd = MIIwrite|(phy_id<<MIIpmdShift)|(location<<MIIregShift); in mdio_write() local
960 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write()
/drivers/net/ethernet/agere/
Det131x.c1176 u32 mii_cmd; in et131x_phy_mii_read() local
1183 mii_cmd = readl(&mac->mii_mgmt_cmd); in et131x_phy_mii_read()
1223 writel(mii_cmd, &mac->mii_mgmt_cmd); in et131x_phy_mii_read()
1245 u32 mii_cmd; in et131x_mii_write() local
1252 mii_cmd = readl(&mac->mii_mgmt_cmd); in et131x_mii_write()
1291 writel(mii_cmd, &mac->mii_mgmt_cmd); in et131x_mii_write()
/drivers/net/ethernet/realtek/
D8139too.c1240 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() local
1254 int dataval = (mii_cmd & (1 << i)) ? MDIO_DATA_OUT : 0; in mdio_read()
1282 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location << 18) | value; in mdio_write() local
1303 (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write()
/drivers/net/ethernet/via/
Dvia-rhine.c998 u16 mii_cmd; in rhine_init_one_common() local
1000 mii_cmd = mdio_read(dev, phy_id, MII_BMCR) & ~BMCR_ISOLATE; in rhine_init_one_common()
1001 mdio_write(dev, phy_id, MII_BMCR, mii_cmd); in rhine_init_one_common()