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 <[email protected]>
---
 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

Reply via email to