Lines Matching full:mii

85 #include <linux/mii.h>
280 signed char phys[4]; /* MII device addresses. */
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()
407 /* Magic?! If we don't set this bit the MII interface won't work. */ in epic_init_one()
412 /* Turn on the MII transceiver. */ in epic_init_one()
437 /* Find the connected MII xcvrs. in epic_init_one()
439 takes much time and no cards have external MII. */ in epic_init_one()
447 "MII transceiver #%d control " 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()
462 "***WARNING***: No MII transceiver found!\n"); in epic_init_one()
466 ep->mii.phy_id = ep->phys[0]; in epic_init_one()
469 /* Turn off the MII xcvr (175 only!), leave the chip in low-power mode. */ in epic_init_one()
476 ep->mii.force_media = ep->mii.full_duplex = 1; in epic_init_one()
706 netdev_info(dev, "Using the 10base2 transceiver, MII status %4.4x.\n", in epic_open()
713 ep->mii.full_duplex = 1; in epic_open()
717 netdev_info(dev, "Setting %s-duplex based on MII xcvr %d register read of %4.4x.\n", 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()
844 netdev_info(dev, "Setting %s-duplex based on MII #%d link partner capability of %4.4x.\n", 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()
877 netdev_warn(dev, "Transmit timeout using MII device, Tx status %4.4x.\n", in epic_tx_timeout()
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()