Lines Matching refs:mac

169 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac);
717 switch (adapter->hw.mac.type) { in igb_cache_ring_register()
808 switch (hw->mac.type) { in igb_assign_vector()
889 switch (hw->mac.type) { in igb_configure_msix()
1262 if (adapter->hw.mac.type == e1000_82575) in igb_alloc_q_vector()
1291 if (adapter->hw.mac.type >= e1000_82576) in igb_alloc_q_vector()
1297 if (adapter->hw.mac.type >= e1000_i350) in igb_alloc_q_vector()
1760 hw->mac.get_link_status = 1; in igb_up()
1864 struct e1000_mac_info *mac = &hw->mac; in igb_reset() local
1871 switch (mac->type) { in igb_reset()
1891 (mac->type < e1000_82576)) { in igb_reset()
1969 hw->mac.ops.reset_hw(hw); in igb_reset()
1977 if ((mac->type == e1000_82575) && in igb_reset()
1981 if (hw->mac.ops.init_hw(hw)) in igb_reset()
1987 if (!hw->mac.autoneg) in igb_reset()
1994 if (mac->type == e1000_i350 && hw->bus.func == 0) { in igb_reset()
1999 mac->ops.init_thermal_sensor_thresh(hw); in igb_reset()
2005 switch (mac->type) { in igb_reset()
2105 switch (hw->mac.type) { in igb_set_fw_version()
2202 if (adapter->hw.mac.type != e1000_i350) in igb_init_i2c()
2318 memcpy(&hw->mac.ops, ei->mac_ops, sizeof(hw->mac.ops)); in igb_probe()
2380 if (hw->mac.type >= e1000_82576) { in igb_probe()
2392 hw->mac.ops.reset_hw(hw); in igb_probe()
2397 switch (hw->mac.type) { in igb_probe()
2419 if (hw->mac.ops.read_mac_addr(hw)) in igb_probe()
2422 memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len); in igb_probe()
2434 if (hw->mac.type == e1000_i210) { in igb_probe()
2449 hw->mac.autoneg = true; in igb_probe()
2462 if (hw->mac.type >= e1000_82580) in igb_probe()
2511 if ((hw->mac.type == e1000_i350) && in igb_probe()
2553 if (hw->mac.type == e1000_i350 && hw->bus.func == 0) { in igb_probe()
2581 if (hw->mac.type != e1000_i354) { in igb_probe()
2595 if ((hw->mac.type >= e1000_i210 || in igb_probe()
2612 switch (hw->mac.type) { in igb_probe()
2856 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) in igb_probe_vfs()
2871 switch (hw->mac.type) { in igb_init_queue_configuration()
2910 switch (hw->mac.type) { in igb_set_flag_queue_pairs()
2971 switch (hw->mac.type) { in igb_sw_init()
3009 if (hw->mac.type >= e1000_i350) in igb_sw_init()
3106 hw->mac.get_link_status = 1; in __igb_open()
3393 switch (hw->mac.type) { in igb_setup_mrqc()
3418 if (adapter->hw.mac.type >= e1000_82576) in igb_setup_mrqc()
3444 if (hw->mac.type > e1000_82575) { in igb_setup_mrqc()
3459 if (hw->mac.type != e1000_i211) in igb_setup_mrqc()
3482 (hw->mac.mc_filter_type << E1000_RCTL_MO_SHIFT); in igb_setup_rctl()
3584 if (hw->mac.type < e1000_82576) in igb_set_vmolr()
3589 if (hw->mac.type == e1000_i350) { in igb_set_vmolr()
3649 if (hw->mac.type >= e1000_82580) in igb_configure_rx_ring()
3683 igb_rar_set_qsel(adapter, adapter->hw.mac.addr, 0, in igb_configure_rx()
3908 memcpy(hw->mac.addr, addr->sa_data, netdev->addr_len); in igb_set_mac()
3911 igb_rar_set_qsel(adapter, hw->mac.addr, 0, in igb_set_mac()
3970 unsigned int rar_entries = hw->mac.rar_entry_count - (vfn + 1); in igb_write_uc_addr_list()
4063 if ((hw->mac.type < e1000_82576) || (hw->mac.type > e1000_i350)) in igb_set_rx_mode()
4077 switch (hw->mac.type) { in igb_check_wvbr()
4137 if (!hw->mac.get_link_status) in igb_has_link()
4140 hw->mac.ops.check_for_link(hw); in igb_has_link()
4141 link_active = !hw->mac.get_link_status; in igb_has_link()
4148 if (((hw->mac.type == e1000_i210) || in igb_has_link()
4149 (hw->mac.type == e1000_i211)) && in igb_has_link()
4168 if (hw->mac.type == e1000_i350) { in igb_thermal_sensor_event()
4253 hw->mac.ops.get_speed_and_duplex(hw, in igb_watchdog_task()
4396 if ((adapter->hw.mac.type == e1000_i350) || in igb_watchdog_task()
4397 (adapter->hw.mac.type == e1000_i354)) in igb_watchdog_task()
5035 if (adapter->hw.mac.type == e1000_82576) in igb_xmit_frame_ring()
5114 if (hw->mac.type >= e1000_82580) in igb_tx_timeout()
5231 if (hw->mac.type >= e1000_i210) in igb_update_stats()
5330 if ((hw->mac.type != e1000_i210) && in igb_update_stats()
5331 (hw->mac.type != e1000_i211)) in igb_update_stats()
5491 hw->mac.get_link_status = 1; in igb_msix_other()
5516 if (adapter->hw.mac.type == e1000_82575) in igb_write_itr()
5545 if (hw->mac.type != e1000_82575) in igb_update_tx_dca()
5566 if (hw->mac.type != e1000_82575) in igb_update_rx_dca()
5819 if (hw->mac.type < e1000_82576) in igb_vlvf_set()
6066 int rar_entry = hw->mac.rar_entry_count - (vf + 1); in igb_vf_reset_msg()
6241 if (hw->mac.type < e1000_82576) in igb_set_uta()
6248 for (i = 0; i < hw->mac.uta_reg_count; i++) in igb_set_uta()
6276 hw->mac.get_link_status = 1; in igb_intr_msi()
6321 hw->mac.get_link_status = 1; in igb_intr()
7251 struct e1000_mac_info *mac = &adapter->hw.mac; in igb_set_spd_dplx() local
7253 mac->autoneg = 0; in igb_set_spd_dplx()
7277 mac->forced_speed_duplex = ADVERTISE_10_HALF; in igb_set_spd_dplx()
7280 mac->forced_speed_duplex = ADVERTISE_10_FULL; in igb_set_spd_dplx()
7283 mac->forced_speed_duplex = ADVERTISE_100_HALF; in igb_set_spd_dplx()
7286 mac->forced_speed_duplex = ADVERTISE_100_FULL; in igb_set_spd_dplx()
7289 mac->autoneg = 1; in igb_set_spd_dplx()
7712 if (hw->mac.type == e1000_82575) in igb_rar_set_qsel()
7730 int rar_entry = hw->mac.rar_entry_count - (vf + 1); in igb_set_vf_mac()
7739 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in igb_ndo_set_vf_mac() argument
7742 if (!is_valid_ether_addr(mac) || (vf >= adapter->vfs_allocated_count)) in igb_ndo_set_vf_mac()
7745 dev_info(&adapter->pdev->dev, "setting MAC %pM on VF %d\n", mac, vf); in igb_ndo_set_vf_mac()
7754 return igb_set_vf_mac(adapter, vf, mac); in igb_ndo_set_vf_mac()
7805 (adapter->hw.mac.type != e1000_82576)) in igb_check_vf_rate_limit()
7833 if (hw->mac.type != e1000_82576) in igb_ndo_set_vf_bw()
7866 reg_offset = (hw->mac.type == e1000_82576) ? E1000_DTXSWC : E1000_TXSWC; in igb_ndo_set_vf_spoofchk()
7887 memcpy(&ivi->mac, adapter->vf_data[vf].vf_mac_addresses, ETH_ALEN); in igb_ndo_get_vf_config()
7901 switch (hw->mac.type) { in igb_vmm_control()
7943 if (hw->mac.type > e1000_82580) { in igb_init_dmac()
7981 if (hw->mac.type != e1000_i354) in igb_init_dmac()
8008 } else if (hw->mac.type == e1000_82580) { in igb_init_dmac()
8039 if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in igb_read_i2c_byte()
8043 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in igb_read_i2c_byte()
8074 if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in igb_write_i2c_byte()
8077 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in igb_write_i2c_byte()