Home
last modified time | relevance | path

Searched refs:mii_status (Results 1 – 22 of 22) sorted by relevance

/drivers/net/ethernet/via/
Dvia-velocity.c617 vptr->mii_status = status; in velocity_get_opt_media_mode()
879 static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status) in velocity_set_media_mode() argument
883 vptr->mii_status = mii_check_media_mode(vptr->mac_regs); in velocity_set_media_mode()
894 if (mii_status & VELOCITY_AUTONEG_ENABLE) { in velocity_set_media_mode()
922 if (mii_status & VELOCITY_SPEED_1000) in velocity_set_media_mode()
927 if (mii_status & VELOCITY_DUPLEX_FULL) { in velocity_set_media_mode()
945 if ((mii_status & VELOCITY_SPEED_1000) && in velocity_set_media_mode()
946 (mii_status & VELOCITY_DUPLEX_FULL)) { in velocity_set_media_mode()
951 if (!(mii_status & VELOCITY_DUPLEX_FULL) && (mii_status & VELOCITY_SPEED_10)) in velocity_set_media_mode()
959 if (mii_status & VELOCITY_SPEED_100) { in velocity_set_media_mode()
[all …]
Dvia-rhine.c997 int mii_status = mdio_read(dev, phy_id, 1); in rhine_init_one_common() local
1000 if (mii_status != 0xffff && mii_status != 0x0000) { in rhine_init_one_common()
1005 mii_status, rp->mii_if.advertising, in rhine_init_one_common()
1009 if (mii_status & BMSR_LSTATUS) in rhine_init_one_common()
Dvia-velocity.h1427 u32 mii_status; member
/drivers/net/ethernet/dec/tulip/
Dmedia.c457 int mii_status = tulip_mdio_read (dev, phy, MII_BMSR); in tulip_find_mii() local
458 if ((mii_status & 0x8301) == 0x8001 || in tulip_find_mii()
459 ((mii_status & BMSR_100BASE4) == 0 && in tulip_find_mii()
460 (mii_status & 0x7800) != 0)) { in tulip_find_mii()
493 board_idx, phy, mii_reg0, mii_status, mii_advert); in tulip_find_mii()
Dwinbond-840.c436 int mii_status = mdio_read(dev, phy, MII_BMSR); in w840_probe1() local
437 if (mii_status != 0xffff && mii_status != 0x0000) { in w840_probe1()
444 np->mii, phy, mii_status, in w840_probe1()
/drivers/net/ethernet/3com/
D3c574_cs.c396 int mii_status; in tc574_config() local
398 mii_status = mdio_read(ioaddr, phy & 0x1f, 1); in tc574_config()
399 if (mii_status != 0xffff) { in tc574_config()
403 phy, mii_status); in tc574_config()
404 if ((mii_status & 0x0040) == 0) in tc574_config()
D3c59x.c1394 int mii_status, phyx; in vortex_probe1() local
1406 mii_status = mdio_read(dev, phyx, MII_BMSR); in vortex_probe1()
1407 if (mii_status && mii_status != 0xffff) { in vortex_probe1()
1411 phyx, mii_status); in vortex_probe1()
1413 if ((mii_status & 0x0040) == 0) in vortex_probe1()
/drivers/net/bonding/
Dbond_sysfs_slave.c44 static SLAVE_ATTR_RO(mii_status);
Dbond_sysfs.c487 static DEVICE_ATTR(mii_status, 0444, bonding_show_mii_status, NULL);
/drivers/net/ethernet/silan/
Dsc92031.c316 u32 mii_status; in _sc92031_mii_wait() local
320 mii_status = ioread32(port_base + Miistatus); in _sc92031_mii_wait()
321 } while (mii_status & Mii_StatusBusy); in _sc92031_mii_wait()
323 return mii_status; in _sc92031_mii_wait()
/drivers/net/ethernet/sis/
Dsis900.c611 u16 mii_status; in sis900_mii_probe() local
616 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe()
618 if (mii_status == 0xffff || mii_status == 0x0000) { in sis900_mii_probe()
640 mii_phy->status = mii_status; in sis900_mii_probe()
651 (mii_status & (MII_STAT_CAN_TX_FDX | MII_STAT_CAN_TX)) ? LAN : HOME; in sis900_mii_probe()
Dsis190.c1327 u16 mii_status) in sis190_init_phy() argument
1333 phy->status = mii_status; in sis190_init_phy()
1348 ((mii_status & (BMSR_100FULL | BMSR_100HALF)) ? in sis190_init_phy()
/drivers/net/ethernet/packetengines/
Dyellowfin.c495 int mii_status = mdio_read(ioaddr, phy, 1); in yellowfin_init_one() local
496 if (mii_status != 0xffff && mii_status != 0x0000) { in yellowfin_init_one()
500 phy, mii_status, np->advertising); in yellowfin_init_one()
Dhamachi.c753 int mii_status = mdio_read(dev, phy, MII_BMSR); in hamachi_init_one() local
754 if (mii_status != 0xffff && in hamachi_init_one()
755 mii_status != 0x0000) { in hamachi_init_one()
760 dev->name, phy, mii_status, hmp->mii_if.advertising); in hamachi_init_one()
/drivers/net/ethernet/freescale/
Dfec_mpc52xx.h49 u32 mii_status; /* FEC + 0x048 */ member
/drivers/net/ethernet/smsc/
Depic100.c441 int mii_status = mdio_read(dev, phy, MII_BMSR); in epic_init_one() local
442 if (mii_status != 0xffff && mii_status != 0x0000) { in epic_init_one()
447 phy, mdio_read(dev, phy, 0), mii_status); in epic_init_one()
/drivers/net/ethernet/dlink/
Dsundance.c600 int mii_status = mdio_read(dev, phyx, MII_BMSR); in sundance_probe1() local
601 if (mii_status != 0xffff && mii_status != 0x0000) { in sundance_probe1()
604 if ((mii_status & 0x0040) == 0) in sundance_probe1()
608 dev->name, phyx, mii_status, np->mii_if.advertising); in sundance_probe1()
Ddl2k.c312 int mii_status = mii_read (dev, i, 1); in find_miiphy() local
313 if (mii_status != 0xffff && mii_status != 0x0000) { in find_miiphy()
/drivers/net/ethernet/nvidia/
Dforcedeth.c1392 u32 mii_status, mii_control, mii_control_1000, reg; in phy_init() local
1443 mii_status = mii_rw(dev, np->phyaddr, MII_BMSR, MII_READ); in phy_init()
1444 if (mii_status & PHY_GIGABIT) { in phy_init()
3313 int mii_status; in nv_force_linkspeed() local
3319 mii_status = mii_rw(dev, np->phyaddr, MII_BMSR, MII_READ); in nv_force_linkspeed()
3320 if (mii_status & PHY_GIGABIT) { in nv_force_linkspeed()
3393 int mii_status; in nv_update_linkspeed() local
3417 mii_status = mii_rw(dev, np->phyaddr, MII_BMSR, MII_READ); in nv_update_linkspeed()
3419 if (!(mii_status & BMSR_LSTATUS)) { in nv_update_linkspeed()
3444 if (!(mii_status & BMSR_ANEGCOMPLETE)) { in nv_update_linkspeed()
[all …]
/drivers/net/ethernet/
Dfealnx.c570 int mii_status = mdio_read(dev, phy, 1); in fealnx_init_one() local
572 if (mii_status != 0xffff && mii_status != 0x0000) { in fealnx_init_one()
576 "0x%4.4x.\n", phy, mii_status); in fealnx_init_one()
/drivers/net/ethernet/adaptec/
Dstarfire.c787 int mii_status; in starfire_init_one() local
799 mii_status = mdio_read(dev, phy, MII_BMSR); in starfire_init_one()
800 if (mii_status != 0) { in starfire_init_one()
805 dev->name, phy, mii_status, np->mii_if.advertising); in starfire_init_one()
/drivers/net/ethernet/realtek/
D8139too.c1059 int mii_status = mdio_read(dev, phy, 1); in rtl8139_init_one() local
1060 if (mii_status != 0xffff && mii_status != 0x0000) { in rtl8139_init_one()
1064 phy, mii_status, advertising); in rtl8139_init_one()