Lines Matching refs:mac
855 switch (hw->mac.type) { in ixgbe_set_ivar()
899 switch (adapter->hw.mac.type) { in ixgbe_irq_rearm_queues()
951 switch (hw->mac.type) { in ixgbe_update_xoff_rx_lfc()
990 switch (hw->mac.type) { in ixgbe_update_xoff_received()
1254 switch (hw->mac.type) { in ixgbe_update_tx_dca()
1291 switch (hw->mac.type) { in ixgbe_update_rx_dca()
2213 switch (adapter->hw.mac.type) { in ixgbe_configure_msix()
2324 switch (adapter->hw.mac.type) { in ixgbe_write_eitr()
2413 if (!(eicr & IXGBE_EICR_LSC) && hw->mac.ops.check_link) { in ixgbe_check_overtemp_subtask()
2417 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_check_overtemp_subtask()
2429 if (adapter->hw.mac.type >= ixgbe_mac_X540) in ixgbe_check_overtemp_subtask()
2459 switch (adapter->hw.mac.type) { in ixgbe_check_overtemp_event()
2487 switch (hw->mac.type) { in ixgbe_is_sfp()
2494 switch (hw->mac.ops.get_media_type(hw)) { in ixgbe_is_sfp()
2515 if (hw->mac.type >= ixgbe_mac_X540) in ixgbe_check_sfp_event()
2528 if (adapter->hw.mac.type == ixgbe_mac_82599EB && in ixgbe_check_sfp_event()
2559 switch (hw->mac.type) { in ixgbe_irq_enable_queues()
2587 switch (hw->mac.type) { in ixgbe_irq_disable_queues()
2624 switch (adapter->hw.mac.type) { in ixgbe_irq_enable()
2638 switch (adapter->hw.mac.type) { in ixgbe_irq_enable()
2699 switch (hw->mac.type) { in ixgbe_msix_other()
2929 switch (hw->mac.type) { in ixgbe_intr()
3024 switch (adapter->hw.mac.type) { in ixgbe_irq_disable()
3144 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_configure_tx_ring()
3163 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_setup_mtqc()
3219 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_configure_tx()
3295 if (hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_configure_srrctl()
3328 if (adapter->hw.mac.type < ixgbe_mac_X550) in ixgbe_rss_indir_tbl_entries()
3357 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_store_reta()
3466 if (adapter->hw.mac.type == ixgbe_mac_82598EB) { in ixgbe_setup_mrqc()
3503 if ((hw->mac.type >= ixgbe_mac_X550) && in ixgbe_setup_mrqc()
3561 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_rx_desc_queue_enable()
3592 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_disable_rx_queue()
3631 if (hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_configure_rx_ring()
3664 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_setup_psrtype()
3705 hw->mac.ops.set_vmdq(hw, 0, VMDQ_P(0)); in ixgbe_configure_virtualization()
3727 hw->mac.ops.set_mac_anti_spoofing(hw, (adapter->num_vfs != 0), in ixgbe_configure_virtualization()
3733 if (hw->mac.ops.set_ethertype_anti_spoofing) { in ixgbe_configure_virtualization()
3751 if (hw->mac.ops.set_ethertype_anti_spoofing) in ixgbe_configure_virtualization()
3752 hw->mac.ops.set_ethertype_anti_spoofing(hw, true, i); in ixgbe_configure_virtualization()
3812 switch (hw->mac.type) { in ixgbe_setup_rdrxctl()
3862 hw->mac.ops.disable_rx(hw); in ixgbe_configure_rx()
3889 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_rx()
3894 hw->mac.ops.enable_rx_dma(hw, rxctrl); in ixgbe_configure_rx()
3904 hw->mac.ops.set_vfta(&adapter->hw, vid, VMDQ_P(0), true); in ixgbe_vlan_rx_add_vid()
3917 hw->mac.ops.set_vfta(&adapter->hw, vid, VMDQ_P(0), false); in ixgbe_vlan_rx_kill_vid()
3933 switch (hw->mac.type) { in ixgbe_vlan_strip_disable()
3969 switch (hw->mac.type) { in ixgbe_vlan_strip_enable()
4022 if (hw->mac.ops.update_mc_addr_list) in ixgbe_write_mc_addr_list()
4023 hw->mac.ops.update_mc_addr_list(hw, netdev); in ixgbe_write_mc_addr_list()
4039 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_full_sync_mac_table()
4041 hw->mac.ops.set_rar(hw, i, adapter->mac_table[i].addr, in ixgbe_full_sync_mac_table()
4045 hw->mac.ops.clear_rar(hw, i); in ixgbe_full_sync_mac_table()
4056 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_sync_mac_table()
4060 hw->mac.ops.set_rar(hw, i, in ixgbe_sync_mac_table()
4065 hw->mac.ops.clear_rar(hw, i); in ixgbe_sync_mac_table()
4078 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_flush_sw_mac_table()
4092 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_available_rars()
4109 hw->mac.ops.set_rar(hw, 0, adapter->mac_table[0].addr, in ixgbe_mac_set_default_filter()
4122 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_add_mac_filter()
4144 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_del_mac_filter()
4259 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_set_rx_mode()
4312 switch (adapter->hw.mac.type) { in ixgbe_clear_vxlan_port()
4340 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_dcb()
4345 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_dcb()
4370 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_configure_dcb()
4413 switch (hw->mac.type) { in ixgbe_hpbthresh()
4473 switch (hw->mac.type) { in ixgbe_lpbthresh()
4525 hw->mac.ops.set_rxpba(hw, tc, hdrm, PBA_STRATEGY_EQUAL); in ixgbe_configure_pb()
4570 hw->mac.ops.update_mc_addr_list(hw, dev); in ixgbe_macvlan_set_rx_mode()
4588 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_fwd_psrtype()
4779 switch (hw->mac.type) { in ixgbe_configure()
4782 hw->mac.ops.disable_rx_buff(hw); in ixgbe_configure()
4797 switch (hw->mac.type) { in ixgbe_configure()
4800 hw->mac.ops.enable_rx_buff(hw); in ixgbe_configure()
4834 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_sfp_link_config()
4853 if (hw->mac.ops.check_link) in ixgbe_non_sfp_link_config()
4854 ret = hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_non_sfp_link_config()
4860 if ((!speed) && (hw->mac.ops.get_link_capabilities)) in ixgbe_non_sfp_link_config()
4861 ret = hw->mac.ops.get_link_capabilities(hw, &speed, in ixgbe_non_sfp_link_config()
4866 if (hw->mac.ops.setup_link) in ixgbe_non_sfp_link_config()
4867 ret = hw->mac.ops.setup_link(hw, speed, link_up); in ixgbe_non_sfp_link_config()
4885 switch (hw->mac.type) { in ixgbe_setup_gpie()
4925 switch (adapter->hw.mac.type) { in ixgbe_setup_gpie()
4938 switch (hw->mac.type) { in ixgbe_setup_gpie()
4967 if (hw->mac.ops.enable_tx_laser) in ixgbe_up_complete()
4968 hw->mac.ops.enable_tx_laser(hw); in ixgbe_up_complete()
5058 err = hw->mac.ops.init_hw(hw); in ixgbe_reset()
5087 if (hw->mac.san_mac_rar_index) in ixgbe_reset()
5088 hw->mac.ops.set_vmdq_san_mac(hw, VMDQ_P(0)); in ixgbe_reset()
5187 hw->mac.ops.disable_rx(hw); in ixgbe_down()
5247 switch (hw->mac.type) { in ixgbe_down()
5264 if (hw->mac.ops.disable_tx_laser) in ixgbe_down()
5265 hw->mac.ops.disable_tx_laser(hw); in ixgbe_down()
5332 hw->mac.num_rar_entries, in ixgbe_sw_init()
5336 switch (hw->mac.type) { in ixgbe_sw_init()
5386 switch (hw->mac.type) { in ixgbe_sw_init()
5437 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_sw_init()
5745 (adapter->hw.mac.type == ixgbe_mac_82599EB) && in ixgbe_change_mtu()
5962 if (hw->mac.ops.stop_link_on_d3) in __ixgbe_shutdown()
5963 hw->mac.ops.stop_link_on_d3(hw); in __ixgbe_shutdown()
5969 if (hw->mac.ops.enable_tx_laser) in __ixgbe_shutdown()
5970 hw->mac.ops.enable_tx_laser(hw); in __ixgbe_shutdown()
5989 switch (hw->mac.type) { in __ixgbe_shutdown()
6120 switch (hw->mac.type) { in ixgbe_update_stats()
6144 if ((hw->mac.type == ixgbe_mac_82599EB) || in ixgbe_update_stats()
6145 (hw->mac.type == ixgbe_mac_X540) || in ixgbe_update_stats()
6146 (hw->mac.type == ixgbe_mac_X550) || in ixgbe_update_stats()
6147 (hw->mac.type == ixgbe_mac_X550EM_x)) { in ixgbe_update_stats()
6162 switch (hw->mac.type) { in ixgbe_update_stats()
6219 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_update_stats()
6365 if (hw->mac.ops.check_link) { in ixgbe_watchdog_update_link()
6366 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_watchdog_update_link()
6377 hw->mac.ops.fc_enable(hw); in ixgbe_watchdog_update_link()
6431 switch (hw->mac.type) { in ixgbe_watchdog_link_is_up()
6525 if (ixgbe_is_sfp(hw) && hw->mac.type == ixgbe_mac_82598EB) in ixgbe_watchdog_link_is_down()
6564 if (hw->mac.type >= ixgbe_mac_X550) in ixgbe_vf_tx_pending()
6667 if (adapter->hw.mac.type == ixgbe_mac_82598EB || in ixgbe_spoof_check()
6769 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_sfp_detection_subtask()
6772 err = hw->mac.ops.setup_sfp(hw); in ixgbe_sfp_detection_subtask()
6813 if ((!speed) && (hw->mac.ops.get_link_capabilities)) { in ixgbe_sfp_link_config_subtask()
6814 hw->mac.ops.get_link_capabilities(hw, &speed, &autoneg); in ixgbe_sfp_link_config_subtask()
6823 if (hw->mac.ops.setup_link) in ixgbe_sfp_link_config_subtask()
6824 hw->mac.ops.setup_link(hw, speed, true); in ixgbe_sfp_link_config_subtask()
7667 ixgbe_del_mac_filter(adapter, hw->mac.addr, VMDQ_P(0)); in ixgbe_set_mac()
7669 memcpy(hw->mac.addr, addr->sa_data, netdev->addr_len); in ixgbe_set_mac()
7671 ret = ixgbe_add_mac_filter(adapter, hw->mac.addr, VMDQ_P(0)); in ixgbe_set_mac()
7729 if (is_valid_ether_addr(hw->mac.san_addr)) { in ixgbe_add_sanmac_netdev()
7731 err = dev_addr_add(dev, hw->mac.san_addr, NETDEV_HW_ADDR_T_SAN); in ixgbe_add_sanmac_netdev()
7735 hw->mac.ops.set_vmdq_san_mac(hw, VMDQ_P(0)); in ixgbe_add_sanmac_netdev()
7751 struct ixgbe_mac_info *mac = &adapter->hw.mac; in ixgbe_del_sanmac_netdev() local
7753 if (is_valid_ether_addr(mac->san_addr)) { in ixgbe_del_sanmac_netdev()
7755 err = dev_addr_del(dev, mac->san_addr, NETDEV_HW_ADDR_T_SAN); in ixgbe_del_sanmac_netdev()
7848 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_validate_rtr()
7910 if (hw->mac.type == ixgbe_mac_82598EB && tc && tc < MAX_TRAFFIC_CLASS) in ixgbe_setup_tc()
7935 if (adapter->hw.mac.type == ixgbe_mac_82598EB) { in ixgbe_setup_tc()
7942 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_setup_tc()
8197 if (hw->mac.ops.set_source_address_pruning) in ixgbe_configure_bridge_mode()
8198 hw->mac.ops.set_source_address_pruning(hw, in ixgbe_configure_bridge_mode()
8221 if (hw->mac.ops.set_source_address_pruning) in ixgbe_configure_bridge_mode()
8222 hw->mac.ops.set_source_address_pruning(hw, in ixgbe_configure_bridge_mode()
8572 ether_addr_copy(hw->mac.perm_addr, addr); in ixgbe_get_platform_mac_addr()
8578 ether_addr_copy(hw->mac.perm_addr, idprom->id_ethaddr); in ixgbe_get_platform_mac_addr()
8646 if (ii->mac == ixgbe_mac_82598EB) { in ixgbe_probe()
8685 memcpy(&hw->mac.ops, ii->mac_ops, sizeof(hw->mac.ops)); in ixgbe_probe()
8686 hw->mac.type = ii->mac; in ixgbe_probe()
8719 switch (adapter->hw.mac.type) { in ixgbe_probe()
8745 err = hw->mac.ops.reset_hw(hw); in ixgbe_probe()
8760 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_probe()
8782 switch (adapter->hw.mac.type) { in ixgbe_probe()
8811 switch (adapter->hw.mac.type) { in ixgbe_probe()
8831 if (hw->mac.ops.get_device_caps) { in ixgbe_probe()
8832 hw->mac.ops.get_device_caps(hw, &device_caps); in ixgbe_probe()
8868 memcpy(netdev->dev_addr, hw->mac.perm_addr, netdev->addr_len); in ixgbe_probe()
8876 ixgbe_mac_set_default_filter(adapter, hw->mac.perm_addr); in ixgbe_probe()
8911 hw->mac.ops.get_bus_info(hw); in ixgbe_probe()
8918 switch (hw->mac.type) { in ixgbe_probe()
8936 hw->mac.type, hw->phy.type, hw->phy.sfp_type, in ixgbe_probe()
8940 hw->mac.type, hw->phy.type, part_str); in ixgbe_probe()
8945 err = hw->mac.ops.start_hw(hw); in ixgbe_probe()
8963 if (hw->mac.ops.disable_tx_laser) in ixgbe_probe()
8964 hw->mac.ops.disable_tx_laser(hw); in ixgbe_probe()
8984 if (hw->mac.ops.set_fw_drv_ver) in ixgbe_probe()
8985 hw->mac.ops.set_fw_drv_ver(hw, 0xFF, 0xFF, 0xFF, in ixgbe_probe()
9001 if (ixgbe_mng_enabled(hw) && ixgbe_is_sfp(hw) && hw->mac.ops.setup_link) in ixgbe_probe()
9002 hw->mac.ops.setup_link(hw, in ixgbe_probe()
9123 if (adapter->hw.mac.type == ixgbe_mac_82598EB || in ixgbe_io_error_detected()
9159 switch (adapter->hw.mac.type) { in ixgbe_io_error_detected()