Lines Matching refs:phy_ctrl
1611 u16 phy_ctrl; in e1000_copper_link_autoneg() local
1637 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in e1000_copper_link_autoneg()
1641 phy_ctrl |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG); in e1000_copper_link_autoneg()
1642 ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_ctrl); in e1000_copper_link_autoneg()
1997 void e1000_phy_force_speed_duplex_setup(struct e1000_hw *hw, u16 *phy_ctrl) in e1000_phy_force_speed_duplex_setup() argument
2016 *phy_ctrl &= ~MII_CR_AUTO_NEG_EN; in e1000_phy_force_speed_duplex_setup()
2021 *phy_ctrl &= ~MII_CR_FULL_DUPLEX; in e1000_phy_force_speed_duplex_setup()
2025 *phy_ctrl |= MII_CR_FULL_DUPLEX; in e1000_phy_force_speed_duplex_setup()
2032 *phy_ctrl |= MII_CR_SPEED_100; in e1000_phy_force_speed_duplex_setup()
2033 *phy_ctrl &= ~MII_CR_SPEED_1000; in e1000_phy_force_speed_duplex_setup()
2037 *phy_ctrl &= ~(MII_CR_SPEED_1000 | MII_CR_SPEED_100); in e1000_phy_force_speed_duplex_setup()
2804 u16 phy_ctrl; in e1000_phy_sw_reset_generic() local
2811 ret_val = hw->phy.ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in e1000_phy_sw_reset_generic()
2815 phy_ctrl |= MII_CR_RESET; in e1000_phy_sw_reset_generic()
2816 ret_val = hw->phy.ops.write_reg(hw, PHY_CONTROL, phy_ctrl); in e1000_phy_sw_reset_generic()