Home
last modified time | relevance | path

Searched refs:mii_lpa (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/drivers/net/
Depic100.c721 int mii_lpa = mdio_read(dev, ep->phys[0], MII_LPA); in epic_open() local
722 if (mii_lpa != 0xffff) { in epic_open()
723 if ((mii_lpa & LPA_100FULL) || (mii_lpa & 0x01C0) == LPA_10FULL) in epic_open()
725 else if (! (mii_lpa & LPA_LPACK)) in epic_open()
731 ep->phys[0], mii_lpa); in epic_open()
847 int mii_lpa = ep->mii_phy_cnt ? mdio_read(dev, ep->phys[0], MII_LPA) : 0; in check_media() local
848 int negotiated = mii_lpa & ep->mii.advertising; in check_media()
853 if (mii_lpa == 0xffff) /* Bogus read */ in check_media()
859 ep->mii.full_duplex ? "full" : "half", ep->phys[0], mii_lpa); in check_media()
Dpci-skeleton.c1234 int mii_lpa; in netdrv_timer() local
1236 mii_lpa = mdio_read(dev, tp->phys[0], MII_LPA); in netdrv_timer()
1238 if (!tp->duplex_lock && mii_lpa != 0xffff) { in netdrv_timer()
1239 int duplex = ((mii_lpa & LPA_100FULL) || in netdrv_timer()
1240 (mii_lpa & 0x01C0) == 0x0040); in netdrv_timer()
1245 tp->phys[0], mii_lpa); in netdrv_timer()
D8139too.c1548 int mii_lpa; in rtl8139_thread_iter() local
1550 mii_lpa = mdio_read (dev, tp->phys[0], MII_LPA); in rtl8139_thread_iter()
1552 if (!tp->mii.force_media && mii_lpa != 0xffff) { in rtl8139_thread_iter()
1553 int duplex = ((mii_lpa & LPA_100FULL) || in rtl8139_thread_iter()
1554 (mii_lpa & 0x01C0) == 0x0040); in rtl8139_thread_iter()
1558 if (mii_lpa) { in rtl8139_thread_iter()
1561 tp->phys[0], mii_lpa); in rtl8139_thread_iter()
Dsundance.c906 int mii_lpa = mdio_read(dev, np->phys[0], MII_LPA); in check_duplex() local
907 int negotiated = mii_lpa & np->mii_if.advertising; in check_duplex()
911 if (!np->an_enable || mii_lpa == 0xffff) { in check_duplex()
1441 u16 mii_ctl, mii_advertise, mii_lpa; in netdev_error() local
1450 mii_lpa = mdio_read(dev, np->phys[0], MII_LPA); in netdev_error()
1451 mii_advertise &= mii_lpa; in netdev_error()
Dbnx2.c1042 bnx2_read_phy(bp, bp->mii_lpa, &remote_adv); in bnx2_resolve_flow_ctrl()
1175 bnx2_read_phy(bp, bp->mii_lpa, &remote_adv); in bnx2_5706s_linkup()
1214 bnx2_read_phy(bp, bp->mii_lpa, &remote_adv); in bnx2_copper_linkup()
2162 bp->mii_lpa = MII_LPA + 0x10; in bnx2_init_5709s_phy()
2367 bp->mii_lpa = MII_LPA; in bnx2_init_phy()
Dbnx2.h6799 u32 mii_lpa; member