FreeBSD kernel IXGBE device code
ixgbe_x550.c File Reference
#include "ixgbe_x550.h"
#include "ixgbe_x540.h"
#include "ixgbe_type.h"
#include "ixgbe_api.h"
#include "ixgbe_common.h"
#include "ixgbe_phy.h"
Include dependency graph for ixgbe_x550.c:

Go to the source code of this file.

Functions

static s32 ixgbe_setup_ixfi_x550em (struct ixgbe_hw *hw, ixgbe_link_speed *speed)
 
static s32 ixgbe_acquire_swfw_sync_X550a (struct ixgbe_hw *, u32 mask)
 
static void ixgbe_release_swfw_sync_X550a (struct ixgbe_hw *, u32 mask)
 
static s32 ixgbe_read_mng_if_sel_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_init_ops_X550 (struct ixgbe_hw *hw)
 
static s32 ixgbe_read_cs4227 (struct ixgbe_hw *hw, u16 reg, u16 *value)
 
static s32 ixgbe_write_cs4227 (struct ixgbe_hw *hw, u16 reg, u16 value)
 
static s32 ixgbe_read_pe (struct ixgbe_hw *hw, u8 reg, u8 *value)
 
static s32 ixgbe_write_pe (struct ixgbe_hw *hw, u8 reg, u8 value)
 
static s32 ixgbe_reset_cs4227 (struct ixgbe_hw *hw)
 
static void ixgbe_check_cs4227 (struct ixgbe_hw *hw)
 
static void ixgbe_setup_mux_ctl (struct ixgbe_hw *hw)
 
static s32 ixgbe_identify_phy_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_fw_phy_activity (struct ixgbe_hw *hw, u16 activity, u32(*data)[FW_PHY_ACT_DATA_COUNT])
 
static s32 ixgbe_get_phy_id_fw (struct ixgbe_hw *hw)
 
static s32 ixgbe_identify_phy_fw (struct ixgbe_hw *hw)
 
s32 ixgbe_shutdown_fw_phy (struct ixgbe_hw *hw)
 
static s32 ixgbe_read_phy_reg_x550em (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 *phy_data)
 
static s32 ixgbe_write_phy_reg_x550em (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 phy_data)
 
static s32 ixgbe_read_i2c_combined_generic (struct ixgbe_hw *hw, u8 addr, u16 reg, u16 *val)
 
static s32 ixgbe_read_i2c_combined_generic_unlocked (struct ixgbe_hw *hw, u8 addr, u16 reg, u16 *val)
 
static s32 ixgbe_write_i2c_combined_generic (struct ixgbe_hw *hw, u8 addr, u16 reg, u16 val)
 
static s32 ixgbe_write_i2c_combined_generic_unlocked (struct ixgbe_hw *hw, u8 addr, u16 reg, u16 val)
 
s32 ixgbe_init_ops_X550EM (struct ixgbe_hw *hw)
 
static s32 ixgbe_setup_fw_link (struct ixgbe_hw *hw)
 
static s32 ixgbe_fc_autoneg_fw (struct ixgbe_hw *hw)
 
static s32 ixgbe_setup_eee_fw (struct ixgbe_hw *hw, bool enable_eee)
 
s32 ixgbe_init_ops_X550EM_a (struct ixgbe_hw *hw)
 
s32 ixgbe_init_ops_X550EM_x (struct ixgbe_hw *hw)
 
s32 ixgbe_dmac_config_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_dmac_config_tcs_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_dmac_update_tcs_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_init_eeprom_params_X550 (struct ixgbe_hw *hw)
 
void ixgbe_set_source_address_pruning_X550 (struct ixgbe_hw *hw, bool enable, unsigned int pool)
 
void ixgbe_set_ethertype_anti_spoofing_X550 (struct ixgbe_hw *hw, bool enable, int vf)
 
static s32 ixgbe_iosf_wait (struct ixgbe_hw *hw, u32 *ctrl)
 
s32 ixgbe_write_iosf_sb_reg_x550 (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u32 data)
 
s32 ixgbe_read_iosf_sb_reg_x550 (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u32 *data)
 
s32 ixgbe_get_phy_token (struct ixgbe_hw *hw)
 
s32 ixgbe_put_phy_token (struct ixgbe_hw *hw)
 
s32 ixgbe_write_iosf_sb_reg_x550a (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u32 data)
 
s32 ixgbe_read_iosf_sb_reg_x550a (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u32 *data)
 
void ixgbe_disable_mdd_X550 (struct ixgbe_hw *hw)
 
void ixgbe_enable_mdd_X550 (struct ixgbe_hw *hw)
 
void ixgbe_restore_mdd_vf_X550 (struct ixgbe_hw *hw, u32 vf)
 
void ixgbe_mdd_event_X550 (struct ixgbe_hw *hw, u32 *vf_bitmap)
 
enum ixgbe_media_type ixgbe_get_media_type_X550em (struct ixgbe_hw *hw)
 
static s32 ixgbe_supported_sfp_modules_X550em (struct ixgbe_hw *hw, bool *linear)
 
s32 ixgbe_identify_sfp_module_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_sfp_modules_X550em (struct ixgbe_hw *hw)
 
static s32 ixgbe_restart_an_internal_phy_x550em (struct ixgbe_hw *hw)
 
static s32 ixgbe_setup_sgmii (struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait)
 
static s32 ixgbe_setup_sgmii_fw (struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait)
 
void ixgbe_init_mac_link_ops_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_get_link_capabilities_X550em (struct ixgbe_hw *hw, ixgbe_link_speed *speed, bool *autoneg)
 
static s32 ixgbe_get_lasi_ext_t_x550em (struct ixgbe_hw *hw, bool *lsc)
 
static s32 ixgbe_enable_lasi_ext_t_x550em (struct ixgbe_hw *hw)
 
static s32 ixgbe_setup_kr_speed_x550em (struct ixgbe_hw *hw, ixgbe_link_speed speed)
 
static s32 ixgbe_reset_phy_fw (struct ixgbe_hw *hw)
 
static s32 ixgbe_check_overtemp_fw (struct ixgbe_hw *hw)
 
s32 ixgbe_init_phy_ops_X550em (struct ixgbe_hw *hw)
 
static void ixgbe_set_mdio_speed (struct ixgbe_hw *hw)
 
s32 ixgbe_reset_hw_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_init_ext_t_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_kr_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_mac_link_sfp_x550em (struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait_to_complete)
 
static s32 ixgbe_setup_sfi_x550a (struct ixgbe_hw *hw, ixgbe_link_speed *speed)
 
s32 ixgbe_setup_mac_link_sfp_x550a (struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait_to_complete)
 
static s32 ixgbe_setup_ixfi_x550em_x (struct ixgbe_hw *hw)
 
static s32 ixgbe_ext_phy_t_x550em_get_link (struct ixgbe_hw *hw, bool *link_up)
 
s32 ixgbe_setup_internal_phy_t_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_phy_loopback_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_read_ee_hostif_X550 (struct ixgbe_hw *hw, u16 offset, u16 *data)
 
s32 ixgbe_read_ee_hostif_buffer_X550 (struct ixgbe_hw *hw, u16 offset, u16 words, u16 *data)
 
s32 ixgbe_write_ee_hostif_data_X550 (struct ixgbe_hw *hw, u16 offset, u16 data)
 
s32 ixgbe_write_ee_hostif_X550 (struct ixgbe_hw *hw, u16 offset, u16 data)
 
s32 ixgbe_write_ee_hostif_buffer_X550 (struct ixgbe_hw *hw, u16 offset, u16 words, u16 *data)
 
static s32 ixgbe_checksum_ptr_x550 (struct ixgbe_hw *hw, u16 ptr, u16 size, u16 *csum, u16 *buffer, u32 buffer_size)
 
s32 ixgbe_calc_checksum_X550 (struct ixgbe_hw *hw, u16 *buffer, u32 buffer_size)
 
s32 ixgbe_calc_eeprom_checksum_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_validate_eeprom_checksum_X550 (struct ixgbe_hw *hw, u16 *checksum_val)
 
s32 ixgbe_update_eeprom_checksum_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_update_flash_X550 (struct ixgbe_hw *hw)
 
u64 ixgbe_get_supported_physical_layer_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_get_bus_info_X550em (struct ixgbe_hw *hw)
 
void ixgbe_disable_rx_x550 (struct ixgbe_hw *hw)
 
s32 ixgbe_enter_lplu_t_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_get_lcd_t_x550em (struct ixgbe_hw *hw, ixgbe_link_speed *lcd_speed)
 
s32 ixgbe_setup_fc_X550em (struct ixgbe_hw *hw)
 
void ixgbe_fc_autoneg_backplane_x550em_a (struct ixgbe_hw *hw)
 
void ixgbe_fc_autoneg_fiber_x550em_a (struct ixgbe_hw *hw)
 
