Lines Matching refs:mii
578 struct mii_if_info mii; member
967 u16 advert = mdio_read(nic->netdev, nic->mii.phy_id, in mdio_ctrl_phy_82552_v()
1065 nic->mii.phy_id_mask = 0x1F; in e100_get_defaults()
1066 nic->mii.reg_num_mask = 0x1F; in e100_get_defaults()
1067 nic->mii.dev = nic->netdev; in e100_get_defaults()
1068 nic->mii.mdio_read = mdio_read; in e100_get_defaults()
1069 nic->mii.mdio_write = mdio_write; in e100_get_defaults()
1111 if (nic->mii.force_media && nic->mii.full_duplex) in e100_configure()
1417 nic->mii.phy_id = 0; /* is this ok for an MII-less PHY? */ in e100_phy_check_without_mii()
1445 nic->mii.phy_id = (addr == 0) ? 1 : (addr == 1) ? 0 : addr; in e100_phy_init()
1446 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init()
1447 stat = mdio_read(netdev, nic->mii.phy_id, MII_BMSR); in e100_phy_init()
1448 stat = mdio_read(netdev, nic->mii.phy_id, MII_BMSR); in e100_phy_init()
1467 "phy_addr = %d\n", nic->mii.phy_id); in e100_phy_init()
1470 id_lo = mdio_read(netdev, nic->mii.phy_id, MII_PHYSID1); in e100_phy_init()
1471 id_hi = mdio_read(netdev, nic->mii.phy_id, MII_PHYSID2); in e100_phy_init()
1478 if (addr != nic->mii.phy_id) { in e100_phy_init()
1492 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, in e100_phy_init()
1499 cong = mdio_read(netdev, nic->mii.phy_id, MII_NSC_CONG); in e100_phy_init()
1502 mdio_write(netdev, nic->mii.phy_id, MII_NSC_CONG, cong); in e100_phy_init()
1506 u16 advert = mdio_read(netdev, nic->mii.phy_id, MII_ADVERTISE); in e100_phy_init()
1513 mdio_write(netdev, nic->mii.phy_id, MII_ADVERTISE, advert); in e100_phy_init()
1516 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init()
1518 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, bmcr); in e100_phy_init()
1520 (mdio_read(netdev, nic->mii.phy_id, MII_TPISTATUS) & 0x8000) && in e100_phy_init()
1523 mdio_write(netdev, nic->mii.phy_id, MII_NCONFIG, in e100_phy_init()
1524 nic->mii.force_media ? 0 : NCONFIG_AUTO_SWITCH); in e100_phy_init()
1699 mii_ethtool_gset(&nic->mii, &cmd); in e100_watchdog()
1702 if (mii_link_ok(&nic->mii) && !netif_carrier_ok(nic->netdev)) { in e100_watchdog()
1706 } else if (!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) { in e100_watchdog()
1710 mii_check_link(&nic->mii); in e100_watchdog()
2366 mdio_write(nic->netdev, nic->mii.phy_id, MII_BMCR, in e100_loopback_test()
2389 mdio_write(nic->netdev, nic->mii.phy_id, MII_BMCR, 0); in e100_loopback_test()
2408 mii_ethtool_get_link_ksettings(&nic->mii, cmd); in e100_get_link_ksettings()
2419 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, BMCR_RESET); in e100_set_link_ksettings()
2420 err = mii_ethtool_set_link_ksettings(&nic->mii, cmd); in e100_set_link_ksettings()
2456 mdio_read(netdev, nic->mii.phy_id, i); in e100_get_regs()
2506 return mii_nway_restart(&nic->mii); in e100_nway_reset()
2512 return mii_link_ok(&nic->mii); in e100_get_link()
2601 data[0] = !mii_link_ok(&nic->mii); in e100_diag_test()
2606 err = mii_ethtool_gset(&nic->mii, &cmd); in e100_diag_test()
2615 err = mii_ethtool_sset(&nic->mii, &cmd); in e100_diag_test()
2657 mdio_write(netdev, nic->mii.phy_id, led_reg, leds); in e100_set_phys_id()
2751 return generic_mii_ioctl(&nic->mii, if_mii(ifr), cmd, NULL); in e100_do_ioctl()
3003 u16 smartspeed = mdio_read(netdev, nic->mii.phy_id, in __e100_shutdown()
3006 mdio_write(netdev, nic->mii.phy_id, in __e100_shutdown()
3049 u16 smartspeed = mdio_read(netdev, nic->mii.phy_id, in e100_resume()
3052 mdio_write(netdev, nic->mii.phy_id, in e100_resume()