Lines Matching refs:mii
284 struct mii_if_info mii; member
372 ep->mii.dev = dev; in epic_init_one()
373 ep->mii.mdio_read = mdio_read; in epic_init_one()
374 ep->mii.mdio_write = mdio_write; in epic_init_one()
375 ep->mii.phy_id_mask = 0x1f; in epic_init_one()
376 ep->mii.reg_num_mask = 0x1f; in epic_init_one()
455 ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); in epic_init_one()
459 ep->mii.advertising, mdio_read(dev, phy, 5)); in epic_init_one()
466 ep->mii.phy_id = ep->phys[0]; in epic_init_one()
476 ep->mii.force_media = ep->mii.full_duplex = 1; in epic_init_one()
713 ep->mii.full_duplex = 1; in epic_open()
718 ep->mii.full_duplex ? "full" in epic_open()
724 ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); in epic_open()
742 ep->mii.full_duplex ? "full" : "half"); in epic_open()
811 ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); in epic_restart()
835 int negotiated = mii_lpa & ep->mii.advertising; in check_media()
838 if (ep->mii.force_media) in check_media()
842 if (ep->mii.full_duplex != duplex) { in check_media()
843 ep->mii.full_duplex = duplex; in check_media()
845 ep->mii.full_duplex ? "full" : "half", in check_media()
847 ew32(TxCtrl, ep->mii.full_duplex ? 0x7F : 0x79); in check_media()
854 struct net_device *dev = ep->mii.dev; in epic_timer()
1257 struct net_device *dev = ep->mii.dev; in epic_poll()
1406 mii_ethtool_get_link_ksettings(&np->mii, cmd); in netdev_get_link_ksettings()
1419 rc = mii_ethtool_set_link_ksettings(&np->mii, cmd); in netdev_set_link_ksettings()
1428 return mii_nway_restart(&np->mii); in netdev_nway_reset()
1434 return mii_link_ok(&np->mii); in netdev_get_link()
1501 rc = generic_mii_ioctl(&np->mii, data, cmd, NULL); in netdev_ioctl()