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 5D5194404F; Wed, 12 Jun 2024 17:24:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD24B43295; Wed, 12 Jun 2024 17:06:54 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 10C5F42FB1 for ; Wed, 12 Jun 2024 17:06:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204812; x=1749740812; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iSTwOQJo+rNIwjFmGEioXb92s17SqiTX4BzSmlEzzXg=; b=jFR3lScAAkOoHG4aZz46Lp5dm8Vh8blj/S6NY0zWcO0ATwZvj0yHKKdL Qq7OBg1JzFtywqLWrW/5fw4bR1m2daxk2W+Urenqbxrw7UoOAjsDeoOWR rtu6L+g/CqigmVNwlYHdp1n49qQyZuUE9OaUrPDx8abTf/wUFY5Ly539b 25eXaZad4UeRQJT2OZpkhmkgkEeWJVz7xoi646+l62+pcKKGjgWXRC8fP k+weTeOWOIL3upvhusc1T3qPuNt/5Vj0g/V7nRLisolXr7WcIY5MuR+7i HYPJkl1grkXMymX07diXdIMqbW+PQytOoKIWd/Awpu8onvzvyw70ZWjtQ w==; X-CSE-ConnectionGUID: 3RqeY8piQr6DOaQP9e2/8g== X-CSE-MsgGUID: /BeoihhuTbad1BdKwAVsZQ== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32460087" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32460087" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:06:51 -0700 X-CSE-ConnectionGUID: URsk599ORtO1Szhz1hYBMw== X-CSE-MsgGUID: h1EYnMA+Sk6r/313MRZtYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925964" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:06:50 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v2 127/148] net/ice/base: make some switch-related functions static Date: Wed, 12 Jun 2024 16:02:01 +0100 Message-ID: <1f7944d01b8e6150230a2df5675126f67d12c346.1718204529.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> 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 db0622e0fb..bca9e75744 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) { @@ -5093,8 +5093,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; @@ -5501,7 +5501,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) { @@ -5550,7 +5550,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; @@ -5696,8 +5696,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