Lines Matching refs:mac
342 if ((hw->mac.type == e1000_pch2lan) && in e1000_init_phy_params_pchlan()
357 if ((hw->mac.type == e1000_pch2lan) && in e1000_init_phy_params_pchlan()
365 switch (hw->mac.type) { in e1000_init_phy_params_pchlan()
557 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_ich8lan() local
563 mac->mta_reg_count = 32; in e1000_init_mac_params_ich8lan()
565 mac->rar_entry_count = E1000_ICH_RAR_ENTRIES; in e1000_init_mac_params_ich8lan()
566 if (mac->type == e1000_ich8lan) in e1000_init_mac_params_ich8lan()
567 mac->rar_entry_count--; in e1000_init_mac_params_ich8lan()
569 mac->has_fwsm = true; in e1000_init_mac_params_ich8lan()
571 mac->arc_subsystem_valid = false; in e1000_init_mac_params_ich8lan()
573 mac->adaptive_ifs = true; in e1000_init_mac_params_ich8lan()
576 switch (mac->type) { in e1000_init_mac_params_ich8lan()
581 mac->ops.check_mng_mode = e1000_check_mng_mode_ich8lan; in e1000_init_mac_params_ich8lan()
583 mac->ops.id_led_init = e1000e_id_led_init_generic; in e1000_init_mac_params_ich8lan()
585 mac->ops.blink_led = e1000e_blink_led_generic; in e1000_init_mac_params_ich8lan()
587 mac->ops.setup_led = e1000e_setup_led_generic; in e1000_init_mac_params_ich8lan()
589 mac->ops.cleanup_led = e1000_cleanup_led_ich8lan; in e1000_init_mac_params_ich8lan()
591 mac->ops.led_on = e1000_led_on_ich8lan; in e1000_init_mac_params_ich8lan()
592 mac->ops.led_off = e1000_led_off_ich8lan; in e1000_init_mac_params_ich8lan()
597 mac->ops.check_mng_mode = e1000_check_mng_mode_pchlan; in e1000_init_mac_params_ich8lan()
599 mac->ops.id_led_init = e1000_id_led_init_pchlan; in e1000_init_mac_params_ich8lan()
601 mac->ops.setup_led = e1000_setup_led_pchlan; in e1000_init_mac_params_ich8lan()
603 mac->ops.cleanup_led = e1000_cleanup_led_pchlan; in e1000_init_mac_params_ich8lan()
605 mac->ops.led_on = e1000_led_on_pchlan; in e1000_init_mac_params_ich8lan()
606 mac->ops.led_off = e1000_led_off_pchlan; in e1000_init_mac_params_ich8lan()
613 if (mac->type == e1000_ich8lan) in e1000_init_mac_params_ich8lan()
617 if ((mac->type == e1000_pch2lan) && in e1000_init_mac_params_ich8lan()
661 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_copper_link_ich8lan() local
672 if (!mac->get_link_status) in e1000_check_for_copper_link_ich8lan()
684 if (hw->mac.type == e1000_pchlan) { in e1000_check_for_copper_link_ich8lan()
693 mac->get_link_status = false; in e1000_check_for_copper_link_ich8lan()
695 switch (hw->mac.type) { in e1000_check_for_copper_link_ich8lan()
741 if (!mac->autoneg) in e1000_check_for_copper_link_ich8lan()
749 mac->ops.config_collision_dist(hw); in e1000_check_for_copper_link_ich8lan()
777 switch (hw->mac.type) { in e1000_get_variants_ich8lan()
798 ((adapter->hw.mac.type >= e1000_pch2lan) && in e1000_get_variants_ich8lan()
803 hw->mac.ops.blink_led = NULL; in e1000_get_variants_ich8lan()
806 if ((adapter->hw.mac.type == e1000_ich8lan) && in e1000_get_variants_ich8lan()
811 if ((adapter->hw.mac.type == e1000_pch2lan) && in e1000_get_variants_ich8lan()
1033 switch (hw->mac.type) { in e1000_sw_lcd_config_ich8lan()
1065 if (!(hw->mac.type == e1000_pch2lan)) { in e1000_sw_lcd_config_ich8lan()
1080 (hw->mac.type == e1000_pchlan)) || in e1000_sw_lcd_config_ich8lan()
1081 (hw->mac.type == e1000_pch2lan)) { in e1000_sw_lcd_config_ich8lan()
1151 if (hw->mac.type != e1000_pchlan) in e1000_k1_gig_workaround_hv()
1282 if ((hw->mac.type != e1000_pch2lan) && (hw->mac.type != e1000_pchlan)) in e1000_oem_bits_config_ich8lan()
1289 if (!(hw->mac.type == e1000_pch2lan)) { in e1000_oem_bits_config_ich8lan()
1324 if ((d0_state || (hw->mac.type != e1000_pchlan)) && in e1000_oem_bits_config_ich8lan()
1366 if (hw->mac.type != e1000_pchlan) in e1000_hv_phy_workarounds_ich8lan()
1453 for (i = 0; i < (hw->mac.rar_entry_count + 4); i++) { in e1000_copy_rx_addrs_to_phy_ich8lan()
1487 if (hw->mac.type != e1000_pch2lan) in e1000_lv_jumbo_workaround_ich8lan()
1501 for (i = 0; i < (hw->mac.rar_entry_count + 4); i++) { in e1000_lv_jumbo_workaround_ich8lan()
1651 if (hw->mac.type != e1000_pch2lan) in e1000_lv_phy_workarounds_ich8lan()
1693 if (hw->mac.type != e1000_pch2lan) in e1000_k1_workaround_lv()
1736 if (hw->mac.type != e1000_pch2lan) in e1000_gate_hw_phy_config_ich8lan()
1797 switch (hw->mac.type) { in e1000_post_phy_reset_ich8lan()
1813 if (hw->mac.type >= e1000_pchlan) { in e1000_post_phy_reset_ich8lan()
1827 if (hw->mac.type == e1000_pch2lan) { in e1000_post_phy_reset_ich8lan()
1863 if ((hw->mac.type == e1000_pch2lan) && in e1000_phy_hw_reset_ich8lan()
1941 if (hw->mac.type == e1000_ich8lan) in e1000_set_d0_lplu_state_ich8lan()
2062 if (hw->mac.type == e1000_ich8lan) in e1000_set_d3_lplu_state_ich8lan()
2094 switch (hw->mac.type) { in e1000_valid_nvm_bank_detect_ich8lan()
2970 struct e1000_mac_info *mac = &hw->mac; in e1000_id_led_init_pchlan() local
2981 mac->ledctl_default = er32(LEDCTL); in e1000_id_led_init_pchlan()
2982 mac->ledctl_mode1 = mac->ledctl_default; in e1000_id_led_init_pchlan()
2983 mac->ledctl_mode2 = mac->ledctl_default; in e1000_id_led_init_pchlan()
2992 mac->ledctl_mode1 &= ~(E1000_PHY_LED0_MASK << shift); in e1000_id_led_init_pchlan()
2993 mac->ledctl_mode1 |= (ledctl_on << shift); in e1000_id_led_init_pchlan()
2998 mac->ledctl_mode1 &= ~(E1000_PHY_LED0_MASK << shift); in e1000_id_led_init_pchlan()
2999 mac->ledctl_mode1 |= (ledctl_off << shift); in e1000_id_led_init_pchlan()
3009 mac->ledctl_mode2 &= ~(E1000_PHY_LED0_MASK << shift); in e1000_id_led_init_pchlan()
3010 mac->ledctl_mode2 |= (ledctl_on << shift); in e1000_id_led_init_pchlan()
3015 mac->ledctl_mode2 &= ~(E1000_PHY_LED0_MASK << shift); in e1000_id_led_init_pchlan()
3016 mac->ledctl_mode2 |= (ledctl_off << shift); in e1000_id_led_init_pchlan()
3090 if (hw->mac.type == e1000_ich8lan) { in e1000_reset_hw_ich8lan()
3097 if (hw->mac.type == e1000_pchlan) { in e1000_reset_hw_ich8lan()
3123 if ((hw->mac.type == e1000_pch2lan) && in e1000_reset_hw_ich8lan()
3151 if (hw->mac.type == e1000_pchlan) in e1000_reset_hw_ich8lan()
3178 struct e1000_mac_info *mac = &hw->mac; in e1000_init_hw_ich8lan() local
3186 ret_val = mac->ops.id_led_init(hw); in e1000_init_hw_ich8lan()
3192 e1000e_init_rx_addrs(hw, mac->rar_entry_count); in e1000_init_hw_ich8lan()
3196 for (i = 0; i < mac->mta_reg_count; i++) in e1000_init_hw_ich8lan()
3214 ret_val = mac->ops.setup_link(hw); in e1000_init_hw_ich8lan()
3234 if (mac->type == e1000_ich8lan) in e1000_init_hw_ich8lan()
3269 if (hw->mac.type >= e1000_pchlan) in e1000_initialize_hw_bits_ich8lan()
3285 if (hw->mac.type == e1000_ich8lan) in e1000_initialize_hw_bits_ich8lan()
3300 if (hw->mac.type == e1000_ich8lan) { in e1000_initialize_hw_bits_ich8lan()
3339 if (hw->mac.type == e1000_pchlan) in e1000_setup_link_ich8lan()
3355 ret_val = hw->mac.ops.setup_physical_interface(hw); in e1000_setup_link_ich8lan()
3478 if ((hw->mac.type == e1000_ich8lan) && in e1000_get_link_up_info_ich8lan()
3569 if (hw->mac.type != e1000_ich8lan) { in e1000e_set_kmrn_lock_loss_workaround_ich8lan()
3608 if (hw->mac.type == e1000_ich8lan) in e1000e_igp3_phy_powerdown_workaround_ich8lan()
3644 if ((hw->mac.type != e1000_ich8lan) || (hw->phy.type == e1000_phy_ife)) in e1000e_gig_downshift_workaround_ich8lan()
3681 if (hw->mac.type == e1000_ich8lan) in e1000_suspend_workarounds_ich8lan()
3684 if (hw->mac.type >= e1000_pchlan) { in e1000_suspend_workarounds_ich8lan()
3688 if (hw->mac.type == e1000_pchlan) in e1000_suspend_workarounds_ich8lan()
3713 if ((hw->mac.type != e1000_pch2lan) || in e1000_resume_workarounds_pchlan()
3758 ew32(LEDCTL, hw->mac.ledctl_default); in e1000_cleanup_led_ich8lan()
3774 ew32(LEDCTL, hw->mac.ledctl_mode2); in e1000_led_on_ich8lan()
3791 ew32(LEDCTL, hw->mac.ledctl_mode1); in e1000_led_off_ich8lan()
3803 return e1e_wphy(hw, HV_LED_CONFIG, (u16)hw->mac.ledctl_mode1); in e1000_setup_led_pchlan()
3814 return e1e_wphy(hw, HV_LED_CONFIG, (u16)hw->mac.ledctl_default); in e1000_cleanup_led_pchlan()
3825 u16 data = (u16)hw->mac.ledctl_mode2; in e1000_led_on_pchlan()
3856 u16 data = (u16)hw->mac.ledctl_mode1; in e1000_led_off_pchlan()
3900 if (hw->mac.type >= e1000_ich10lan) { in e1000_get_cfg_done_ich8lan()
3923 if (hw->mac.type <= e1000_ich9lan) { in e1000_get_cfg_done_ich8lan()
3949 if (!(hw->mac.ops.check_mng_mode(hw) || in e1000_power_down_phy_copper_ich8lan()
4057 .mac = e1000_ich8lan,
4073 .mac = e1000_ich9lan,
4090 .mac = e1000_ich10lan,
4107 .mac = e1000_pchlan,
4126 .mac = e1000_pch2lan,