Lines Matching refs:mac

863 	switch (hw->mac.type) {  in ixgbe_set_ivar()
908 switch (adapter->hw.mac.type) { in ixgbe_irq_rearm_queues()
939 switch (hw->mac.type) { in ixgbe_update_xoff_rx_lfc()
982 switch (hw->mac.type) { in ixgbe_update_xoff_received()
1278 switch (hw->mac.type) { in ixgbe_update_tx_dca()
1315 switch (hw->mac.type) { in ixgbe_update_rx_dca()
2478 switch (adapter->hw.mac.type) { in ixgbe_configure_msix()
2707 switch (adapter->hw.mac.type) { in ixgbe_write_eitr()
2781 if (!(eicr & IXGBE_EICR_LSC) && hw->mac.ops.check_link) { in ixgbe_check_overtemp_subtask()
2785 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_check_overtemp_subtask()
2802 if (adapter->hw.mac.type >= ixgbe_mac_X540) in ixgbe_check_overtemp_subtask()
2832 switch (adapter->hw.mac.type) { in ixgbe_check_overtemp_event()
2872 switch (hw->mac.type) { in ixgbe_is_sfp()
2880 switch (hw->mac.ops.get_media_type(hw)) { in ixgbe_is_sfp()
2901 if (hw->mac.type >= ixgbe_mac_X540) in ixgbe_check_sfp_event()
2914 if (adapter->hw.mac.type == ixgbe_mac_82599EB && in ixgbe_check_sfp_event()
2945 switch (hw->mac.type) { in ixgbe_irq_enable_queues()
2985 switch (adapter->hw.mac.type) { in ixgbe_irq_enable()
3000 switch (adapter->hw.mac.type) { in ixgbe_irq_enable()
3064 switch (hw->mac.type) { in ixgbe_msix_other()
3307 switch (hw->mac.type) { in ixgbe_intr()
3406 switch (adapter->hw.mac.type) { in ixgbe_irq_disable()
3536 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_configure_tx_ring()
3555 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_setup_mtqc()
3618 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_configure_tx()
3696 if (hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_configure_srrctl()
3721 if (hw->mac.type != ixgbe_mac_82599EB) in ixgbe_configure_srrctl()
3747 if (adapter->hw.mac.type < ixgbe_mac_X550) in ixgbe_rss_indir_tbl_entries()
3812 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_store_reta()
3926 if (adapter->hw.mac.type == ixgbe_mac_82598EB) { in ixgbe_setup_mrqc()
3946 if (hw->mac.type >= ixgbe_mac_X550) in ixgbe_setup_mrqc()
3969 if ((hw->mac.type >= ixgbe_mac_X550) && in ixgbe_setup_mrqc()
4031 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_rx_desc_queue_enable()
4089 if (hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_configure_rx_ring()
4101 } else if (hw->mac.type != ixgbe_mac_82599EB) { in ixgbe_configure_rx_ring()
4118 if (ring->xsk_pool && hw->mac.type != ixgbe_mac_82599EB) { in ixgbe_configure_rx_ring()
4160 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_setup_psrtype()
4209 hw->mac.ops.set_vmdq(hw, 0, VMDQ_P(0)); in ixgbe_configure_virtualization()
4315 switch (hw->mac.type) { in ixgbe_setup_rdrxctl()
4366 hw->mac.ops.disable_rx(hw); in ixgbe_configure_rx()
4396 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_rx()
4401 hw->mac.ops.enable_rx_dma(hw, rxctrl); in ixgbe_configure_rx()
4412 hw->mac.ops.set_vfta(&adapter->hw, vid, VMDQ_P(0), true, !!vid); in ixgbe_vlan_rx_add_vid()
4471 hw->mac.ops.set_vfta(hw, vid, VMDQ_P(0), false, true); in ixgbe_vlan_rx_kill_vid()
4488 switch (hw->mac.type) { in ixgbe_vlan_strip_disable()
4526 switch (hw->mac.type) { in ixgbe_vlan_strip_enable()
4572 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_vlan_promisc_enable()
4592 for (i = hw->mac.vft_size; i--;) in ixgbe_vlan_promisc_enable()
4654 hw->mac.type == ixgbe_mac_82598EB) in ixgbe_vlan_promisc_disable()
4664 for (i = 0; i < hw->mac.vft_size; i += VFTA_BLOCK_SIZE) in ixgbe_vlan_promisc_disable()
4695 if (hw->mac.ops.update_mc_addr_list) in ixgbe_write_mc_addr_list()
4696 hw->mac.ops.update_mc_addr_list(hw, netdev); in ixgbe_write_mc_addr_list()
4714 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_full_sync_mac_table()
4718 hw->mac.ops.set_rar(hw, i, in ixgbe_full_sync_mac_table()
4723 hw->mac.ops.clear_rar(hw, i); in ixgbe_full_sync_mac_table()
4734 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_sync_mac_table()
4741 hw->mac.ops.set_rar(hw, i, in ixgbe_sync_mac_table()
4746 hw->mac.ops.clear_rar(hw, i); in ixgbe_sync_mac_table()
4756 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_flush_sw_mac_table()
4770 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_available_rars()
4793 memcpy(&mac_table->addr, hw->mac.addr, ETH_ALEN); in ixgbe_mac_set_default_filter()
4798 hw->mac.ops.set_rar(hw, 0, mac_table->addr, mac_table->pool, in ixgbe_mac_set_default_filter()
4812 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_add_mac_filter()
4841 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_del_mac_filter()
4945 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_set_rx_mode()
5044 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_dcb()
5049 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_dcb()
5074 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_configure_dcb()
5117 switch (hw->mac.type) { in ixgbe_hpbthresh()
5178 switch (hw->mac.type) { in ixgbe_lpbthresh()
5231 hw->mac.ops.set_rxpba(hw, tc, hdrm, PBA_STRATEGY_EQUAL); in ixgbe_configure_pb()
5441 switch (hw->mac.type) { in ixgbe_configure()
5444 hw->mac.ops.disable_rx_buff(hw); in ixgbe_configure()
5459 switch (hw->mac.type) { in ixgbe_configure()
5462 hw->mac.ops.enable_rx_buff(hw); in ixgbe_configure()
5496 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_sfp_link_config()
5515 if (hw->mac.ops.check_link) in ixgbe_non_sfp_link_config()
5516 ret = hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_non_sfp_link_config()
5522 if (!speed && hw->mac.ops.get_link_capabilities) { in ixgbe_non_sfp_link_config()
5523 ret = hw->mac.ops.get_link_capabilities(hw, &speed, in ixgbe_non_sfp_link_config()
5536 if (hw->mac.ops.setup_link) in ixgbe_non_sfp_link_config()
5537 ret = hw->mac.ops.setup_link(hw, speed, link_up); in ixgbe_non_sfp_link_config()
5596 switch (hw->mac.type) { in ixgbe_setup_gpie()
5637 switch (adapter->hw.mac.type) { in ixgbe_setup_gpie()
5650 switch (hw->mac.type) { in ixgbe_setup_gpie()
5680 if (hw->mac.ops.enable_tx_laser) in ixgbe_up_complete()
5681 hw->mac.ops.enable_tx_laser(hw); in ixgbe_up_complete()
5803 hw->mac.ops.disable_rx(hw); in ixgbe_disable_rx()
5822 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_disable_rx()
5949 switch (hw->mac.type) { in ixgbe_disable_tx()
5981 err = hw->mac.ops.init_hw(hw); in ixgbe_reset()
6013 if (hw->mac.san_mac_rar_index) in ixgbe_reset()
6014 hw->mac.ops.set_vmdq_san_mac(hw, VMDQ_P(0)); in ixgbe_reset()
6194 if (hw->mac.ops.disable_tx_laser) in ixgbe_down()
6195 hw->mac.ops.disable_tx_laser(hw); in ixgbe_down()
6246 switch (hw->mac.type) { in ixgbe_init_dcb()
6356 adapter->mac_table = kcalloc(hw->mac.num_rar_entries, in ixgbe_sw_init()
6370 switch (hw->mac.type) { in ixgbe_sw_init()
6420 if (hw->mac.type == ixgbe_mac_X550) in ixgbe_sw_init()
6459 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_sw_init()
6812 (adapter->hw.mac.type == ixgbe_mac_82599EB) && in ixgbe_change_mtu()
7001 if (hw->mac.ops.stop_link_on_d3) in __ixgbe_shutdown()
7002 hw->mac.ops.stop_link_on_d3(hw); in __ixgbe_shutdown()
7010 if (hw->mac.ops.enable_tx_laser) in __ixgbe_shutdown()
7011 hw->mac.ops.enable_tx_laser(hw); in __ixgbe_shutdown()
7028 switch (hw->mac.type) { in __ixgbe_shutdown()
7171 switch (hw->mac.type) { in ixgbe_update_stats()
7196 if ((hw->mac.type == ixgbe_mac_82599EB) || in ixgbe_update_stats()
7197 (hw->mac.type == ixgbe_mac_X540) || in ixgbe_update_stats()
7198 (hw->mac.type == ixgbe_mac_X550) || in ixgbe_update_stats()
7199 (hw->mac.type == ixgbe_mac_X550EM_x) || in ixgbe_update_stats()
7200 (hw->mac.type == ixgbe_mac_x550em_a)) { in ixgbe_update_stats()
7215 switch (hw->mac.type) { in ixgbe_update_stats()
7274 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_update_stats()
7450 if (hw->mac.ops.check_link) { in ixgbe_watchdog_update_link()
7451 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_watchdog_update_link()
7462 hw->mac.ops.fc_enable(hw); in ixgbe_watchdog_update_link()
7514 switch (hw->mac.type) { in ixgbe_watchdog_link_is_up()
7603 if (ixgbe_is_sfp(hw) && hw->mac.type == ixgbe_mac_82598EB) in ixgbe_watchdog_link_is_down()
7649 if (hw->mac.type >= ixgbe_mac_X550) in ixgbe_vf_tx_pending()
7692 if (adapter->hw.mac.type == ixgbe_mac_82599EB && in ixgbe_bad_vf_abort()
7752 if (adapter->hw.mac.type == ixgbe_mac_82598EB || in ixgbe_spoof_check()
7854 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_sfp_detection_subtask()
7857 err = hw->mac.ops.setup_sfp(hw); in ixgbe_sfp_detection_subtask()
7898 hw->mac.ops.get_link_capabilities(hw, &cap_speed, &autoneg); in ixgbe_sfp_link_config_subtask()
7907 if (hw->mac.ops.setup_link) in ixgbe_sfp_link_config_subtask()
7908 hw->mac.ops.setup_link(hw, speed, true); in ixgbe_sfp_link_config_subtask()
7995 if (hw->mac.ops.fw_recovery_mode && hw->mac.ops.fw_recovery_mode(hw)) { in ixgbe_check_fw_error()
8907 memcpy(hw->mac.addr, addr->sa_data, netdev->addr_len); in ixgbe_set_mac()
8992 if (is_valid_ether_addr(hw->mac.san_addr)) { in ixgbe_add_sanmac_netdev()
8994 err = dev_addr_add(dev, hw->mac.san_addr, NETDEV_HW_ADDR_T_SAN); in ixgbe_add_sanmac_netdev()
8998 hw->mac.ops.set_vmdq_san_mac(hw, VMDQ_P(0)); in ixgbe_add_sanmac_netdev()
9014 struct ixgbe_mac_info *mac = &adapter->hw.mac; in ixgbe_del_sanmac_netdev() local
9016 if (is_valid_ether_addr(mac->san_addr)) { in ixgbe_del_sanmac_netdev()
9018 err = dev_addr_del(dev, mac->san_addr, NETDEV_HW_ADDR_T_SAN); in ixgbe_del_sanmac_netdev()
9119 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_validate_rtr()
9232 if (hw->mac.type == ixgbe_mac_82598EB && tc && tc < MAX_TRAFFIC_CLASS) in ixgbe_setup_tc()
9263 if (adapter->hw.mac.type == ixgbe_mac_82598EB) { in ixgbe_setup_tc()
9270 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_setup_tc()
9977 if (hw->mac.ops.set_source_address_pruning) in ixgbe_configure_bridge_mode()
9978 hw->mac.ops.set_source_address_pruning(hw, in ixgbe_configure_bridge_mode()
10001 if (hw->mac.ops.set_source_address_pruning) in ixgbe_configure_bridge_mode()
10002 hw->mac.ops.set_source_address_pruning(hw, in ixgbe_configure_bridge_mode()
10493 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_disable_rxr_hw()
10538 switch (adapter->hw.mac.type) { in ixgbe_irq_disable_single()
10695 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_wol_supported()
10699 if (hw->mac.type >= ixgbe_mac_X540) { in ixgbe_wol_supported()
10841 if (ii->mac == ixgbe_mac_82598EB) { in ixgbe_probe()
10880 hw->mac.ops = *ii->mac_ops; in ixgbe_probe()
10881 hw->mac.type = ii->mac; in ixgbe_probe()
10913 if (adapter->hw.mac.type == ixgbe_mac_82599EB) in ixgbe_probe()
10916 switch (adapter->hw.mac.type) { in ixgbe_probe()
10929 if (hw->mac.ops.init_swfw_sync) in ixgbe_probe()
10930 hw->mac.ops.init_swfw_sync(hw); in ixgbe_probe()
10933 switch (adapter->hw.mac.type) { in ixgbe_probe()
10960 err = hw->mac.ops.reset_hw(hw); in ixgbe_probe()
10976 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_probe()
11004 if (hw->mac.type >= ixgbe_mac_82599EB) in ixgbe_probe()
11023 if (hw->mac.type >= ixgbe_mac_82599EB) in ixgbe_probe()
11061 if (hw->mac.ops.get_device_caps) { in ixgbe_probe()
11062 hw->mac.ops.get_device_caps(hw, &device_caps); in ixgbe_probe()
11097 adapter->hw.mac.perm_addr); in ixgbe_probe()
11099 eth_hw_addr_set(netdev, hw->mac.perm_addr); in ixgbe_probe()
11108 ether_addr_copy(hw->mac.addr, hw->mac.perm_addr); in ixgbe_probe()
11149 hw->mac.ops.get_bus_info(hw); in ixgbe_probe()
11156 switch (hw->mac.type) { in ixgbe_probe()
11174 hw->mac.type, hw->phy.type, hw->phy.sfp_type, in ixgbe_probe()
11178 hw->mac.type, hw->phy.type, part_str); in ixgbe_probe()
11183 err = hw->mac.ops.start_hw(hw); in ixgbe_probe()
11201 if (hw->mac.ops.disable_tx_laser) in ixgbe_probe()
11202 hw->mac.ops.disable_tx_laser(hw); in ixgbe_probe()
11222 if (hw->mac.ops.set_fw_drv_ver) in ixgbe_probe()
11223 hw->mac.ops.set_fw_drv_ver(hw, 0xFF, 0xFF, 0xFF, 0xFF, in ixgbe_probe()
11240 if (ixgbe_mng_enabled(hw) && ixgbe_is_sfp(hw) && hw->mac.ops.setup_link) in ixgbe_probe()
11241 hw->mac.ops.setup_link(hw, in ixgbe_probe()
11381 if (adapter->hw.mac.type == ixgbe_mac_82598EB || in ixgbe_io_error_detected()
11417 switch (adapter->hw.mac.type) { in ixgbe_io_error_detected()