Searched refs:mii_cmd (Results 1 – 6 of 6) sorted by relevance
558 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() local566 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() local599 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write()
765 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() local773 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() local803 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write()
904 int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift); in mdio_read() local914 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() local960 int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; in mdio_write()
1176 u32 mii_cmd; in et131x_phy_mii_read() local1183 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() local1252 mii_cmd = readl(&mac->mii_mgmt_cmd); in et131x_mii_write()1291 writel(mii_cmd, &mac->mii_mgmt_cmd); in et131x_mii_write()
1240 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() local1254 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() local1303 (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write()
998 u16 mii_cmd; in rhine_init_one_common() local1000 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()