Lines Matching refs:phy
65 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82571() local
68 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_82571()
69 phy->type = e1000_phy_none; in e1000_init_phy_params_82571()
73 phy->addr = 1; in e1000_init_phy_params_82571()
74 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; in e1000_init_phy_params_82571()
75 phy->reset_delay_us = 100; in e1000_init_phy_params_82571()
77 phy->ops.power_up = e1000_power_up_phy_copper; in e1000_init_phy_params_82571()
78 phy->ops.power_down = e1000_power_down_phy_copper_82571; in e1000_init_phy_params_82571()
83 phy->type = e1000_phy_igp_2; in e1000_init_phy_params_82571()
86 phy->type = e1000_phy_m88; in e1000_init_phy_params_82571()
90 phy->type = e1000_phy_bm; in e1000_init_phy_params_82571()
91 phy->ops.acquire = e1000_get_hw_semaphore_82574; in e1000_init_phy_params_82571()
92 phy->ops.release = e1000_put_hw_semaphore_82574; in e1000_init_phy_params_82571()
93 phy->ops.set_d0_lplu_state = e1000_set_d0_lplu_state_82574; in e1000_init_phy_params_82571()
94 phy->ops.set_d3_lplu_state = e1000_set_d3_lplu_state_82574; in e1000_init_phy_params_82571()
111 if (phy->id != IGP01E1000_I_PHY_ID) in e1000_init_phy_params_82571()
115 if (phy->id != M88E1111_I_PHY_ID) in e1000_init_phy_params_82571()
120 if (phy->id != BME1000_E_PHY_ID_R2) in e1000_init_phy_params_82571()
129 e_dbg("PHY ID unknown: type = 0x%08x\n", phy->id); in e1000_init_phy_params_82571()
222 hw->phy.media_type = e1000_media_type_fiber; in e1000_init_mac_params_82571()
233 hw->phy.media_type = e1000_media_type_internal_serdes; in e1000_init_mac_params_82571()
241 hw->phy.media_type = e1000_media_type_copper; in e1000_init_mac_params_82571()
408 struct e1000_phy_info *phy = &hw->phy; in e1000_get_phy_id_82571() local
420 phy->id = IGP01E1000_I_PHY_ID; in e1000_get_phy_id_82571()
430 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id_82571()
436 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571()
437 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id_82571()
646 } else if ((hw->phy.autoneg_advertised == E1000_ALL_SPEED_DUPLEX) || in e1000_set_d3_lplu_state_82574()
647 (hw->phy.autoneg_advertised == E1000_ALL_NOT_GIG) || in e1000_set_d3_lplu_state_82574()
648 (hw->phy.autoneg_advertised == E1000_ALL_10_SPEED)) { in e1000_set_d3_lplu_state_82574()
895 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_82571() local
925 if (phy->smart_speed == e1000_smart_speed_on) { in e1000_set_d0_lplu_state_82571()
936 } else if (phy->smart_speed == e1000_smart_speed_off) { in e1000_set_d0_lplu_state_82571()
1070 if (hw->phy.media_type == e1000_media_type_internal_serdes) in e1000_reset_hw_82571()
1448 switch (hw->phy.type) { in e1000_setup_copper_link_82571()
1816 struct e1000_phy_info *phy = &hw->phy; in e1000_power_down_phy_copper_82571() local
1819 if (!phy->ops.check_reset_block) in e1000_power_down_phy_copper_82571()
1823 if (!(mac->ops.check_mng_mode(hw) || phy->ops.check_reset_block(hw))) in e1000_power_down_phy_copper_82571()