Lines Matching defs:phy
47 struct e1000_phy_info *phy = &hw->phy;
50 if (hw->phy.media_type != e1000_media_type_copper) {
51 phy->type = e1000_phy_none;
55 phy->addr = 1;
56 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT;
57 phy->reset_delay_us = 100;
59 phy->ops.power_up = e1000_power_up_phy_copper;
60 phy->ops.power_down = e1000_power_down_phy_copper_82571;
65 phy->type = e1000_phy_igp_2;
68 phy->type = e1000_phy_m88;
72 phy->type = e1000_phy_bm;
73 phy->ops.acquire = e1000_get_hw_semaphore_82574;
74 phy->ops.release = e1000_put_hw_semaphore_82574;
75 phy->ops.set_d0_lplu_state = e1000_set_d0_lplu_state_82574;
76 phy->ops.set_d3_lplu_state = e1000_set_d3_lplu_state_82574;
89 /* Verify phy id */
93 if (phy->id != IGP01E1000_I_PHY_ID)
97 if (phy->id != M88E1111_I_PHY_ID)
102 if (phy->id != BME1000_E_PHY_ID_R2)
111 e_dbg("PHY ID unknown: type = 0x%08x\n", phy->id);
204 hw->phy.media_type = e1000_media_type_fiber;
215 hw->phy.media_type = e1000_media_type_internal_serdes;
223 hw->phy.media_type = e1000_media_type_copper;
390 struct e1000_phy_info *phy = &hw->phy;
402 phy->id = IGP01E1000_I_PHY_ID;
412 phy->id = (u32)(phy_id << 16);
418 phy->id |= (u32)(phy_id);
419 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK);
628 } else if ((hw->phy.autoneg_advertised == E1000_ALL_SPEED_DUPLEX) ||
629 (hw->phy.autoneg_advertised == E1000_ALL_NOT_GIG) ||
630 (hw->phy.autoneg_advertised == E1000_ALL_10_SPEED)) {
877 struct e1000_phy_info *phy = &hw->phy;
909 if (phy->smart_speed == e1000_smart_speed_on) {
920 } else if (phy->smart_speed == e1000_smart_speed_off) {
1054 if (hw->phy.media_type == e1000_media_type_internal_serdes)
1355 * e1000_check_phy_82574 - check 82574 phy hung state
1358 * Returns whether phy is hung or not
1432 switch (hw->phy.type) {
1800 struct e1000_phy_info *phy = &hw->phy;
1803 if (!phy->ops.check_reset_block)
1807 if (!(mac->ops.check_mng_mode(hw) || phy->ops.check_reset_block(hw)))