Home
last modified time | relevance | path

Searched refs:phy_status (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/uts/common/io/igc/core/
H A Digc_phy.c765 u16 i, phy_status; in igc_wait_autoneg() local
774 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
777 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
780 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igc_wait_autoneg()
804 u16 i, phy_status; in igc_phy_has_link_generic() local
816 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link_generic()
827 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link_generic()
830 if (phy_status & MII_SR_LINK_STATUS) in igc_phy_has_link_generic()
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_gld.c1293 uint16_t phy_status, phy_ext_status; in igb_m_propinfo() local
1323 (void) e1000_read_phy_reg(hw, PHY_STATUS, &phy_status); in igb_m_propinfo()
1325 ((phy_status & MII_SR_100X_FD_CAPS) || in igb_m_propinfo()
1326 (phy_status & MII_SR_100T2_FD_CAPS)) ? 1 : 0); in igb_m_propinfo()
1335 (void) e1000_read_phy_reg(hw, PHY_STATUS, &phy_status); in igb_m_propinfo()
1337 ((phy_status & MII_SR_100X_HD_CAPS) || in igb_m_propinfo()
1338 (phy_status & MII_SR_100T2_HD_CAPS)) ? 1 : 0); in igb_m_propinfo()
1347 (void) e1000_read_phy_reg(hw, PHY_STATUS, &phy_status); in igb_m_propinfo()
1349 (phy_status & MII_SR_10T_FD_CAPS) ? 1 : 0); in igb_m_propinfo()
1360 (phy_status & MII_SR_10T_HD_CAPS) ? 1 : 0); in igb_m_propinfo()
[all …]
H A Digb_main.c5097 uint16_t phy_status; in igb_get_phy_state() local
5109 (void) e1000_read_phy_reg(hw, PHY_STATUS, &phy_status); in igb_get_phy_state()
5119 (phy_status & MII_SR_AUTONEG_CAPS) ? 1 : 0; in igb_get_phy_state()
5131 (phy_status & MII_SR_100T4_CAPS) ? 1 : 0; in igb_get_phy_state()
5132 igb->param_100fdx_cap = ((phy_status & MII_SR_100X_FD_CAPS) || in igb_get_phy_state()
5133 (phy_status & MII_SR_100T2_FD_CAPS)) ? 1 : 0; in igb_get_phy_state()
5134 igb->param_100hdx_cap = ((phy_status & MII_SR_100X_HD_CAPS) || in igb_get_phy_state()
5135 (phy_status & MII_SR_100T2_HD_CAPS)) ? 1 : 0; in igb_get_phy_state()
5137 (phy_status & MII_SR_10T_FD_CAPS) ? 1 : 0; in igb_get_phy_state()
5139 (phy_status & MII_SR_10T_HD_CAPS) ? 1 : 0; in igb_get_phy_state()
[all …]
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_xmii.c163 uint16_t phy_status; in nge_phy_probe() local
182 phy_status = nge_mii_get16(ngep, MII_STATUS); in nge_phy_probe()
183 phy_status = nge_mii_get16(ngep, MII_STATUS); in nge_phy_probe()
184 if (phy_status != 0xffff) { in nge_phy_probe()
190 phy_status, ngep->phy_id)); in nge_phy_probe()
/illumos-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_isr.c383 uint_t phy_status; in hci1394_isr_self_id() local
405 status = hci1394_ohci_phy_read(soft_state->ohci, 5, &phy_status); in hci1394_isr_self_id()
407 phy_status |= OHCI_PHY_LOOP_ERR | OHCI_PHY_PWRFAIL_ERR | in hci1394_isr_self_id()
410 phy_status); in hci1394_isr_self_id()
H A Dhci1394_ohci.c2058 uint_t phy_status; in hci1394_ohci_isr_phy() local
2079 status = hci1394_ohci_phy_read(ohci_hdl, 5, &phy_status); in hci1394_ohci_isr_phy()
2084 if (phy_status & OHCI_PHY_LOOP_ERR) { in hci1394_ohci_isr_phy()
2089 if (phy_status & OHCI_PHY_PWRFAIL_ERR) { in hci1394_ohci_isr_phy()
2092 if (phy_status & OHCI_PHY_TIMEOUT_ERR) { in hci1394_ohci_isr_phy()
2095 if (phy_status & OHCI_PHY_PORTEVT_ERR) { in hci1394_ohci_isr_phy()
2100 status = hci1394_ohci_phy_write(ohci_hdl, 5, phy_status); in hci1394_ohci_isr_phy()
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_main.c3741 (Adapter->phy_status & MII_SR_100T2_FD_CAPS)) in e1000g_m_propinfo()
3785 (Adapter->phy_status & MII_SR_AUTONEG_CAPS) in e1000g_m_propinfo()
5058 uint16_t phy_status; in e1000g_smartspeed() local
5080 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) in e1000g_smartspeed()
5084 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) in e1000g_smartspeed()
5461 (Adapter->phy_status & MII_SR_100T2_FD_CAPS)) in e1000g_loopback_ioctl()
5463 if (Adapter->phy_status & MII_SR_10T_FD_CAPS) in e1000g_loopback_ioctl()
5486 (Adapter->phy_status & MII_SR_100T2_FD_CAPS)) in e1000g_loopback_ioctl()
5488 if (Adapter->phy_status & MII_SR_10T_FD_CAPS) in e1000g_loopback_ioctl()
5512 (Adapter->phy_status & MII_SR_100T2_FD_CAPS)) in e1000g_loopback_ioctl()
[all …]
H A De1000g_sw.h980 uint16_t phy_status; /* contents of PHY_STATUS */ member
/illumos-gate/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_82598.c814 s32 phy_status = IXGBE_SUCCESS; in ixgbe_reset_hw_82598() local
866 phy_status = hw->phy.ops.init(hw); in ixgbe_reset_hw_82598()
867 if (phy_status == IXGBE_ERR_SFP_NOT_SUPPORTED) in ixgbe_reset_hw_82598()
869 if (phy_status == IXGBE_ERR_SFP_NOT_PRESENT) in ixgbe_reset_hw_82598()
935 if (phy_status != IXGBE_SUCCESS) in ixgbe_reset_hw_82598()
936 status = phy_status; in ixgbe_reset_hw_82598()
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/
H A Dbnx_hw_phy.c2745 u32_t phy_status; in get_copper_phy_link() local
2761 (void) lm_mread(pdev, pdev->params.phy_addr, PHY_STATUS_REG, &phy_status); in get_copper_phy_link()
2763 if((phy_status & PHY_STATUS_LINK_PASS) == 0) in get_copper_phy_link()
3052 u32_t phy_status; in serdes_fallback() local
3133 phy_status = mii_get_serdes_link_status(pdev); in serdes_fallback()
3135 if(phy_status & PHY_STATUS_LINK_PASS) in serdes_fallback()
3479 u32_t phy_status; in get_5706_serdes_link() local
3487 phy_status = mii_get_serdes_link_status(pdev); in get_5706_serdes_link()
3489 if(phy_status & PHY_STATUS_LINK_PASS) in get_5706_serdes_link()
3704 u32_t val, phy_ctrl, phy_status; in lm_init_mac_link() local
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dtlan.c1753 u16 phy_status; local
1758 TLan_MiiReadReg(nic, phy, MII_GEN_STS, &phy_status);
1761 if (!(phy_status & MII_GS_LINK)) {
1774 if ((phy_status & MII_GS_LINK) && !priv->link) {
H A Dtg3.c471 uint32_t phy_status; in tg3_phy_reset() local
474 err = tg3_readphy(tp, MII_BMSR, &phy_status); in tg3_phy_reset()
475 err |= tg3_readphy(tp, MII_BMSR, &phy_status); in tg3_phy_reset()
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_phy.c2314 u16 i, phy_status; in e1000_wait_autoneg() local
2323 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_wait_autoneg()
2326 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_wait_autoneg()
2329 if (phy_status & MII_SR_AUTONEG_COMPLETE) in e1000_wait_autoneg()
2353 u16 i, phy_status; in e1000_phy_has_link_generic() local
2365 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_phy_has_link_generic()
2376 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_phy_has_link_generic()
2379 if (phy_status & MII_SR_LINK_STATUS) in e1000_phy_has_link_generic()
/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_mii.c566 uint16_t phy_status; in bge_restart_copper() local
659 phy_status = bge_mii_get16(bgep, MII_STATUS); in bge_restart_copper()
661 BGE_DEBUG(("bge_restart_copper: status 0x%x", phy_status)); in bge_restart_copper()