Home
last modified time | relevance | path

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

/drivers/net/
Dvia-velocity.c390 static void mii_init(struct velocity_info *vptr, u32 mii_status);
402 static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status);
711 int i, mii_status; in velocity_init_registers() local
728 mii_status = velocity_get_opt_media_mode(vptr); in velocity_init_registers()
729 if (velocity_set_media_mode(vptr, mii_status) != VELOCITY_LINK_CHANGE) { in velocity_init_registers()
731 if (!(vptr->mii_status & VELOCITY_LINK_FAIL)) in velocity_init_registers()
803 mii_status = velocity_get_opt_media_mode(vptr); in velocity_init_registers()
806 mii_init(vptr, mii_status); in velocity_init_registers()
808 if (velocity_set_media_mode(vptr, mii_status) != VELOCITY_LINK_CHANGE) { in velocity_init_registers()
810 if (!(vptr->mii_status & VELOCITY_LINK_FAIL)) in velocity_init_registers()
[all …]
Dsundance.c576 int mii_status = mdio_read(dev, phyx, MII_BMSR); in sundance_probe1() local
577 if (mii_status != 0xffff && mii_status != 0x0000) { in sundance_probe1()
580 if ((mii_status & 0x0040) == 0) in sundance_probe1()
584 dev->name, phyx, mii_status, np->mii_if.advertising); in sundance_probe1()
Dsis900.c589 u16 mii_status; in sis900_mii_probe() local
594 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe()
596 if (mii_status == 0xffff || mii_status == 0x0000) { in sis900_mii_probe()
619 mii_phy->status = mii_status; in sis900_mii_probe()
630 (mii_status & (MII_STAT_CAN_TX_FDX | MII_STAT_CAN_TX)) ? LAN : HOME; in sis900_mii_probe()
Dyellowfin.c497 int mii_status = mdio_read(ioaddr, phy, 1); in yellowfin_init_one() local
498 if (mii_status != 0xffff && mii_status != 0x0000) { in yellowfin_init_one()
503 dev->name, phy, mii_status, np->advertising); in yellowfin_init_one()
Dsc92031.c325 u32 mii_status; in _sc92031_mii_wait() local
329 mii_status = ioread32(port_base + Miistatus); in _sc92031_mii_wait()
330 } while (mii_status & Mii_StatusBusy); in _sc92031_mii_wait()
332 return mii_status; in _sc92031_mii_wait()
Dvia-rhine.c810 int mii_status = mdio_read(dev, phy_id, 1); in rhine_init_one() local
813 if (mii_status != 0xffff && mii_status != 0x0000) { in rhine_init_one()
818 mii_status, rp->mii_if.advertising, in rhine_init_one()
822 if (mii_status & BMSR_LSTATUS) in rhine_init_one()
Dfec_mpc52xx.h49 u32 mii_status; /* FEC + 0x048 */ member
Depic100.c458 int mii_status = mdio_read(dev, phy, MII_BMSR); in epic_init_one() local
459 if (mii_status != 0xffff && mii_status != 0x0000) { in epic_init_one()
464 phy, mdio_read(dev, phy, 0), mii_status); in epic_init_one()
Dhamachi.c767 int mii_status = mdio_read(dev, phy, MII_BMSR); in hamachi_init_one() local
768 if (mii_status != 0xffff && in hamachi_init_one()
769 mii_status != 0x0000) { in hamachi_init_one()
774 dev->name, phy, mii_status, hmp->mii_if.advertising); in hamachi_init_one()
Dfealnx.c588 int mii_status = mdio_read(dev, phy, 1); in fealnx_init_one() local
590 if (mii_status != 0xffff && mii_status != 0x0000) { in fealnx_init_one()
594 "0x%4.4x.\n", phy, mii_status); in fealnx_init_one()
D3c59x.c1320 int mii_status, phyx; in vortex_probe1() local
1332 mii_status = mdio_read(dev, phyx, MII_BMSR); in vortex_probe1()
1333 if (mii_status && mii_status != 0xffff) { in vortex_probe1()
1337 " status %4x.\n", phyx, mii_status); in vortex_probe1()
1339 if ((mii_status & 0x0040) == 0) in vortex_probe1()
Dstarfire.c847 int mii_status; in starfire_init_one() local
859 mii_status = mdio_read(dev, phy, MII_BMSR); in starfire_init_one()
860 if (mii_status != 0) { in starfire_init_one()
865 dev->name, phy, mii_status, np->mii_if.advertising); in starfire_init_one()
Dforcedeth.c1133 u32 phyinterface, phy_reserved, mii_status, mii_control, mii_control_1000,reg; in phy_init() local
1243 mii_status = mii_rw(dev, np->phyaddr, MII_BMSR, MII_READ); in phy_init()
1244 if (mii_status & PHY_GIGABIT) { in phy_init()
3116 int mii_status; in nv_update_linkspeed() local
3126 mii_status = mii_rw(dev, np->phyaddr, MII_BMSR, MII_READ); in nv_update_linkspeed()
3128 if (!(mii_status & BMSR_LSTATUS)) { in nv_update_linkspeed()
3157 if (!(mii_status & BMSR_ANEGCOMPLETE)) { in nv_update_linkspeed()
4793 int mii_status; in nv_link_test() local
4796 mii_status = mii_rw(dev, np->phyaddr, MII_BMSR, MII_READ); in nv_link_test()
4799 if (!(mii_status & BMSR_LSTATUS)) in nv_link_test()
[all …]
D8139too.c1044 int mii_status = mdio_read(dev, phy, 1); in rtl8139_init_one() local
1045 if (mii_status != 0xffff && mii_status != 0x0000) { in rtl8139_init_one()
1050 dev->name, phy, mii_status, advertising); in rtl8139_init_one()
Dsis190.c1294 u16 mii_status) in sis190_init_phy() argument
1300 phy->status = mii_status; in sis190_init_phy()
1315 ((mii_status & (BMSR_100FULL | BMSR_100HALF)) ? in sis190_init_phy()
Ddl2k.c309 int mii_status = mii_read (dev, i, 1); in find_miiphy() local
310 if (mii_status != 0xffff && mii_status != 0x0000) { in find_miiphy()
Dvia-velocity.h1546 u32 mii_status; member
/drivers/net/tulip/
Dmedia.c471 int mii_status = tulip_mdio_read (dev, phy, MII_BMSR); in tulip_find_mii() local
472 if ((mii_status & 0x8301) == 0x8001 || in tulip_find_mii()
473 ((mii_status & BMSR_100BASE4) == 0 in tulip_find_mii()
474 && (mii_status & 0x7800) != 0)) { in tulip_find_mii()
508 board_idx, phy, mii_reg0, mii_status, mii_advert); in tulip_find_mii()
Dwinbond-840.c449 int mii_status = mdio_read(dev, phy, MII_BMSR); in w840_probe1() local
450 if (mii_status != 0xffff && mii_status != 0x0000) { in w840_probe1()
457 dev->name, np->mii, phy, mii_status, np->mii_if.advertising); in w840_probe1()
/drivers/net/pcmcia/
D3c574_cs.c427 int mii_status; in tc574_config() local
429 mii_status = mdio_read(ioaddr, phy & 0x1f, 1); in tc574_config()
430 if (mii_status != 0xffff) { in tc574_config()
433 phy, mii_status); in tc574_config()
434 if ((mii_status & 0x0040) == 0) in tc574_config()
/drivers/net/bonding/
Dbond_sysfs.c1374 static DEVICE_ATTR(mii_status, S_IRUGO, bonding_show_mii_status, NULL);