Lines Matching refs:mac

162 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac);
701 switch (adapter->hw.mac.type) { in igb_cache_ring_register()
792 switch (hw->mac.type) { in igb_assign_vector()
873 switch (hw->mac.type) { in igb_configure_msix()
1257 if (adapter->hw.mac.type == e1000_82575) in igb_alloc_q_vector()
1292 if (adapter->hw.mac.type >= e1000_82576) in igb_alloc_q_vector()
1298 if (adapter->hw.mac.type >= e1000_i350) in igb_alloc_q_vector()
1602 WARN_ON(hw->mac.type != e1000_i210); in enable_fqtss()
1623 WARN_ON(hw->mac.type != e1000_i210); in set_tx_desc_fetch_prio()
1640 WARN_ON(hw->mac.type != e1000_i210); in set_queue_mode()
1695 WARN_ON(hw->mac.type != e1000_i210); in igb_config_tx_modes()
1913 if (hw->mac.type != e1000_i210) in igb_setup_tx_mode()
2154 hw->mac.get_link_status = 1; in igb_up()
2287 struct e1000_mac_info *mac = &hw->mac; in igb_reset() local
2294 switch (mac->type) { in igb_reset()
2313 if (mac->type == e1000_82575) { in igb_reset()
2390 hw->mac.ops.reset_hw(hw); in igb_reset()
2398 if ((mac->type == e1000_82575 || mac->type == e1000_i350) && in igb_reset()
2402 if (hw->mac.ops.init_hw(hw)) in igb_reset()
2415 if (!hw->mac.autoneg) in igb_reset()
2422 if (mac->type == e1000_i350 && hw->bus.func == 0) { in igb_reset()
2428 mac->ops.init_thermal_sensor_thresh(hw); in igb_reset()
2434 switch (mac->type) { in igb_reset()
2587 if (hw->mac.type != e1000_i210) in igb_offload_cbs()
2822 if (hw->mac.type != e1000_i210) in igb_offload_txtime()
3075 switch (hw->mac.type) { in igb_set_fw_version()
3172 if (adapter->hw.mac.type != e1000_i350) in igb_init_i2c()
3280 memcpy(&hw->mac.ops, ei->mac_ops, sizeof(hw->mac.ops)); in igb_probe()
3319 if (hw->mac.type >= e1000_82576) in igb_probe()
3322 if (hw->mac.type >= e1000_i350) in igb_probe()
3341 if (hw->mac.type >= e1000_i350) in igb_probe()
3369 hw->mac.ops.reset_hw(hw); in igb_probe()
3374 switch (hw->mac.type) { in igb_probe()
3395 if (eth_platform_get_mac_address(&pdev->dev, hw->mac.addr)) { in igb_probe()
3397 if (hw->mac.ops.read_mac_addr(hw)) in igb_probe()
3401 eth_hw_addr_set(netdev, hw->mac.addr); in igb_probe()
3415 if (hw->mac.type == e1000_i210) { in igb_probe()
3428 hw->mac.autoneg = true; in igb_probe()
3441 if (hw->mac.type >= e1000_82580) in igb_probe()
3490 if ((hw->mac.type == e1000_i350) && in igb_probe()
3499 if (((hw->mac.type == e1000_i350) || in igb_probe()
3500 (hw->mac.type == e1000_i354)) && in igb_probe()
3505 if (hw->mac.type == e1000_i350) { in igb_probe()
3552 if (hw->mac.type == e1000_i350 && hw->bus.func == 0) { in igb_probe()
3568 hw->mac.ops.init_thermal_sensor_thresh(hw); in igb_probe()
3586 if (hw->mac.type != e1000_i354) { in igb_probe()
3600 if ((hw->mac.type == e1000_82576 && in igb_probe()
3602 (hw->mac.type >= e1000_i210 || in igb_probe()
3619 switch (hw->mac.type) { in igb_probe()
3788 num_vf_mac_filters = adapter->hw.mac.rar_entry_count - in igb_enable_sriov()
3940 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211) || in igb_probe_vfs()
3941 (hw->mac.type == e1000_82580)) in igb_probe_vfs()
3963 switch (hw->mac.type) { in igb_get_max_rss_queues()
4010 switch (hw->mac.type) { in igb_set_flag_queue_pairs()
4068 switch (hw->mac.type) { in igb_sw_init()
4089 adapter->mac_table = kcalloc(hw->mac.rar_entry_count, in igb_sw_init()
4114 if (hw->mac.type >= e1000_i350) in igb_sw_init()
4213 hw->mac.get_link_status = 1; in __igb_open()
4525 switch (hw->mac.type) { in igb_setup_mrqc()
4550 if (adapter->hw.mac.type >= e1000_82576) in igb_setup_mrqc()
4576 if (hw->mac.type > e1000_82575) { in igb_setup_mrqc()
4613 (hw->mac.mc_filter_type << E1000_RCTL_MO_SHIFT); in igb_setup_rctl()
4681 if (hw->mac.type < e1000_82576) in igb_set_vf_vlan_strip()
4684 if (hw->mac.type == e1000_i350) in igb_set_vf_vlan_strip()
4706 if (hw->mac.type < e1000_82576) in igb_set_vmolr()
4747 if (hw->mac.type >= e1000_82580) in igb_setup_srrctl()
5096 memcpy(hw->mac.addr, addr->sa_data, netdev->addr_len); in igb_set_mac()
5148 switch (hw->mac.type) { in igb_vlan_promisc_enable()
5187 hw->mac.ops.write_vfta(hw, i, ~0U); in igb_vlan_promisc_enable()
5248 hw->mac.ops.write_vfta(hw, vfta_offset + i, vfta[i]); in igb_scrub_vfta()
5290 if (hw->mac.type == e1000_82576) in igb_set_rx_mode()
5351 if ((hw->mac.type < e1000_82576) || (hw->mac.type > e1000_i350)) in igb_set_rx_mode()
5380 switch (hw->mac.type) { in igb_check_wvbr()
5440 if (!hw->mac.get_link_status) in igb_has_link()
5444 hw->mac.ops.check_for_link(hw); in igb_has_link()
5445 link_active = !hw->mac.get_link_status; in igb_has_link()
5452 if (((hw->mac.type == e1000_i210) || in igb_has_link()
5453 (hw->mac.type == e1000_i211)) && in igb_has_link()
5472 if (hw->mac.type == e1000_i350) { in igb_thermal_sensor_event()
5558 hw->mac.ops.get_speed_and_duplex(hw, in igb_watchdog_task()
5722 if ((adapter->hw.mac.type == e1000_i350) || in igb_watchdog_task()
5723 (adapter->hw.mac.type == e1000_i354)) in igb_watchdog_task()
6505 if (adapter->hw.mac.type == e1000_82576) in igb_xmit_frame_ring()
6541 if (adapter->hw.mac.type == e1000_82576) in igb_xmit_frame_ring()
6587 if (hw->mac.type >= e1000_82580) in igb_tx_timeout()
6714 if (hw->mac.type >= e1000_i210) in igb_update_stats()
6813 if ((hw->mac.type != e1000_i210) && in igb_update_stats()
6814 (hw->mac.type != e1000_i211)) in igb_update_stats()
6886 if (hw->mac.type == e1000_82580 || in igb_perout()
6887 hw->mac.type == e1000_i354 || in igb_perout()
6888 hw->mac.type == e1000_i350) { in igb_perout()
6965 if (hw->mac.type == e1000_82580 || in igb_extts()
6966 hw->mac.type == e1000_i354 || in igb_extts()
6967 hw->mac.type == e1000_i350) { in igb_extts()
6995 if (hw->mac.type == e1000_82580) { in igb_tsync_interrupt()
7051 hw->mac.get_link_status = 1; in igb_msix_other()
7076 if (adapter->hw.mac.type == e1000_82575) in igb_write_itr()
7105 if (hw->mac.type != e1000_82575) in igb_update_tx_dca()
7126 if (hw->mac.type != e1000_82575) in igb_update_rx_dca()
7386 hw->mac.ops.write_vfta(hw, vid / 32, vfta ^ vfta_mask); in igb_clear_vf_vfta()
7645 for (i = 0; i < hw->mac.rar_entry_count; i++) { in igb_flush_mac_table()
7657 int rar_entries = hw->mac.rar_entry_count - in igb_available_rars()
7682 ether_addr_copy(mac_table->addr, adapter->hw.mac.addr); in igb_set_default_mac_filter()
7720 int rar_entries = hw->mac.rar_entry_count - in igb_add_mac_filter_flags()
7764 int rar_entries = hw->mac.rar_entry_count - in igb_del_mac_filter_flags()
7820 if (hw->mac.type != e1000_i210) in igb_add_mac_steering_filter()
8097 for (i = hw->mac.uta_reg_count; i--;) in igb_set_uta()
8125 hw->mac.get_link_status = 1; in igb_intr_msi()
8170 hw->mac.get_link_status = 1; in igb_intr()
9312 struct e1000_mac_info *mac = &adapter->hw.mac; in igb_set_spd_dplx() local
9314 mac->autoneg = 0; in igb_set_spd_dplx()
9338 mac->forced_speed_duplex = ADVERTISE_10_HALF; in igb_set_spd_dplx()
9341 mac->forced_speed_duplex = ADVERTISE_10_FULL; in igb_set_spd_dplx()
9344 mac->forced_speed_duplex = ADVERTISE_100_HALF; in igb_set_spd_dplx()
9347 mac->forced_speed_duplex = ADVERTISE_100_FULL; in igb_set_spd_dplx()
9350 mac->autoneg = 1; in igb_set_spd_dplx()
9707 switch (hw->mac.type) { in igb_rar_set_index()
9737 int rar_entry = hw->mac.rar_entry_count - (vf + 1); in igb_set_vf_mac()
9749 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in igb_ndo_set_vf_mac() argument
9762 if (is_zero_ether_addr(mac)) { in igb_ndo_set_vf_mac()
9767 } else if (is_valid_ether_addr(mac)) { in igb_ndo_set_vf_mac()
9770 mac, vf); in igb_ndo_set_vf_mac()
9783 return igb_set_vf_mac(adapter, vf, mac); in igb_ndo_set_vf_mac()
9834 (adapter->hw.mac.type != e1000_82576)) in igb_check_vf_rate_limit()
9862 if (hw->mac.type != e1000_82576) in igb_ndo_set_vf_bw()
9895 reg_offset = (hw->mac.type == e1000_82576) ? E1000_DTXSWC : E1000_TXSWC; in igb_ndo_set_vf_spoofchk()
9932 memcpy(&ivi->mac, adapter->vf_data[vf].vf_mac_addresses, ETH_ALEN); in igb_ndo_get_vf_config()
9947 switch (hw->mac.type) { in igb_vmm_control()
9990 if (hw->mac.type > e1000_82580) { in igb_init_dmac()
10022 if (hw->mac.type != e1000_i354) in igb_init_dmac()
10042 if (hw->mac.type >= e1000_i210 || in igb_init_dmac()
10048 } else if (hw->mac.type == e1000_82580) { in igb_init_dmac()
10079 if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in igb_read_i2c_byte()
10083 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in igb_read_i2c_byte()
10114 if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in igb_write_i2c_byte()
10117 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in igb_write_i2c_byte()