src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
static s32 ixgbe_check_overtemp_fw(struct ixgbe_hw *hw)
{
	u32 store[FW_PHY_ACT_DATA_COUNT] = { 0 };
	s32 rc;

	rc = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_GET_LINK_INFO, &store);
	if (rc)
		return rc;

	if (store[0] & FW_PHY_ACT_GET_LINK_INFO_TEMP) {
		ixgbe_shutdown_fw_phy(hw);
		return IXGBE_ERR_OVERTEMP;
	}
	return IXGBE_SUCCESS;
}
/**
 * ixgbe_check_overtemp_fw - Check firmware-controlled PHYs for overtemp
 * @hw: pointer to hardware structure
 */
Check firmware-controlled PHYs for overtemp
@hw: pointer to hardware structure
Check firmware - controlled PHYs for overtemp @hw : pointer to hardware structure
static s32 ixgbe_check_overtemp_fw(struct ixgbe_hw *hw)
{
	u32 store[FW_PHY_ACT_DATA_COUNT] = { 0 };
	s32 rc;
	rc = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_GET_LINK_INFO, &store);
	if (rc)
		return rc;
	if (store[0] & FW_PHY_ACT_GET_LINK_INFO_TEMP) {
		ixgbe_shutdown_fw_phy(hw);
		return IXGBE_ERR_OVERTEMP;
	}
	return IXGBE_SUCCESS;
}
static s32 ixgbe_check_overtemp_fw ( struct ixgbe_hw * hw ) { u32 store [ FW_PHY_ACT_DATA_COUNT ] = { 0 } ; s32 rc ; rc = ixgbe_fw_phy_activity ( hw , FW_PHY_ACT_GET_LINK_INFO , & store ) ; if ( rc ) return rc ; if ( store [ 0 ] & FW_PHY_ACT_GET_LINK_INFO_TEMP ) { ixgbe_shutdown_fw_phy ( hw ) ; return IXGBE_ERR_OVERTEMP ; } return IXGBE_SUCCESS ; }
ixgbe_check_overtemp_fw - Check firmware-controlled PHYs for overtemp
 @hw: pointer to hardware structure
ixgbe_check_overtemp_fw - Check firmware - controlled PHYs for overtemp @hw : pointer to hardware structure