Lines Matching defs:mii_if
296 struct mii_if_info mii_if;
688 mii_ethtool_gset(&lp->mii_if, cmd);
703 r = mii_ethtool_sset(&lp->mii_if, cmd);
730 r = mii_link_ok(&lp->mii_if);
762 r = mii_nway_restart(&lp->mii_if);
1781 lp->mii_if.full_duplex = fdx;
1782 lp->mii_if.phy_id_mask = 0x1f;
1783 lp->mii_if.reg_num_mask = 0x1f;
1793 lp->mii_if.dev = dev;
1794 lp->mii_if.mdio_read = mdio_read;
1795 lp->mii_if.mdio_write = mdio_write;
1865 lp->mii_if.phy_id = ((lp->a.read_bcr(ioaddr, 33)) >> 5) & 0x1f;
1880 lp->mii_if.phy_id = i;
1885 lp->a.write_bcr(ioaddr, 33, (lp->mii_if.phy_id) << 5);
2059 if (lp->mii_if.full_duplex) {
2163 lp->mii_if.phy_id = i;
2166 mii_ethtool_gset(&lp->mii_if, &ecmd);
2169 mii_ethtool_sset(&lp->mii_if, &ecmd);
2172 lp->mii_if.phy_id = first_phy;
2703 rc = generic_mii_ioctl(&lp->mii_if, if_mii(rq), cmd, NULL);
2715 struct mii_if_info mii = lp->mii_if;
2720 if (i == lp->mii_if.phy_id)
2731 mdio_read(dev, lp->mii_if.phy_id, MII_BMCR);
2732 mdio_write(dev, lp->mii_if.phy_id, MII_BMCR,
2741 lp->mii_if.phy_id = i;
2765 curr_link = mii_link_ok(&lp->mii_if);
2784 mii_ethtool_gset(&lp->mii_if, &ecmd);
2792 if ((bcr9 & (1 << 0)) != lp->mii_if.full_duplex) {
2793 if (lp->mii_if.full_duplex)