void ixgbe_fc_autoneg_sgmii_x550em_a (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_fc_backplane_x550em_a (struct ixgbe_hw *hw)
 
static void ixgbe_set_mux (struct ixgbe_hw *hw, u8 state)
 
s32 ixgbe_acquire_swfw_sync_X550em (struct ixgbe_hw *hw, u32 mask)
 
void ixgbe_release_swfw_sync_X550em (struct ixgbe_hw *hw, u32 mask)
 
s32 ixgbe_read_phy_reg_x550a (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 *phy_data)
 
s32 ixgbe_write_phy_reg_x550a (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 phy_data)
 
s32 ixgbe_handle_lasi_ext_t_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_mac_link_t_X550em (struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait_to_complete)
 
s32 ixgbe_check_link_t_X550em (struct ixgbe_hw *hw, ixgbe_link_speed *speed, bool *link_up, bool link_up_wait_to_complete)
 
s32 ixgbe_reset_phy_t_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_led_on_t_X550em (struct ixgbe_hw *hw, u32 led_idx)
 
s32 ixgbe_led_off_t_X550em (struct ixgbe_hw *hw, u32 led_idx)
 
s32 ixgbe_set_fw_drv_ver_x550 (struct ixgbe_hw *hw, u8 maj, u8 min, u8 build, u8 sub, u16 len, const char *driver_ver)
 
bool ixgbe_fw_recovery_mode_X550 (struct ixgbe_hw *hw)
 

Variables

struct {
   u16   fw_speed
 
   ixgbe_link_speed   phy_speed
 
ixgbe_fw_map []
 

Function Documentation

◆ ixgbe_acquire_swfw_sync_X550a()

static s32 ixgbe_acquire_swfw_sync_X550a ( struct ixgbe_hw hw,
u32  mask 
)
static

ixgbe_acquire_swfw_sync_X550a - Acquire SWFW semaphore @hw: pointer to hardware structure @mask: Mask to specify which semaphore to acquire

Acquires the SWFW semaphore and get the shared phy token as needed

Definition at line 4307 of file ixgbe_x550.c.

References DEBUGFUNC, DEBUGOUT1, FW_PHY_TOKEN_RETRIES, ixgbe_phy_info::id, ixgbe_acquire_swfw_sync_X540(), IXGBE_ERR_TOKEN_RETRY, ixgbe_get_phy_token(), IXGBE_GSSR_TOKEN_SM, ixgbe_release_swfw_sync_X540(), IXGBE_SUCCESS, and ixgbe_hw::phy.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_acquire_swfw_sync_X550em()

s32 ixgbe_acquire_swfw_sync_X550em ( struct ixgbe_hw hw,
u32  mask 
)

ixgbe_acquire_swfw_sync_X550em - Acquire SWFW semaphore @hw: pointer to hardware structure @mask: Mask to specify which semaphore to acquire

Acquires the SWFW semaphore and sets the I2C MUX

Definition at line 4267 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_acquire_swfw_sync_X540(), IXGBE_GSSR_I2C_MASK, ixgbe_set_mux(), and IXGBE_SUCCESS.

Referenced by ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_calc_checksum_X550()

s32 ixgbe_calc_checksum_X550 ( struct ixgbe_hw hw,
u16 buffer,
u32  buffer_size 
)

ixgbe_calc_checksum_X550 - Calculates and returns the checksum @hw: pointer to hardware structure @buffer: pointer to buffer containing calculated checksum @buffer_size: size of buffer

Returns a negative error code on error, or the 16-bit checksum

Definition at line 3430 of file ixgbe_x550.c.

References DEBUGFUNC, DEBUGOUT, ixgbe_hw::eeprom, ixgbe_eeprom_operations::init_params, ixgbe_checksum_ptr_x550(), IXGBE_EEPROM_CHECKSUM, IXGBE_EEPROM_LAST_WORD, IXGBE_EEPROM_SUM, IXGBE_ERR_PARAM, IXGBE_FW_PTR, IXGBE_IXGBE_PCIE_GENERAL_SIZE, IXGBE_OPTION_ROM_PTR, IXGBE_PCIE_ANALOG_PTR_X550, IXGBE_PCIE_CONFIG0_PTR, IXGBE_PCIE_CONFIG1_PTR, IXGBE_PCIE_CONFIG_SIZE, IXGBE_PCIE_GENERAL_PTR, IXGBE_PHY_PTR, ixgbe_read_ee_hostif_buffer_X550(), ixgbe_eeprom_info::ops, and ixgbe_eeprom_info::word_size.

Referenced by ixgbe_calc_eeprom_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_calc_eeprom_checksum_X550()

s32 ixgbe_calc_eeprom_checksum_X550 ( struct ixgbe_hw hw)

ixgbe_calc_eeprom_checksum_X550 - Calculates and returns the checksum @hw: pointer to hardware structure

Returns a negative error code on error, or the 16-bit checksum

Definition at line 3511 of file ixgbe_x550.c.

References ixgbe_calc_checksum_X550().

Referenced by ixgbe_init_ops_X550(), ixgbe_init_ops_X550EM(), and ixgbe_update_eeprom_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_check_cs4227()

◆ ixgbe_check_link_t_X550em()

s32 ixgbe_check_link_t_X550em ( struct ixgbe_hw hw,
ixgbe_link_speed speed,
bool link_up,
bool  link_up_wait_to_complete 
)

ixgbe_check_link_t_X550em - Determine link and speed status @hw: pointer to hardware structure @speed: pointer to link speed @link_up: true when link is up @link_up_wait_to_complete: bool used to wait for link up or not

Check that both the MAC and X557 external PHY have link.

Definition at line 4520 of file ixgbe_x550.c.

References ixgbe_mac_operations::get_media_type, ixgbe_check_mac_link_generic(), IXGBE_ERR_CONFIG, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_LINK_STATUS, IXGBE_MDIO_AUTO_NEG_STATUS, ixgbe_media_type_copper, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::read_reg.

Referenced by ixgbe_init_mac_link_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_check_overtemp_fw()

static s32 ixgbe_check_overtemp_fw ( struct ixgbe_hw hw)
static

ixgbe_check_overtemp_fw - Check firmware-controlled PHYs for overtemp @hw: pointer to hardware structure

Definition at line 2231 of file ixgbe_x550.c.

References FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_GET_LINK_INFO, FW_PHY_ACT_GET_LINK_INFO_TEMP, IXGBE_ERR_OVERTEMP, ixgbe_fw_phy_activity(), ixgbe_shutdown_fw_phy(), and IXGBE_SUCCESS.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_checksum_ptr_x550()

static s32 ixgbe_checksum_ptr_x550 ( struct ixgbe_hw hw,
u16  ptr,
u16  size,
u16 csum,
u16 buffer,
u32  buffer_size 
)
static

ixgbe_checksum_ptr_x550 - Checksum one pointer region @hw: pointer to hardware structure @ptr: pointer offset in eeprom @size: size of section pointed by ptr, if 0 first word will be used as size @csum: address of checksum to update @buffer: pointer to buffer containing calculated checksum @buffer_size: size of buffer

Returns error status for any failure

Definition at line 3361 of file ixgbe_x550.c.

References DEBUGOUT, ixgbe_hw::eeprom, IXGBE_ERR_PARAM, ixgbe_read_ee_hostif_buffer_X550(), IXGBE_SUCCESS, ixgbe_hic_write_shadow_ram::length, and ixgbe_eeprom_info::word_size.

Referenced by ixgbe_calc_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_disable_mdd_X550()

void ixgbe_disable_mdd_X550 ( struct ixgbe_hw hw)

ixgbe_disable_mdd_X550 @hw: pointer to hardware structure

Disable malicious driver detection

Definition at line 1363 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_DMATXCTL, IXGBE_DMATXCTL_MBINTEN, IXGBE_DMATXCTL_MDP_EN, IXGBE_RDRXCTL, IXGBE_RDRXCTL_MBINTEN, IXGBE_RDRXCTL_MDP_EN, IXGBE_READ_REG, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_disable_rx_x550()

void ixgbe_disable_rx_x550 ( struct ixgbe_hw hw)

◆ ixgbe_dmac_config_tcs_X550()

s32 ixgbe_dmac_config_tcs_X550 ( struct ixgbe_hw hw)

ixgbe_dmac_config_tcs_X550 @hw: pointer to hardware structure

Configure DMA coalescing threshold per TC. The dmac enable bit must be cleared before configuring.

Definition at line 937 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_mac_info::dmac_config, IXGBE_DCB_MAX_TRAFFIC_CLASS, IXGBE_DMACRXT_100M, IXGBE_DMACRXT_10G, IXGBE_DMACRXT_1G, IXGBE_DMCTH, IXGBE_LINK_SPEED_100_FULL, IXGBE_LINK_SPEED_10_FULL, IXGBE_LINK_SPEED_1GB_FULL, IXGBE_MAXFRS, IXGBE_MHADD_MFS_SHIFT, IXGBE_READ_REG, IXGBE_RXPBSIZE, IXGBE_RXPBSIZE_MASK, IXGBE_RXPBSIZE_SHIFT, IXGBE_SUCCESS, IXGBE_WRITE_REG, ixgbe_dmac_config::link_speed, and ixgbe_hw::mac.

Referenced by ixgbe_dmac_config_X550(), ixgbe_dmac_update_tcs_X550(), and ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_dmac_config_X550()

s32 ixgbe_dmac_config_X550 ( struct ixgbe_hw hw)

ixgbe_dmac_config_X550 @hw: pointer to hardware structure

Configure DMA coalescing. If enabling dmac, dmac is activated. When disabling dmac, dmac enable dmac bit is cleared.

Definition at line 889 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_mac_info::dmac_config, ixgbe_dmac_config::fcoe_en, ixgbe_dmac_config::fcoe_tc, ixgbe_dmac_config_tcs_X550(), IXGBE_DMACR, IXGBE_DMACR_DMAC_EN, IXGBE_DMACR_EN_MNG_IND, IXGBE_DMACR_HIGH_PRI_TC_MASK, IXGBE_DMACR_HIGH_PRI_TC_SHIFT, IXGBE_READ_REG, IXGBE_SUCCESS, IXGBE_WRITE_REG, ixgbe_hw::mac, and ixgbe_dmac_config::watchdog_timer.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_dmac_update_tcs_X550()

s32 ixgbe_dmac_update_tcs_X550 ( struct ixgbe_hw hw)

ixgbe_dmac_update_tcs_X550 @hw: pointer to hardware structure

Disables dmac, updates per TC settings, and then enables dmac.

Definition at line 992 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_dmac_config_tcs_X550(), IXGBE_DMACR, IXGBE_DMACR_DMAC_EN, IXGBE_READ_REG, IXGBE_SUCCESS, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_enable_lasi_ext_t_x550em()

static s32 ixgbe_enable_lasi_ext_t_x550em ( struct ixgbe_hw hw)
static

◆ ixgbe_enable_mdd_X550()

void ixgbe_enable_mdd_X550 ( struct ixgbe_hw hw)

ixgbe_enable_mdd_X550 @hw: pointer to hardware structure

Enable malicious driver detection

Definition at line 1386 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_DMATXCTL, IXGBE_DMATXCTL_MBINTEN, IXGBE_DMATXCTL_MDP_EN, IXGBE_RDRXCTL, IXGBE_RDRXCTL_MBINTEN, IXGBE_RDRXCTL_MDP_EN, IXGBE_READ_REG, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_enter_lplu_t_x550em()

◆ ixgbe_ext_phy_t_x550em_get_link()

static s32 ixgbe_ext_phy_t_x550em_get_link ( struct ixgbe_hw hw,
bool link_up 
)
static

ixgbe_ext_phy_t_x550em_get_link - Get ext phy link status @hw: address of hardware structure @link_up: address of boolean to indicate link status

Returns error code if unable to get link status.

Definition at line 2958 of file ixgbe_x550.c.

References IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_LINK_STATUS, IXGBE_MDIO_AUTO_NEG_STATUS, IXGBE_SUCCESS, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::read_reg.

Referenced by ixgbe_enter_lplu_t_x550em(), and ixgbe_setup_internal_phy_t_x550em().

Here is the caller graph for this function:

◆ ixgbe_fc_autoneg_backplane_x550em_a()

◆ ixgbe_fc_autoneg_fiber_x550em_a()

void ixgbe_fc_autoneg_fiber_x550em_a ( struct ixgbe_hw hw)

ixgbe_fc_autoneg_fiber_x550em_a - passthrough FC settings @hw: pointer to hardware structure

Definition at line 4091 of file ixgbe_x550.c.

References ixgbe_fc_info::current_mode, ixgbe_hw::fc, ixgbe_fc_info::fc_was_autonegged, and ixgbe_fc_info::requested_mode.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the caller graph for this function:

◆ ixgbe_fc_autoneg_fw()

static s32 ixgbe_fc_autoneg_fw ( struct ixgbe_hw hw)
static

ixgbe_fc_autoneg_fw _ Set up flow control for FW-controlled PHYs @hw: pointer to hardware structure

Called at init time to set up flow control.

Definition at line 759 of file ixgbe_x550.c.

References ixgbe_hw::fc, ixgbe_fc_default, ixgbe_fc_full, ixgbe_setup_fw_link(), and ixgbe_fc_info::requested_mode.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_fc_autoneg_sgmii_x550em_a()

void ixgbe_fc_autoneg_sgmii_x550em_a ( struct ixgbe_hw hw)

◆ ixgbe_fw_phy_activity()

s32 ixgbe_fw_phy_activity ( struct ixgbe_hw hw,
u16  activity,
u32(*)  data[FW_PHY_ACT_DATA_COUNT] 
)

ixgbe_fw_phy_activity - Perform an activity on a PHY @hw: pointer to hardware structure @activity: activity to perform @data: Pointer to 4 32-bit words of data

Definition at line 401 of file ixgbe_x550.c.

References ixgbe_hw::bus, ixgbe_hic_phy_activity_resp::data, FW_CEM_RESP_STATUS_SUCCESS, FW_DEFAULT_CHECKSUM, FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_REQ_CMD, FW_PHY_ACT_REQ_LEN, FW_PHY_ACT_RETRIES, IXGBE_BE32_TO_CPU, IXGBE_CPU_TO_BE32, IXGBE_CPU_TO_LE16, IXGBE_ERR_HOST_INTERFACE_COMMAND, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, ixgbe_bus_info::lan_id, and usec_delay.

Referenced by ixgbe_check_overtemp_fw(), ixgbe_fc_autoneg_sgmii_x550em_a(), ixgbe_get_phy_id_fw(), ixgbe_reset_phy_fw(), ixgbe_setup_fw_link(), and ixgbe_shutdown_fw_phy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_fw_recovery_mode_X550()

bool ixgbe_fw_recovery_mode_X550 ( struct ixgbe_hw hw)

ixgbe_fw_recovery_mode_X550 - Check FW NVM recovery mode @hw: pointer t hardware structure

Returns true if in FW NVM recovery mode.

Definition at line 4691 of file ixgbe_x550.c.

References IXGBE_FWSM_BY_MAC, IXGBE_FWSM_FW_NVM_RECOVERY_MODE, and IXGBE_READ_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_get_bus_info_X550em()

s32 ixgbe_get_bus_info_X550em ( struct ixgbe_hw hw)

ixgbe_get_bus_info_x550em - Set PCI bus info @hw: pointer to hardware structure

Sets bus link width and speed to unknown because X550em is not a PCI device.

Definition at line 3714 of file ixgbe_x550.c.

References ixgbe_hw::bus, DEBUGFUNC, ixgbe_bus_speed_unknown, ixgbe_bus_width_unknown, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::set_lan_id, ixgbe_bus_info::speed, and ixgbe_bus_info::width.

Referenced by ixgbe_init_ops_X550EM().

Here is the caller graph for this function:

◆ ixgbe_get_lasi_ext_t_x550em()

static s32 ixgbe_get_lasi_ext_t_x550em ( struct ixgbe_hw hw,
bool lsc 
)
static

ixgbe_get_lasi_ext_t_x550em - Determime external Base T PHY interrupt cause @hw: pointer to hardware structure @lsc: pointer to boolean flag which indicates whether external Base T PHY interrupt is lsc

Determime if external Base T PHY interrupt cause is high temperature failure alarm or link status change.

Return IXGBE_ERR_OVERTEMP if interrupt is high temperature failure alarm, else return PHY access status.

Definition at line 1968 of file ixgbe_x550.c.

References IXGBE_ERR_OVERTEMP, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_VEN_LSC, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2, IXGBE_MDIO_GLOBAL_ALARM_1, IXGBE_MDIO_GLOBAL_ALARM_1_INT, IXGBE_MDIO_GLOBAL_ALM_1_DEV_FAULT, IXGBE_MDIO_GLOBAL_ALM_1_HI_TMP_FAIL, IXGBE_MDIO_GLOBAL_AN_VEN_ALM_INT_EN, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, IXGBE_MDIO_GLOBAL_FAULT_MSG, IXGBE_MDIO_GLOBAL_FAULT_MSG_HI_TMP, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG, IXGBE_MDIO_GLOBAL_STD_ALM2_INT, IXGBE_MDIO_GLOBAL_VEN_ALM_INT_EN, IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, ixgbe_set_copper_phy_power(), IXGBE_SUCCESS, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::read_reg.

Referenced by ixgbe_enable_lasi_ext_t_x550em(), and ixgbe_handle_lasi_ext_t_x550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_get_lcd_t_x550em()

s32 ixgbe_get_lcd_t_x550em ( struct ixgbe_hw hw,
ixgbe_link_speed lcd_speed 
)

ixgbe_get_lcd_x550em - Determine lowest common denominator @hw: pointer to hardware structure @lcd_speed: pointer to lowest common link speed

Determine lowest common link speed with link partner.

Definition at line 3887 of file ixgbe_x550.c.

References ixgbe_hw::bus, ixgbe_eeprom_info::ctrl_word_3, ixgbe_hw::eeprom, IXGBE_AUTO_NEG_LP_1000BASE_CAP, IXGBE_AUTO_NEG_LP_STATUS, IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, IXGBE_LINK_SPEED_UNKNOWN, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, NVM_INIT_CTRL_3_D10GMP_PORT0, NVM_INIT_CTRL_3_D10GMP_PORT1, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::read_reg.

Referenced by ixgbe_enter_lplu_t_x550em().

Here is the caller graph for this function:

◆ ixgbe_get_link_capabilities_X550em()

◆ ixgbe_get_media_type_X550em()

◆ ixgbe_get_phy_id_fw()

static s32 ixgbe_get_phy_id_fw ( struct ixgbe_hw hw)
static

ixgbe_get_phy_id_fw - Get the phy ID via firmware command @hw: pointer to hardware structure

Returns error code

Definition at line 459 of file ixgbe_x550.c.

References ixgbe_phy_info::autoneg_advertised, FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_GET_PHY_INFO, FW_PHY_INFO_ID_HI_MASK, FW_PHY_INFO_ID_LO_MASK, FW_PHY_INFO_SPEED_MASK, fw_speed, ixgbe_phy_info::id, IXGBE_ERR_PHY_ADDR_INVALID, ixgbe_fw_map, ixgbe_fw_phy_activity(), IXGBE_PHY_REVISION_MASK, IXGBE_SUCCESS, ixgbe_hw::phy, ixgbe_phy_info::revision, and ixgbe_phy_info::speeds_supported.

Referenced by ixgbe_identify_phy_fw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_get_phy_token()

◆ ixgbe_get_supported_physical_layer_X550em()

u64 ixgbe_get_supported_physical_layer_X550em ( struct ixgbe_hw hw)

◆ ixgbe_handle_lasi_ext_t_x550em()

s32 ixgbe_handle_lasi_ext_t_x550em ( struct ixgbe_hw hw)

ixgbe_handle_lasi_ext_t_x550em - Handle external Base T PHY interrupt @hw: pointer to hardware structure

Handle external Base T PHY interrupt. If high temperature failure alarm then return error, else if link status change then setup internal/external PHY link

Return IXGBE_ERR_OVERTEMP if interrupt is high temperature failure alarm, else return PHY access status.

Definition at line 4439 of file ixgbe_x550.c.

References ixgbe_get_lasi_ext_t_x550em(), ixgbe_setup_internal_phy(), and IXGBE_SUCCESS.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_identify_phy_fw()

static s32 ixgbe_identify_phy_fw ( struct ixgbe_hw hw)
static

ixgbe_identify_phy_fw - Get PHY type based on firmware command @hw: pointer to hardware structure

Returns error code

Definition at line 495 of file ixgbe_x550.c.

References ixgbe_hw::bus, ixgbe_get_phy_id_fw(), IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, ixgbe_phy_fw, ixgbe_bus_info::lan_id, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_phy_operations::read_reg, ixgbe_phy_info::type, and ixgbe_phy_operations::write_reg.

Referenced by ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_identify_phy_x550em()

◆ ixgbe_identify_sfp_module_X550em()

s32 ixgbe_identify_sfp_module_X550em ( struct ixgbe_hw hw)

ixgbe_identify_sfp_module_X550em - Identifies SFP modules @hw: pointer to hardware structure

Searches for and identifies the SFP module and assigns appropriate PHY type.

Definition at line 1591 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_identify_module_generic(), IXGBE_SUCCESS, and ixgbe_supported_sfp_modules_X550em().

Referenced by ixgbe_identify_phy_x550em(), and ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_init_eeprom_params_X550()

s32 ixgbe_init_eeprom_params_X550 ( struct ixgbe_hw hw)

ixgbe_init_eeprom_params_X550 - Initialize EEPROM params @hw: pointer to hardware structure

Initializes the EEPROM parameters ixgbe_eeprom_info within the ixgbe_hw struct in order to set up EEPROM access.

Definition at line 1020 of file ixgbe_x550.c.

References DEBUGFUNC, DEBUGOUT2, ixgbe_hw::eeprom, IXGBE_EEC, IXGBE_EEC_SIZE, IXGBE_EEC_SIZE_SHIFT, ixgbe_eeprom_uninitialized, IXGBE_EEPROM_WORD_SIZE_SHIFT, ixgbe_flash, IXGBE_READ_REG, IXGBE_SUCCESS, ixgbe_eeprom_info::semaphore_delay, ixgbe_eeprom_info::type, and ixgbe_eeprom_info::word_size.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_init_ext_t_x550em()

s32 ixgbe_init_ext_t_x550em ( struct ixgbe_hw hw)

ixgbe_init_ext_t_x550em - Start (unstall) the external Base T PHY. @hw: pointer to hardware structure

Definition at line 2568 of file ixgbe_x550.c.

References IXGBE_MDIO_GLOBAL_RES_PR_10, IXGBE_MDIO_PMA_PMD_DEV_TYPE, IXGBE_MDIO_TX_VENDOR_ALARMS_3, IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK, IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, IXGBE_SUCCESS, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_operations::read_reg, and ixgbe_phy_operations::write_reg.

Referenced by ixgbe_reset_hw_X550em().

Here is the caller graph for this function:

◆ ixgbe_init_mac_link_ops_X550em()

◆ ixgbe_init_ops_X550()

s32 ixgbe_init_ops_X550 ( struct ixgbe_hw hw)

ixgbe_init_ops_X550 - Inits func ptrs and MAC type @hw: pointer to hardware structure

Initialize the function pointers and assign the MAC type for X550. Does not touch the hardware.

Definition at line 54 of file ixgbe_x550.c.

References ixgbe_eeprom_operations::calc_checksum, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_mac_operations::disable_mdd, ixgbe_mac_operations::disable_rx, ixgbe_mac_operations::dmac_config, ixgbe_mac_operations::dmac_config_tcs, ixgbe_mac_operations::dmac_update_tcs, ixgbe_hw::eeprom, ixgbe_mac_operations::enable_mdd, ixgbe_mac_operations::fw_recovery_mode, ixgbe_mac_operations::get_rtrup2tc, ixgbe_eeprom_operations::init_params, ixgbe_calc_eeprom_checksum_X550(), ixgbe_dcb_get_rtrup2tc_generic(), IXGBE_DEV_ID_X550EM_A_10G_T, IXGBE_DEV_ID_X550EM_X_10G_T, IXGBE_DEV_ID_X550EM_X_1G_T, ixgbe_disable_mdd_X550(), ixgbe_disable_rx_x550(), ixgbe_dmac_config_tcs_X550(), ixgbe_dmac_config_X550(), ixgbe_dmac_update_tcs_X550(), ixgbe_enable_mdd_X550(), ixgbe_fw_recovery_mode_X550(), ixgbe_init_eeprom_params_X550(), ixgbe_init_ops_X540(), ixgbe_led_off_t_X550em(), ixgbe_led_on_t_X550em(), ixgbe_mdd_event_X550(), ixgbe_read_ee_hostif_buffer_X550(), ixgbe_read_ee_hostif_X550(), ixgbe_restore_mdd_vf_X550(), ixgbe_set_ethertype_anti_spoofing_X550(), ixgbe_set_fw_drv_ver_x550(), ixgbe_set_source_address_pruning_X550(), ixgbe_update_eeprom_checksum_X550(), ixgbe_validate_eeprom_checksum_X550(), ixgbe_write_ee_hostif_buffer_X550(), ixgbe_write_ee_hostif_X550(), ixgbe_mac_operations::led_off, ixgbe_mac_operations::led_on, ixgbe_hw::mac, ixgbe_mac_operations::mdd_event, ixgbe_eeprom_info::ops, ixgbe_mac_info::ops, ixgbe_eeprom_operations::read, ixgbe_eeprom_operations::read_buffer, ixgbe_mac_operations::restore_mdd_vf, ixgbe_mac_operations::set_ethertype_anti_spoofing, ixgbe_mac_operations::set_fw_drv_ver, ixgbe_mac_operations::set_source_address_pruning, ixgbe_mac_operations::setup_eee, ixgbe_eeprom_operations::update_checksum, ixgbe_eeprom_operations::validate_checksum, ixgbe_eeprom_operations::write, and ixgbe_eeprom_operations::write_buffer.

Referenced by ixgbe_init_ops_X550EM(), and ixgbe_init_shared_code().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_init_ops_X550EM()

s32 ixgbe_init_ops_X550EM ( struct ixgbe_hw hw)

ixgbe_init_ops_X550EM - Inits func ptrs and MAC type @hw: pointer to hardware structure

Initialize the function pointers and for MAC type X550EM. Does not touch the hardware.

Definition at line 605 of file ixgbe_x550.c.

References ixgbe_hw::bus, ixgbe_mac_operations::bypass_rd_eep, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, ixgbe_mac_operations::bypass_valid_rd, ixgbe_eeprom_operations::calc_checksum, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_mac_operations::disable_sec_rx_path, ixgbe_hw::eeprom, ixgbe_mac_operations::enable_sec_rx_path, ixgbe_mac_operations::get_bus_info, ixgbe_mac_operations::get_fcoe_boot_status, ixgbe_phy_operations::get_firmware_version, ixgbe_mac_operations::get_link_capabilities, ixgbe_mac_operations::get_media_type, ixgbe_mac_operations::get_san_mac_addr, ixgbe_mac_operations::get_supported_physical_layer, ixgbe_mac_operations::get_thermal_sensor_data, ixgbe_mac_operations::get_wwn_prefix, ixgbe_phy_operations::identify, ixgbe_phy_operations::init, ixgbe_eeprom_operations::init_params, ixgbe_mac_operations::init_thermal_sensor_thresh, ixgbe_bus_type_internal, ixgbe_calc_eeprom_checksum_X550(), IXGBE_DEV_ID_X550EM_A_1G_T, IXGBE_DEV_ID_X550EM_A_1G_T_L, IXGBE_DEV_ID_X550EM_X_1G_T, ixgbe_get_bus_info_X550em(), ixgbe_get_link_capabilities_X550em(), ixgbe_get_media_type_X550em(), ixgbe_get_supported_physical_layer_X550em(), ixgbe_identify_phy_fw(), ixgbe_identify_phy_x550em(), ixgbe_init_eeprom_params_X540(), ixgbe_init_ops_X550(), ixgbe_init_phy_ops_X550em(), ixgbe_media_type_copper, ixgbe_read_ee_hostif_buffer_X550(), ixgbe_read_ee_hostif_X550(), ixgbe_reset_hw_X550em(), ixgbe_setup_fc_generic(), ixgbe_setup_fc_X550em(), ixgbe_setup_sfp_modules_X550em(), ixgbe_update_eeprom_checksum_X550(), ixgbe_validate_eeprom_checksum_X550(), ixgbe_write_ee_hostif_buffer_X550(), ixgbe_write_ee_hostif_X550(), ixgbe_hw::mac, ixgbe_eeprom_info::ops, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_mac_operations::prot_autoc_read, ixgbe_mac_operations::prot_autoc_write, ixgbe_eeprom_operations::read, ixgbe_eeprom_operations::read_buffer, ixgbe_mac_operations::reset_hw, ixgbe_phy_operations::set_phy_power, ixgbe_mac_operations::set_san_mac_addr, ixgbe_mac_operations::setup_fc, ixgbe_mac_operations::setup_sfp, ixgbe_mac_info::thermal_sensor_enabled, ixgbe_bus_info::type, ixgbe_eeprom_operations::update_checksum, ixgbe_eeprom_operations::validate_checksum, ixgbe_eeprom_operations::write, and ixgbe_eeprom_operations::write_buffer.

Referenced by ixgbe_init_ops_X550EM_a(), and ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_init_ops_X550EM_a()

s32 ixgbe_init_ops_X550EM_a ( struct ixgbe_hw hw)

◆ ixgbe_init_ops_X550EM_x()

◆ ixgbe_init_phy_ops_X550em()

s32 ixgbe_init_phy_ops_X550em ( struct ixgbe_hw hw)

ixgbe_init_phy_ops_X550em - PHY/SFP specific init @hw: pointer to hardware structure

Initialize any function pointers that were not able to be set during init_shared_code because the PHY/SFP type was not known. Perform the SFP init if necessary.

Definition at line 2282 of file ixgbe_x550.c.

References ixgbe_hw::bus, ixgbe_phy_operations::check_overtemp, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_phy_operations::enter_lplu, ixgbe_mac_operations::get_media_type, ixgbe_phy_operations::handle_lasi, ixgbe_phy_operations::identify, ixgbe_phy_operations::identify_sfp, ixgbe_check_overtemp_fw(), IXGBE_DEV_ID_X550EM_A_10G_T, IXGBE_DEV_ID_X550EM_A_1G_T, IXGBE_DEV_ID_X550EM_A_1G_T_L, IXGBE_DEV_ID_X550EM_A_SFP, IXGBE_DEV_ID_X550EM_X_1G_T, IXGBE_DEV_ID_X550EM_X_SFP, ixgbe_enter_lplu_t_x550em(), IXGBE_ERR_PHY_ADDR_INVALID, IXGBE_ERR_SFP_NOT_SUPPORTED, IXGBE_FUSES0_GROUP, IXGBE_FUSES0_REV_MASK, IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, IXGBE_GSSR_SHARED_I2C_SM, ixgbe_handle_lasi_ext_t_x550em(), ixgbe_identify_sfp_module_X550em(), ixgbe_init_mac_link_ops_X550em(), ixgbe_mac_X550EM_x, ixgbe_media_type_fiber, ixgbe_phy_ext_1g_t, ixgbe_phy_fw, ixgbe_phy_sgmii, ixgbe_phy_x550em_ext_t, ixgbe_phy_x550em_kr, ixgbe_phy_x550em_kx4, ixgbe_phy_x550em_xfi, ixgbe_read_mng_if_sel_x550em(), ixgbe_read_phy_reg_x550a(), ixgbe_read_phy_reg_x550em(), IXGBE_READ_REG, ixgbe_reset_phy_fw(), ixgbe_reset_phy_t_X550em(), ixgbe_setup_fw_link(), ixgbe_setup_internal_phy_t_x550em(), ixgbe_setup_kr_x550em(), ixgbe_setup_mux_ctl(), ixgbe_sfp_type_unknown, ixgbe_write_phy_reg_x550a(), ixgbe_write_phy_reg_x550em(), ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_phy_operations::read_reg, ixgbe_phy_operations::read_reg_mdi, ixgbe_phy_operations::reset, ixgbe_mac_operations::set_lan_id, ixgbe_phy_operations::setup_internal_link, ixgbe_phy_operations::setup_link, ixgbe_phy_info::sfp_type, ixgbe_mac_info::type, ixgbe_phy_info::type, ixgbe_phy_operations::write_reg, and ixgbe_phy_operations::write_reg_mdi.

Referenced by ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_iosf_wait()

static s32 ixgbe_iosf_wait ( struct ixgbe_hw hw,
u32 ctrl 
)
static

ixgbe_iosf_wait - Wait for IOSF command completion @hw: pointer to hardware structure @ctrl: pointer to location to receive final IOSF control value

Returns failing status on timeout

Note: ctrl can be NULL if the IOSF control register value is not needed

Definition at line 1106 of file ixgbe_x550.c.

References ERROR_REPORT1, IXGBE_ERR_PHY, IXGBE_ERROR_POLLING, IXGBE_MDIO_COMMAND_TIMEOUT, IXGBE_READ_REG, IXGBE_SB_IOSF_CTRL_BUSY, IXGBE_SB_IOSF_INDIRECT_CTRL, IXGBE_SUCCESS, and usec_delay.

Referenced by ixgbe_read_iosf_sb_reg_x550(), and ixgbe_write_iosf_sb_reg_x550().

Here is the caller graph for this function:

◆ ixgbe_led_off_t_X550em()

s32 ixgbe_led_off_t_X550em ( struct ixgbe_hw hw,
u32  led_idx 
)

ixgbe_led_off_t_X550em - Turns off the software controllable LEDs. @hw: pointer to hardware structure @led_idx: led number to turn off

Definition at line 4604 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_ERR_PARAM, ixgbe_led_off_generic(), IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, ixgbe_read_phy_reg(), ixgbe_write_phy_reg(), IXGBE_X557_LED_PROVISIONING, and IXGBE_X557_MAX_LED_INDEX.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_led_on_t_X550em()

s32 ixgbe_led_on_t_X550em ( struct ixgbe_hw hw,
u32  led_idx 
)

ixgbe_led_on_t_X550em - Turns on the software controllable LEDs. @hw: pointer to hardware structure @led_idx: led number to turn on

Definition at line 4579 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_ERR_PARAM, ixgbe_led_on_generic(), IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, ixgbe_read_phy_reg(), ixgbe_write_phy_reg(), IXGBE_X557_LED_MANUAL_SET_MASK, IXGBE_X557_LED_PROVISIONING, and IXGBE_X557_MAX_LED_INDEX.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_mdd_event_X550()

void ixgbe_mdd_event_X550 ( struct ixgbe_hw hw,
u32 vf_bitmap 
)

ixgbe_mdd_event_X550 @hw: pointer to hardware structure @vf_bitmap: vf bitmap of malicious vfs

Handle malicious driver detection event.

Definition at line 1450 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_MRQC, IXGBE_MRQC_MRQE_MASK, IXGBE_MRQC_VMDQRSS32EN, IXGBE_MRQC_VMDQRT4TCEN, IXGBE_MRQC_VMDQRT8TCEN, IXGBE_READ_REG, IXGBE_WQBR_RX, and IXGBE_WQBR_TX.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_put_phy_token()

◆ ixgbe_read_cs4227()

static s32 ixgbe_read_cs4227 ( struct ixgbe_hw hw,
u16  reg,
u16 value 
)
static

ixgbe_read_cs4227 - Read CS4227 register @hw: pointer to hardware structure @reg: register number to write @value: pointer to receive value read

Returns status code

Definition at line 114 of file ixgbe_x550.c.

References ixgbe_link_info::addr, ixgbe_hw::link, ixgbe_link_info::ops, and ixgbe_link_operations::read_link_unlocked.

Referenced by ixgbe_check_cs4227(), and ixgbe_reset_cs4227().

Here is the caller graph for this function:

◆ ixgbe_read_ee_hostif_buffer_X550()

s32 ixgbe_read_ee_hostif_buffer_X550 ( struct ixgbe_hw hw,
u16  offset,
u16  words,
u16 data 
)

◆ ixgbe_read_ee_hostif_X550()

s32 ixgbe_read_ee_hostif_X550 ( struct ixgbe_hw hw,
u16  offset,
u16 data 
)

◆ ixgbe_read_i2c_combined_generic()

static s32 ixgbe_read_i2c_combined_generic ( struct ixgbe_hw hw,
u8  addr,
u16  reg,
u16 val 
)
static

ixgbe_read_i2c_combined_generic - Perform I2C read combined operation @hw: pointer to the hardware structure @addr: I2C bus address to read from @reg: I2C device register to read from @val: pointer to location to receive read value

Returns an error code on error.

Definition at line 545 of file ixgbe_x550.c.

References ixgbe_read_i2c_combined_generic_int().

Referenced by ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_read_i2c_combined_generic_unlocked()

static s32 ixgbe_read_i2c_combined_generic_unlocked ( struct ixgbe_hw hw,
u8  addr,
u16  reg,
u16 val 
)
static

ixgbe_read_i2c_combined_generic_unlocked - Do I2C read combined operation @hw: pointer to the hardware structure @addr: I2C bus address to read from @reg: I2C device register to read from @val: pointer to location to receive read value

Returns an error code on error.

Definition at line 561 of file ixgbe_x550.c.

References ixgbe_read_i2c_combined_generic_int().

Referenced by ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_read_iosf_sb_reg_x550()

s32 ixgbe_read_iosf_sb_reg_x550 ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u32 data 
)

ixgbe_read_iosf_sb_reg_x550 - Reads specified register of the IOSF device @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 3 bit device type @data: Pointer to read data from the register

Definition at line 1184 of file ixgbe_x550.c.

References ERROR_REPORT2, ixgbe_acquire_swfw_semaphore(), IXGBE_ERR_PHY, IXGBE_ERROR_POLLING, IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, ixgbe_iosf_wait(), IXGBE_READ_REG, ixgbe_release_swfw_semaphore(), IXGBE_SB_IOSF_CTRL_ADDR_SHIFT, IXGBE_SB_IOSF_CTRL_CMPL_ERR_MASK, IXGBE_SB_IOSF_CTRL_CMPL_ERR_SHIFT, IXGBE_SB_IOSF_CTRL_RESP_STAT_MASK, IXGBE_SB_IOSF_CTRL_TARGET_SELECT_SHIFT, IXGBE_SB_IOSF_INDIRECT_CTRL, IXGBE_SB_IOSF_INDIRECT_DATA, IXGBE_SUCCESS, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550EM_a(), and ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_read_iosf_sb_reg_x550a()

s32 ixgbe_read_iosf_sb_reg_x550a ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u32 data 
)

