Lines Matching refs:mac

841 	switch (hw->mac.type) {  in ixgbe_set_ivar()
885 switch (adapter->hw.mac.type) { in ixgbe_irq_rearm_queues()
937 switch (hw->mac.type) { in ixgbe_update_xoff_rx_lfc()
976 switch (hw->mac.type) { in ixgbe_update_xoff_received()
1237 switch (hw->mac.type) { in ixgbe_update_tx_dca()
1272 switch (hw->mac.type) { in ixgbe_update_rx_dca()
2173 switch (adapter->hw.mac.type) { in ixgbe_configure_msix()
2284 switch (adapter->hw.mac.type) { in ixgbe_write_eitr()
2373 if (!(eicr & IXGBE_EICR_LSC) && hw->mac.ops.check_link) { in ixgbe_check_overtemp_subtask()
2377 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_check_overtemp_subtask()
2418 switch (adapter->hw.mac.type) { in ixgbe_check_overtemp_event()
2489 switch (hw->mac.type) { in ixgbe_irq_enable_queues()
2517 switch (hw->mac.type) { in ixgbe_irq_disable_queues()
2553 switch (adapter->hw.mac.type) { in ixgbe_irq_enable()
2567 switch (adapter->hw.mac.type) { in ixgbe_irq_enable()
2624 switch (hw->mac.type) { in ixgbe_msix_other()
2843 switch (hw->mac.type) { in ixgbe_intr()
2938 switch (adapter->hw.mac.type) { in ixgbe_irq_disable()
3058 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_configure_tx_ring()
3077 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_setup_mtqc()
3133 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_configure_tx()
3209 if (hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_configure_srrctl()
3242 if (adapter->hw.mac.type < ixgbe_mac_X550) in ixgbe_rss_indir_tbl_entries()
3271 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_store_reta()
3380 if (adapter->hw.mac.type == ixgbe_mac_82598EB) { in ixgbe_setup_mrqc()
3417 if ((hw->mac.type >= ixgbe_mac_X550) && in ixgbe_setup_mrqc()
3475 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_rx_desc_queue_enable()
3506 if (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_disable_rx_queue()
3545 if (hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_configure_rx_ring()
3578 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_setup_psrtype()
3619 hw->mac.ops.set_vmdq(hw, 0, VMDQ_P(0)); in ixgbe_configure_virtualization()
3641 hw->mac.ops.set_mac_anti_spoofing(hw, (adapter->num_vfs != 0), in ixgbe_configure_virtualization()
3647 if (hw->mac.ops.set_ethertype_anti_spoofing) in ixgbe_configure_virtualization()
3659 if (hw->mac.ops.set_ethertype_anti_spoofing) in ixgbe_configure_virtualization()
3660 hw->mac.ops.set_ethertype_anti_spoofing(hw, true, i); in ixgbe_configure_virtualization()
3720 switch (hw->mac.type) { in ixgbe_setup_rdrxctl()
3767 hw->mac.ops.disable_rx(hw); in ixgbe_configure_rx()
3794 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_rx()
3799 hw->mac.ops.enable_rx_dma(hw, rxctrl); in ixgbe_configure_rx()
3809 hw->mac.ops.set_vfta(&adapter->hw, vid, VMDQ_P(0), true); in ixgbe_vlan_rx_add_vid()
3822 hw->mac.ops.set_vfta(&adapter->hw, vid, VMDQ_P(0), false); in ixgbe_vlan_rx_kill_vid()
3838 switch (hw->mac.type) { in ixgbe_vlan_strip_disable()
3874 switch (hw->mac.type) { in ixgbe_vlan_strip_enable()
3927 if (hw->mac.ops.update_mc_addr_list) in ixgbe_write_mc_addr_list()
3928 hw->mac.ops.update_mc_addr_list(hw, netdev); in ixgbe_write_mc_addr_list()
3944 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_full_sync_mac_table()
3946 hw->mac.ops.set_rar(hw, i, adapter->mac_table[i].addr, in ixgbe_full_sync_mac_table()
3950 hw->mac.ops.clear_rar(hw, i); in ixgbe_full_sync_mac_table()
3961 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_sync_mac_table()
3965 hw->mac.ops.set_rar(hw, i, in ixgbe_sync_mac_table()
3970 hw->mac.ops.clear_rar(hw, i); in ixgbe_sync_mac_table()
3983 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_flush_sw_mac_table()
3997 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_available_rars()
4014 hw->mac.ops.set_rar(hw, 0, adapter->mac_table[0].addr, in ixgbe_mac_set_default_filter()
4027 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_add_mac_filter()
4049 for (i = 0; i < hw->mac.num_rar_entries; i++) { in ixgbe_del_mac_filter()
4164 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_set_rx_mode()
4230 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_dcb()
4235 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_configure_dcb()
4260 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_configure_dcb()
4303 switch (hw->mac.type) { in ixgbe_hpbthresh()
4363 switch (hw->mac.type) { in ixgbe_lpbthresh()
4415 hw->mac.ops.set_rxpba(hw, tc, hdrm, PBA_STRATEGY_EQUAL); in ixgbe_configure_pb()
4460 hw->mac.ops.update_mc_addr_list(hw, dev); in ixgbe_macvlan_set_rx_mode()
4478 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_fwd_psrtype()
4669 switch (hw->mac.type) { in ixgbe_configure()
4672 hw->mac.ops.disable_rx_buff(hw); in ixgbe_configure()
4687 switch (hw->mac.type) { in ixgbe_configure()
4690 hw->mac.ops.enable_rx_buff(hw); in ixgbe_configure()
4725 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_is_sfp()
4744 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_sfp_link_config()
4762 if (hw->mac.ops.check_link) in ixgbe_non_sfp_link_config()
4763 ret = hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_non_sfp_link_config()
4769 if ((!speed) && (hw->mac.ops.get_link_capabilities)) in ixgbe_non_sfp_link_config()
4770 ret = hw->mac.ops.get_link_capabilities(hw, &speed, in ixgbe_non_sfp_link_config()
4775 if (hw->mac.ops.setup_link) in ixgbe_non_sfp_link_config()
4776 ret = hw->mac.ops.setup_link(hw, speed, link_up); in ixgbe_non_sfp_link_config()
4794 switch (hw->mac.type) { in ixgbe_setup_gpie()
4834 switch (adapter->hw.mac.type) { in ixgbe_setup_gpie()
4850 if (hw->mac.type == ixgbe_mac_82599EB) { in ixgbe_setup_gpie()
4873 if (hw->mac.ops.enable_tx_laser) in ixgbe_up_complete()
4874 hw->mac.ops.enable_tx_laser(hw); in ixgbe_up_complete()
4961 err = hw->mac.ops.init_hw(hw); in ixgbe_reset()
4990 if (hw->mac.san_mac_rar_index) in ixgbe_reset()
4991 hw->mac.ops.set_vmdq_san_mac(hw, VMDQ_P(0)); in ixgbe_reset()
5083 hw->mac.ops.disable_rx(hw); in ixgbe_down()
5143 switch (hw->mac.type) { in ixgbe_down()
5160 if (hw->mac.ops.disable_tx_laser) in ixgbe_down()
5161 hw->mac.ops.disable_tx_laser(hw); in ixgbe_down()
5234 hw->mac.num_rar_entries, in ixgbe_sw_init()
5238 switch (hw->mac.type) { in ixgbe_sw_init()
5286 switch (hw->mac.type) { in ixgbe_sw_init()
5337 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_sw_init()
5645 (adapter->hw.mac.type == ixgbe_mac_82599EB) && in ixgbe_change_mtu()
5850 if (hw->mac.ops.stop_link_on_d3) in __ixgbe_shutdown()
5851 hw->mac.ops.stop_link_on_d3(hw); in __ixgbe_shutdown()
5857 if (hw->mac.ops.enable_tx_laser) in __ixgbe_shutdown()
5858 hw->mac.ops.enable_tx_laser(hw); in __ixgbe_shutdown()
5877 switch (hw->mac.type) { in __ixgbe_shutdown()
6006 switch (hw->mac.type) { in ixgbe_update_stats()
6030 if ((hw->mac.type == ixgbe_mac_82599EB) || in ixgbe_update_stats()
6031 (hw->mac.type == ixgbe_mac_X540) || in ixgbe_update_stats()
6032 (hw->mac.type == ixgbe_mac_X550) || in ixgbe_update_stats()
6033 (hw->mac.type == ixgbe_mac_X550EM_x)) { in ixgbe_update_stats()
6048 switch (hw->mac.type) { in ixgbe_update_stats()
6105 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_update_stats()
6251 if (hw->mac.ops.check_link) { in ixgbe_watchdog_update_link()
6252 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_watchdog_update_link()
6263 hw->mac.ops.fc_enable(hw); in ixgbe_watchdog_update_link()
6316 switch (hw->mac.type) { in ixgbe_watchdog_link_is_up()
6400 if (ixgbe_is_sfp(hw) && hw->mac.type == ixgbe_mac_82598EB) in ixgbe_watchdog_link_is_down()
6439 if (hw->mac.type >= ixgbe_mac_X550) in ixgbe_vf_tx_pending()
6542 if (adapter->hw.mac.type == ixgbe_mac_82598EB || in ixgbe_spoof_check()
6638 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_sfp_detection_subtask()
6641 err = hw->mac.ops.setup_sfp(hw); in ixgbe_sfp_detection_subtask()
6682 if ((!speed) && (hw->mac.ops.get_link_capabilities)) { in ixgbe_sfp_link_config_subtask()
6683 hw->mac.ops.get_link_capabilities(hw, &speed, &autoneg); in ixgbe_sfp_link_config_subtask()
6692 if (hw->mac.ops.setup_link) in ixgbe_sfp_link_config_subtask()
6693 hw->mac.ops.setup_link(hw, speed, true); in ixgbe_sfp_link_config_subtask()
7457 ixgbe_del_mac_filter(adapter, hw->mac.addr, VMDQ_P(0)); in ixgbe_set_mac()
7459 memcpy(hw->mac.addr, addr->sa_data, netdev->addr_len); in ixgbe_set_mac()
7461 ret = ixgbe_add_mac_filter(adapter, hw->mac.addr, VMDQ_P(0)); in ixgbe_set_mac()
7519 if (is_valid_ether_addr(hw->mac.san_addr)) { in ixgbe_add_sanmac_netdev()
7521 err = dev_addr_add(dev, hw->mac.san_addr, NETDEV_HW_ADDR_T_SAN); in ixgbe_add_sanmac_netdev()
7525 hw->mac.ops.set_vmdq_san_mac(hw, VMDQ_P(0)); in ixgbe_add_sanmac_netdev()
7541 struct ixgbe_mac_info *mac = &adapter->hw.mac; in ixgbe_del_sanmac_netdev() local
7543 if (is_valid_ether_addr(mac->san_addr)) { in ixgbe_del_sanmac_netdev()
7545 err = dev_addr_del(dev, mac->san_addr, NETDEV_HW_ADDR_T_SAN); in ixgbe_del_sanmac_netdev()
7638 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_validate_rtr()
7698 (hw->mac.type == ixgbe_mac_82598EB && in ixgbe_setup_tc()
7721 if (adapter->hw.mac.type == ixgbe_mac_82598EB) { in ixgbe_setup_tc()
7728 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_setup_tc()
7968 if (hw->mac.ops.set_source_address_pruning) in ixgbe_configure_bridge_mode()
7969 hw->mac.ops.set_source_address_pruning(hw, in ixgbe_configure_bridge_mode()
7992 if (hw->mac.ops.set_source_address_pruning) in ixgbe_configure_bridge_mode()
7993 hw->mac.ops.set_source_address_pruning(hw, in ixgbe_configure_bridge_mode()
8319 ether_addr_copy(hw->mac.perm_addr, addr); in ixgbe_get_platform_mac_addr()
8325 ether_addr_copy(hw->mac.perm_addr, idprom->id_ethaddr); in ixgbe_get_platform_mac_addr()
8393 if (ii->mac == ixgbe_mac_82598EB) { in ixgbe_probe()
8432 memcpy(&hw->mac.ops, ii->mac_ops, sizeof(hw->mac.ops)); in ixgbe_probe()
8433 hw->mac.type = ii->mac; in ixgbe_probe()
8465 switch (adapter->hw.mac.type) { in ixgbe_probe()
8491 err = hw->mac.ops.reset_hw(hw); in ixgbe_probe()
8494 hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_probe()
8507 if (adapter->hw.mac.type == ixgbe_mac_82598EB) in ixgbe_probe()
8529 switch (adapter->hw.mac.type) { in ixgbe_probe()
8554 switch (adapter->hw.mac.type) { in ixgbe_probe()
8571 if (hw->mac.ops.get_device_caps) { in ixgbe_probe()
8572 hw->mac.ops.get_device_caps(hw, &device_caps); in ixgbe_probe()
8608 memcpy(netdev->dev_addr, hw->mac.perm_addr, netdev->addr_len); in ixgbe_probe()
8616 ixgbe_mac_set_default_filter(adapter, hw->mac.perm_addr); in ixgbe_probe()
8648 hw->mac.ops.get_bus_info(hw); in ixgbe_probe()
8657 switch (hw->mac.type) { in ixgbe_probe()
8675 hw->mac.type, hw->phy.type, hw->phy.sfp_type, in ixgbe_probe()
8679 hw->mac.type, hw->phy.type, part_str); in ixgbe_probe()
8684 err = hw->mac.ops.start_hw(hw); in ixgbe_probe()
8702 if (hw->mac.ops.disable_tx_laser) in ixgbe_probe()
8703 hw->mac.ops.disable_tx_laser(hw); in ixgbe_probe()
8723 if (hw->mac.ops.set_fw_drv_ver) in ixgbe_probe()
8724 hw->mac.ops.set_fw_drv_ver(hw, 0xFF, 0xFF, 0xFF, in ixgbe_probe()
8740 if (ixgbe_mng_enabled(hw) && ixgbe_is_sfp(hw) && hw->mac.ops.setup_link) in ixgbe_probe()
8741 hw->mac.ops.setup_link(hw, in ixgbe_probe()
8866 if (adapter->hw.mac.type == ixgbe_mac_82598EB || in ixgbe_io_error_detected()
8902 switch (adapter->hw.mac.type) { in ixgbe_io_error_detected()