Lines Matching refs:mac

62 	switch (hw->mac.type) {  in e1000_init_phy_params_82571()
90 switch (hw->mac.type) { in e1000_init_phy_params_82571()
143 switch (hw->mac.type) { in e1000_init_nvm_params_82571()
175 switch (hw->mac.type) { in e1000_init_nvm_params_82571()
194 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82571() local
205 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
207 mac->ops.check_for_link = e1000e_check_for_fiber_link; in e1000_init_mac_params_82571()
208 mac->ops.get_link_up_info = in e1000_init_mac_params_82571()
216 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
218 mac->ops.check_for_link = e1000_check_for_serdes_link_82571; in e1000_init_mac_params_82571()
219 mac->ops.get_link_up_info = in e1000_init_mac_params_82571()
224 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
226 mac->ops.check_for_link = e1000e_check_for_copper_link; in e1000_init_mac_params_82571()
227 mac->ops.get_link_up_info = e1000e_get_speed_and_duplex_copper; in e1000_init_mac_params_82571()
232 mac->mta_reg_count = 128; in e1000_init_mac_params_82571()
234 mac->rar_entry_count = E1000_RAR_ENTRIES; in e1000_init_mac_params_82571()
236 mac->adaptive_ifs = true; in e1000_init_mac_params_82571()
239 switch (hw->mac.type) { in e1000_init_mac_params_82571()
241 mac->ops.set_lan_id = e1000_set_lan_id_single_port; in e1000_init_mac_params_82571()
242 mac->ops.check_mng_mode = e1000e_check_mng_mode_generic; in e1000_init_mac_params_82571()
243 mac->ops.led_on = e1000e_led_on_generic; in e1000_init_mac_params_82571()
244 mac->ops.blink_led = e1000e_blink_led_generic; in e1000_init_mac_params_82571()
247 mac->has_fwsm = true; in e1000_init_mac_params_82571()
251 mac->arc_subsystem_valid = !!(er32(FWSM) & in e1000_init_mac_params_82571()
256 mac->ops.set_lan_id = e1000_set_lan_id_single_port; in e1000_init_mac_params_82571()
257 mac->ops.check_mng_mode = e1000_check_mng_mode_82574; in e1000_init_mac_params_82571()
258 mac->ops.led_on = e1000_led_on_82574; in e1000_init_mac_params_82571()
261 mac->ops.check_mng_mode = e1000e_check_mng_mode_generic; in e1000_init_mac_params_82571()
262 mac->ops.led_on = e1000e_led_on_generic; in e1000_init_mac_params_82571()
263 mac->ops.blink_led = e1000e_blink_led_generic; in e1000_init_mac_params_82571()
266 mac->has_fwsm = true; in e1000_init_mac_params_82571()
276 switch (hw->mac.type) { in e1000_init_mac_params_82571()
352 switch (adapter->hw.mac.type) { in e1000_get_variants_82571()
394 switch (hw->mac.type) { in e1000_get_phy_id_82571()
655 switch (hw->mac.type) { in e1000_acquire_nvm_82571()
698 switch (hw->mac.type) { in e1000_write_nvm_82571()
967 switch (hw->mac.type) { in e1000_reset_hw_82571()
985 switch (hw->mac.type) { in e1000_reset_hw_82571()
1019 switch (hw->mac.type) { in e1000_reset_hw_82571()
1042 if (hw->mac.type == e1000_82571) { in e1000_reset_hw_82571()
1053 hw->mac.serdes_link_state = e1000_serdes_link_down; in e1000_reset_hw_82571()
1066 struct e1000_mac_info *mac = &hw->mac; in e1000_init_hw_82571() local
1069 u16 i, rar_count = mac->rar_entry_count; in e1000_init_hw_82571()
1074 ret_val = mac->ops.id_led_init(hw); in e1000_init_hw_82571()
1081 mac->ops.clear_vfta(hw); in e1000_init_hw_82571()
1094 for (i = 0; i < mac->mta_reg_count; i++) in e1000_init_hw_82571()
1098 ret_val = mac->ops.setup_link(hw); in e1000_init_hw_82571()
1107 switch (mac->type) { in e1000_init_hw_82571()
1159 switch (hw->mac.type) { in e1000_initialize_hw_bits_82571()
1175 switch (hw->mac.type) { in e1000_initialize_hw_bits_82571()
1191 switch (hw->mac.type) { in e1000_initialize_hw_bits_82571()
1204 switch (hw->mac.type) { in e1000_initialize_hw_bits_82571()
1217 if (hw->mac.type == e1000_82571) { in e1000_initialize_hw_bits_82571()
1226 if ((hw->mac.type == e1000_82571) || (hw->mac.type == e1000_82572)) { in e1000_initialize_hw_bits_82571()
1235 if (hw->mac.type <= e1000_82573) { in e1000_initialize_hw_bits_82571()
1242 switch (hw->mac.type) { in e1000_initialize_hw_bits_82571()
1278 switch (hw->mac.type) { in e1000_clear_vfta_82571()
1337 ctrl = hw->mac.ledctl_mode2; in e1000_led_on_82574()
1343 if (((hw->mac.ledctl_mode2 >> (i * 8)) & 0xFF) == in e1000_led_on_82574()
1398 switch (hw->mac.type) { in e1000_setup_link_82571()
1457 switch (hw->mac.type) { in e1000_setup_fiber_serdes_link_82571()
1496 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_serdes_link_82571() local
1513 switch (mac->serdes_link_state) { in e1000_check_for_serdes_link_82571()
1519 mac->serdes_link_state = in e1000_check_for_serdes_link_82571()
1521 mac->serdes_has_link = false; in e1000_check_for_serdes_link_82571()
1524 mac->serdes_has_link = true; in e1000_check_for_serdes_link_82571()
1536 ew32(TXCW, mac->txcw); in e1000_check_for_serdes_link_82571()
1538 mac->serdes_link_state = in e1000_check_for_serdes_link_82571()
1540 mac->serdes_has_link = false; in e1000_check_for_serdes_link_82571()
1543 mac->serdes_has_link = true; in e1000_check_for_serdes_link_82571()
1554 mac->serdes_link_state = in e1000_check_for_serdes_link_82571()
1557 mac->serdes_has_link = true; in e1000_check_for_serdes_link_82571()
1560 mac->serdes_link_state = in e1000_check_for_serdes_link_82571()
1569 ew32(TXCW, (mac->txcw & ~E1000_TXCW_ANE)); in e1000_check_for_serdes_link_82571()
1579 mac->serdes_link_state = in e1000_check_for_serdes_link_82571()
1581 mac->serdes_has_link = true; in e1000_check_for_serdes_link_82571()
1592 ew32(TXCW, mac->txcw); in e1000_check_for_serdes_link_82571()
1594 mac->serdes_link_state = in e1000_check_for_serdes_link_82571()
1596 mac->serdes_has_link = false; in e1000_check_for_serdes_link_82571()
1602 mac->serdes_has_link = false; in e1000_check_for_serdes_link_82571()
1603 mac->serdes_link_state = e1000_serdes_link_down; in e1000_check_for_serdes_link_82571()
1618 mac->serdes_has_link = false; in e1000_check_for_serdes_link_82571()
1619 mac->serdes_link_state = in e1000_check_for_serdes_link_82571()
1630 mac->serdes_link_state = in e1000_check_for_serdes_link_82571()
1632 mac->serdes_has_link = false; in e1000_check_for_serdes_link_82571()
1659 switch (hw->mac.type) { in e1000_valid_led_default_82571()
1684 if (hw->mac.type != e1000_82571) in e1000e_get_laa_state_82571()
1699 if (hw->mac.type != e1000_82571) in e1000e_set_laa_state_82571()
1712 hw->mac.ops.rar_set(hw, hw->mac.addr, in e1000e_set_laa_state_82571()
1713 hw->mac.rar_entry_count - 1); in e1000e_set_laa_state_82571()
1774 if (hw->mac.type == e1000_82571) { in e1000_read_mac_addr_82571()
1799 struct e1000_mac_info *mac = &hw->mac; in e1000_power_down_phy_copper_82571() local
1805 if (!(mac->ops.check_mng_mode(hw) || phy->ops.check_reset_block(hw))) in e1000_power_down_phy_copper_82571()
1946 .mac = e1000_82571,
1967 .mac = e1000_82572,
1985 .mac = e1000_82573,
2003 .mac = e1000_82574,
2028 .mac = e1000_82583,