ixgbe_read_iosf_sb_reg_x550a - Reads specified register of the IOSF device @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 3 bit device type @data: Pointer to read data from the register

Definition at line 1329 of file ixgbe_x550.c.

References ixgbe_hw::bus, FW_DEFAULT_CHECKSUM, FW_INT_PHY_REQ_CMD, FW_INT_PHY_REQ_LEN, FW_INT_PHY_REQ_READ, IXGBE_BE32_TO_CPU, IXGBE_CPU_TO_BE16, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), ixgbe_bus_info::lan_id, and UNREFERENCED_1PARAMETER.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_read_mng_if_sel_x550em()

static s32 ixgbe_read_mng_if_sel_x550em ( struct ixgbe_hw hw)
static

ixgbe_read_mng_if_sel_x550em - Read NW_MNG_IF_SEL register @hw: pointer to hardware structure

Read NW_MNG_IF_SEL register and save field values, and check for valid field values.

Definition at line 2254 of file ixgbe_x550.c.

References ixgbe_phy_info::addr, ixgbe_mac_X550EM_a, IXGBE_NW_MNG_IF_SEL, IXGBE_NW_MNG_IF_SEL_MDIO_ACT, IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD, IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT, IXGBE_READ_REG, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_phy_info::nw_mng_if_sel, ixgbe_hw::phy, and ixgbe_mac_info::type.

