Lines Matching defs:phy
86 struct e1000_phy_info *phy = &hw->phy;
91 if (hw->phy.media_type != e1000_media_type_copper) {
92 phy->type = e1000_phy_none;
95 phy->ops.power_up = e1000_power_up_phy_copper;
96 phy->ops.power_down = e1000_power_down_phy_copper;
99 phy->addr = 1;
100 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT;
101 phy->reset_delay_us = 10000;
102 phy->type = e1000_phy_m88;
105 phy->ops.check_polarity = e1000_check_polarity_m88;
106 phy->ops.commit = e1000_phy_sw_reset_generic;
107 phy->ops.force_speed_duplex = e1000_phy_force_speed_duplex_82543;
108 phy->ops.get_cable_length = e1000_get_cable_length_m88;
109 phy->ops.get_cfg_done = e1000_get_cfg_done_generic;
110 phy->ops.read_reg = (hw->mac.type == e1000_82543)
113 phy->ops.reset = (hw->mac.type == e1000_82543)
116 phy->ops.write_reg = (hw->mac.type == e1000_82543)
119 phy->ops.get_info = e1000_get_phy_info_m88;
127 ret_val = phy->ops.reset(hw);
139 /* Verify phy id */
142 if (phy->id != M88E1000_E_PHY_ID) {
148 if (phy->id != M88E1000_I_PHY_ID) {
203 hw->phy.media_type = e1000_media_type_fiber;
206 hw->phy.media_type = e1000_media_type_copper;
229 (hw->phy.media_type == e1000_media_type_copper)
233 (hw->phy.media_type == e1000_media_type_copper)
238 (hw->phy.media_type == e1000_media_type_copper)
257 (hw->phy.media_type == e1000_media_type_fiber))
275 hw->phy.ops.init_params = e1000_init_phy_params_82543;
519 mdic = (offset | (hw->phy.addr << 5) |
571 mdic = ((PHY_TURNAROUND) | (offset << 2) | (hw->phy.addr << 7) |
774 if (!(hw->phy.ops.write_reg))
781 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0019);
784 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFFFF);
788 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0000);
802 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg);
806 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg);
820 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0019);
824 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFFF0);
828 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFF00);
832 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0x0000);
836 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0000);
887 if (!(hw->phy.ops.get_cfg_done))
890 ret_val = hw->phy.ops.get_cfg_done(hw);
1032 * signal detection. So this should be done before phy setup.
1078 ret_val = hw->phy.ops.reset(hw);
1190 * Checks the phy for link, if link exists, do the following:
1411 if (!(hw->phy.ops.read_reg))
1423 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data);
1487 hw->phy.media_type == e1000_media_type_copper) {
1514 hw->phy.media_type == e1000_media_type_copper) {