Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/via/
H A Dvia-velocity.c617 vptr->mii_status = status; in velocity_get_opt_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()
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()
960 if (mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()
965 if (mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()
1333 int i, mii_status; in velocity_init_registers() local
1430 mii_init(vptr, mii_status); in velocity_init_registers()
1857 if (!(vptr->mii_status & VELOCITY_DUPLEX_FULL) && (vptr->mii_status & VELOCITY_SPEED_10)) in velocity_error()
[all …]
H A Dvia-rhine.c999 int mii_status = mdio_read(dev, phy_id, 1); in rhine_init_one_common() local
1002 if (mii_status != 0xffff && mii_status != 0x0000) { in rhine_init_one_common()
1007 mii_status, rp->mii_if.advertising, in rhine_init_one_common()
1011 if (mii_status & BMSR_LSTATUS) in rhine_init_one_common()
H A Dvia-velocity.h1426 u32 mii_status; member
/openbmc/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond_options.sh218mii_status=$(cmd_jq "ip -n ${s_ns} -j -d link show eth$i" ".[].linkinfo.info_slave_data.mii_status…
219 if [ ${mii_status} != "UP" ]; then
221 log_test "arp_validate" "interface eth$i mii_status $mii_status"
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A 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()
H A Dwinbond-840.c438 int mii_status = mdio_read(dev, phy, MII_BMSR); in w840_probe1() local
439 if (mii_status != 0xffff && mii_status != 0x0000) { in w840_probe1()
446 np->mii, phy, mii_status, in w840_probe1()
/openbmc/u-boot/drivers/net/
H A Darmada100_fec.c369 u16 tmp, mii_status; in ethernet_phy_detect() local
373 if (miiphy_read(dev->name, addr, MII_BMSR, &mii_status) != 0) in ethernet_phy_detect()
378 if (mii_status == 0 || mii_status == 0xffff) in ethernet_phy_detect()
/openbmc/linux/drivers/net/ethernet/3com/
H A D3c574_cs.c395 int mii_status; in tc574_config() local
397 mii_status = mdio_read(ioaddr, phy & 0x1f, 1); in tc574_config()
398 if (mii_status != 0xffff) { in tc574_config()
402 phy, mii_status); in tc574_config()
403 if ((mii_status & 0x0040) == 0) in tc574_config()
H A D3c59x.c1396 int mii_status, phyx; in vortex_probe1() local
1408 mii_status = mdio_read(dev, phyx, MII_BMSR); in vortex_probe1()
1409 if (mii_status && mii_status != 0xffff) { in vortex_probe1()
1413 phyx, mii_status); in vortex_probe1()
1415 if ((mii_status & 0x0040) == 0) in vortex_probe1()
/openbmc/linux/drivers/net/bonding/
H A Dbond_sysfs_slave.c38 static SLAVE_ATTR_RO(mii_status);
H A Dbond_sysfs.c514 static DEVICE_ATTR(mii_status, 0444, bonding_show_mii_status, NULL);
/openbmc/linux/drivers/net/ethernet/silan/
H A 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()
/openbmc/linux/drivers/net/ethernet/freescale/
H A Dfec_mpc52xx.h49 u32 mii_status; /* FEC + 0x048 */ member
/openbmc/linux/drivers/net/ethernet/packetengines/
H A 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()
502 phy, mii_status, np->advertising); in yellowfin_init_one()
H A Dhamachi.c757 int mii_status = mdio_read(dev, phy, MII_BMSR); in hamachi_init_one() local
758 if (mii_status != 0xffff && in hamachi_init_one()
759 mii_status != 0x0000) { in hamachi_init_one()
764 dev->name, phy, mii_status, hmp->mii_if.advertising); in hamachi_init_one()
/openbmc/linux/drivers/net/ethernet/sis/
H A Dsis900.c618 u16 mii_status; in sis900_mii_probe() local
623 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe()
625 if (mii_status == 0xffff || mii_status == 0x0000) { in sis900_mii_probe()
647 mii_phy->status = mii_status; in sis900_mii_probe()
658 (mii_status & (MII_STAT_CAN_TX_FDX | MII_STAT_CAN_TX)) ? LAN : HOME; in sis900_mii_probe()
H A 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()
/openbmc/linux/drivers/net/ethernet/smsc/
H A Depic100.c443 int mii_status = mdio_read(dev, phy, MII_BMSR); in epic_init_one() local
444 if (mii_status != 0xffff && mii_status != 0x0000) { in epic_init_one()
449 phy, mdio_read(dev, phy, 0), mii_status); in epic_init_one()
/openbmc/linux/drivers/net/ethernet/dlink/
H A Dsundance.c602 int mii_status = mdio_read(dev, phyx, MII_BMSR); in sundance_probe1() local
603 if (mii_status != 0xffff && mii_status != 0x0000) { in sundance_probe1()
606 if ((mii_status & 0x0040) == 0) in sundance_probe1()
610 dev->name, phyx, mii_status, np->mii_if.advertising); in sundance_probe1()
H A 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()
/openbmc/linux/drivers/net/ethernet/nvidia/
H A Dforcedeth.c1391 u32 mii_status, mii_control, mii_control_1000, reg; in phy_init() local
1442 mii_status = mii_rw(dev, np->phyaddr, MII_BMSR, MII_READ); in phy_init()
1443 if (mii_status & PHY_GIGABIT) { in phy_init()
3308 int mii_status; in nv_force_linkspeed() local
3315 if (mii_status & PHY_GIGABIT) { in nv_force_linkspeed()
3388 int mii_status; in nv_update_linkspeed() local
3414 if (!(mii_status & BMSR_LSTATUS)) { in nv_update_linkspeed()
3439 if (!(mii_status & BMSR_ANEGCOMPLETE)) { in nv_update_linkspeed()
5034 int mii_status; in nv_link_test() local
5040 if (!(mii_status & BMSR_LSTATUS)) in nv_link_test()
[all …]
/openbmc/linux/drivers/net/ethernet/
H A Dfealnx.c572 int mii_status = mdio_read(dev, phy, 1); in fealnx_init_one() local
574 if (mii_status != 0xffff && mii_status != 0x0000) { in fealnx_init_one()
578 "0x%4.4x.\n", phy, mii_status); in fealnx_init_one()
/openbmc/linux/drivers/net/ethernet/adaptec/
H A Dstarfire.c789 int mii_status; in starfire_init_one() local
801 mii_status = mdio_read(dev, phy, MII_BMSR); in starfire_init_one()
802 if (mii_status != 0) { in starfire_init_one()
807 dev->name, phy, mii_status, np->mii_if.advertising); in starfire_init_one()
/openbmc/linux/drivers/net/ethernet/realtek/
H A D8139too.c1060 int mii_status = mdio_read(dev, phy, 1); in rtl8139_init_one() local
1061 if (mii_status != 0xffff && mii_status != 0x0000) { in rtl8139_init_one()
1065 phy, mii_status, advertising); in rtl8139_init_one()