Referenced by ixgbe_identify_phy_x550em(), and ixgbe_init_phy_ops_X550em().

Here is the caller graph for this function:

◆ ixgbe_read_pe()

static s32 ixgbe_read_pe ( struct ixgbe_hw hw,
u8  reg,
u8 value 
)
static

ixgbe_read_pe - Read register from port expander @hw: pointer to hardware structure @reg: register number to read @value: pointer to receive read value

Returns status code

Definition at line 140 of file ixgbe_x550.c.

References ERROR_REPORT2, IXGBE_ERROR_CAUTION, IXGBE_PE, ixgbe_read_i2c_byte_unlocked(), and IXGBE_SUCCESS.

Referenced by ixgbe_reset_cs4227().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_read_phy_reg_x550a()

s32 ixgbe_read_phy_reg_x550a ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u16 phy_data 
)

ixgbe_read_phy_reg_x550a - Reads specified PHY register @hw: pointer to hardware structure @reg_addr: 32 bit address of PHY register to read @device_type: 5 bit device type @phy_data: Pointer to read data from PHY register

Reads a value from a specified PHY register using the SWFW lock and PHY Token. The PHY Token is needed since the MDIO is shared between to MAC instances.

Definition at line 4381 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, DEBUGFUNC, IXGBE_ERR_SWFW_SYNC, IXGBE_GSSR_TOKEN_SM, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_phy_operations::read_reg_mdi, and ixgbe_mac_operations::release_swfw_sync.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the caller graph for this function:

