Home
last modified time | relevance | path

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

/freebsd-12-stable/sys/dev/igc/
Digc_phy.c768 u16 i, phy_status; in igc_wait_autoneg() local
777 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
780 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
783 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igc_wait_autoneg()
807 u16 i, phy_status; in igc_phy_has_link_generic() local
819 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link_generic()
830 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link_generic()
833 if (phy_status & MII_SR_LINK_STATUS) in igc_phy_has_link_generic()
/freebsd-12-stable/sys/contrib/octeon-sdk/
Dcvmx-helper-board.c653 int phy_status; in __get_marvell_phy_link_state() local
657 phy_status = cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, 17); in __get_marvell_phy_link_state()
662 if ((phy_status & (1<<11)) == 0) in __get_marvell_phy_link_state()
666 phy_status |= 1<<11; in __get_marvell_phy_link_state()
671 if (phy_status & (1<<11)) in __get_marvell_phy_link_state()
674 result.s.full_duplex = ((phy_status>>13)&1); in __get_marvell_phy_link_state()
675 switch ((phy_status>>14)&3) in __get_marvell_phy_link_state()
701 int phy_status; in __get_broadcom_phy_link_state() local
706 phy_status = cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, 0x19); in __get_broadcom_phy_link_state()
707 switch ((phy_status>>8) & 0x7) in __get_broadcom_phy_link_state()
Dcvmx-spi4000.c396 static int phy_status[10] = {0,}; in cvmx_spi4000_check_speed() local
455 if (read_status != phy_status[port]) in cvmx_spi4000_check_speed()
457 phy_status[port] = read_status; in cvmx_spi4000_check_speed()
Dcvmx-mgmt-port.c246 cvmx_mdio_phy_reg_status_t phy_status; in cvmx_mgmt_port_initialize() local
248phy_status.u16 = cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, CVMX_MDIO_PHY_REG_STATUS); in cvmx_mgmt_port_initialize()
249 if (phy_status.s.capable_extended_status == 0) // MII mode in cvmx_mgmt_port_initialize()
252 && phy_status.s.capable_extended_status) // RGMII mode in cvmx_mgmt_port_initialize()
/freebsd-12-stable/sys/dev/ixgbe/
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()
/freebsd-12-stable/sys/dev/extres/phy/
Dphy.h83 int phy_status(phy_t phy, int *value);
Dphy.c355 phy_status(phy_t phy, int *status) in phy_status() function
/freebsd-12-stable/sys/dev/e1000/
De1000_phy.c2325 u16 i, phy_status; in e1000_wait_autoneg() local
2334 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_wait_autoneg()
2337 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_wait_autoneg()
2340 if (phy_status & MII_SR_AUTONEG_COMPLETE) in e1000_wait_autoneg()
2364 u16 i, phy_status; in e1000_phy_has_link_generic() local
2376 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_phy_has_link_generic()
2387 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_phy_has_link_generic()
2390 if (phy_status & MII_SR_LINK_STATUS) in e1000_phy_has_link_generic()
/freebsd-12-stable/sys/dev/otus/
Dif_otus.c1538 struct ar_rx_phystatus *phy_status = NULL; in otus_sub_rxeof() local
1625 if (len < sizeof(*phy_status)) { in otus_sub_rxeof()
1638 phy_status = (struct ar_rx_phystatus *) in otus_sub_rxeof()
1639 (buf + len - sizeof(*phy_status)); in otus_sub_rxeof()
1640 len -= sizeof(*phy_status); in otus_sub_rxeof()
1731 if (phy_status != NULL) { in otus_sub_rxeof()
1733 rxs.c_rssi = phy_status->rssi; in otus_sub_rxeof()
/freebsd-12-stable/sys/dev/axgbe/
Dxgbe.h632 void (*phy_status)(struct xgbe_prv_data *); member
Dxgbe-drv.c335 pdata->phy_if.phy_status(pdata); in xgbe_service()
Dxgbe-mdio.c1172 phy_if->phy_status = xgbe_phy_status; in xgbe_init_function_ptrs_phy()
/freebsd-12-stable/sys/dev/isci/scil/
Dscic_sds_controller.c1741 SCI_STATUS phy_status; in scic_sds_controller_stop_phys() local
1747 phy_status = scic_phy_stop(&this_controller->phy_table[index]); in scic_sds_controller_stop_phys()
1750 (phy_status != SCI_SUCCESS) in scic_sds_controller_stop_phys()
1751 && (phy_status != SCI_FAILURE_INVALID_STATE) in scic_sds_controller_stop_phys()
1760 this_controller->phy_table[index].phy_index, phy_status in scic_sds_controller_stop_phys()