Lines Matching refs:mac

169 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac);
715 switch (adapter->hw.mac.type) { in igb_cache_ring_register()
806 switch (hw->mac.type) { in igb_assign_vector()
887 switch (hw->mac.type) { in igb_configure_msix()
1260 if (adapter->hw.mac.type == e1000_82575) in igb_alloc_q_vector()
1289 if (adapter->hw.mac.type >= e1000_82576) in igb_alloc_q_vector()
1295 if (adapter->hw.mac.type >= e1000_i350) in igb_alloc_q_vector()
1758 hw->mac.get_link_status = 1; in igb_up()
1874 struct e1000_mac_info *mac = &hw->mac; in igb_reset() local
1881 switch (mac->type) { in igb_reset()
1901 (mac->type < e1000_82576)) { in igb_reset()
1979 hw->mac.ops.reset_hw(hw); in igb_reset()
1992 if (hw->mac.ops.init_hw(hw)) in igb_reset()
1998 if (!hw->mac.autoneg) in igb_reset()
2005 if (mac->type == e1000_i350 && hw->bus.func == 0) { in igb_reset()
2010 mac->ops.init_thermal_sensor_thresh(hw); in igb_reset()
2016 switch (mac->type) { in igb_reset()
2116 switch (hw->mac.type) { in igb_set_fw_version()
2213 if (adapter->hw.mac.type != e1000_i350) in igb_init_i2c()
2329 memcpy(&hw->mac.ops, ei->mac_ops, sizeof(hw->mac.ops)); in igb_probe()
2391 if (hw->mac.type >= e1000_82576) { in igb_probe()
2403 hw->mac.ops.reset_hw(hw); in igb_probe()
2408 switch (hw->mac.type) { in igb_probe()
2430 if (hw->mac.ops.read_mac_addr(hw)) in igb_probe()
2433 memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len); in igb_probe()
2445 if (hw->mac.type == e1000_i210) { in igb_probe()
2460 hw->mac.autoneg = true; in igb_probe()
2473 if (hw->mac.type >= e1000_82580) in igb_probe()
2522 if ((hw->mac.type == e1000_i350) && in igb_probe()
2564 if (hw->mac.type == e1000_i350 && hw->bus.func == 0) { in igb_probe()
2592 if (hw->mac.type != e1000_i354) { in igb_probe()
2606 if ((hw->mac.type >= e1000_i210 || in igb_probe()
2623 switch (hw->mac.type) { in igb_probe()
2863 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) in igb_probe_vfs()
2878 switch (hw->mac.type) { in igb_init_queue_configuration()
2917 switch (hw->mac.type) { in igb_set_flag_queue_pairs()
2978 switch (hw->mac.type) { in igb_sw_init()
3013 if (hw->mac.type >= e1000_i350) in igb_sw_init()
3110 hw->mac.get_link_status = 1; in __igb_open()
3397 switch (hw->mac.type) { in igb_setup_mrqc()
3422 if (adapter->hw.mac.type >= e1000_82576) in igb_setup_mrqc()
3448 if (hw->mac.type > e1000_82575) { in igb_setup_mrqc()
3463 if (hw->mac.type != e1000_i211) in igb_setup_mrqc()
3486 (hw->mac.mc_filter_type << E1000_RCTL_MO_SHIFT); in igb_setup_rctl()
3588 if (hw->mac.type < e1000_82576) in igb_set_vmolr()
3593 if (hw->mac.type == e1000_i350) { in igb_set_vmolr()
3653 if (hw->mac.type >= e1000_82580) in igb_configure_rx_ring()
3687 igb_rar_set_qsel(adapter, adapter->hw.mac.addr, 0, in igb_configure_rx()
3912 memcpy(hw->mac.addr, addr->sa_data, netdev->addr_len); in igb_set_mac()
3915 igb_rar_set_qsel(adapter, hw->mac.addr, 0, in igb_set_mac()
3974 unsigned int rar_entries = hw->mac.rar_entry_count - (vfn + 1); in igb_write_uc_addr_list()
4067 if ((hw->mac.type < e1000_82576) || (hw->mac.type > e1000_i350)) in igb_set_rx_mode()
4081 switch (hw->mac.type) { in igb_check_wvbr()
4141 if (!hw->mac.get_link_status) in igb_has_link()
4144 hw->mac.ops.check_for_link(hw); in igb_has_link()
4145 link_active = !hw->mac.get_link_status; in igb_has_link()
4152 if (((hw->mac.type == e1000_i210) || in igb_has_link()
4153 (hw->mac.type == e1000_i211)) && in igb_has_link()
4172 if (hw->mac.type == e1000_i350) { in igb_thermal_sensor_event()
4257 hw->mac.ops.get_speed_and_duplex(hw, in igb_watchdog_task()
4400 if ((adapter->hw.mac.type == e1000_i350) || in igb_watchdog_task()
4401 (adapter->hw.mac.type == e1000_i354)) in igb_watchdog_task()
5044 if (adapter->hw.mac.type == e1000_82576) in igb_xmit_frame_ring()
5123 if (hw->mac.type >= e1000_82580) in igb_tx_timeout()
5240 if (hw->mac.type >= e1000_i210) in igb_update_stats()
5339 if ((hw->mac.type != e1000_i210) && in igb_update_stats()
5340 (hw->mac.type != e1000_i211)) in igb_update_stats()
5499 hw->mac.get_link_status = 1; in igb_msix_other()
5524 if (adapter->hw.mac.type == e1000_82575) in igb_write_itr()
5553 if (hw->mac.type != e1000_82575) in igb_update_tx_dca()
5574 if (hw->mac.type != e1000_82575) in igb_update_rx_dca()
5827 if (hw->mac.type < e1000_82576) in igb_vlvf_set()
6074 int rar_entry = hw->mac.rar_entry_count - (vf + 1); in igb_vf_reset_msg()
6249 if (hw->mac.type < e1000_82576) in igb_set_uta()
6256 for (i = 0; i < hw->mac.uta_reg_count; i++) in igb_set_uta()
6284 hw->mac.get_link_status = 1; in igb_intr_msi()
6329 hw->mac.get_link_status = 1; in igb_intr()
7298 struct e1000_mac_info *mac = &adapter->hw.mac; in igb_set_spd_dplx() local
7300 mac->autoneg = 0; in igb_set_spd_dplx()
7324 mac->forced_speed_duplex = ADVERTISE_10_HALF; in igb_set_spd_dplx()
7327 mac->forced_speed_duplex = ADVERTISE_10_FULL; in igb_set_spd_dplx()
7330 mac->forced_speed_duplex = ADVERTISE_100_HALF; in igb_set_spd_dplx()
7333 mac->forced_speed_duplex = ADVERTISE_100_FULL; in igb_set_spd_dplx()
7336 mac->autoneg = 1; in igb_set_spd_dplx()
7757 if (hw->mac.type == e1000_82575) in igb_rar_set_qsel()
7775 int rar_entry = hw->mac.rar_entry_count - (vf + 1); in igb_set_vf_mac()
7784 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in igb_ndo_set_vf_mac() argument
7787 if (!is_valid_ether_addr(mac) || (vf >= adapter->vfs_allocated_count)) in igb_ndo_set_vf_mac()
7790 dev_info(&adapter->pdev->dev, "setting MAC %pM on VF %d\n", mac, vf); in igb_ndo_set_vf_mac()
7799 return igb_set_vf_mac(adapter, vf, mac); in igb_ndo_set_vf_mac()
7850 (adapter->hw.mac.type != e1000_82576)) in igb_check_vf_rate_limit()
7878 if (hw->mac.type != e1000_82576) in igb_ndo_set_vf_bw()
7911 reg_offset = (hw->mac.type == e1000_82576) ? E1000_DTXSWC : E1000_TXSWC; in igb_ndo_set_vf_spoofchk()
7932 memcpy(&ivi->mac, adapter->vf_data[vf].vf_mac_addresses, ETH_ALEN); in igb_ndo_get_vf_config()
7946 switch (hw->mac.type) { in igb_vmm_control()
7988 if (hw->mac.type > e1000_82580) { in igb_init_dmac()
8026 if (hw->mac.type != e1000_i354) in igb_init_dmac()
8053 } else if (hw->mac.type == e1000_82580) { in igb_init_dmac()
8084 if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in igb_read_i2c_byte()
8088 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in igb_read_i2c_byte()
8119 if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in igb_write_i2c_byte()
8122 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in igb_write_i2c_byte()