◆ ixgbe_read_phy_reg_x550em()

static s32 ixgbe_read_phy_reg_x550em ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u16 phy_data 
)
static

Definition at line 522 of file ixgbe_x550.c.

References IXGBE_NOT_IMPLEMENTED, and UNREFERENCED_4PARAMETER.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the caller graph for this function:

◆ ixgbe_release_swfw_sync_X550a()

static void ixgbe_release_swfw_sync_X550a ( struct ixgbe_hw hw,
u32  mask 
)
static

ixgbe_release_swfw_sync_X550a - Release SWFW semaphore @hw: pointer to hardware structure @mask: Mask to specify which semaphore to release

Releases the SWFW semaphore and puts the shared phy token as needed

Definition at line 4357 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_GSSR_TOKEN_SM, ixgbe_put_phy_token(), and ixgbe_release_swfw_sync_X540().

Referenced by ixgbe_init_ops_X550EM_a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_release_swfw_sync_X550em()

void ixgbe_release_swfw_sync_X550em ( struct ixgbe_hw hw,
u32  mask 
)

ixgbe_release_swfw_sync_X550em - Release SWFW semaphore @hw: pointer to hardware structure @mask: Mask to specify which semaphore to release

Releases the SWFW semaphore and sets the I2C MUX

Definition at line 4290 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_GSSR_I2C_MASK, ixgbe_release_swfw_sync_X540(), and ixgbe_set_mux().

