From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B676A606A31C for ; Sun, 29 Nov 2026 20:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=pwTyacip Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 97D5140E8A; Sun, 29 Nov 2026 21:51:07 +0100 (CET) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTPS id F1B7540ED9 for ; Sun, 29 Nov 2026 21:51:04 +0100 (CET) Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-cdece95eca4so932698a12.1 for ; Sun, 29 Nov 2026 12:51:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1795985463; x=1796590263; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=y2ZwyM9dREZVRIlMZ1PvLhcaSy5dP7OD0K9rXt+Qd74=; b=pwTyacipCJE6oZ5a0GmuChCacXjzgRn+t/nj8MxYqAcWTXSYVHR4//F3qVt/MyVCTD 0gnif9IGdOYhzGLDIZ9/6LNqB5ozRtv2BwrbwGMqmTWKCLnbeF/Q/OcpdOSBibR1RDRI s/UoTHg9fHAukC1bQDVt6qJj15Px1YSWhqC14vkiLT4L2FEd2DTwrE9RRogRuAKKOCIb 4ju8lmixKyyrAH/7Q5lVThTCTd/CX95QaIVSlQMRJxVFY7ZCFlGkNmTUr/i4IcwUwUuL P1Ej+XDDN6sEBGJmPZNe5aPmuQeVsKfHaV2x8HG+5IfrR7OPgZhyb1Va1j4L2NQ6+YKG LtBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795985463; x=1796590263; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=y2ZwyM9dREZVRIlMZ1PvLhcaSy5dP7OD0K9rXt+Qd74=; b=Clxgc0EB8VnijEcTpLpk5DC71/JOYtSOw60YCIWvLyovcTdeDOM4lTE1oR0drdT9ZQ bEVnNnX3GSX+V7Nk0Ukp8zz0iQ05ZNrAy3oUURkZYGYXPpwIkL+ln5hErof0I2yhrbKX 2NceQzo16tON4Omc4NwVaw2h6CmuFK+Zh+CuzFuEVwyqNvsrvX46to+sjPB+KUFA1vmq LYi5JhJouu4x5rlR7l4nFz05WI6yn3rtWWh/V1ANRiDj78zwhNP/8ZjnK+iBoBvv3dei UrBsQcEFhXbCg4jeVIJTq8zcIcT261A6b7taSQ3vV1YkJzvFSj8EL+y3CbFnLhz7RdxQ RQNQ== X-Gm-Message-State: APuU4Z+Kfa2+CveppC7ufU9//7EN1j6S7pQIBVlftpEqwvEfY01huuWL TL3xzGt3gDKx+LOnXTdWkF6E4jshjyBrQgvhPIxp/a7jLujKRZJVQPYBmCuM3y7w9QPYA/yPVfy 9Cwy5 X-Gm-Gg: AZFdTZfWIcal1iXe4+r333xae5Ol3zk6XvR9GaTPUkUgz9la3KXDFgdv6ZkgUaG5J8z 6H0lKZyJRBu+dBookySB+2n5duGc7PqOWO4dxBge+7Ucm/BoVgwt+qmwtvgebJOlrJykcrMXEYC sh48zpS6aINS5S8U3sPmMmJ3+FBULH/9xQ/NK23sNdoRpgIM0EvVMTrtSaSqPDrkGQ2mO3Ex1IX Duxct1JQTl07OSFG9lXKOXm6PNmWXPUphBfzj0BBq+jzFfK5a7qnmIN4dUHj2M0vGsRBUiwiRyz Iuf0o0dY83YRDpq2LCtju+bOkxGkqRUxe/4nGhY9HXcEuwBnFfWA26PuIrU1+o+FfXY0Q2fGw2z +ZOQVfquwSEzG4gHxBwmEaASuf106gW/U3ySl4TxlFgc0Zihv+gquFczeQxW18ruMfhmljY7+AN LEOvgCxBiJDWlNpXiFU8IeXIM07h6F7rHAJUaPbJOHVfjR8I4BckLX3bU5CbaLTTyHV8vfNLEgJ g2TTjr1RdwCuQl482lsiZ62vAD2kAVGP8eN8CK+iE2FRg5hsz1BQFsiZUtSuu2UUiA6JAj7ANO5 JM8Mgy4+bQMPsJcjimuj1AtkTWTrYKZD9WAUpxTlBKdXJgP0OLaSF11dB7zuhpAC/h9E X-Received: by 2002:a17:90b:5543:b0:3ac:6fcf:81a2 with SMTP id 98e67ed59e1d1-3b41cb33a0dmr28467851a91.57.1795985463298; Sun, 29 Nov 2026 12:51:03 -0800 (PST) Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b50234fb25sm10383968a91.2.2026.11.29.12.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 12:51:02 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 36/45] bus/fslmc: remove unused MC object functions Date: Sun, 29 Nov 2026 12:49:21 -0800 Message-ID: <20261129205006.1440292-37-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261129205006.1440292-1-stephen@networkplumber.org> References: <20261129205006.1440292-1-stephen@networkplumber.org> X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The DPBP notification config, DPCI order restoration config, DPCON disable and reset, and the DPIO stashing destination accessors are MC command wrappers with no caller. The same applies to dpaa2_dpbp_supported() and two QBMan portal helpers. Remove the functions, their declarations and the documentation blocks that described them. Signed-off-by: Stephen Hemminger --- drivers/bus/fslmc/mc/dpbp.c | 74 ---------- drivers/bus/fslmc/mc/dpci.c | 97 ------------- drivers/bus/fslmc/mc/dpcon.c | 45 ------- drivers/bus/fslmc/mc/dpio.c | 127 ------------------ drivers/bus/fslmc/mc/fsl_dpbp.h | 8 -- drivers/bus/fslmc/mc/fsl_dpci.h | 14 -- drivers/bus/fslmc/mc/fsl_dpcon.h | 8 -- drivers/bus/fslmc/mc/fsl_dpio.h | 20 --- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 7 - drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 - .../fslmc/qbman/include/fsl_qbman_portal.h | 20 --- drivers/bus/fslmc/qbman/qbman_portal.c | 17 --- 12 files changed, 439 deletions(-) diff --git a/drivers/bus/fslmc/mc/dpbp.c b/drivers/bus/fslmc/mc/dpbp.c index cb5a288e68..423defb082 100644 --- a/drivers/bus/fslmc/mc/dpbp.c +++ b/drivers/bus/fslmc/mc/dpbp.c @@ -360,77 +360,3 @@ int dpbp_get_num_free_bufs(struct fsl_mc_io *mc_io, return 0; } - -/** - * dpbp_set_notifications() - Set notifications towards software - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @cfg: notifications configuration - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_set_notifications(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpbp_notification_cfg *cfg) -{ - struct dpbp_cmd_set_notifications *cmd_params; - struct mc_command cmd = { 0 }; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_SET_NOTIFICATIONS, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_set_notifications *)cmd.params; - cmd_params->depletion_entry = cpu_to_le32(cfg->depletion_entry); - cmd_params->depletion_exit = cpu_to_le32(cfg->depletion_exit); - cmd_params->surplus_entry = cpu_to_le32(cfg->surplus_entry); - cmd_params->surplus_exit = cpu_to_le32(cfg->surplus_exit); - cmd_params->options = cpu_to_le32(cfg->options); - cmd_params->message_ctx = cpu_to_le64(cfg->message_ctx); - cmd_params->message_iova = cpu_to_le64(cfg->message_iova); - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** - * dpbp_get_notifications() - Get the notifications configuration - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @cfg: notifications configuration - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_get_notifications(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpbp_notification_cfg *cfg) -{ - struct dpbp_rsp_get_notifications *rsp_params; - struct mc_command cmd = { 0 }; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_NOTIFICATIONS, - cmd_flags, - token); - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpbp_rsp_get_notifications *)cmd.params; - cfg->depletion_entry = le32_to_cpu(rsp_params->depletion_entry); - cfg->depletion_exit = le32_to_cpu(rsp_params->depletion_exit); - cfg->surplus_entry = le32_to_cpu(rsp_params->surplus_entry); - cfg->surplus_exit = le32_to_cpu(rsp_params->surplus_exit); - cfg->options = le32_to_cpu(rsp_params->options); - cfg->message_ctx = le64_to_cpu(rsp_params->message_ctx); - cfg->message_iova = le64_to_cpu(rsp_params->message_iova); - - return 0; -} diff --git a/drivers/bus/fslmc/mc/dpci.c b/drivers/bus/fslmc/mc/dpci.c index 3e58c7a218..4b6471a398 100644 --- a/drivers/bus/fslmc/mc/dpci.c +++ b/drivers/bus/fslmc/mc/dpci.c @@ -467,100 +467,3 @@ int dpci_get_api_version(struct fsl_mc_io *mc_io, return 0; } - -/** - * dpci_set_opr() - Set Order Restoration configuration. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCI object - * @index: The queue index - * @options: Configuration mode options - * can be OPR_OPT_CREATE or OPR_OPT_RETIRE - * @cfg: Configuration options for the OPR - * - * Return: '0' on Success; Error code otherwise. - */ -int dpci_set_opr(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t index, - uint8_t options, - struct opr_cfg *cfg) -{ - struct dpci_cmd_set_opr *cmd_params; - struct mc_command cmd = { 0 }; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPCI_CMDID_SET_OPR, - cmd_flags, - token); - cmd_params = (struct dpci_cmd_set_opr *)cmd.params; - cmd_params->index = index; - cmd_params->options = options; - cmd_params->oloe = cfg->oloe; - cmd_params->oeane = cfg->oeane; - cmd_params->olws = cfg->olws; - cmd_params->oa = cfg->oa; - cmd_params->oprrws = cfg->oprrws; - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** - * dpci_get_opr() - Retrieve Order Restoration config and query. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCI object - * @index: The queue index - * @cfg: Returned OPR configuration - * @qry: Returned OPR query - * - * Return: '0' on Success; Error code otherwise. - */ -int dpci_get_opr(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t index, - struct opr_cfg *cfg, - struct opr_qry *qry) -{ - struct dpci_rsp_get_opr *rsp_params; - struct dpci_cmd_get_opr *cmd_params; - struct mc_command cmd = { 0 }; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPCI_CMDID_GET_OPR, - cmd_flags, - token); - cmd_params = (struct dpci_cmd_get_opr *)cmd.params; - cmd_params->index = index; - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpci_rsp_get_opr *)cmd.params; - cfg->oloe = rsp_params->oloe; - cfg->oeane = rsp_params->oeane; - cfg->olws = rsp_params->olws; - cfg->oa = rsp_params->oa; - cfg->oprrws = rsp_params->oprrws; - qry->rip = dpci_get_field(rsp_params->flags, RIP); - qry->enable = dpci_get_field(rsp_params->flags, OPR_ENABLE); - qry->nesn = le16_to_cpu(rsp_params->nesn); - qry->ndsn = le16_to_cpu(rsp_params->ndsn); - qry->ea_tseq = le16_to_cpu(rsp_params->ea_tseq); - qry->tseq_nlis = dpci_get_field(rsp_params->tseq_nlis, TSEQ_NLIS); - qry->ea_hseq = le16_to_cpu(rsp_params->ea_hseq); - qry->hseq_nlis = dpci_get_field(rsp_params->hseq_nlis, HSEQ_NLIS); - qry->ea_hptr = le16_to_cpu(rsp_params->ea_hptr); - qry->ea_tptr = le16_to_cpu(rsp_params->ea_tptr); - qry->opr_vid = le16_to_cpu(rsp_params->opr_vid); - qry->opr_id = le16_to_cpu(rsp_params->opr_id); - - return 0; -} diff --git a/drivers/bus/fslmc/mc/dpcon.c b/drivers/bus/fslmc/mc/dpcon.c index 044ca7bb8b..36715d5a79 100644 --- a/drivers/bus/fslmc/mc/dpcon.c +++ b/drivers/bus/fslmc/mc/dpcon.c @@ -182,29 +182,6 @@ int dpcon_enable(struct fsl_mc_io *mc_io, return mc_send_command(mc_io, &cmd); } -/** - * dpcon_disable() - Disable the DPCON - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCON object - * - * Return: '0' on Success; Error code otherwise - */ -int dpcon_disable(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token) -{ - struct mc_command cmd = { 0 }; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPCON_CMDID_DISABLE, - cmd_flags, - token); - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - /** * dpcon_is_enabled() - Check if the DPCON is enabled. * @mc_io: Pointer to MC portal's I/O object @@ -240,28 +217,6 @@ int dpcon_is_enabled(struct fsl_mc_io *mc_io, return 0; } -/** - * dpcon_reset() - Reset the DPCON, returns the object to initial state. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCON object - * - * Return: '0' on Success; Error code otherwise. - */ -int dpcon_reset(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token) -{ - struct mc_command cmd = { 0 }; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPCON_CMDID_RESET, - cmd_flags, token); - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - /** * dpcon_get_attributes() - Retrieve DPCON attributes. * @mc_io: Pointer to MC portal's I/O object diff --git a/drivers/bus/fslmc/mc/dpio.c b/drivers/bus/fslmc/mc/dpio.c index a23692417c..21c7f93794 100644 --- a/drivers/bus/fslmc/mc/dpio.c +++ b/drivers/bus/fslmc/mc/dpio.c @@ -343,133 +343,6 @@ int dpio_set_stashing_destination(struct fsl_mc_io *mc_io, return mc_send_command(mc_io, &cmd); } -/** - * dpio_get_stashing_destination() - Get the stashing destination.. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPIO object - * @sdest: Returns the stashing destination value - * - * Return: '0' on Success; Error code otherwise. - */ -int dpio_get_stashing_destination(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t *sdest) -{ - struct dpio_stashing_dest *rsp_params; - struct mc_command cmd = { 0 }; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPIO_CMDID_GET_STASHING_DEST, - cmd_flags, - token); - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpio_stashing_dest *)cmd.params; - *sdest = rsp_params->sdest; - - return 0; -} - -/** - * dpio_set_stashing_destination_by_core_id() - Set the stashing destination source - * using the core id. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPIO object - * @core_id: Core id stashing destination - * - * Return: '0' on Success; Error code otherwise. - */ -int dpio_set_stashing_destination_by_core_id(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t core_id) -{ - struct dpio_stashing_dest_by_core_id *cmd_params; - struct mc_command cmd = { 0 }; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPIO_CMDID_SET_STASHING_DEST_BY_CORE_ID, - cmd_flags, - token); - cmd_params = (struct dpio_stashing_dest_by_core_id *)cmd.params; - cmd_params->core_id = core_id; - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** - * dpio_set_stashing_destination_source() - Set the stashing destination source. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPIO object - * @ss: Stashing destination source (0 manual/1 automatic) - * - * Return: '0' on Success; Error code otherwise. - */ -int dpio_set_stashing_destination_source(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t ss) -{ - struct dpio_stashing_dest_source *cmd_params; - struct mc_command cmd = { 0 }; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPIO_CMDID_SET_STASHING_DEST_SOURCE, - cmd_flags, - token); - cmd_params = (struct dpio_stashing_dest_source *)cmd.params; - cmd_params->ss = ss; - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** - * dpio_get_stashing_destination_source() - Get the stashing destination source. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPIO object - * @ss: Returns the stashing destination source (0 manual/1 automatic) - * - * Return: '0' on Success; Error code otherwise. - */ -int dpio_get_stashing_destination_source(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t *ss) -{ - struct dpio_stashing_dest_source *rsp_params; - struct mc_command cmd = { 0 }; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPIO_CMDID_GET_STASHING_DEST_SOURCE, - cmd_flags, - token); - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpio_stashing_dest_source *)cmd.params; - *ss = rsp_params->ss; - - return 0; -} - /** * dpio_add_static_dequeue_channel() - Add a static dequeue channel. * @mc_io: Pointer to MC portal's I/O object diff --git a/drivers/bus/fslmc/mc/fsl_dpbp.h b/drivers/bus/fslmc/mc/fsl_dpbp.h index 894ff86d9c..4e3c51c776 100644 --- a/drivers/bus/fslmc/mc/fsl_dpbp.h +++ b/drivers/bus/fslmc/mc/fsl_dpbp.h @@ -52,14 +52,6 @@ int dpbp_open(struct fsl_mc_io *mc_io, int dpbp_close(struct fsl_mc_io *mc_io, uint32_t cmd_flags, uint16_t token); -int dpbp_set_notifications(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpbp_notification_cfg *cfg); -int dpbp_get_notifications(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpbp_notification_cfg *cfg); #define DPBP_NOTIF_OPT_WRIOP 0x00010000 /** diff --git a/drivers/bus/fslmc/mc/fsl_dpci.h b/drivers/bus/fslmc/mc/fsl_dpci.h index 8d318d12f7..05b17f639b 100644 --- a/drivers/bus/fslmc/mc/fsl_dpci.h +++ b/drivers/bus/fslmc/mc/fsl_dpci.h @@ -231,18 +231,4 @@ int dpci_get_api_version(struct fsl_mc_io *mc_io, uint16_t *major_ver, uint16_t *minor_ver); -int dpci_set_opr(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t index, - uint8_t options, - struct opr_cfg *cfg); - -int dpci_get_opr(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t index, - struct opr_cfg *cfg, - struct opr_qry *qry); - #endif /* __FSL_DPCI_H */ diff --git a/drivers/bus/fslmc/mc/fsl_dpcon.h b/drivers/bus/fslmc/mc/fsl_dpcon.h index d84c5ae3e9..3a9d29cd1b 100644 --- a/drivers/bus/fslmc/mc/fsl_dpcon.h +++ b/drivers/bus/fslmc/mc/fsl_dpcon.h @@ -55,19 +55,11 @@ int dpcon_enable(struct fsl_mc_io *mc_io, uint32_t cmd_flags, uint16_t token); -int dpcon_disable(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token); - int dpcon_is_enabled(struct fsl_mc_io *mc_io, uint32_t cmd_flags, uint16_t token, int *en); -int dpcon_reset(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token); - /** * struct dpcon_attr - Structure representing DPCON attributes * @id: DPCON object ID diff --git a/drivers/bus/fslmc/mc/fsl_dpio.h b/drivers/bus/fslmc/mc/fsl_dpio.h index 9c1513fedd..6a01060db1 100644 --- a/drivers/bus/fslmc/mc/fsl_dpio.h +++ b/drivers/bus/fslmc/mc/fsl_dpio.h @@ -81,26 +81,6 @@ int dpio_set_stashing_destination(struct fsl_mc_io *mc_io, uint16_t token, uint8_t sdest); -int dpio_get_stashing_destination(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t *sdest); - -int dpio_set_stashing_destination_by_core_id(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t core_id); - -int dpio_set_stashing_destination_source(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t ss); - -int dpio_get_stashing_destination_source(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - uint8_t *ss); - __rte_internal int dpio_add_static_dequeue_channel(struct fsl_mc_io *mc_io, uint32_t cmd_flags, diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c index f09c5bb9bf..a4f0337f60 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c @@ -129,13 +129,6 @@ void dpaa2_free_dpbp_dev(struct dpaa2_dpbp_dev *dpbp) } } -int dpaa2_dpbp_supported(void) -{ - if (TAILQ_EMPTY(&dpbp_dev_list)) - return -1; - return 0; -} - static void dpaa2_close_dpbp_device(int object_id) { diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 0643b734f7..a122e599f0 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -565,8 +565,6 @@ struct dpaa2_dpbp_dev *dpaa2_alloc_dpbp_dev(void); __rte_internal void dpaa2_free_dpbp_dev(struct dpaa2_dpbp_dev *dpbp); -int dpaa2_dpbp_supported(void); - __rte_internal struct dpaa2_dpci_dev *rte_dpaa2_alloc_dpci_dev(void); diff --git a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h index f8f056ae1d..46ddb9abb6 100644 --- a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h +++ b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h @@ -473,16 +473,6 @@ void qbman_swp_dqrr_idx_consume(struct qbman_swp *s, uint8_t dqrr_index); __rte_internal uint8_t qbman_get_dqrr_idx(const struct qbman_result *dqrr); -/** - * qbman_get_dqrr_from_idx() - Use index to get the dqrr entry from the - * given portal - * @s: the given portal. - * @idx: the dqrr index. - * - * Return dqrr entry object. - */ -struct qbman_result *qbman_get_dqrr_from_idx(struct qbman_swp *s, uint8_t idx); - /* ------------------------------------------------- */ /* Polling user-provided storage for dequeue results */ /* ------------------------------------------------- */ @@ -982,16 +972,6 @@ void qbman_eq_desc_set_token(struct qbman_eq_desc *d, uint8_t token); __rte_internal void qbman_eq_desc_set_fq(struct qbman_eq_desc *d, uint32_t fqid); -/** - * qbman_eq_desc_set_qd() - Set Queuing Destination for the enqueue command. - * @d: the enqueue descriptor - * @qdid: the id of the queuing destination to be enqueued. - * @qd_bin: the queuing destination bin - * @qd_prio: the queuing destination priority. - */ -void qbman_eq_desc_set_qd(struct qbman_eq_desc *d, uint32_t qdid, - uint16_t qd_bin, uint8_t qd_prio); - /** * qbman_eq_desc_set_eqdi() - enable/disable EQDI interrupt * @d: the enqueue descriptor diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index 71be1a504f..7c2d7161f2 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -688,15 +688,6 @@ void qbman_eq_desc_set_fq(struct qbman_eq_desc *d, uint32_t fqid) d->eq.tgtid = fqid; } -void qbman_eq_desc_set_qd(struct qbman_eq_desc *d, uint32_t qdid, - uint16_t qd_bin, uint8_t qd_prio) -{ - d->eq.verb |= 1 << QB_ENQUEUE_CMD_TARGET_TYPE_SHIFT; - d->eq.tgtid = qdid; - d->eq.qdbin = qd_bin; - d->eq.qpri = qd_prio; -} - void qbman_eq_desc_set_eqdi(struct qbman_eq_desc *d, int enable) { if (enable) @@ -2957,11 +2948,3 @@ uint8_t qbman_get_dqrr_idx(const struct qbman_result *dqrr) { return QBMAN_IDX_FROM_DQRR(dqrr); } - -struct qbman_result *qbman_get_dqrr_from_idx(struct qbman_swp *s, uint8_t idx) -{ - struct qbman_result *dq; - - dq = qbman_cena_read(&s->sys, QBMAN_CENA_SWP_DQRR(idx)); - return dq; -} -- 2.53.0