Lines Matching refs:phy_data

138 			      uint16_t * phy_data);
140 uint16_t phy_data);
2346 uint16_t phy_data; in e1000_copper_link_preconfig() local
2383 &phy_data); in e1000_copper_link_preconfig()
2384 phy_data |= 0x00000008; in e1000_copper_link_preconfig()
2386 phy_data); in e1000_copper_link_preconfig()
2417 uint16_t phy_data; in e1000_set_d3_lplu_state() local
2430 &phy_data); in e1000_set_d3_lplu_state()
2440 &phy_data); in e1000_set_d3_lplu_state()
2448 phy_data &= ~IGP01E1000_GMII_FLEX_SPD; in e1000_set_d3_lplu_state()
2450 phy_data); in e1000_set_d3_lplu_state()
2458 phy_data &= ~IGP02E1000_PM_D3_LPLU; in e1000_set_d3_lplu_state()
2460 IGP02E1000_PHY_POWER_MGMT, phy_data); in e1000_set_d3_lplu_state()
2472 IGP01E1000_PHY_PORT_CONFIG, &phy_data); in e1000_set_d3_lplu_state()
2476 phy_data |= IGP01E1000_PSCFR_SMART_SPEED; in e1000_set_d3_lplu_state()
2478 IGP01E1000_PHY_PORT_CONFIG, phy_data); in e1000_set_d3_lplu_state()
2483 IGP01E1000_PHY_PORT_CONFIG, &phy_data); in e1000_set_d3_lplu_state()
2487 phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED; in e1000_set_d3_lplu_state()
2489 IGP01E1000_PHY_PORT_CONFIG, phy_data); in e1000_set_d3_lplu_state()
2500 phy_data |= IGP01E1000_GMII_FLEX_SPD; in e1000_set_d3_lplu_state()
2502 IGP01E1000_GMII_FIFO, phy_data); in e1000_set_d3_lplu_state()
2510 phy_data |= IGP02E1000_PM_D3_LPLU; in e1000_set_d3_lplu_state()
2512 IGP02E1000_PHY_POWER_MGMT, phy_data); in e1000_set_d3_lplu_state()
2520 &phy_data); in e1000_set_d3_lplu_state()
2524 phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED; in e1000_set_d3_lplu_state()
2526 phy_data); in e1000_set_d3_lplu_state()
2552 uint16_t phy_data; in e1000_set_d0_lplu_state() local
2564 &phy_data); in e1000_set_d0_lplu_state()
2577 phy_data &= ~IGP02E1000_PM_D0_LPLU; in e1000_set_d0_lplu_state()
2579 IGP02E1000_PHY_POWER_MGMT, phy_data); in e1000_set_d0_lplu_state()
2593 IGP01E1000_PHY_PORT_CONFIG, &phy_data); in e1000_set_d0_lplu_state()
2597 phy_data |= IGP01E1000_PSCFR_SMART_SPEED; in e1000_set_d0_lplu_state()
2599 IGP01E1000_PHY_PORT_CONFIG, phy_data); in e1000_set_d0_lplu_state()
2604 IGP01E1000_PHY_PORT_CONFIG, &phy_data); in e1000_set_d0_lplu_state()
2608 phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED; in e1000_set_d0_lplu_state()
2610 IGP01E1000_PHY_PORT_CONFIG, phy_data); in e1000_set_d0_lplu_state()
2625 phy_data |= IGP02E1000_PM_D0_LPLU; in e1000_set_d0_lplu_state()
2627 IGP02E1000_PHY_POWER_MGMT, phy_data); in e1000_set_d0_lplu_state()
2637 IGP01E1000_PHY_PORT_CONFIG, &phy_data); in e1000_set_d0_lplu_state()
2641 phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED; in e1000_set_d0_lplu_state()
2643 IGP01E1000_PHY_PORT_CONFIG, phy_data); in e1000_set_d0_lplu_state()
2661 uint16_t phy_data; in e1000_copper_link_igp_setup() local
2701 ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); in e1000_copper_link_igp_setup()
2708 phy_data &= ~(IGP01E1000_PSCR_AUTO_MDIX in e1000_copper_link_igp_setup()
2714 phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX; in e1000_copper_link_igp_setup()
2718 phy_data &= ~IGP01E1000_PSCR_FORCE_MDI_MDIX; in e1000_copper_link_igp_setup()
2721 phy_data |= IGP01E1000_PSCR_FORCE_MDI_MDIX; in e1000_copper_link_igp_setup()
2725 phy_data |= IGP01E1000_PSCR_AUTO_MDIX; in e1000_copper_link_igp_setup()
2729 ret_val = e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); in e1000_copper_link_igp_setup()
2749 IGP01E1000_PHY_PORT_CONFIG, &phy_data); in e1000_copper_link_igp_setup()
2752 phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED; in e1000_copper_link_igp_setup()
2754 IGP01E1000_PHY_PORT_CONFIG, phy_data); in e1000_copper_link_igp_setup()
2759 &phy_data); in e1000_copper_link_igp_setup()
2762 phy_data &= ~CR_1000T_MS_ENABLE; in e1000_copper_link_igp_setup()
2764 phy_data); in e1000_copper_link_igp_setup()
2769 ret_val = e1000_read_phy_reg(hw, PHY_1000T_CTRL, &phy_data); in e1000_copper_link_igp_setup()
2774 hw->original_master_slave = (phy_data & CR_1000T_MS_ENABLE) ? in e1000_copper_link_igp_setup()
2775 ((phy_data & CR_1000T_MS_VALUE) ? in e1000_copper_link_igp_setup()
2782 phy_data |= (CR_1000T_MS_ENABLE | CR_1000T_MS_VALUE); in e1000_copper_link_igp_setup()
2785 phy_data |= CR_1000T_MS_ENABLE; in e1000_copper_link_igp_setup()
2786 phy_data &= ~(CR_1000T_MS_VALUE); in e1000_copper_link_igp_setup()
2789 phy_data &= ~CR_1000T_MS_ENABLE; in e1000_copper_link_igp_setup()
2793 ret_val = e1000_write_phy_reg(hw, PHY_1000T_CTRL, phy_data); in e1000_copper_link_igp_setup()
2883 uint16_t phy_data; in e1000_copper_link_ggp_setup() local
2891 GG82563_PHY_MAC_SPEC_CTRL, &phy_data); in e1000_copper_link_ggp_setup()
2895 phy_data |= GG82563_MSCR_ASSERT_CRS_ON_TX; in e1000_copper_link_ggp_setup()
2897 phy_data |= GG82563_MSCR_TX_CLK_1000MBPS_25MHZ; in e1000_copper_link_ggp_setup()
2900 GG82563_PHY_MAC_SPEC_CTRL, phy_data); in e1000_copper_link_ggp_setup()
2912 GG82563_PHY_SPEC_CTRL, &phy_data); in e1000_copper_link_ggp_setup()
2916 phy_data &= ~GG82563_PSCR_CROSSOVER_MODE_MASK; in e1000_copper_link_ggp_setup()
2920 phy_data |= GG82563_PSCR_CROSSOVER_MODE_MDI; in e1000_copper_link_ggp_setup()
2923 phy_data |= GG82563_PSCR_CROSSOVER_MODE_MDIX; in e1000_copper_link_ggp_setup()
2927 phy_data |= GG82563_PSCR_CROSSOVER_MODE_AUTO; in e1000_copper_link_ggp_setup()
2937 phy_data &= ~GG82563_PSCR_POLARITY_REVERSAL_DISABLE; in e1000_copper_link_ggp_setup()
2939 GG82563_PHY_SPEC_CTRL, phy_data); in e1000_copper_link_ggp_setup()
2962 GG82563_PHY_SPEC_CTRL_2, &phy_data); in e1000_copper_link_ggp_setup()
2966 phy_data &= ~GG82563_PSCR2_REVERSE_AUTO_NEG; in e1000_copper_link_ggp_setup()
2968 GG82563_PHY_SPEC_CTRL_2, phy_data); in e1000_copper_link_ggp_setup()
2978 GG82563_PHY_PWR_MGMT_CTRL, &phy_data); in e1000_copper_link_ggp_setup()
2988 phy_data |= GG82563_PMCR_ENABLE_ELECTRICAL_IDLE; in e1000_copper_link_ggp_setup()
2990 GG82563_PHY_PWR_MGMT_CTRL, phy_data); in e1000_copper_link_ggp_setup()
2995 GG82563_PHY_KMRN_MODE_CTRL, &phy_data); in e1000_copper_link_ggp_setup()
2999 phy_data &= ~GG82563_KMCR_PASS_FALSE_CARRIER; in e1000_copper_link_ggp_setup()
3001 GG82563_PHY_KMRN_MODE_CTRL, phy_data); in e1000_copper_link_ggp_setup()
3011 GG82563_PHY_INBAND_CTRL, &phy_data); in e1000_copper_link_ggp_setup()
3014 phy_data |= GG82563_ICR_DIS_PADDING; in e1000_copper_link_ggp_setup()
3016 GG82563_PHY_INBAND_CTRL, phy_data); in e1000_copper_link_ggp_setup()
3032 uint16_t phy_data; in e1000_copper_link_mgp_setup() local
3040 ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_copper_link_mgp_setup()
3044 phy_data |= M88E1000_PSCR_ASSERT_CRS_ON_TX; in e1000_copper_link_mgp_setup()
3053 phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; in e1000_copper_link_mgp_setup()
3057 phy_data |= M88E1000_PSCR_MDI_MANUAL_MODE; in e1000_copper_link_mgp_setup()
3060 phy_data |= M88E1000_PSCR_MDIX_MANUAL_MODE; in e1000_copper_link_mgp_setup()
3063 phy_data |= M88E1000_PSCR_AUTO_X_1000T; in e1000_copper_link_mgp_setup()
3067 phy_data |= M88E1000_PSCR_AUTO_X_MODE; in e1000_copper_link_mgp_setup()
3077 phy_data &= ~M88E1000_PSCR_POLARITY_REVERSAL; in e1000_copper_link_mgp_setup()
3078 ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); in e1000_copper_link_mgp_setup()
3087 M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); in e1000_copper_link_mgp_setup()
3091 phy_data |= M88E1000_EPSCR_TX_CLK_25; in e1000_copper_link_mgp_setup()
3096 phy_data &= ~(M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK); in e1000_copper_link_mgp_setup()
3097 phy_data |= M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X; in e1000_copper_link_mgp_setup()
3099 M88E1000_EXT_PHY_SPEC_CTRL, phy_data); in e1000_copper_link_mgp_setup()
3104 phy_data &= ~(M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK in e1000_copper_link_mgp_setup()
3106 phy_data |= (M88E1000_EPSCR_MASTER_DOWNSHIFT_1X in e1000_copper_link_mgp_setup()
3109 M88E1000_EXT_PHY_SPEC_CTRL, phy_data); in e1000_copper_link_mgp_setup()
3135 uint16_t phy_data; in e1000_copper_link_autoneg() local
3165 ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); in e1000_copper_link_autoneg()
3169 phy_data |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG); in e1000_copper_link_autoneg()
3170 ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data); in e1000_copper_link_autoneg()
3240 uint16_t phy_data; in e1000_setup_copper_link() local
3315 ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); in e1000_setup_copper_link()
3318 ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); in e1000_setup_copper_link()
3322 if (phy_data & MII_SR_LINK_STATUS) { in e1000_setup_copper_link()
3529 uint16_t phy_data; in e1000_config_mac_to_phy() local
3544 if (e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data) < 0) { in e1000_config_mac_to_phy()
3548 if (phy_data & M88E1000_PSSR_DPLX) in e1000_config_mac_to_phy()
3558 if ((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_1000MBS) in e1000_config_mac_to_phy()
3560 else if ((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_100MBS) in e1000_config_mac_to_phy()
3868 uint16_t phy_data; in e1000_check_for_link() local
3899 if (e1000_read_phy_reg(hw, PHY_STATUS, &phy_data) < 0) { in e1000_check_for_link()
3903 if (e1000_read_phy_reg(hw, PHY_STATUS, &phy_data) < 0) { in e1000_check_for_link()
3908 if (phy_data & MII_SR_LINK_STATUS) { in e1000_check_for_link()
4122 uint16_t phy_data; in e1000_get_speed_and_duplex() local
4157 ret_val = e1000_read_phy_reg(hw, PHY_AUTONEG_EXP, &phy_data); in e1000_get_speed_and_duplex()
4161 if (!(phy_data & NWAY_ER_LP_NWAY_CAPS)) in e1000_get_speed_and_duplex()
4165 PHY_LP_ABILITY, &phy_data); in e1000_get_speed_and_duplex()
4169 !(phy_data & NWAY_LPAR_100TX_FD_CAPS)) in e1000_get_speed_and_duplex()
4171 && !(phy_data & NWAY_LPAR_10T_FD_CAPS))) in e1000_get_speed_and_duplex()
4197 uint16_t phy_data; in e1000_wait_autoneg() local
4207 if (e1000_read_phy_reg(hw, PHY_STATUS, &phy_data) < 0) { in e1000_wait_autoneg()
4211 if (e1000_read_phy_reg(hw, PHY_STATUS, &phy_data) < 0) { in e1000_wait_autoneg()
4215 if (phy_data & MII_SR_AUTONEG_COMPLETE) { in e1000_wait_autoneg()
4369 e1000_read_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t * phy_data) in e1000_read_phy_reg() argument
4406 *phy_data = (uint16_t) mdic; in e1000_read_phy_reg()
4434 *phy_data = e1000_shift_in_mdi_bits(hw); in e1000_read_phy_reg()
4447 e1000_write_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t phy_data) in e1000_write_phy_reg() argument
4463 mdic = (((uint32_t) phy_data) | in e1000_write_phy_reg()
4498 mdic |= (uint32_t) phy_data; in e1000_write_phy_reg()
4789 uint16_t phy_data; in e1000_phy_reset() local
4810 ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); in e1000_phy_reset()
4814 phy_data |= MII_CR_RESET; in e1000_phy_reset()
4815 ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data); in e1000_phy_reset()