Referenced by ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_reset_cs4227()

static s32 ixgbe_reset_cs4227 ( struct ixgbe_hw hw)
static

ixgbe_reset_cs4227 - Reset CS4227 using port expander @hw: pointer to hardware structure

This function assumes that the caller has acquired the proper semaphore. Returns error code

Definition at line 177 of file ixgbe_x550.c.

References ERROR_REPORT1, IXGBE_CS4227_CHECK_DELAY, IXGBE_CS4227_EEPROM_LOAD_OK, IXGBE_CS4227_EEPROM_STATUS, IXGBE_CS4227_EFUSE_STATUS, IXGBE_CS4227_RESET_DELAY, IXGBE_CS4227_RESET_HOLD, IXGBE_CS4227_RETRIES, IXGBE_ERR_PHY, IXGBE_ERROR_INVALID_STATE, IXGBE_PE_BIT1, IXGBE_PE_CONFIG, IXGBE_PE_OUTPUT, ixgbe_read_cs4227(), ixgbe_read_pe(), IXGBE_SUCCESS, ixgbe_write_pe(), msec_delay, and usec_delay.

Referenced by ixgbe_check_cs4227().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_reset_hw_X550em()

s32 ixgbe_reset_hw_X550em ( struct ixgbe_hw hw)

ixgbe_reset_hw_X550em - Perform hardware reset @hw: pointer to hardware structure

Resets the hardware by resetting the transmit and receive units, masks and clears all interrupts, perform a PHY reset, and perform a link (MAC) reset.

Definition at line 2435 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_mac_operations::check_link, DEBUGFUNC, DEBUGOUT, DEBUGOUT1, ixgbe_hw::device_id, ERROR_REPORT2, ixgbe_mac_info::flags, ixgbe_hw::force_full_reset, ixgbe_mac_operations::get_mac_addr, ixgbe_phy_operations::init, ixgbe_mac_operations::init_rx_addrs, ixgbe_clear_tx_pending(), IXGBE_CTRL, IXGBE_CTRL_LNK_RST, IXGBE_CTRL_RST, IXGBE_CTRL_RST_MASK, IXGBE_DEV_ID_X550EM_X_SFP, IXGBE_ERR_OVERTEMP, IXGBE_ERR_PHY_ADDR_INVALID, IXGBE_ERR_RESET_FAILED, IXGBE_ERR_SFP_NOT_SUPPORTED, IXGBE_ERR_SWFW_SYNC, IXGBE_ERROR_CAUTION, IXGBE_FLAGS_DOUBLE_RESET_REQUIRED, ixgbe_init_ext_t_x550em(), ixgbe_phy_x550em_ext_t, IXGBE_READ_REG, ixgbe_set_mdio_speed(), ixgbe_setup_mux_ctl(), IXGBE_SUCCESS, IXGBE_WRITE_FLUSH, IXGBE_WRITE_REG, ixgbe_hw::mac, msec_delay, ixgbe_mac_info::num_rar_entries, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_mac_info::perm_addr, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_mac_operations::release_swfw_sync, ixgbe_phy_operations::reset, ixgbe_phy_info::reset_disable, ixgbe_mac_operations::setup_sfp, ixgbe_phy_info::sfp_setup_needed, ixgbe_mac_operations::stop_adapter, ixgbe_phy_info::type, and usec_delay.

Referenced by ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_reset_phy_fw()

static s32 ixgbe_reset_phy_fw ( struct ixgbe_hw hw)
static

ixgbe_reset_phy_fw - Reset firmware-controlled PHYs @hw: pointer to hardware structure

Definition at line 2207 of file ixgbe_x550.c.

References FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_INIT_PHY, FW_PHY_ACT_PHY_SW_RESET, ixgbe_check_reset_blocked(), ixgbe_fw_phy_activity(), ixgbe_setup_fw_link(), IXGBE_SUCCESS, ixgbe_hw::phy, and ixgbe_phy_info::reset_disable.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_reset_phy_t_X550em()

s32 ixgbe_reset_phy_t_X550em ( struct ixgbe_hw hw)

ixgbe_reset_phy_t_X550em - Performs X557 PHY reset and enables LASI @hw: pointer to hardware structure

Definition at line 4561 of file ixgbe_x550.c.

References ixgbe_enable_lasi_ext_t_x550em(), ixgbe_reset_phy_generic(), and IXGBE_SUCCESS.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_restart_an_internal_phy_x550em()

◆ ixgbe_restore_mdd_vf_X550()

void ixgbe_restore_mdd_vf_X550 ( struct ixgbe_hw hw,
u32  vf 
)

ixgbe_restore_mdd_vf_X550 @hw: pointer to hardware structure @vf: vf index

Restore VF that was disabled during malicious driver detection event

Definition at line 1410 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_MRQC, IXGBE_MRQC_MRQE_MASK, IXGBE_MRQC_VMDQRSS32EN, IXGBE_MRQC_VMDQRT4TCEN, IXGBE_MRQC_VMDQRT8TCEN, IXGBE_READ_REG, IXGBE_WQBR_RX, IXGBE_WQBR_TX, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_set_ethertype_anti_spoofing_X550()

void ixgbe_set_ethertype_anti_spoofing_X550 ( struct ixgbe_hw hw,
bool  enable,
int  vf 
)

ixgbe_set_ethertype_anti_spoofing_X550 - Configure Ethertype anti-spoofing @hw: pointer to hardware structure @enable: enable or disable switch for Ethertype anti-spoofing @vf: Virtual Function pool - VF Pool to set for Ethertype anti-spoofing

Definition at line 1079 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_PFVFSPOOF, IXGBE_READ_REG, IXGBE_SPOOF_ETHERTYPEAS_SHIFT, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_set_fw_drv_ver_x550()

s32 ixgbe_set_fw_drv_ver_x550 ( struct ixgbe_hw hw,
u8  maj,
u8  min,
u8  build,
u8  sub,
u16  len,
const char *  driver_ver 
)

ixgbe_set_fw_drv_ver_x550 - Sends driver version to firmware @hw: pointer to the HW structure @maj: driver version major number @min: driver version minor number @build: driver version build number @sub: driver version sub build number @len: length of driver_ver string @driver_ver: driver string

Sends driver version number to firmware through the manageability block. On success return IXGBE_SUCCESS else returns IXGBE_ERR_SWFW_SYNC when encountering an error acquiring semaphore or IXGBE_ERR_HOST_INTERFACE_COMMAND when command fails.

Definition at line 4639 of file ixgbe_x550.c.

References ixgbe_hic_hdr::buf_len, ixgbe_hw::bus, ixgbe_hic_hdr::checksum, ixgbe_hic_hdr::cmd, ixgbe_hic_hdr::cmd_or_resp, ixgbe_hic_hdr::cmd_resv, DEBUGFUNC, ixgbe_hic_drv_info2::driver_string, ixgbe_bus_info::func, FW_CEM_CMD_DRIVER_INFO, FW_CEM_CMD_DRIVER_INFO_LEN, FW_CEM_CMD_RESERVED, FW_CEM_HDR_LEN, FW_CEM_MAX_RETRIES, FW_CEM_RESP_STATUS_SUCCESS, ixgbe_hic_drv_info2::hdr, ixgbe_calculate_checksum(), IXGBE_ERR_HOST_INTERFACE_COMMAND, IXGBE_ERR_INVALID_ARGUMENT, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, ixgbe_hic_drv_info2::port_num, ixgbe_hic_drv_info2::ver_build, ixgbe_hic_drv_info2::ver_maj, ixgbe_hic_drv_info2::ver_min, and ixgbe_hic_drv_info2::ver_sub.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_set_mdio_speed()

static void ixgbe_set_mdio_speed ( struct ixgbe_hw hw)
static

◆ ixgbe_set_mux()

static void ixgbe_set_mux ( struct ixgbe_hw hw,
u8  state 
)
static

ixgbe_set_mux - Set mux for port 1 access with CS4227 @hw: pointer to hardware structure @state: set mux if 1, clear if 0

Definition at line 4245 of file ixgbe_x550.c.

References ixgbe_hw::bus, IXGBE_ESDP, IXGBE_ESDP_SDP1, IXGBE_READ_REG, IXGBE_WRITE_FLUSH, IXGBE_WRITE_REG, and ixgbe_bus_info::lan_id.

Referenced by ixgbe_acquire_swfw_sync_X550em(), and ixgbe_release_swfw_sync_X550em().

Here is the caller graph for this function:

◆ ixgbe_set_source_address_pruning_X550()

void ixgbe_set_source_address_pruning_X550 ( struct ixgbe_hw hw,
bool  enable,
unsigned int  pool 
)

ixgbe_set_source_address_pruning_X550 - Enable/Disbale source address pruning @hw: pointer to hardware structure @enable: enable or disable source address pruning @pool: Rx pool to set source address pruning for

Definition at line 1051 of file ixgbe_x550.c.

References IXGBE_PFFLPH, IXGBE_PFFLPL, IXGBE_READ_REG, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_setup_eee_fw()

static s32 ixgbe_setup_eee_fw ( struct ixgbe_hw hw,
bool  enable_eee 
)
static

ixgbe_setup_eee_fw - Enable/disable EEE support @hw: pointer to the HW structure @enable_eee: boolean flag to enable EEE

Enable/disable EEE based on enable_eee flag. This function controls EEE for firmware-based PHY implementations.

Definition at line 775 of file ixgbe_x550.c.

References ixgbe_phy_info::eee_speeds_advertised, ixgbe_phy_info::eee_speeds_supported, IXGBE_SUCCESS, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::setup_link.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the caller graph for this function:

◆ ixgbe_setup_fc_backplane_x550em_a()

◆ ixgbe_setup_fc_X550em()

◆ ixgbe_setup_fw_link()

◆ ixgbe_setup_internal_phy_t_x550em()

s32 ixgbe_setup_internal_phy_t_x550em ( struct ixgbe_hw hw)

ixgbe_setup_internal_phy_t_x550em - Configure KR PHY to X557 link @hw: point to hardware structure

Configures the link between the integrated KR PHY and the external X557 PHY The driver will call this function when it gets a link status change interrupt from the X557 PHY. This function configures the link speed between the PHYs to match the link speed of the BASE-T link.

