From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CBC5E454EF; Tue, 25 Jun 2024 13:28:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 141C34328F; Tue, 25 Jun 2024 13:19:47 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 31CA342F19 for ; Tue, 25 Jun 2024 13:17:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314275; x=1750850275; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AayLFMPTrid3WrOtOwEPNRdzIcwmV5UaR9aw+S+XnqY=; b=B+Qw6IbGVTCg0a6LvZ/L6+ncM4rkjhSErWFfaOy52lkViX79tsV/Kgnx PxdExnOUp9InRvUAFRbRQG8j51DvJ0Nn29GTzz4m7593lkkrORloVZjCR 8bqRJ6Mj++xdVUXqHQ67ZXxml5+67uOkxm17T2W0qs96KHgXWlXX4Atg+ l86oFfEfMfaLjymC3aeMS/GuY8L3/MJBU0Zp6ZnzxMiMDkgTgKJ/Oz/8x f0OcNXLtFplDgd7lC3oQZ0Fw3/rbMqBVraK1Un3QH3MIIvM4Q8Dx455VU 2A7/fv7qDvPLv8Jxadq1G2IAhPc3XLysjojfRc0w6/uBijm1LBK2+CR6r w==; X-CSE-ConnectionGUID: xVPnqjxvRAS7H7WhGxZGuA== X-CSE-MsgGUID: hDgEffuaRVa4t3UrN0hw3w== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080611" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080611" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:17:54 -0700 X-CSE-ConnectionGUID: CpSMgWVURhaOTj57dvhZYA== X-CSE-MsgGUID: X1I389ITTpqvERwNlg0J3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719706" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:17:54 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 108/129] net/ice/base: make some switch-related functions static Date: Tue, 25 Jun 2024 12:13:53 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org To better align with upstream release, remove some functions from switch header and make them static instead. Signed-off-by: Anatoly Burakov --- drivers/net/ice/base/ice_ptp_hw.c | 14 +++++++------- drivers/net/ice/base/ice_ptp_hw.h | 16 ---------------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/drivers/net/ice/base/ice_ptp_hw.c b/drivers/net/ice/base/ice_ptp_hw.c index 5abf41952b..495bcd62f6 100644 --- a/drivers/net/ice/base/ice_ptp_hw.c +++ b/drivers/net/ice/base/ice_ptp_hw.c @@ -3330,7 +3330,7 @@ ice_ptp_read_port_capture_e822(struct ice_hw *hw, u8 port, u64 *tx_ts, * Note there is no equivalent of this operation on E810, as that device * always handles all external PHYs internally. */ -int +static int ice_ptp_write_port_cmd_e822(struct ice_hw *hw, u8 port, enum ice_ptp_tmr_cmd cmd, bool lock_sbq) { @@ -5075,8 +5075,8 @@ ice_ptp_prep_phy_adj_target_e810(struct ice_hw *hw, u32 target_time) * Prepare the external PHYs connected to this device for a timer sync * command. */ -int ice_ptp_port_cmd_e810(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd, - bool lock_sbq) +static int ice_ptp_port_cmd_e810(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd, + bool lock_sbq) { u32 val = ice_ptp_tmr_cmd_to_port_reg(hw, cmd); int err; @@ -5483,7 +5483,7 @@ ice_ptp_write_direct_phc_time_e830(struct ice_hw *hw, u64 time) * Prepare the external PHYs connected to this device for a timer sync * command. */ -int +static int ice_ptp_port_cmd_e830(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd, bool lock_sbq) { @@ -5532,7 +5532,7 @@ ice_read_phy_tstamp_e830(struct ice_hw *hw, u8 lport, u8 idx, u64 *tstamp) * @tstamp_ready: contents of the Tx memory status register * */ -int +static int ice_get_phy_tx_tstamp_ready_e830(struct ice_hw *hw, u8 port, u64 *tstamp_ready) { u64 hi; @@ -5678,8 +5678,8 @@ void ice_ptp_init_phy_model(struct ice_hw *hw) * programming only a single port, instead use ice_ptp_one_port_cmd() to * ensure non-modified ports get properly initialized to ICE_PTP_NOP. */ -int ice_ptp_write_port_cmd(struct ice_hw *hw, u8 port, - enum ice_ptp_tmr_cmd cmd, bool lock_sbq) +static int ice_ptp_write_port_cmd(struct ice_hw *hw, u8 port, + enum ice_ptp_tmr_cmd cmd, bool lock_sbq) { switch (hw->phy_model) { case ICE_PHY_ETH56G: diff --git a/drivers/net/ice/base/ice_ptp_hw.h b/drivers/net/ice/base/ice_ptp_hw.h index 8030ebd0c1..90db99327c 100644 --- a/drivers/net/ice/base/ice_ptp_hw.h +++ b/drivers/net/ice/base/ice_ptp_hw.h @@ -195,12 +195,6 @@ int ice_cfg_cgu_pll_e822(struct ice_hw *hw, enum ice_time_ref_freq *clk_freq, enum ice_clk_src *clk_src); int -ice_ptp_write_port_cmd_e822(struct ice_hw *hw, u8 port, - enum ice_ptp_tmr_cmd cmd, bool lock_sbq); -int -ice_ptp_write_port_cmd(struct ice_hw *hw, u8 port, enum ice_ptp_tmr_cmd cmd, - bool lock_sbq); -int ice_cfg_cgu_pll_e825c(struct ice_hw *hw, enum ice_time_ref_freq *clk_freq, enum ice_clk_src *clk_src); int @@ -213,16 +207,6 @@ ice_cfg_cgu_bypass_mux_e825c(struct ice_hw *hw, u8 port_num, bool clock_1588, unsigned int ena); int ice_cfg_synce_ethdiv_e825c(struct ice_hw *hw, u8 *divider); -/* E8 Family */ -int -ice_ptp_port_cmd_e830(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd, - bool lock_sbq); -int -ice_ptp_port_cmd_e810(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd, - bool lock_sbq); -int -ice_get_phy_tx_tstamp_ready_e830(struct ice_hw *hw, u8 port, u64 *tstamp_ready); - /** * ice_e822_time_ref - Get the current TIME_REF from capabilities * @hw: pointer to the HW structure -- 2.43.0