• Home
  • Raw
  • Download

Lines Matching refs:mac

16 	struct e1000_mac_info *mac = &hw->mac;  in e1000e_get_bus_info_pcie()  local
33 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie()
120 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in e1000e_init_rx_addrs()
125 hw->mac.ops.rar_set(hw, mac_addr, i); in e1000e_init_rx_addrs()
152 if (hw->mac.type == e1000_82573) in e1000_check_alt_mac_addr_generic()
191 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); in e1000_check_alt_mac_addr_generic()
198 return hw->mac.rar_entry_count; in e1000e_rar_get_count_generic()
252 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in e1000_hash_mc_addr()
285 switch (hw->mac.mc_filter_type) { in e1000_hash_mc_addr()
322 memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow)); in e1000e_update_mc_addr_list_generic()
328 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in e1000e_update_mc_addr_list_generic()
331 hw->mac.mta_shadow[hash_reg] |= BIT(hash_bit); in e1000e_update_mc_addr_list_generic()
336 for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) in e1000e_update_mc_addr_list_generic()
337 E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, hw->mac.mta_shadow[i]); in e1000e_update_mc_addr_list_generic()
398 struct e1000_mac_info *mac = &hw->mac; in e1000e_check_for_copper_link() local
407 if (!mac->get_link_status) in e1000e_check_for_copper_link()
409 mac->get_link_status = false; in e1000e_check_for_copper_link()
427 if (!mac->autoneg) in e1000e_check_for_copper_link()
434 mac->ops.config_collision_dist(hw); in e1000e_check_for_copper_link()
448 mac->get_link_status = true; in e1000e_check_for_copper_link()
461 struct e1000_mac_info *mac = &hw->mac; in e1000e_check_for_fiber_link() local
481 if (!mac->autoneg_failed) { in e1000e_check_for_fiber_link()
482 mac->autoneg_failed = true; in e1000e_check_for_fiber_link()
488 ew32(TXCW, (mac->txcw & ~E1000_TXCW_ANE)); in e1000e_check_for_fiber_link()
508 ew32(TXCW, mac->txcw); in e1000e_check_for_fiber_link()
511 mac->serdes_has_link = true; in e1000e_check_for_fiber_link()
526 struct e1000_mac_info *mac = &hw->mac; in e1000e_check_for_serdes_link() local
544 if (!mac->autoneg_failed) { in e1000e_check_for_serdes_link()
545 mac->autoneg_failed = true; in e1000e_check_for_serdes_link()
551 ew32(TXCW, (mac->txcw & ~E1000_TXCW_ANE)); in e1000e_check_for_serdes_link()
571 ew32(TXCW, mac->txcw); in e1000e_check_for_serdes_link()
574 mac->serdes_has_link = true; in e1000e_check_for_serdes_link()
585 mac->serdes_has_link = true; in e1000e_check_for_serdes_link()
589 mac->serdes_has_link = false; in e1000e_check_for_serdes_link()
602 mac->serdes_has_link = true; in e1000e_check_for_serdes_link()
605 mac->serdes_has_link = false; in e1000e_check_for_serdes_link()
609 mac->serdes_has_link = false; in e1000e_check_for_serdes_link()
613 mac->serdes_has_link = false; in e1000e_check_for_serdes_link()
695 ret_val = hw->mac.ops.setup_physical_interface(hw); in e1000e_setup_link_generic()
723 struct e1000_mac_info *mac = &hw->mac; in e1000_commit_fc_settings_generic() local
775 mac->txcw = txcw; in e1000_commit_fc_settings_generic()
789 struct e1000_mac_info *mac = &hw->mac; in e1000_poll_fiber_serdes_link_generic() local
807 mac->autoneg_failed = true; in e1000_poll_fiber_serdes_link_generic()
813 ret_val = mac->ops.check_for_link(hw); in e1000_poll_fiber_serdes_link_generic()
818 mac->autoneg_failed = false; in e1000_poll_fiber_serdes_link_generic()
820 mac->autoneg_failed = false; in e1000_poll_fiber_serdes_link_generic()
844 hw->mac.ops.config_collision_dist(hw); in e1000e_setup_fiber_serdes_link()
1003 struct e1000_mac_info *mac = &hw->mac; in e1000e_config_fc_after_link_up() local
1013 if (mac->autoneg_failed) { in e1000e_config_fc_after_link_up()
1032 if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) { in e1000e_config_fc_after_link_up()
1150 ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex); in e1000e_config_fc_after_link_up()
1175 mac->autoneg) { in e1000e_config_fc_after_link_up()
1468 struct e1000_mac_info *mac = &hw->mac; in e1000e_id_led_init_generic() local
1480 mac->ledctl_default = er32(LEDCTL); in e1000e_id_led_init_generic()
1481 mac->ledctl_mode1 = mac->ledctl_default; in e1000e_id_led_init_generic()
1482 mac->ledctl_mode2 = mac->ledctl_default; in e1000e_id_led_init_generic()
1490 mac->ledctl_mode1 &= ~(ledctl_mask << (i << 3)); in e1000e_id_led_init_generic()
1491 mac->ledctl_mode1 |= ledctl_on << (i << 3); in e1000e_id_led_init_generic()
1496 mac->ledctl_mode1 &= ~(ledctl_mask << (i << 3)); in e1000e_id_led_init_generic()
1497 mac->ledctl_mode1 |= ledctl_off << (i << 3); in e1000e_id_led_init_generic()
1507 mac->ledctl_mode2 &= ~(ledctl_mask << (i << 3)); in e1000e_id_led_init_generic()
1508 mac->ledctl_mode2 |= ledctl_on << (i << 3); in e1000e_id_led_init_generic()
1513 mac->ledctl_mode2 &= ~(ledctl_mask << (i << 3)); in e1000e_id_led_init_generic()
1514 mac->ledctl_mode2 |= ledctl_off << (i << 3); in e1000e_id_led_init_generic()
1536 if (hw->mac.ops.setup_led != e1000e_setup_led_generic) in e1000e_setup_led_generic()
1541 hw->mac.ledctl_default = ledctl; in e1000e_setup_led_generic()
1549 ew32(LEDCTL, hw->mac.ledctl_mode1); in e1000e_setup_led_generic()
1564 ew32(LEDCTL, hw->mac.ledctl_default); in e1000e_cleanup_led_generic()
1590 ledctl_blink = hw->mac.ledctl_mode2; in e1000e_blink_led_generic()
1592 u32 mode = (hw->mac.ledctl_mode2 >> i) & in e1000e_blink_led_generic()
1594 u32 led_default = hw->mac.ledctl_default >> i; in e1000e_blink_led_generic()
1631 ew32(LEDCTL, hw->mac.ledctl_mode2); in e1000e_led_on_generic()
1658 ew32(LEDCTL, hw->mac.ledctl_mode1); in e1000e_led_off_generic()
1729 struct e1000_mac_info *mac = &hw->mac; in e1000e_reset_adaptive() local
1731 if (!mac->adaptive_ifs) { in e1000e_reset_adaptive()
1736 mac->current_ifs_val = 0; in e1000e_reset_adaptive()
1737 mac->ifs_min_val = IFS_MIN; in e1000e_reset_adaptive()
1738 mac->ifs_max_val = IFS_MAX; in e1000e_reset_adaptive()
1739 mac->ifs_step_size = IFS_STEP; in e1000e_reset_adaptive()
1740 mac->ifs_ratio = IFS_RATIO; in e1000e_reset_adaptive()
1742 mac->in_ifs_mode = false; in e1000e_reset_adaptive()
1755 struct e1000_mac_info *mac = &hw->mac; in e1000e_update_adaptive() local
1757 if (!mac->adaptive_ifs) { in e1000e_update_adaptive()
1762 if ((mac->collision_delta * mac->ifs_ratio) > mac->tx_packet_delta) { in e1000e_update_adaptive()
1763 if (mac->tx_packet_delta > MIN_NUM_XMITS) { in e1000e_update_adaptive()
1764 mac->in_ifs_mode = true; in e1000e_update_adaptive()
1765 if (mac->current_ifs_val < mac->ifs_max_val) { in e1000e_update_adaptive()
1766 if (!mac->current_ifs_val) in e1000e_update_adaptive()
1767 mac->current_ifs_val = mac->ifs_min_val; in e1000e_update_adaptive()
1769 mac->current_ifs_val += in e1000e_update_adaptive()
1770 mac->ifs_step_size; in e1000e_update_adaptive()
1771 ew32(AIT, mac->current_ifs_val); in e1000e_update_adaptive()
1775 if (mac->in_ifs_mode && in e1000e_update_adaptive()
1776 (mac->tx_packet_delta <= MIN_NUM_XMITS)) { in e1000e_update_adaptive()
1777 mac->current_ifs_val = 0; in e1000e_update_adaptive()
1778 mac->in_ifs_mode = false; in e1000e_update_adaptive()