Lines Matching refs:phy_data

110 static int e1000_read_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t *phy_data);
111 static int e1000_read_phy_reg_ex(struct e1000_hw *hw, uint32_t reg_addr, uint16_t *phy_data);
112 static int e1000_write_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t phy_data);
113 static int e1000_write_phy_reg_ex(struct e1000_hw *hw, uint32_t reg_addr, uint16_t phy_data);
1546 uint16_t phy_data;
1601 &phy_data)))
1607 phy_data &= ~(IGP01E1000_PSCR_AUTO_MDIX |
1613 phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX;
1617 phy_data &= ~IGP01E1000_PSCR_FORCE_MDI_MDIX;
1620 phy_data |= IGP01E1000_PSCR_FORCE_MDI_MDIX;
1624 phy_data |= IGP01E1000_PSCR_AUTO_MDIX;
1629 phy_data)))
1649 &phy_data)))
1651 phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED;
1654 phy_data)))
1658 &phy_data)))
1660 phy_data &= ~CR_1000T_MS_ENABLE;
1662 phy_data)))
1667 &phy_data)))
1672 hw->original_master_slave = (phy_data & CR_1000T_MS_ENABLE) ?
1673 ((phy_data & CR_1000T_MS_VALUE) ?
1680 phy_data |= (CR_1000T_MS_ENABLE | CR_1000T_MS_VALUE);
1683 phy_data |= CR_1000T_MS_ENABLE;
1684 phy_data &= ~(CR_1000T_MS_VALUE);
1687 phy_data &= ~CR_1000T_MS_ENABLE;
1694 phy_data)))
1699 &phy_data)))
1702 phy_data |= M88E1000_PSCR_ASSERT_CRS_ON_TX;
1712 phy_data &= ~M88E1000_PSCR_AUTO_X_MODE;
1716 phy_data |= M88E1000_PSCR_MDI_MANUAL_MODE;
1719 phy_data |= M88E1000_PSCR_MDIX_MANUAL_MODE;
1722 phy_data |= M88E1000_PSCR_AUTO_X_1000T;
1727 phy_data |= M88E1000_PSCR_AUTO_X_MODE;
1739 phy_data &= ~M88E1000_PSCR_POLARITY_REVERSAL;
1741 phy_data)))
1748 &phy_data)))
1751 phy_data |= M88E1000_EPSCR_TX_CLK_25;
1757 phy_data &= ~(M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK |
1759 phy_data |= (M88E1000_EPSCR_MASTER_DOWNSHIFT_1X |
1763 phy_data)))
1812 if((ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data)))
1815 phy_data |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG);
1816 if((ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data)))
1844 if((ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data)))
1846 if((ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data)))
1849 if(phy_data & MII_SR_LINK_STATUS) {
2063 uint16_t phy_data;
2079 &phy_data)))
2082 if(phy_data & IGP01E1000_PSSR_FULL_DUPLEX) ctrl |= E1000_CTRL_FD;
2090 if((phy_data & IGP01E1000_PSSR_SPEED_MASK) ==
2093 else if((phy_data & IGP01E1000_PSSR_SPEED_MASK) ==
2098 &phy_data)))
2101 if(phy_data & M88E1000_PSSR_DPLX) ctrl |= E1000_CTRL_FD;
2109 if((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_1000MBS)
2111 else if((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_100MBS)
2408 uint16_t phy_data;
2440 if((ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data)))
2442 if((ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data)))
2445 if(phy_data & MII_SR_LINK_STATUS) {
2643 uint16_t phy_data;
2653 if((ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data)))
2655 if((ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data)))
2657 if(phy_data & MII_SR_AUTONEG_COMPLETE) {
2815 uint16_t *phy_data)
2829 phy_data);
2837 uint16_t *phy_data)
2875 *phy_data = (uint16_t) mdic;
2903 *phy_data = e1000_shift_in_mdi_bits(hw);
2918 uint16_t phy_data)
2932 phy_data);
2940 uint16_t phy_data)
2958 mdic = (((uint32_t) phy_data) |
2992 mdic |= (uint32_t) phy_data;
3052 uint16_t phy_data;
3057 if((ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data)))
3060 phy_data |= MII_CR_RESET;
3061 if((ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data)))