A return of a non-zero value indicates an error, and the base driver should not report link up.

Definition at line 2995 of file ixgbe_x550.c.

References ixgbe_mac_operations::get_media_type, IXGBE_ERR_CONFIG, IXGBE_ERR_INVALID_LINK_SETTINGS, ixgbe_ext_phy_t_x550em_get_link(), IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_mac_X550EM_x, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_10GB_FULL, IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_1GB_FULL, IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK, ixgbe_media_type_copper, IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE, ixgbe_setup_ixfi_x550em(), ixgbe_setup_kr_speed_x550em(), IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_phy_info::nw_mng_if_sel, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_operations::read_reg, and ixgbe_mac_info::type.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_ixfi_x550em()

static s32 ixgbe_setup_ixfi_x550em ( struct ixgbe_hw hw,
ixgbe_link_speed speed 
)
static

ixgbe_setup_ixfi_x550em - Configure the KR PHY for iXFI mode. @hw: pointer to hardware structure @speed: the link speed to force

Configures the integrated KR PHY to use iXFI mode. Used to connect an internal and external PHY at a specific speed, without autonegotiation.

Definition at line 2899 of file ixgbe_x550.c.

References ixgbe_hw::bus, IXGBE_ERR_LINK_SETUP, IXGBE_KRM_LINK_CTRL_1, IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_10G, IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G, IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_mac_X550EM_x, ixgbe_restart_an_internal_phy_x550em(), IXGBE_SB_IOSF_TARGET_KR_PHY, ixgbe_setup_ixfi_x550em_x(), IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_mac_info::type, and ixgbe_mac_operations::write_iosf_sb_reg.

Referenced by ixgbe_setup_internal_phy_t_x550em(), and ixgbe_setup_mac_link_t_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_ixfi_x550em_x()

◆ ixgbe_setup_kr_speed_x550em()

◆ ixgbe_setup_kr_x550em()

s32 ixgbe_setup_kr_x550em ( struct ixgbe_hw hw)

ixgbe_setup_kr_x550em - Configure the KR PHY. @hw: pointer to hardware structure

Definition at line 2611 of file ixgbe_x550.c.

References ixgbe_phy_info::autoneg_advertised, ixgbe_check_reset_blocked(), IXGBE_LINK_SPEED_2_5GB_FULL, ixgbe_setup_kr_speed_x550em(), IXGBE_SUCCESS, and ixgbe_hw::phy.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_mac_link_sfp_x550a()

◆ ixgbe_setup_mac_link_sfp_x550em()

s32 ixgbe_setup_mac_link_sfp_x550em ( struct ixgbe_hw hw,
ixgbe_link_speed  speed,
bool  autoneg_wait_to_complete 
)

ixgbe_setup_mac_link_sfp_x550em - Setup internal/external the PHY for SFP @hw: pointer to hardware structure @speed: new link speed @autoneg_wait_to_complete: unused

Configure the external PHY and the integrated KR PHY for SFP support.

Definition at line 2631 of file ixgbe_x550.c.

References ixgbe_link_info::addr, ixgbe_hw::bus, IXGBE_CS4227_EDC_MODE_CX1, IXGBE_CS4227_EDC_MODE_SR, IXGBE_CS4227_LINE_SPARE24_LSB, IXGBE_ERR_SFP_NOT_PRESENT, ixgbe_setup_kr_speed_x550em(), IXGBE_SUCCESS, ixgbe_supported_sfp_modules_X550em(), ixgbe_bus_info::lan_id, ixgbe_hw::link, ixgbe_link_info::ops, UNREFERENCED_1PARAMETER, and ixgbe_link_operations::write_link.

Referenced by ixgbe_init_mac_link_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_mac_link_t_X550em()

s32 ixgbe_setup_mac_link_t_X550em ( struct ixgbe_hw hw,
ixgbe_link_speed  speed,
bool  autoneg_wait_to_complete 
)

ixgbe_setup_mac_link_t_X550em - Sets the auto advertised link speed @hw: pointer to hardware structure @speed: new link speed @autoneg_wait_to_complete: true when waiting for completion is needed

Setup internal/external PHY link speed based on link speed, then set external PHY auto advertised link speed.

Returns error status for any failure

Definition at line 4466 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_check_link(), IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_mac_X550EM_x, IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE, ixgbe_setup_ixfi_x550em(), IXGBE_SUCCESS, ixgbe_hw::mac, msec_delay, ixgbe_phy_info::nw_mng_if_sel, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_operations::setup_link_speed, and ixgbe_mac_info::type.

Referenced by ixgbe_init_mac_link_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_mux_ctl()

static void ixgbe_setup_mux_ctl ( struct ixgbe_hw hw)
static

ixgbe_setup_mux_ctl - Setup ESDP register for I2C mux control @hw: pointer to hardware structure

Definition at line 327 of file ixgbe_x550.c.

References ixgbe_hw::bus, IXGBE_ESDP, IXGBE_ESDP_SDP0_DIR, IXGBE_ESDP_SDP0_NATIVE, IXGBE_ESDP_SDP1, IXGBE_ESDP_SDP1_DIR, IXGBE_ESDP_SDP1_NATIVE, IXGBE_READ_REG, IXGBE_WRITE_FLUSH, IXGBE_WRITE_REG, and ixgbe_bus_info::lan_id.

Referenced by ixgbe_identify_phy_x550em(), ixgbe_init_phy_ops_X550em(), and ixgbe_reset_hw_X550em().

Here is the caller graph for this function:

◆ ixgbe_setup_phy_loopback_x550em()

◆ ixgbe_setup_sfi_x550a()

static s32 ixgbe_setup_sfi_x550a ( struct ixgbe_hw hw,
ixgbe_link_speed speed 
)
static

ixgbe_setup_sfi_x550a - Configure the internal PHY for native SFI mode @hw: pointer to hardware structure @speed: the link speed to force

Configures the integrated PHY for native SFI mode. Used to connect the internal PHY directly to an SFP cage, without autonegotiation.

Definition at line 2676 of file ixgbe_x550.c.

References ixgbe_hw::bus, IXGBE_ERR_LINK_SETUP, IXGBE_KRM_PMD_FLX_MASK_ST20, IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_10G, IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_1G, IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_restart_an_internal_phy_x550em(), IXGBE_SB_IOSF_TARGET_KR_PHY, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, and ixgbe_mac_operations::write_iosf_sb_reg.

Referenced by ixgbe_setup_mac_link_sfp_x550a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_sfp_modules_X550em()

s32 ixgbe_setup_sfp_modules_X550em ( struct ixgbe_hw hw)

ixgbe_setup_sfp_modules_X550em - Setup MAC link ops @hw: pointer to hardware structure

Definition at line 1613 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_init_mac_link_ops_X550em(), IXGBE_SUCCESS, ixgbe_supported_sfp_modules_X550em(), ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::reset.

Referenced by ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_sgmii()

◆ ixgbe_setup_sgmii_fw()

static s32 ixgbe_setup_sgmii_fw ( struct ixgbe_hw hw,
ixgbe_link_speed  speed,
bool  autoneg_wait 
)
static

◆ ixgbe_shutdown_fw_phy()

s32 ixgbe_shutdown_fw_phy ( struct ixgbe_hw hw)

ixgbe_shutdown_fw_phy - Shutdown a firmware-controlled PHY @hw: pointer to hardware structure

Returns error code

Definition at line 514 of file ixgbe_x550.c.

References FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_FORCE_LINK_DOWN, FW_PHY_ACT_FORCE_LINK_DOWN_OFF, and ixgbe_fw_phy_activity().

Referenced by ixgbe_check_overtemp_fw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_supported_sfp_modules_X550em()

◆ ixgbe_update_eeprom_checksum_X550()

s32 ixgbe_update_eeprom_checksum_X550 ( struct ixgbe_hw hw)

ixgbe_update_eeprom_checksum_X550 - Updates the EEPROM checksum and flash @hw: pointer to hardware structure

After writing EEPROM to shadow RAM using EEWR register, software calculates checksum and updates the EEPROM and instructs the hardware to update the flash.

Definition at line 3577 of file ixgbe_x550.c.

References DEBUGFUNC, DEBUGOUT, ixgbe_calc_eeprom_checksum_X550(), IXGBE_EEPROM_CHECKSUM, ixgbe_read_ee_hostif_X550(), ixgbe_update_flash_X550(), and ixgbe_write_ee_hostif_X550().

Referenced by ixgbe_init_ops_X550(), and ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_update_flash_X550()

s32 ixgbe_update_flash_X550 ( struct ixgbe_hw hw)

ixgbe_update_flash_X550 - Instruct HW to copy EEPROM to Flash device @hw: pointer to hardware structure

Issue a shadow RAM dump to FW to copy EEPROM from shadow RAM to the flash.

Definition at line 3616 of file ixgbe_x550.c.

References ixgbe_hic_hdr2_req::buf_lenh, ixgbe_hic_hdr2_req::buf_lenl, ixgbe_hic_hdr2_req::checksum, ixgbe_hic_hdr2_req::cmd, DEBUGFUNC, FW_DEFAULT_CHECKSUM, FW_SHADOW_RAM_DUMP_CMD, FW_SHADOW_RAM_DUMP_LEN, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, and ixgbe_hic_hdr2::req.

Referenced by ixgbe_update_eeprom_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_validate_eeprom_checksum_X550()

s32 ixgbe_validate_eeprom_checksum_X550 ( struct ixgbe_hw hw,
u16 checksum_val 
)

ixgbe_validate_eeprom_checksum_X550 - Validate EEPROM checksum @hw: pointer to hardware structure @checksum_val: calculated checksum

Performs checksum calculation and validates the EEPROM checksum. If the caller does not need checksum_val, the value can be NULL.

Definition at line 3524 of file ixgbe_x550.c.

References ixgbe_eeprom_operations::calc_checksum, DEBUGFUNC, DEBUGOUT, ixgbe_hw::eeprom, ERROR_REPORT1, IXGBE_EEPROM_CHECKSUM, IXGBE_ERR_EEPROM_CHECKSUM, IXGBE_ERROR_INVALID_STATE, ixgbe_read_ee_hostif_X550(), ixgbe_eeprom_info::ops, and ixgbe_eeprom_operations::read.

Referenced by ixgbe_init_ops_X550(), and ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_cs4227()

static s32 ixgbe_write_cs4227 ( struct ixgbe_hw hw,
u16  reg,
u16  value 
)
static

