Home
last modified time | relevance | path

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

/linux-4.1.27/arch/mips/cavium-octeon/executive/
Dcvmx-helper-board.c308 int phy_status = in __cvmx_helper_board_link_get() local
311 switch ((phy_status >> 8) & 0x7) { in __cvmx_helper_board_link_get()
360 int phy_status = in __cvmx_helper_board_link_get() local
369 if ((phy_status & (1 << 11)) == 0) { in __cvmx_helper_board_link_get()
374 phy_status |= 1 << 11; in __cvmx_helper_board_link_get()
382 if (phy_status & (1 << 11)) { in __cvmx_helper_board_link_get()
384 result.s.full_duplex = ((phy_status >> 13) & 1); in __cvmx_helper_board_link_get()
385 switch ((phy_status >> 14) & 3) { in __cvmx_helper_board_link_get()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82598.c701 s32 phy_status = 0; in ixgbe_reset_hw_82598() local
751 phy_status = hw->phy.ops.init(hw); in ixgbe_reset_hw_82598()
752 if (phy_status == IXGBE_ERR_SFP_NOT_SUPPORTED) in ixgbe_reset_hw_82598()
753 return phy_status; in ixgbe_reset_hw_82598()
754 if (phy_status == IXGBE_ERR_SFP_NOT_PRESENT) in ixgbe_reset_hw_82598()
819 if (phy_status) in ixgbe_reset_hw_82598()
820 status = phy_status; in ixgbe_reset_hw_82598()
/linux-4.1.27/drivers/scsi/mvsas/
Dmv_64xx.c597 (phy->phy_status & PHY_NEG_SPP_PHYS_LINK_RATE_MASK) >> in mvs_64xx_fix_phy_info()
601 (phy->phy_status & in mvs_64xx_fix_phy_info()
604 (phy->phy_status & in mvs_64xx_fix_phy_info()
627 if (((phy->phy_status & PHY_NEG_SPP_PHYS_LINK_RATE_MASK) >> in mvs_64xx_phy_work_around()
Dmv_94xx.c34 u32 phy_status; in mvs_94xx_detect_porttype() local
38 phy_status = ((reg & 0x3f0000) >> 16) & 0xff; in mvs_94xx_detect_porttype()
40 switch (phy_status) { in mvs_94xx_detect_porttype()
837 mv_dprintk("get all reg link rate is 0x%x\n", phy->phy_status); in mvs_94xx_fix_phy_info()
839 (phy->phy_status & PHY_NEG_SPP_PHYS_LINK_RATE_MASK) >> in mvs_94xx_fix_phy_info()
Dmv_sas.h230 u32 phy_status; member
Dmv_sas.c1022 phy->phy_status = mvs_is_phy_ready(mvi, i); in mvs_update_phyinfo()
1025 if (phy->phy_status) { in mvs_update_phyinfo()
2025 phy->phy_status = mvs_is_phy_ready(mvi, phy_no); in mvs_int_port()
2027 if (phy->phy_status) { in mvs_int_port()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
De1000_phy.c1608 u16 i, phy_status; in igb_wait_autoneg() local
1612 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_wait_autoneg()
1615 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_wait_autoneg()
1618 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igb_wait_autoneg()
1642 u16 i, phy_status; in igb_phy_has_link() local
1649 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_phy_has_link()
1660 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_phy_has_link()
1663 if (phy_status & MII_SR_LINK_STATUS) in igb_phy_has_link()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dphy.c1711 u16 i, phy_status; in e1000_wait_autoneg() local
1715 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1718 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1721 if (phy_status & BMSR_ANEGCOMPLETE) in e1000_wait_autoneg()
1745 u16 i, phy_status; in e1000e_phy_has_link_generic() local
1752 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1763 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1766 if (phy_status & BMSR_LSTATUS) in e1000e_phy_has_link_generic()
Dnetdev.c1104 u16 phy_status, phy_1000t_status, phy_ext_status; in e1000_print_hw_hang() local
1136 e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_print_hw_hang()
1161 phy_status, phy_1000t_status, phy_ext_status, pci_status); in e1000_print_hw_hang()
/linux-4.1.27/drivers/pci/host/
Dpcie-spear13xx.c48 u32 phy_status; /* cr11 */ member
/linux-4.1.27/drivers/scsi/isci/
Dhost.c1207 enum sci_status phy_status; in sci_controller_stop_phys() local
1212 phy_status = sci_phy_stop(&ihost->phys[index]); in sci_controller_stop_phys()
1214 if (phy_status != SCI_SUCCESS && in sci_controller_stop_phys()
1215 phy_status != SCI_FAILURE_INVALID_STATE) { in sci_controller_stop_phys()
1222 ihost->phys[index].phy_index, phy_status); in sci_controller_stop_phys()
/linux-4.1.27/drivers/net/ethernet/ti/
Dtlan.c2774 u16 phy_status; in tlan_phy_monitor() local
2779 tlan_mii_read_reg(dev, phy, MII_GEN_STS, &phy_status); in tlan_phy_monitor()
2782 if (!(phy_status & MII_GS_LINK)) { in tlan_phy_monitor()
2807 if ((phy_status & MII_GS_LINK) && !netif_carrier_ok(dev)) { in tlan_phy_monitor()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000_main.c4679 u16 phy_status; in e1000_smartspeed() local
4690 e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_status); in e1000_smartspeed()
4691 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) return; in e1000_smartspeed()
4692 e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_status); in e1000_smartspeed()
4693 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) return; in e1000_smartspeed()