Lines Matching refs:mac

77 		hw->mac.ops.check_link(hw, &speed, &link_up, false);  in ixgbe_device_supports_autoneg_fc()
143 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &reg_bp); in ixgbe_setup_fc()
219 if (hw->mac.type != ixgbe_mac_X540) { in ixgbe_setup_fc()
245 ret_val = hw->mac.ops.prot_autoc_write(hw, reg_bp, locked); in ixgbe_setup_fc()
274 hw->phy.media_type = hw->mac.ops.get_media_type(hw); in ixgbe_start_hw_generic()
280 hw->mac.ops.clear_vfta(hw); in ixgbe_start_hw_generic()
283 hw->mac.ops.clear_hw_cntrs(hw); in ixgbe_start_hw_generic()
317 for (i = 0; i < hw->mac.max_tx_queues; i++) { in ixgbe_start_hw_gen2()
325 for (i = 0; i < hw->mac.max_tx_queues; i++) { in ixgbe_start_hw_gen2()
333 for (i = 0; i < hw->mac.max_rx_queues; i++) { in ixgbe_start_hw_gen2()
360 status = hw->mac.ops.reset_hw(hw); in ixgbe_init_hw_generic()
364 status = hw->mac.ops.start_hw(hw); in ixgbe_init_hw_generic()
393 if (hw->mac.type >= ixgbe_mac_82599EB) { in ixgbe_clear_hw_cntrs_generic()
404 if (hw->mac.type >= ixgbe_mac_82599EB) { in ixgbe_clear_hw_cntrs_generic()
412 if (hw->mac.type >= ixgbe_mac_82599EB) in ixgbe_clear_hw_cntrs_generic()
429 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_clear_hw_cntrs_generic()
454 if (hw->mac.type >= ixgbe_mac_82599EB) { in ixgbe_clear_hw_cntrs_generic()
466 if (hw->mac.type == ixgbe_mac_X540) { in ixgbe_clear_hw_cntrs_generic()
662 hw->mac.ops.set_lan_id(hw); in ixgbe_get_bus_info_generic()
710 hw->mac.ops.disable_rx(hw); in ixgbe_stop_adapter_generic()
719 for (i = 0; i < hw->mac.max_tx_queues; i++) in ixgbe_stop_adapter_generic()
723 for (i = 0; i < hw->mac.max_rx_queues; i++) { in ixgbe_stop_adapter_generic()
1283 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) != 0) in ixgbe_acquire_eeprom()
1305 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_acquire_eeprom()
1618 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_release_eeprom()
1779 u32 rar_entries = hw->mac.num_rar_entries; in ixgbe_set_rar_generic()
1788 hw->mac.ops.set_vmdq(hw, index, vmdq); in ixgbe_set_rar_generic()
1826 u32 rar_entries = hw->mac.num_rar_entries; in ixgbe_clear_rar_generic()
1846 hw->mac.ops.clear_vmdq(hw, index, IXGBE_CLEAR_VMDQ_ALL); in ixgbe_clear_rar_generic()
1862 u32 rar_entries = hw->mac.num_rar_entries; in ixgbe_init_rx_addrs_generic()
1869 if (!is_valid_ether_addr(hw->mac.addr)) { in ixgbe_init_rx_addrs_generic()
1871 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbe_init_rx_addrs_generic()
1873 hw_dbg(hw, " Keeping Current RAR0 Addr =%pM\n", hw->mac.addr); in ixgbe_init_rx_addrs_generic()
1877 hw_dbg(hw, " New MAC Addr =%pM\n", hw->mac.addr); in ixgbe_init_rx_addrs_generic()
1879 hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0, IXGBE_RAH_AV); in ixgbe_init_rx_addrs_generic()
1882 hw->mac.ops.clear_vmdq(hw, 0, IXGBE_CLEAR_VMDQ_ALL); in ixgbe_init_rx_addrs_generic()
1897 IXGBE_WRITE_REG(hw, IXGBE_MCSTCTRL, hw->mac.mc_filter_type); in ixgbe_init_rx_addrs_generic()
1900 for (i = 0; i < hw->mac.mcft_size; i++) in ixgbe_init_rx_addrs_generic()
1903 if (hw->mac.ops.init_uta_tables) in ixgbe_init_rx_addrs_generic()
1904 hw->mac.ops.init_uta_tables(hw); in ixgbe_init_rx_addrs_generic()
1925 switch (hw->mac.mc_filter_type) { in ixgbe_mta_vector()
1977 hw->mac.mta_shadow[vector_reg] |= (1 << vector_bit); in ixgbe_set_mta()
2005 memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow)); in ixgbe_update_mc_addr_list_generic()
2014 for (i = 0; i < hw->mac.mcft_size; i++) in ixgbe_update_mc_addr_list_generic()
2016 hw->mac.mta_shadow[i]); in ixgbe_update_mc_addr_list_generic()
2020 IXGBE_MCSTCTRL_MFE | hw->mac.mc_filter_type); in ixgbe_update_mc_addr_list_generic()
2038 hw->mac.mc_filter_type); in ixgbe_enable_mc_generic()
2054 IXGBE_WRITE_REG(hw, IXGBE_MCSTCTRL, hw->mac.mc_filter_type); in ixgbe_disable_mc_generic()
2282 if (hw->mac.type == ixgbe_mac_82599EB) { in ixgbe_fc_autoneg_backplane()
2350 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_fc_autoneg()
2470 hw->mac.flags |= IXGBE_FLAGS_DOUBLE_RESET_REQUIRED; in ixgbe_disable_pcie_master()
2647 hw->mac.ops.enable_rx(hw); in ixgbe_enable_rx_dma_generic()
2649 hw->mac.ops.disable_rx(hw); in ixgbe_enable_rx_dma_generic()
2672 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_blink_led_start_generic()
2675 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg); in ixgbe_blink_led_start_generic()
2682 ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked); in ixgbe_blink_led_start_generic()
2711 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg); in ixgbe_blink_led_stop_generic()
2718 ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked); in ixgbe_blink_led_stop_generic()
2784 hw->mac.ops.set_lan_id(hw); in ixgbe_get_san_mac_addr_generic()
2824 switch (hw->mac.type) { in ixgbe_get_pcie_msix_count_generic()
2863 u32 rar_entries = hw->mac.num_rar_entries; in ixgbe_clear_vmdq_generic()
2899 hw->mac.ops.clear_rar(hw, rar); in ixgbe_clear_vmdq_generic()
2912 u32 rar_entries = hw->mac.num_rar_entries; in ixgbe_set_vmdq_generic()
2944 u32 rar = hw->mac.san_mac_rar_index; in ixgbe_set_vmdq_san_mac_generic()
3171 for (offset = 0; offset < hw->mac.vft_size; offset++) in ixgbe_clear_vfta_generic()
3228 if ((hw->mac.type >= ixgbe_mac_X550) && in ixgbe_check_mac_link_generic()
3238 if ((hw->mac.type >= ixgbe_mac_X550) && in ixgbe_check_mac_link_generic()
3317 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_set_mac_anti_spoofing()
3358 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_set_vlan_anti_spoofing()
3396 u32 pbsize = hw->mac.rx_pb_size; in ixgbe_set_rxpba_generic()
3600 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_SW_MNG_SM)) in ixgbe_set_fw_drv_ver_generic()
3634 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_SW_MNG_SM); in ixgbe_set_fw_drv_ver_generic()
3655 if (!(hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED)) in ixgbe_clear_tx_pending()
3754 struct ixgbe_thermal_sensor_data *data = &hw->mac.thermal_sensor_data; in ixgbe_get_thermal_sensor_data_generic()
3812 struct ixgbe_thermal_sensor_data *data = &hw->mac.thermal_sensor_data; in ixgbe_init_thermal_sensor_thresh_generic()
3866 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_disable_rx_generic()
3873 hw->mac.set_lben = true; in ixgbe_disable_rx_generic()
3875 hw->mac.set_lben = false; in ixgbe_disable_rx_generic()
3890 if (hw->mac.type != ixgbe_mac_82598EB) { in ixgbe_enable_rx_generic()
3891 if (hw->mac.set_lben) { in ixgbe_enable_rx_generic()
3897 hw->mac.set_lben = false; in ixgbe_enable_rx_generic()