ixgbe_write_cs4227 - Write CS4227 register @hw: pointer to hardware structure @reg: register number to write @value: value to write to register

Returns status code

Definition at line 127 of file ixgbe_x550.c.

References ixgbe_link_info::addr, ixgbe_hw::link, ixgbe_link_info::ops, and ixgbe_link_operations::write_link_unlocked.

Referenced by ixgbe_check_cs4227().

Here is the caller graph for this function:

◆ ixgbe_write_ee_hostif_buffer_X550()

s32 ixgbe_write_ee_hostif_buffer_X550 ( struct ixgbe_hw hw,
u16  offset,
u16  words,
u16 data 
)

ixgbe_write_ee_hostif_buffer_X550 - Write EEPROM word(s) using hostif @hw: pointer to hardware structure @offset: offset of word in the EEPROM to write @words: number of words @data: word(s) write to the EEPROM

Write a 16 bit word(s) to the EEPROM using the hostif.

Definition at line 3319 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_hic_write_shadow_ram::data, DEBUGFUNC, DEBUGOUT, IXGBE_GSSR_EEP_SM, IXGBE_SUCCESS, ixgbe_write_ee_hostif_data_X550(), ixgbe_hw::mac, ixgbe_mac_info::ops, and ixgbe_mac_operations::release_swfw_sync.

Referenced by ixgbe_init_ops_X550(), and ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_ee_hostif_data_X550()

s32 ixgbe_write_ee_hostif_data_X550 ( struct ixgbe_hw hw,
u16  offset,
u16  data 
)

ixgbe_write_ee_hostif_X550 - Write EEPROM word using hostif @hw: pointer to hardware structure @offset: offset of word in the EEPROM to write @data: word write to the EEPROM

Write a 16 bit word to the EEPROM using the hostif.

Definition at line 3247 of file ixgbe_x550.c.

References ixgbe_hic_write_shadow_ram::address, ixgbe_hic_hdr2_req::buf_lenh, ixgbe_hic_hdr2_rsp::buf_lenh_status, ixgbe_hic_hdr2_req::buf_lenl, ixgbe_hic_hdr2_req::checksum, ixgbe_hic_hdr2_req::cmd, ixgbe_hic_write_shadow_ram::data, DEBUGFUNC, DEBUGOUT2, FW_CEM_RESP_STATUS_SUCCESS, FW_DEFAULT_CHECKSUM, FW_WRITE_SHADOW_RAM_CMD, FW_WRITE_SHADOW_RAM_LEN, ixgbe_hic_write_shadow_ram::hdr, IXGBE_CPU_TO_BE16, IXGBE_CPU_TO_BE32, IXGBE_ERR_HOST_INTERFACE_COMMAND, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, ixgbe_hic_write_shadow_ram::length, ixgbe_hic_hdr2::req, and ixgbe_hic_hdr2::rsp.

Referenced by ixgbe_write_ee_hostif_buffer_X550(), and ixgbe_write_ee_hostif_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_ee_hostif_X550()

s32 ixgbe_write_ee_hostif_X550 ( struct ixgbe_hw hw,
u16  offset,
u16  data 
)

ixgbe_write_ee_hostif_X550 - Write EEPROM word using hostif @hw: pointer to hardware structure @offset: offset of word in the EEPROM to write @data: word write to the EEPROM

Write a 16 bit word to the EEPROM using the hostif.

Definition at line 3291 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_hic_write_shadow_ram::data, DEBUGFUNC, DEBUGOUT, IXGBE_ERR_SWFW_SYNC, IXGBE_GSSR_EEP_SM, IXGBE_SUCCESS, ixgbe_write_ee_hostif_data_X550(), ixgbe_hw::mac, ixgbe_mac_info::ops, and ixgbe_mac_operations::release_swfw_sync.

Referenced by ixgbe_init_ops_X550(), ixgbe_init_ops_X550EM(), and ixgbe_update_eeprom_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_i2c_combined_generic()

static s32 ixgbe_write_i2c_combined_generic ( struct ixgbe_hw hw,
u8  addr,
u16  reg,
u16  val 
)
static

ixgbe_write_i2c_combined_generic - Perform I2C write combined operation @hw: pointer to the hardware structure @addr: I2C bus address to write to @reg: I2C device register to write to @val: value to write

Returns an error code on error.

Definition at line 576 of file ixgbe_x550.c.

References ixgbe_write_i2c_combined_generic_int().

Referenced by ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_i2c_combined_generic_unlocked()

static s32 ixgbe_write_i2c_combined_generic_unlocked ( struct ixgbe_hw hw,
u8  addr,
u16  reg,
u16  val 
)
static

ixgbe_write_i2c_combined_generic_unlocked - Do I2C write combined operation @hw: pointer to the hardware structure @addr: I2C bus address to write to @reg: I2C device register to write to @val: value to write

Returns an error code on error.

Definition at line 592 of file ixgbe_x550.c.

References ixgbe_write_i2c_combined_generic_int().

Referenced by ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_iosf_sb_reg_x550()

s32 ixgbe_write_iosf_sb_reg_x550 ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u32  data 
)

ixgbe_write_iosf_sb_reg_x550 - Writes a value to specified register of the IOSF device @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 3 bit device type @data: Data to write to the register

Definition at line 1138 of file ixgbe_x550.c.

References ERROR_REPORT2, ixgbe_acquire_swfw_semaphore(), IXGBE_ERR_PHY, IXGBE_ERROR_POLLING, IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, ixgbe_iosf_wait(), ixgbe_release_swfw_semaphore(), IXGBE_SB_IOSF_CTRL_ADDR_SHIFT, IXGBE_SB_IOSF_CTRL_CMPL_ERR_MASK, IXGBE_SB_IOSF_CTRL_CMPL_ERR_SHIFT, IXGBE_SB_IOSF_CTRL_RESP_STAT_MASK, IXGBE_SB_IOSF_CTRL_TARGET_SELECT_SHIFT, IXGBE_SB_IOSF_INDIRECT_CTRL, IXGBE_SB_IOSF_INDIRECT_DATA, IXGBE_SUCCESS, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550EM_a(), and ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_iosf_sb_reg_x550a()

s32 ixgbe_write_iosf_sb_reg_x550a ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u32  data 
)

ixgbe_write_iosf_sb_reg_x550a - Writes a value to specified register of the IOSF device @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 3 bit device type @data: Data to write to the register

Definition at line 1299 of file ixgbe_x550.c.

References ixgbe_hic_internal_phy_req::address, ixgbe_hic_hdr::buf_len, ixgbe_hw::bus, ixgbe_hic_hdr::checksum, ixgbe_hic_hdr::cmd, ixgbe_hic_internal_phy_req::command_type, FW_DEFAULT_CHECKSUM, FW_INT_PHY_REQ_CMD, FW_INT_PHY_REQ_LEN, FW_INT_PHY_REQ_WRITE, ixgbe_hic_internal_phy_req::hdr, IXGBE_CPU_TO_BE16, IXGBE_CPU_TO_BE32, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), ixgbe_bus_info::lan_id, ixgbe_hic_internal_phy_req::port_number, UNREFERENCED_1PARAMETER, and ixgbe_hic_internal_phy_req::write_data.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_pe()

static s32 ixgbe_write_pe ( struct ixgbe_hw hw,
u8  reg,
u8  value 
)
static

ixgbe_write_pe - Write register to port expander @hw: pointer to hardware structure @reg: register number to write @value: value to write

Returns status code

Definition at line 159 of file ixgbe_x550.c.

References ERROR_REPORT2, IXGBE_ERROR_CAUTION, IXGBE_PE, IXGBE_SUCCESS, and ixgbe_write_i2c_byte_unlocked().

Referenced by ixgbe_reset_cs4227().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_phy_reg_x550a()

s32 ixgbe_write_phy_reg_x550a ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u16  phy_data 
)

ixgbe_write_phy_reg_x550a - Writes specified PHY register @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 5 bit device type @phy_data: Data to write to the PHY register

Writes a value to specified PHY register using the SWFW lock and PHY Token. The PHY Token is needed since the MDIO is shared between to MAC instances.

Definition at line 4409 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, DEBUGFUNC, IXGBE_ERR_SWFW_SYNC, IXGBE_GSSR_TOKEN_SM, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_mac_operations::release_swfw_sync, and ixgbe_phy_operations::write_reg_mdi.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the caller graph for this function:

◆ ixgbe_write_phy_reg_x550em()

static s32 ixgbe_write_phy_reg_x550em ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u16  phy_data 
)
static

Definition at line 529 of file ixgbe_x550.c.

References IXGBE_NOT_IMPLEMENTED, and UNREFERENCED_4PARAMETER.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the caller graph for this function:

Variable Documentation

◆ fw_speed

u16 fw_speed

Definition at line 442 of file ixgbe_x550.c.

Referenced by ixgbe_get_phy_id_fw(), and ixgbe_setup_fw_link().

◆ 

const struct { ... } ixgbe_fw_map[]
Initial value:
= {
}
#define FW_PHY_ACT_LINK_SPEED_100
Definition: ixgbe_type.h:3126
#define IXGBE_LINK_SPEED_5GB_FULL
Definition: ixgbe_type.h:3449
#define FW_PHY_ACT_LINK_SPEED_2_5G
Definition: ixgbe_type.h:3128
#define FW_PHY_ACT_LINK_SPEED_10
Definition: ixgbe_type.h:3125
#define FW_PHY_ACT_LINK_SPEED_10G
Definition: ixgbe_type.h:3130
#define IXGBE_LINK_SPEED_10_FULL
Definition: ixgbe_type.h:3445
#define IXGBE_LINK_SPEED_100_FULL
Definition: ixgbe_type.h:3446
#define IXGBE_LINK_SPEED_1GB_FULL
Definition: ixgbe_type.h:3447
#define FW_PHY_ACT_LINK_SPEED_1G
Definition: ixgbe_type.h:3127
#define IXGBE_LINK_SPEED_2_5GB_FULL
Definition: ixgbe_type.h:3448
#define IXGBE_LINK_SPEED_10GB_FULL
Definition: ixgbe_type.h:3450
#define FW_PHY_ACT_LINK_SPEED_5G
Definition: ixgbe_type.h:3129

Referenced by ixgbe_get_phy_id_fw(), and ixgbe_setup_fw_link().

◆ phy_speed

ixgbe_link_speed phy_speed

Definition at line 443 of file ixgbe_x550.c.

Referenced by ixgbe_check_phy_link_tnx().