Lines Matching full:mii

85 #include <linux/mii.h>
280 signed char phys[4]; /* MII device addresses. */
284 struct mii_if_info mii; member
371 ep->mii.dev = dev; in epic_init_one()
372 ep->mii.mdio_read = mdio_read; in epic_init_one()
373 ep->mii.mdio_write = mdio_write; in epic_init_one()
374 ep->mii.phy_id_mask = 0x1f; in epic_init_one()
375 ep->mii.reg_num_mask = 0x1f; in epic_init_one()
406 /* Magic?! If we don't set this bit the MII interface won't work. */ in epic_init_one()
411 /* Turn on the MII transceiver. */ in epic_init_one()
435 /* Find the connected MII xcvrs. in epic_init_one()
437 takes much time and no cards have external MII. */ in epic_init_one()
445 "MII transceiver #%d control " in epic_init_one()
453 ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); in epic_init_one()
457 ep->mii.advertising, mdio_read(dev, phy, 5)); in epic_init_one()
460 "***WARNING***: No MII transceiver found!\n"); in epic_init_one()
464 ep->mii.phy_id = ep->phys[0]; in epic_init_one()
467 /* Turn off the MII xcvr (175 only!), leave the chip in low-power mode. */ in epic_init_one()
474 ep->mii.force_media = ep->mii.full_duplex = 1; in epic_init_one()
704 netdev_info(dev, "Using the 10base2 transceiver, MII status %4.4x.\n", in epic_open()
711 ep->mii.full_duplex = 1; in epic_open()
715 netdev_info(dev, "Setting %s-duplex based on MII xcvr %d register read of %4.4x.\n", in epic_open()
716 ep->mii.full_duplex ? "full" in epic_open()
722 ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); in epic_open()
740 ep->mii.full_duplex ? "full" : "half"); in epic_open()
809 ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); in epic_restart()
833 int negotiated = mii_lpa & ep->mii.advertising; in check_media()
836 if (ep->mii.force_media) in check_media()
840 if (ep->mii.full_duplex != duplex) { in check_media()
841 ep->mii.full_duplex = duplex; in check_media()
842 netdev_info(dev, "Setting %s-duplex based on MII #%d link partner capability of %4.4x.\n", in check_media()
843 ep->mii.full_duplex ? "full" : "half", in check_media()
845 ew32(TxCtrl, ep->mii.full_duplex ? 0x7F : 0x79); in check_media()
852 struct net_device *dev = ep->mii.dev; in epic_timer()
875 netdev_warn(dev, "Transmit timeout using MII device, Tx status %4.4x.\n", in epic_tx_timeout()
1255 struct net_device *dev = ep->mii.dev; in epic_poll()
1404 mii_ethtool_get_link_ksettings(&np->mii, cmd); in netdev_get_link_ksettings()
1417 rc = mii_ethtool_set_link_ksettings(&np->mii, cmd); in netdev_set_link_ksettings()
1426 return mii_nway_restart(&np->mii); in netdev_nway_reset()
1432 return mii_link_ok(&np->mii); in netdev_get_link()
1499 rc = generic_mii_ioctl(&np->mii, data, cmd, NULL); in netdev_ioctl()