mii_if 568 drivers/net/ethernet/adaptec/starfire.c struct mii_if_info mii_if; /* MII lib hooks/info */ mii_if 750 drivers/net/ethernet/adaptec/starfire.c np->mii_if.dev = dev; mii_if 751 drivers/net/ethernet/adaptec/starfire.c np->mii_if.mdio_read = mdio_read; mii_if 752 drivers/net/ethernet/adaptec/starfire.c np->mii_if.mdio_write = mdio_write; mii_if 753 drivers/net/ethernet/adaptec/starfire.c np->mii_if.phy_id_mask = 0x1f; mii_if 754 drivers/net/ethernet/adaptec/starfire.c np->mii_if.reg_num_mask = 0x1f; mii_if 817 drivers/net/ethernet/adaptec/starfire.c np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); mii_if 820 drivers/net/ethernet/adaptec/starfire.c dev->name, phy, mii_status, np->mii_if.advertising); mii_if 827 drivers/net/ethernet/adaptec/starfire.c np->mii_if.phy_id = np->phys[0]; mii_if 829 drivers/net/ethernet/adaptec/starfire.c memset(&np->mii_if, 0, sizeof(np->mii_if)); mii_if 997 drivers/net/ethernet/adaptec/starfire.c np->mii_if.advertising = mdio_read(dev, np->phys[0], MII_ADVERTISE); mii_if 1079 drivers/net/ethernet/adaptec/starfire.c mdio_write(dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising); mii_if 1091 drivers/net/ethernet/adaptec/starfire.c if (!np->mii_if.force_media) { mii_if 1097 drivers/net/ethernet/adaptec/starfire.c if (np->mii_if.full_duplex) mii_if 1102 drivers/net/ethernet/adaptec/starfire.c np->mii_if.full_duplex ? "full" : "half"); mii_if 1647 drivers/net/ethernet/adaptec/starfire.c np->mii_if.full_duplex = 1; mii_if 1650 drivers/net/ethernet/adaptec/starfire.c np->mii_if.full_duplex = 0; mii_if 1653 drivers/net/ethernet/adaptec/starfire.c np->mii_if.full_duplex = 1; mii_if 1656 drivers/net/ethernet/adaptec/starfire.c np->mii_if.full_duplex = 0; mii_if 1665 drivers/net/ethernet/adaptec/starfire.c np->mii_if.full_duplex = 1; mii_if 1667 drivers/net/ethernet/adaptec/starfire.c np->mii_if.full_duplex = 0; mii_if 1673 drivers/net/ethernet/adaptec/starfire.c np->mii_if.full_duplex ? "full" : "half"); mii_if 1676 drivers/net/ethernet/adaptec/starfire.c if (np->mii_if.full_duplex) mii_if 1865 drivers/net/ethernet/adaptec/starfire.c mii_ethtool_get_link_ksettings(&np->mii_if, cmd); mii_if 1876 drivers/net/ethernet/adaptec/starfire.c res = mii_ethtool_set_link_ksettings(&np->mii_if, cmd); mii_if 1885 drivers/net/ethernet/adaptec/starfire.c return mii_nway_restart(&np->mii_if); mii_if 1891 drivers/net/ethernet/adaptec/starfire.c return mii_link_ok(&np->mii_if); mii_if 1925 drivers/net/ethernet/adaptec/starfire.c rc = generic_mii_ioctl(&np->mii_if, data, cmd, NULL); mii_if 1392 drivers/net/ethernet/amd/amd8111e.c mii_ethtool_get_link_ksettings(&lp->mii_if, cmd); mii_if 1403 drivers/net/ethernet/amd/amd8111e.c res = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd); mii_if 1411 drivers/net/ethernet/amd/amd8111e.c return mii_nway_restart(&lp->mii_if); mii_if 1417 drivers/net/ethernet/amd/amd8111e.c return mii_link_ok(&lp->mii_if); mii_if 1850 drivers/net/ethernet/amd/amd8111e.c lp->mii_if.dev = dev; mii_if 1851 drivers/net/ethernet/amd/amd8111e.c lp->mii_if.mdio_read = amd8111e_mdio_read; mii_if 1852 drivers/net/ethernet/amd/amd8111e.c lp->mii_if.mdio_write = amd8111e_mdio_write; mii_if 1853 drivers/net/ethernet/amd/amd8111e.c lp->mii_if.phy_id = lp->ext_phy_addr; mii_if 771 drivers/net/ethernet/amd/amd8111e.h struct mii_if_info mii_if; mii_if 299 drivers/net/ethernet/amd/pcnet32.c struct mii_if_info mii_if; mii_if 737 drivers/net/ethernet/amd/pcnet32.c mii_ethtool_get_link_ksettings(&lp->mii_if, cmd); mii_if 770 drivers/net/ethernet/amd/pcnet32.c r = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd); mii_if 829 drivers/net/ethernet/amd/pcnet32.c r = mii_link_ok(&lp->mii_if); mii_if 868 drivers/net/ethernet/amd/pcnet32.c r = mii_nway_restart(&lp->mii_if); mii_if 1865 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.full_duplex = fdx; mii_if 1866 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.phy_id_mask = 0x1f; mii_if 1867 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.reg_num_mask = 0x1f; mii_if 1880 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.dev = dev; mii_if 1881 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.mdio_read = mdio_read; mii_if 1882 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.mdio_write = mdio_write; mii_if 1952 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.phy_id = ((lp->a->read_bcr(ioaddr, 33)) >> 5) & 0x1f; mii_if 1967 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.phy_id = i; mii_if 1972 drivers/net/ethernet/amd/pcnet32.c lp->a->write_bcr(ioaddr, 33, (lp->mii_if.phy_id) << 5); mii_if 2140 drivers/net/ethernet/amd/pcnet32.c if (lp->mii_if.full_duplex) { mii_if 2245 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.phy_id = i; mii_if 2248 drivers/net/ethernet/amd/pcnet32.c mii_ethtool_gset(&lp->mii_if, &ecmd); mii_if 2251 drivers/net/ethernet/amd/pcnet32.c mii_ethtool_sset(&lp->mii_if, &ecmd); mii_if 2254 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.phy_id = first_phy; mii_if 2793 drivers/net/ethernet/amd/pcnet32.c rc = generic_mii_ioctl(&lp->mii_if, if_mii(rq), cmd, NULL); mii_if 2805 drivers/net/ethernet/amd/pcnet32.c struct mii_if_info mii = lp->mii_if; mii_if 2810 drivers/net/ethernet/amd/pcnet32.c if (i == lp->mii_if.phy_id) mii_if 2821 drivers/net/ethernet/amd/pcnet32.c mdio_read(dev, lp->mii_if.phy_id, MII_BMCR); mii_if 2822 drivers/net/ethernet/amd/pcnet32.c mdio_write(dev, lp->mii_if.phy_id, MII_BMCR, mii_if 2831 drivers/net/ethernet/amd/pcnet32.c lp->mii_if.phy_id = i; mii_if 2855 drivers/net/ethernet/amd/pcnet32.c curr_link = mii_link_ok(&lp->mii_if); mii_if 2882 drivers/net/ethernet/amd/pcnet32.c mii_ethtool_gset(&lp->mii_if, &ecmd); mii_if 2889 drivers/net/ethernet/amd/pcnet32.c if ((bcr9 & (1 << 0)) != lp->mii_if.full_duplex) { mii_if 2890 drivers/net/ethernet/amd/pcnet32.c if (lp->mii_if.full_duplex) mii_if 2152 drivers/net/ethernet/broadcom/b44.c err = generic_mii_ioctl(&bp->mii_if, if_mii(ifr), cmd, NULL); mii_if 2413 drivers/net/ethernet/broadcom/b44.c bp->mii_if.dev = dev; mii_if 2414 drivers/net/ethernet/broadcom/b44.c bp->mii_if.mdio_read = b44_mdio_read_mii; mii_if 2415 drivers/net/ethernet/broadcom/b44.c bp->mii_if.mdio_write = b44_mdio_write_mii; mii_if 2416 drivers/net/ethernet/broadcom/b44.c bp->mii_if.phy_id = bp->phy_addr; mii_if 2417 drivers/net/ethernet/broadcom/b44.c bp->mii_if.phy_id_mask = 0x1f; mii_if 2418 drivers/net/ethernet/broadcom/b44.c bp->mii_if.reg_num_mask = 0x1f; mii_if 410 drivers/net/ethernet/broadcom/b44.h struct mii_if_info mii_if; mii_if 321 drivers/net/ethernet/dec/tulip/winbond-840.c struct mii_if_info mii_if; mii_if 406 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.dev = dev; mii_if 407 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.mdio_read = mdio_read; mii_if 408 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.mdio_write = mdio_write; mii_if 419 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.full_duplex = 1; mii_if 426 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.full_duplex = 1; mii_if 428 drivers/net/ethernet/dec/tulip/winbond-840.c if (np->mii_if.full_duplex) mii_if 429 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.force_media = 1; mii_if 449 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); mii_if 455 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.advertising); mii_if 459 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.phy_id = np->phys[0]; mii_if 604 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.advertising = value; mii_if 714 drivers/net/ethernet/dec/tulip/winbond-840.c negotiated = mii_reg & np->mii_if.advertising; mii_if 719 drivers/net/ethernet/dec/tulip/winbond-840.c duplex |= np->mii_if.force_media; mii_if 772 drivers/net/ethernet/dec/tulip/winbond-840.c np->mii_if.full_duplex = 1; mii_if 1078 drivers/net/ethernet/dec/tulip/winbond-840.c if ((tx_status & 0x0080) && np->mii_if.full_duplex == 0) mii_if 1398 drivers/net/ethernet/dec/tulip/winbond-840.c mii_ethtool_get_link_ksettings(&np->mii_if, cmd); mii_if 1411 drivers/net/ethernet/dec/tulip/winbond-840.c rc = mii_ethtool_set_link_ksettings(&np->mii_if, cmd); mii_if 1420 drivers/net/ethernet/dec/tulip/winbond-840.c return mii_nway_restart(&np->mii_if); mii_if 1426 drivers/net/ethernet/dec/tulip/winbond-840.c return mii_link_ok(&np->mii_if); mii_if 413 drivers/net/ethernet/dlink/sundance.c struct mii_if_info mii_if; mii_if 572 drivers/net/ethernet/dlink/sundance.c np->mii_if.dev = dev; mii_if 573 drivers/net/ethernet/dlink/sundance.c np->mii_if.mdio_read = mdio_read; mii_if 574 drivers/net/ethernet/dlink/sundance.c np->mii_if.mdio_write = mdio_write; mii_if 575 drivers/net/ethernet/dlink/sundance.c np->mii_if.phy_id_mask = 0x1f; mii_if 576 drivers/net/ethernet/dlink/sundance.c np->mii_if.reg_num_mask = 0x1f; mii_if 616 drivers/net/ethernet/dlink/sundance.c np->mii_if.advertising = mdio_read(dev, phyx, MII_ADVERTISE); mii_if 621 drivers/net/ethernet/dlink/sundance.c dev->name, phyx, mii_status, np->mii_if.advertising); mii_if 632 drivers/net/ethernet/dlink/sundance.c np->mii_if.phy_id = np->phys[0]; mii_if 642 drivers/net/ethernet/dlink/sundance.c np->mii_if.full_duplex = 1; mii_if 646 drivers/net/ethernet/dlink/sundance.c np->mii_if.full_duplex = 0; mii_if 650 drivers/net/ethernet/dlink/sundance.c np->mii_if.full_duplex = 1; mii_if 654 drivers/net/ethernet/dlink/sundance.c np->mii_if.full_duplex = 0; mii_if 668 drivers/net/ethernet/dlink/sundance.c np->mii_if.full_duplex = 1; mii_if 677 drivers/net/ethernet/dlink/sundance.c mdio_write (dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising | 0x0400); mii_if 683 drivers/net/ethernet/dlink/sundance.c mii_ctl |= (np->mii_if.full_duplex) ? BMCR_FULLDPLX : 0; mii_if 686 drivers/net/ethernet/dlink/sundance.c np->speed, np->mii_if.full_duplex ? "Full" : "Half"); mii_if 931 drivers/net/ethernet/dlink/sundance.c int negotiated = mii_lpa & np->mii_if.advertising; mii_if 936 drivers/net/ethernet/dlink/sundance.c if (np->mii_if.full_duplex) mii_if 944 drivers/net/ethernet/dlink/sundance.c if (np->mii_if.full_duplex != duplex) { mii_if 945 drivers/net/ethernet/dlink/sundance.c np->mii_if.full_duplex = duplex; mii_if 957 drivers/net/ethernet/dlink/sundance.c struct net_device *dev = np->mii_if.dev; mii_if 1502 drivers/net/ethernet/dlink/sundance.c if (np->flowctrl && np->mii_if.full_duplex) { mii_if 1599 drivers/net/ethernet/dlink/sundance.c if (np->mii_if.full_duplex && np->flowctrl) mii_if 1669 drivers/net/ethernet/dlink/sundance.c mii_ethtool_get_link_ksettings(&np->mii_if, cmd); mii_if 1680 drivers/net/ethernet/dlink/sundance.c res = mii_ethtool_set_link_ksettings(&np->mii_if, cmd); mii_if 1688 drivers/net/ethernet/dlink/sundance.c return mii_nway_restart(&np->mii_if); mii_if 1694 drivers/net/ethernet/dlink/sundance.c return mii_link_ok(&np->mii_if); mii_if 1824 drivers/net/ethernet/dlink/sundance.c rc = generic_mii_ioctl(&np->mii_if, if_mii(rq), cmd, NULL); mii_if 144 drivers/net/ethernet/freescale/fs_enet/fs_enet.h struct mii_if_info mii_if; mii_if 104 drivers/net/ethernet/jme.c jme->mii_if.phy_id, mii_if 110 drivers/net/ethernet/jme.c jme->mii_if.phy_id, mii_if 115 drivers/net/ethernet/jme.c jme->mii_if.phy_id, mii_if 119 drivers/net/ethernet/jme.c jme->mii_if.phy_id, mii_if 389 drivers/net/ethernet/jme.c phylink = jme_mdio_read(jme->dev, jme->mii_if.phy_id, 17); mii_if 390 drivers/net/ethernet/jme.c bmsr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMSR); mii_if 400 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, 27, 0x0004); mii_if 406 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, 27, 0x0000); mii_if 433 drivers/net/ethernet/jme.c jme->mii_if.phy_id, mii_if 1614 drivers/net/ethernet/jme.c bmcr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMCR); mii_if 1616 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, MII_BMCR, bmcr); mii_if 1701 drivers/net/ethernet/jme.c bmcr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMCR); mii_if 1703 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, MII_BMCR, bmcr); mii_if 1714 drivers/net/ethernet/jme.c bmcr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMCR); mii_if 1716 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, MII_BMCR, bmcr); mii_if 1728 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, JM_PHY_SPEC_ADDR_REG, mii_if 1730 drivers/net/ethernet/jme.c return jme_mdio_read(jme->dev, jme->mii_if.phy_id, mii_if 1740 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, JM_PHY_SPEC_DATA_REG, mii_if 1742 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, JM_PHY_SPEC_ADDR_REG, mii_if 1754 drivers/net/ethernet/jme.c ctrl1000 = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_CTRL1000); mii_if 1757 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, MII_CTRL1000, ctrl1000); mii_if 1772 drivers/net/ethernet/jme.c ctrl1000 = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_CTRL1000); mii_if 1774 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, MII_CTRL1000, ctrl1000); mii_if 1875 drivers/net/ethernet/jme.c bmcr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMCR); mii_if 1881 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, MII_BMCR, tmp); mii_if 2388 drivers/net/ethernet/jme.c p16[i] = jme_mdio_read(jme->dev, jme->mii_if.phy_id, i); mii_if 2491 drivers/net/ethernet/jme.c val = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_ADVERTISE); mii_if 2530 drivers/net/ethernet/jme.c val = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_ADVERTISE); mii_if 2539 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, mii_if 2596 drivers/net/ethernet/jme.c mii_ethtool_get_link_ksettings(&jme->mii_if, cmd); mii_if 2616 drivers/net/ethernet/jme.c if (jme->mii_if.force_media && mii_if 2618 drivers/net/ethernet/jme.c (jme->mii_if.full_duplex != cmd->base.duplex)) mii_if 2622 drivers/net/ethernet/jme.c rc = mii_ethtool_set_link_ksettings(&jme->mii_if, cmd); mii_if 2651 drivers/net/ethernet/jme.c rc = generic_mii_ioctl(&jme->mii_if, mii_data, cmd, &duplex_chg); mii_if 2892 drivers/net/ethernet/jme.c reg26 = jme_mdio_read(jme->dev, jme->mii_if.phy_id, 26); mii_if 2893 drivers/net/ethernet/jme.c jme_mdio_write(jme->dev, jme->mii_if.phy_id, 26, reg26 | 0x1000); mii_if 3081 drivers/net/ethernet/jme.c jme->mii_if.dev = netdev; mii_if 3083 drivers/net/ethernet/jme.c jme->mii_if.phy_id = 0; mii_if 3088 drivers/net/ethernet/jme.c jme->mii_if.phy_id = i; mii_if 3093 drivers/net/ethernet/jme.c if (!jme->mii_if.phy_id) { mii_if 3101 drivers/net/ethernet/jme.c jme->mii_if.phy_id = 1; mii_if 3104 drivers/net/ethernet/jme.c jme->mii_if.supports_gmii = true; mii_if 3106 drivers/net/ethernet/jme.c jme->mii_if.supports_gmii = false; mii_if 3107 drivers/net/ethernet/jme.c jme->mii_if.phy_id_mask = 0x1F; mii_if 3108 drivers/net/ethernet/jme.c jme->mii_if.reg_num_mask = 0x1F; mii_if 3109 drivers/net/ethernet/jme.c jme->mii_if.mdio_read = jme_mdio_read; mii_if 3110 drivers/net/ethernet/jme.c jme->mii_if.mdio_write = jme_mdio_write; mii_if 405 drivers/net/ethernet/jme.h struct mii_if_info mii_if; mii_if 137 drivers/net/ethernet/korina.c struct mii_if_info mii_if; mii_if 646 drivers/net/ethernet/korina.c mii_check_media(&lp->mii_if, 0, init_media); mii_if 648 drivers/net/ethernet/korina.c if (lp->mii_if.full_duplex) mii_if 684 drivers/net/ethernet/korina.c rc = generic_mii_ioctl(&lp->mii_if, data, cmd, NULL); mii_if 686 drivers/net/ethernet/korina.c korina_set_carrier(&lp->mii_if); mii_if 708 drivers/net/ethernet/korina.c mii_ethtool_get_link_ksettings(&lp->mii_if, cmd); mii_if 721 drivers/net/ethernet/korina.c rc = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd); mii_if 723 drivers/net/ethernet/korina.c korina_set_carrier(&lp->mii_if); mii_if 732 drivers/net/ethernet/korina.c return mii_link_ok(&lp->mii_if); mii_if 1093 drivers/net/ethernet/korina.c lp->mii_if.dev = dev; mii_if 1094 drivers/net/ethernet/korina.c lp->mii_if.mdio_read = mdio_read; mii_if 1095 drivers/net/ethernet/korina.c lp->mii_if.mdio_write = mdio_write; mii_if 1096 drivers/net/ethernet/korina.c lp->mii_if.phy_id = lp->phy_addr; mii_if 1097 drivers/net/ethernet/korina.c lp->mii_if.phy_id_mask = 0x1f; mii_if 1098 drivers/net/ethernet/korina.c lp->mii_if.reg_num_mask = 0x1f; mii_if 1468 drivers/net/ethernet/micrel/ksz884x.c struct mii_if_info mii_if; mii_if 5950 drivers/net/ethernet/micrel/ksz884x.c mii_ethtool_get_link_ksettings(&priv->mii_if, cmd); mii_if 6027 drivers/net/ethernet/micrel/ksz884x.c &priv->mii_if, mii_if 6048 drivers/net/ethernet/micrel/ksz884x.c rc = mii_nway_restart(&priv->mii_if); mii_if 6066 drivers/net/ethernet/micrel/ksz884x.c rc = mii_link_ok(&priv->mii_if); mii_if 6711 drivers/net/ethernet/micrel/ksz884x.c struct net_device *dev = priv->mii_if.dev; mii_if 6798 drivers/net/ethernet/micrel/ksz884x.c priv->mii_if.phy_id_mask = 0x1; mii_if 6799 drivers/net/ethernet/micrel/ksz884x.c priv->mii_if.reg_num_mask = 0x7; mii_if 6800 drivers/net/ethernet/micrel/ksz884x.c priv->mii_if.dev = dev; mii_if 6801 drivers/net/ethernet/micrel/ksz884x.c priv->mii_if.mdio_read = mdio_read; mii_if 6802 drivers/net/ethernet/micrel/ksz884x.c priv->mii_if.mdio_write = mdio_write; mii_if 6803 drivers/net/ethernet/micrel/ksz884x.c priv->mii_if.phy_id = priv->port.first_port + 1; mii_if 502 drivers/net/ethernet/packetengines/hamachi.c struct mii_if_info mii_if; /* MII lib hooks/info */ mii_if 641 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.dev = dev; mii_if 642 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.mdio_read = mdio_read; mii_if 643 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.mdio_write = mdio_write; mii_if 644 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.phy_id_mask = 0x1f; mii_if 645 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.reg_num_mask = 0x1f; mii_if 694 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.full_duplex = 1; mii_if 696 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.full_duplex = 0; mii_if 699 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.force_media = 1; mii_if 702 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.full_duplex = 1; mii_if 705 drivers/net/ethernet/packetengines/hamachi.c if (hmp->mii_if.full_duplex || (option & 0x080)) mii_if 755 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); mii_if 758 drivers/net/ethernet/packetengines/hamachi.c dev->name, phy, mii_status, hmp->mii_if.advertising); mii_if 763 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.phy_id = hmp->phys[0]; mii_if 765 drivers/net/ethernet/packetengines/hamachi.c memset(&hmp->mii_if, 0, sizeof(hmp->mii_if)); mii_if 918 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.full_duplex = 1; mii_if 1023 drivers/net/ethernet/packetengines/hamachi.c struct net_device *dev = hmp->mii_if.dev; mii_if 1817 drivers/net/ethernet/packetengines/hamachi.c mii_ethtool_get_link_ksettings(&np->mii_if, cmd); mii_if 1828 drivers/net/ethernet/packetengines/hamachi.c res = mii_ethtool_set_link_ksettings(&np->mii_if, cmd); mii_if 1836 drivers/net/ethernet/packetengines/hamachi.c return mii_nway_restart(&np->mii_if); mii_if 1842 drivers/net/ethernet/packetengines/hamachi.c return mii_link_ok(&np->mii_if); mii_if 1887 drivers/net/ethernet/packetengines/hamachi.c rc = generic_mii_ioctl(&np->mii_if, data, cmd, NULL); mii_if 352 drivers/net/ethernet/realtek/8139cp.c struct mii_if_info mii_if; mii_if 612 drivers/net/ethernet/realtek/8139cp.c mii_check_media(&cp->mii_if, netif_msg_link(cp), false); mii_if 1202 drivers/net/ethernet/realtek/8139cp.c mii_check_media(&cp->mii_if, netif_msg_link(cp), true); mii_if 1421 drivers/net/ethernet/realtek/8139cp.c mii_ethtool_get_link_ksettings(&cp->mii_if, cmd); mii_if 1435 drivers/net/ethernet/realtek/8139cp.c rc = mii_ethtool_set_link_ksettings(&cp->mii_if, cmd); mii_if 1444 drivers/net/ethernet/realtek/8139cp.c return mii_nway_restart(&cp->mii_if); mii_if 1614 drivers/net/ethernet/realtek/8139cp.c rc = generic_mii_ioctl(&cp->mii_if, if_mii(rq), cmd, NULL); mii_if 1913 drivers/net/ethernet/realtek/8139cp.c cp->mii_if.dev = dev; mii_if 1914 drivers/net/ethernet/realtek/8139cp.c cp->mii_if.mdio_read = mdio_read; mii_if 1915 drivers/net/ethernet/realtek/8139cp.c cp->mii_if.mdio_write = mdio_write; mii_if 1916 drivers/net/ethernet/realtek/8139cp.c cp->mii_if.phy_id = CP_INTERNAL_PHY; mii_if 1917 drivers/net/ethernet/realtek/8139cp.c cp->mii_if.phy_id_mask = 0x1f; mii_if 1918 drivers/net/ethernet/realtek/8139cp.c cp->mii_if.reg_num_mask = 0x1f; mii_if 2108 drivers/net/ethernet/realtek/8139cp.c mii_check_media(&cp->mii_if, netif_msg_link(cp), false); mii_if 284 drivers/net/ethernet/sis/sis190.c struct mii_if_info mii_if; mii_if 919 drivers/net/ethernet/sis/sis190.c int phy_id = tp->mii_if.phy_id; mii_if 1264 drivers/net/ethernet/sis/sis190.c struct mii_if_info *mii_if = &tp->mii_if; mii_if 1299 drivers/net/ethernet/sis/sis190.c if (mii_if->phy_id != phy_default->phy_id) { mii_if 1300 drivers/net/ethernet/sis/sis190.c mii_if->phy_id = phy_default->phy_id; mii_if 1303 drivers/net/ethernet/sis/sis190.c pci_name(tp->pci_dev), mii_if->phy_id); mii_if 1306 drivers/net/ethernet/sis/sis190.c status = mdio_read(ioaddr, mii_if->phy_id, MII_BMCR); mii_if 1309 drivers/net/ethernet/sis/sis190.c mdio_write(ioaddr, mii_if->phy_id, MII_BMCR, status); mii_if 1310 drivers/net/ethernet/sis/sis190.c status = mdio_read_latched(ioaddr, mii_if->phy_id, MII_BMSR); mii_if 1357 drivers/net/ethernet/sis/sis190.c int phy_id = tp->mii_if.phy_id; mii_if 1383 drivers/net/ethernet/sis/sis190.c struct mii_if_info *mii_if = &tp->mii_if; mii_if 1425 drivers/net/ethernet/sis/sis190.c mii_if->dev = dev; mii_if 1426 drivers/net/ethernet/sis/sis190.c mii_if->mdio_read = __mdio_read; mii_if 1427 drivers/net/ethernet/sis/sis190.c mii_if->mdio_write = __mdio_write; mii_if 1428 drivers/net/ethernet/sis/sis190.c mii_if->phy_id_mask = PHY_ID_ANY; mii_if 1429 drivers/net/ethernet/sis/sis190.c mii_if->reg_num_mask = MII_REG_ANY; mii_if 1714 drivers/net/ethernet/sis/sis190.c int phy_id = tp->mii_if.phy_id; mii_if 1740 drivers/net/ethernet/sis/sis190.c mii_ethtool_get_link_ksettings(&tp->mii_if, cmd); mii_if 1750 drivers/net/ethernet/sis/sis190.c return mii_ethtool_set_link_ksettings(&tp->mii_if, cmd); mii_if 1784 drivers/net/ethernet/sis/sis190.c return mii_nway_restart(&tp->mii_if); mii_if 1818 drivers/net/ethernet/sis/sis190.c generic_mii_ioctl(&tp->mii_if, if_mii(ifr), cmd, NULL); mii_if 113 drivers/net/ethernet/smsc/smc91c92_cs.c struct mii_if_info mii_if; mii_if 324 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.dev = dev; mii_if 325 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.mdio_read = mdio_read; mii_if 326 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.mdio_write = mdio_write; mii_if 327 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.phy_id_mask = 0x1f; mii_if 328 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.reg_num_mask = 0x1f; mii_if 911 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.phy_id = (i < 32) ? i : -1; mii_if 936 drivers/net/ethernet/smsc/smc91c92_cs.c if (smc->mii_if.phy_id != -1) { mii_if 938 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.phy_id, j); mii_if 1689 drivers/net/ethernet/smsc/smc91c92_cs.c mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000); mii_if 1692 drivers/net/ethernet/smsc/smc91c92_cs.c mdio_write(dev, smc->mii_if.phy_id, 4, 0x01e1); mii_if 1695 drivers/net/ethernet/smsc/smc91c92_cs.c mdio_write(dev, smc->mii_if.phy_id, 0, 0x0000); mii_if 1696 drivers/net/ethernet/smsc/smc91c92_cs.c mdio_write(dev, smc->mii_if.phy_id, 0, 0x1200); mii_if 1714 drivers/net/ethernet/smsc/smc91c92_cs.c struct net_device *dev = smc->mii_if.dev; mii_if 1765 drivers/net/ethernet/smsc/smc91c92_cs.c if (smc->mii_if.phy_id < 0) mii_if 1769 drivers/net/ethernet/smsc/smc91c92_cs.c link = mdio_read(dev, smc->mii_if.phy_id, 1); mii_if 1772 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.phy_id = -1; mii_if 1778 drivers/net/ethernet/smsc/smc91c92_cs.c u_short p = mdio_read(dev, smc->mii_if.phy_id, 5); mii_if 1839 drivers/net/ethernet/smsc/smc91c92_cs.c return mii_link_ok(&smc->mii_if); mii_if 1924 drivers/net/ethernet/smsc/smc91c92_cs.c mii_ethtool_get_link_ksettings(&smc->mii_if, ecmd); mii_if 1944 drivers/net/ethernet/smsc/smc91c92_cs.c ret = mii_ethtool_set_link_ksettings(&smc->mii_if, ecmd); mii_if 1977 drivers/net/ethernet/smsc/smc91c92_cs.c res = mii_nway_restart(&smc->mii_if); mii_if 2009 drivers/net/ethernet/smsc/smc91c92_cs.c rc = generic_mii_ioctl(&smc->mii_if, mii, cmd, NULL); mii_if 141 drivers/net/ethernet/tundra/tsi108_eth.c struct mii_if_info mii_if; mii_if 297 drivers/net/ethernet/tundra/tsi108_eth.c duplex = mii_check_media(&data->mii_if, netif_msg_link(data), data->init_media); mii_if 302 drivers/net/ethernet/tundra/tsi108_eth.c speed = mii_speed(&data->mii_if); mii_if 321 drivers/net/ethernet/tundra/tsi108_eth.c if (data->mii_if.full_duplex) { mii_if 1266 drivers/net/ethernet/tundra/tsi108_eth.c data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if); mii_if 1501 drivers/net/ethernet/tundra/tsi108_eth.c mii_ethtool_get_link_ksettings(&data->mii_if, cmd); mii_if 1515 drivers/net/ethernet/tundra/tsi108_eth.c rc = mii_ethtool_set_link_ksettings(&data->mii_if, cmd); mii_if 1526 drivers/net/ethernet/tundra/tsi108_eth.c return generic_mii_ioctl(&data->mii_if, if_mii(rq), cmd, NULL); mii_if 1589 drivers/net/ethernet/tundra/tsi108_eth.c data->mii_if.dev = dev; mii_if 1590 drivers/net/ethernet/tundra/tsi108_eth.c data->mii_if.mdio_read = tsi108_mdio_read; mii_if 1591 drivers/net/ethernet/tundra/tsi108_eth.c data->mii_if.mdio_write = tsi108_mdio_write; mii_if 1592 drivers/net/ethernet/tundra/tsi108_eth.c data->mii_if.phy_id = einfo->phy; mii_if 1593 drivers/net/ethernet/tundra/tsi108_eth.c data->mii_if.phy_id_mask = 0x1f; mii_if 1594 drivers/net/ethernet/tundra/tsi108_eth.c data->mii_if.reg_num_mask = 0x1f; mii_if 483 drivers/net/ethernet/via/via-rhine.c struct mii_if_info mii_if; mii_if 961 drivers/net/ethernet/via/via-rhine.c rp->mii_if.dev = dev; mii_if 962 drivers/net/ethernet/via/via-rhine.c rp->mii_if.mdio_read = mdio_read; mii_if 963 drivers/net/ethernet/via/via-rhine.c rp->mii_if.mdio_write = mdio_write; mii_if 964 drivers/net/ethernet/via/via-rhine.c rp->mii_if.phy_id_mask = 0x1f; mii_if 965 drivers/net/ethernet/via/via-rhine.c rp->mii_if.reg_num_mask = 0x1f; mii_if 1007 drivers/net/ethernet/via/via-rhine.c rp->mii_if.advertising = mdio_read(dev, phy_id, 4); mii_if 1011 drivers/net/ethernet/via/via-rhine.c mii_status, rp->mii_if.advertising, mii_if 1022 drivers/net/ethernet/via/via-rhine.c rp->mii_if.phy_id = phy_id; mii_if 1366 drivers/net/ethernet/via/via-rhine.c if (!rp->mii_if.force_media) mii_if 1367 drivers/net/ethernet/via/via-rhine.c mii_check_media(&rp->mii_if, netif_msg_link(rp), init_media); mii_if 1369 drivers/net/ethernet/via/via-rhine.c if (rp->mii_if.full_duplex) mii_if 1377 drivers/net/ethernet/via/via-rhine.c rp->mii_if.force_media, netif_carrier_ok(dev)); mii_if 1715 drivers/net/ethernet/via/via-rhine.c mdio_read(dev, rp->mii_if.phy_id, MII_BMSR)); mii_if 1771 drivers/net/ethernet/via/via-rhine.c mdio_read(dev, rp->mii_if.phy_id, MII_BMSR)); mii_if 2307 drivers/net/ethernet/via/via-rhine.c mii_ethtool_get_link_ksettings(&rp->mii_if, cmd); mii_if 2320 drivers/net/ethernet/via/via-rhine.c rc = mii_ethtool_set_link_ksettings(&rp->mii_if, cmd); mii_if 2321 drivers/net/ethernet/via/via-rhine.c rhine_set_carrier(&rp->mii_if); mii_if 2331 drivers/net/ethernet/via/via-rhine.c return mii_nway_restart(&rp->mii_if); mii_if 2338 drivers/net/ethernet/via/via-rhine.c return mii_link_ok(&rp->mii_if); mii_if 2409 drivers/net/ethernet/via/via-rhine.c rc = generic_mii_ioctl(&rp->mii_if, if_mii(rq), cmd, NULL); mii_if 2410 drivers/net/ethernet/via/via-rhine.c rhine_set_carrier(&rp->mii_if); mii_if 584 drivers/net/mii.c int generic_mii_ioctl(struct mii_if_info *mii_if, mii_if 594 drivers/net/mii.c mii_data->phy_id &= mii_if->phy_id_mask; mii_if 595 drivers/net/mii.c mii_data->reg_num &= mii_if->reg_num_mask; mii_if 599 drivers/net/mii.c mii_data->phy_id = mii_if->phy_id; mii_if 604 drivers/net/mii.c mii_if->mdio_read(mii_if->dev, mii_data->phy_id, mii_if 611 drivers/net/mii.c if (mii_data->phy_id == mii_if->phy_id) { mii_if 616 drivers/net/mii.c mii_if->force_media = 0; mii_if 618 drivers/net/mii.c mii_if->force_media = 1; mii_if 619 drivers/net/mii.c if (mii_if->force_media && mii_if 622 drivers/net/mii.c if (mii_if->full_duplex != new_duplex) { mii_if 624 drivers/net/mii.c mii_if->full_duplex = new_duplex; mii_if 629 drivers/net/mii.c mii_if->advertising = val; mii_if 637 drivers/net/mii.c mii_if->mdio_write(mii_if->dev, mii_data->phy_id, mii_if 46 include/linux/mii.h extern int generic_mii_ioctl(struct mii_if_info *mii_if,