Show a patch.

GET /api/patches/73388/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 73388,
    "url": "https://patches.dpdk.org/api/patches/73388/",
    "web_url": "https://patches.dpdk.org/patch/73388/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<20200707092244.12791-9-hemant.agrawal@nxp.com>",
    "date": "2020-07-07T09:22:23",
    "name": "[v2,08/29] bus/fslmc: rename the cinh read functions used for ls1088",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5a65dccdb1a7d5b254755d925f93c980789b9e6f",
    "submitter": {
        "id": 477,
        "url": "https://patches.dpdk.org/api/people/477/",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73388/mbox/",
    "series": [
        {
            "id": 10842,
            "url": "https://patches.dpdk.org/api/series/10842/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10842",
            "date": "2020-07-07T09:22:15",
            "name": "NXP DPAAx enhancements",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/10842/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73388/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73388/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "References": "<20200527132326.1382-1-hemant.agrawal@nxp.com>\n <20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "X-Mailman-Version": "2.1.15",
        "Date": "Tue,  7 Jul 2020 14:52:23 +0530",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<20200707092244.12791-9-hemant.agrawal@nxp.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A0B07A00BE;\n\tTue,  7 Jul 2020 11:28:26 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CF79D1DD31;\n\tTue,  7 Jul 2020 11:27:11 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by dpdk.org (Postfix) with ESMTP id BECE21DC3E\n for <dev@dpdk.org>; Tue,  7 Jul 2020 11:27:03 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9E1091A0A4F;\n Tue,  7 Jul 2020 11:27:03 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8A5C41A0A46;\n Tue,  7 Jul 2020 11:27:01 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1681E402F0;\n Tue,  7 Jul 2020 17:26:58 +0800 (SGT)"
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH v2 08/29] bus/fslmc: rename the cinh read\n\tfunctions used for ls1088",
        "Precedence": "list",
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "ferruh.yigit@intel.com,\n\tNipun Gupta <nipun.gupta@nxp.com>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "In-Reply-To": "<20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "To": "dev@dpdk.org"
    },
    "content": "From: Nipun Gupta <nipun.gupta@nxp.com>\n\nThis patch changes the qbman I/O function names as they are\nonly reading from cinh register, but writing to cena registers.\n\nThis gives way to add functions which purely work in cinh mode\n\nSigned-off-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n drivers/bus/fslmc/qbman/qbman_portal.c | 250 +++++++++++++++++++++++--\n 1 file changed, 233 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c\nindex 57f50b0d8..0a2af7be4 100644\n--- a/drivers/bus/fslmc/qbman/qbman_portal.c\n+++ b/drivers/bus/fslmc/qbman/qbman_portal.c\n@@ -78,7 +78,7 @@ qbman_swp_enqueue_ring_mode_direct(struct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tconst struct qbman_fd *fd);\n static int\n-qbman_swp_enqueue_ring_mode_cinh_direct(struct qbman_swp *s,\n+qbman_swp_enqueue_ring_mode_cinh_read_direct(struct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tconst struct qbman_fd *fd);\n static int\n@@ -97,7 +97,7 @@ qbman_swp_enqueue_multiple_direct(struct qbman_swp *s,\n \t\tuint32_t *flags,\n \t\tint num_frames);\n static int\n-qbman_swp_enqueue_multiple_cinh_direct(struct qbman_swp *s,\n+qbman_swp_enqueue_multiple_cinh_read_direct(struct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tconst struct qbman_fd *fd,\n \t\tuint32_t *flags,\n@@ -122,7 +122,7 @@ qbman_swp_enqueue_multiple_fd_direct(struct qbman_swp *s,\n \t\tuint32_t *flags,\n \t\tint num_frames);\n static int\n-qbman_swp_enqueue_multiple_fd_cinh_direct(struct qbman_swp *s,\n+qbman_swp_enqueue_multiple_fd_cinh_read_direct(struct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tstruct qbman_fd **fd,\n \t\tuint32_t *flags,\n@@ -146,7 +146,7 @@ qbman_swp_enqueue_multiple_desc_direct(struct qbman_swp *s,\n \t\tconst struct qbman_fd *fd,\n \t\tint num_frames);\n static int\n-qbman_swp_enqueue_multiple_desc_cinh_direct(struct qbman_swp *s,\n+qbman_swp_enqueue_multiple_desc_cinh_read_direct(struct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tconst struct qbman_fd *fd,\n \t\tint num_frames);\n@@ -309,15 +309,15 @@ struct qbman_swp *qbman_swp_init(const struct qbman_swp_desc *d)\n \t\t\t&& (d->cena_access_mode == qman_cena_fastest_access)) {\n \t\tp->eqcr.pi_ring_size = 32;\n \t\tqbman_swp_enqueue_array_mode_ptr =\n-\t\t\t\tqbman_swp_enqueue_array_mode_mem_back;\n+\t\t\tqbman_swp_enqueue_array_mode_mem_back;\n \t\tqbman_swp_enqueue_ring_mode_ptr =\n-\t\t\t\tqbman_swp_enqueue_ring_mode_mem_back;\n+\t\t\tqbman_swp_enqueue_ring_mode_mem_back;\n \t\tqbman_swp_enqueue_multiple_ptr =\n-\t\t\t\tqbman_swp_enqueue_multiple_mem_back;\n+\t\t\tqbman_swp_enqueue_multiple_mem_back;\n \t\tqbman_swp_enqueue_multiple_fd_ptr =\n-\t\t\t\tqbman_swp_enqueue_multiple_fd_mem_back;\n+\t\t\tqbman_swp_enqueue_multiple_fd_mem_back;\n \t\tqbman_swp_enqueue_multiple_desc_ptr =\n-\t\t\t\tqbman_swp_enqueue_multiple_desc_mem_back;\n+\t\t\tqbman_swp_enqueue_multiple_desc_mem_back;\n \t\tqbman_swp_pull_ptr = qbman_swp_pull_mem_back;\n \t\tqbman_swp_dqrr_next_ptr = qbman_swp_dqrr_next_mem_back;\n \t\tqbman_swp_release_ptr = qbman_swp_release_mem_back;\n@@ -325,13 +325,13 @@ struct qbman_swp *qbman_swp_init(const struct qbman_swp_desc *d)\n \n \tif (dpaa2_svr_family == SVR_LS1080A) {\n \t\tqbman_swp_enqueue_ring_mode_ptr =\n-\t\t\t\tqbman_swp_enqueue_ring_mode_cinh_direct;\n+\t\t\tqbman_swp_enqueue_ring_mode_cinh_read_direct;\n \t\tqbman_swp_enqueue_multiple_ptr =\n-\t\t\t\tqbman_swp_enqueue_multiple_cinh_direct;\n+\t\t\tqbman_swp_enqueue_multiple_cinh_read_direct;\n \t\tqbman_swp_enqueue_multiple_fd_ptr =\n-\t\t\t\tqbman_swp_enqueue_multiple_fd_cinh_direct;\n+\t\t\tqbman_swp_enqueue_multiple_fd_cinh_read_direct;\n \t\tqbman_swp_enqueue_multiple_desc_ptr =\n-\t\t\t\tqbman_swp_enqueue_multiple_desc_cinh_direct;\n+\t\t\tqbman_swp_enqueue_multiple_desc_cinh_read_direct;\n \t}\n \n \tfor (mask_size = p->eqcr.pi_ring_size; mask_size > 0; mask_size >>= 1)\n@@ -835,7 +835,7 @@ static int qbman_swp_enqueue_ring_mode_direct(struct qbman_swp *s,\n \treturn 0;\n }\n \n-static int qbman_swp_enqueue_ring_mode_cinh_direct(\n+static int qbman_swp_enqueue_ring_mode_cinh_read_direct(\n \t\tstruct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tconst struct qbman_fd *fd)\n@@ -873,6 +873,44 @@ static int qbman_swp_enqueue_ring_mode_cinh_direct(\n \treturn 0;\n }\n \n+static int qbman_swp_enqueue_ring_mode_cinh_direct(\n+\t\tstruct qbman_swp *s,\n+\t\tconst struct qbman_eq_desc *d,\n+\t\tconst struct qbman_fd *fd)\n+{\n+\tuint32_t *p;\n+\tconst uint32_t *cl = qb_cl(d);\n+\tuint32_t eqcr_ci, full_mask, half_mask;\n+\n+\thalf_mask = (s->eqcr.pi_ci_mask>>1);\n+\tfull_mask = s->eqcr.pi_ci_mask;\n+\tif (!s->eqcr.available) {\n+\t\teqcr_ci = s->eqcr.ci;\n+\t\ts->eqcr.ci = qbman_cinh_read(&s->sys,\n+\t\t\t\tQBMAN_CINH_SWP_EQCR_CI) & full_mask;\n+\t\ts->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size,\n+\t\t\t\teqcr_ci, s->eqcr.ci);\n+\t\tif (!s->eqcr.available)\n+\t\t\treturn -EBUSY;\n+\t}\n+\n+\tp = qbman_cinh_write_start_wo_shadow(&s->sys,\n+\t\t\tQBMAN_CENA_SWP_EQCR(s->eqcr.pi & half_mask));\n+\tmemcpy_byte_by_byte(&p[1], &cl[1], 28);\n+\tmemcpy_byte_by_byte(&p[8], fd, sizeof(*fd));\n+\tlwsync();\n+\n+\t/* Set the verb byte, have to substitute in the valid-bit */\n+\tp[0] = cl[0] | s->eqcr.pi_vb;\n+\ts->eqcr.pi++;\n+\ts->eqcr.pi &= full_mask;\n+\ts->eqcr.available--;\n+\tif (!(s->eqcr.pi & half_mask))\n+\t\ts->eqcr.pi_vb ^= QB_VALID_BIT;\n+\n+\treturn 0;\n+}\n+\n static int qbman_swp_enqueue_ring_mode_mem_back(struct qbman_swp *s,\n \t\t\t\t\t\tconst struct qbman_eq_desc *d,\n \t\t\t\t\t\tconst struct qbman_fd *fd)\n@@ -999,7 +1037,7 @@ static int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s,\n \treturn num_enqueued;\n }\n \n-static int qbman_swp_enqueue_multiple_cinh_direct(\n+static int qbman_swp_enqueue_multiple_cinh_read_direct(\n \t\tstruct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tconst struct qbman_fd *fd,\n@@ -1069,6 +1107,67 @@ static int qbman_swp_enqueue_multiple_cinh_direct(\n \treturn num_enqueued;\n }\n \n+static int qbman_swp_enqueue_multiple_cinh_direct(\n+\t\tstruct qbman_swp *s,\n+\t\tconst struct qbman_eq_desc *d,\n+\t\tconst struct qbman_fd *fd,\n+\t\tuint32_t *flags,\n+\t\tint num_frames)\n+{\n+\tuint32_t *p = NULL;\n+\tconst uint32_t *cl = qb_cl(d);\n+\tuint32_t eqcr_ci, eqcr_pi, half_mask, full_mask;\n+\tint i, num_enqueued = 0;\n+\n+\thalf_mask = (s->eqcr.pi_ci_mask>>1);\n+\tfull_mask = s->eqcr.pi_ci_mask;\n+\tif (!s->eqcr.available) {\n+\t\teqcr_ci = s->eqcr.ci;\n+\t\ts->eqcr.ci = qbman_cinh_read(&s->sys,\n+\t\t\t\tQBMAN_CINH_SWP_EQCR_CI) & full_mask;\n+\t\ts->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size,\n+\t\t\t\teqcr_ci, s->eqcr.ci);\n+\t\tif (!s->eqcr.available)\n+\t\t\treturn 0;\n+\t}\n+\n+\teqcr_pi = s->eqcr.pi;\n+\tnum_enqueued = (s->eqcr.available < num_frames) ?\n+\t\t\ts->eqcr.available : num_frames;\n+\ts->eqcr.available -= num_enqueued;\n+\t/* Fill in the EQCR ring */\n+\tfor (i = 0; i < num_enqueued; i++) {\n+\t\tp = qbman_cinh_write_start_wo_shadow(&s->sys,\n+\t\t\t\tQBMAN_CENA_SWP_EQCR(eqcr_pi & half_mask));\n+\t\tmemcpy_byte_by_byte(&p[1], &cl[1], 28);\n+\t\tmemcpy_byte_by_byte(&p[8], &fd[i], sizeof(*fd));\n+\t\teqcr_pi++;\n+\t}\n+\n+\tlwsync();\n+\n+\t/* Set the verb byte, have to substitute in the valid-bit */\n+\teqcr_pi = s->eqcr.pi;\n+\tfor (i = 0; i < num_enqueued; i++) {\n+\t\tp = qbman_cinh_write_start_wo_shadow(&s->sys,\n+\t\t\t\tQBMAN_CENA_SWP_EQCR(eqcr_pi & half_mask));\n+\t\tp[0] = cl[0] | s->eqcr.pi_vb;\n+\t\tif (flags && (flags[i] & QBMAN_ENQUEUE_FLAG_DCA)) {\n+\t\t\tstruct qbman_eq_desc *d = (struct qbman_eq_desc *)p;\n+\n+\t\t\td->eq.dca = (1 << QB_ENQUEUE_CMD_DCA_EN_SHIFT) |\n+\t\t\t\t((flags[i]) & QBMAN_EQCR_DCA_IDXMASK);\n+\t\t}\n+\t\teqcr_pi++;\n+\t\tif (!(eqcr_pi & half_mask))\n+\t\t\ts->eqcr.pi_vb ^= QB_VALID_BIT;\n+\t}\n+\n+\ts->eqcr.pi = eqcr_pi & full_mask;\n+\n+\treturn num_enqueued;\n+}\n+\n static int qbman_swp_enqueue_multiple_mem_back(struct qbman_swp *s,\n \t\t\t\t\t       const struct qbman_eq_desc *d,\n \t\t\t\t\t       const struct qbman_fd *fd,\n@@ -1205,7 +1304,7 @@ static int qbman_swp_enqueue_multiple_fd_direct(struct qbman_swp *s,\n \treturn num_enqueued;\n }\n \n-static int qbman_swp_enqueue_multiple_fd_cinh_direct(\n+static int qbman_swp_enqueue_multiple_fd_cinh_read_direct(\n \t\tstruct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tstruct qbman_fd **fd,\n@@ -1275,6 +1374,67 @@ static int qbman_swp_enqueue_multiple_fd_cinh_direct(\n \treturn num_enqueued;\n }\n \n+static int qbman_swp_enqueue_multiple_fd_cinh_direct(\n+\t\tstruct qbman_swp *s,\n+\t\tconst struct qbman_eq_desc *d,\n+\t\tstruct qbman_fd **fd,\n+\t\tuint32_t *flags,\n+\t\tint num_frames)\n+{\n+\tuint32_t *p = NULL;\n+\tconst uint32_t *cl = qb_cl(d);\n+\tuint32_t eqcr_ci, eqcr_pi, half_mask, full_mask;\n+\tint i, num_enqueued = 0;\n+\n+\thalf_mask = (s->eqcr.pi_ci_mask>>1);\n+\tfull_mask = s->eqcr.pi_ci_mask;\n+\tif (!s->eqcr.available) {\n+\t\teqcr_ci = s->eqcr.ci;\n+\t\ts->eqcr.ci = qbman_cinh_read(&s->sys,\n+\t\t\t\tQBMAN_CINH_SWP_EQCR_CI) & full_mask;\n+\t\ts->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size,\n+\t\t\t\teqcr_ci, s->eqcr.ci);\n+\t\tif (!s->eqcr.available)\n+\t\t\treturn 0;\n+\t}\n+\n+\teqcr_pi = s->eqcr.pi;\n+\tnum_enqueued = (s->eqcr.available < num_frames) ?\n+\t\t\ts->eqcr.available : num_frames;\n+\ts->eqcr.available -= num_enqueued;\n+\t/* Fill in the EQCR ring */\n+\tfor (i = 0; i < num_enqueued; i++) {\n+\t\tp = qbman_cinh_write_start_wo_shadow(&s->sys,\n+\t\t\t\tQBMAN_CENA_SWP_EQCR(eqcr_pi & half_mask));\n+\t\tmemcpy_byte_by_byte(&p[1], &cl[1], 28);\n+\t\tmemcpy_byte_by_byte(&p[8], fd[i], sizeof(struct qbman_fd));\n+\t\teqcr_pi++;\n+\t}\n+\n+\tlwsync();\n+\n+\t/* Set the verb byte, have to substitute in the valid-bit */\n+\teqcr_pi = s->eqcr.pi;\n+\tfor (i = 0; i < num_enqueued; i++) {\n+\t\tp = qbman_cinh_write_start_wo_shadow(&s->sys,\n+\t\t\t\tQBMAN_CENA_SWP_EQCR(eqcr_pi & half_mask));\n+\t\tp[0] = cl[0] | s->eqcr.pi_vb;\n+\t\tif (flags && (flags[i] & QBMAN_ENQUEUE_FLAG_DCA)) {\n+\t\t\tstruct qbman_eq_desc *d = (struct qbman_eq_desc *)p;\n+\n+\t\t\td->eq.dca = (1 << QB_ENQUEUE_CMD_DCA_EN_SHIFT) |\n+\t\t\t\t((flags[i]) & QBMAN_EQCR_DCA_IDXMASK);\n+\t\t}\n+\t\teqcr_pi++;\n+\t\tif (!(eqcr_pi & half_mask))\n+\t\t\ts->eqcr.pi_vb ^= QB_VALID_BIT;\n+\t}\n+\n+\ts->eqcr.pi = eqcr_pi & full_mask;\n+\n+\treturn num_enqueued;\n+}\n+\n static int qbman_swp_enqueue_multiple_fd_mem_back(struct qbman_swp *s,\n \t\t\t\t\t\t  const struct qbman_eq_desc *d,\n \t\t\t\t\t\t  struct qbman_fd **fd,\n@@ -1413,7 +1573,7 @@ static int qbman_swp_enqueue_multiple_desc_direct(struct qbman_swp *s,\n \treturn num_enqueued;\n }\n \n-static int qbman_swp_enqueue_multiple_desc_cinh_direct(\n+static int qbman_swp_enqueue_multiple_desc_cinh_read_direct(\n \t\tstruct qbman_swp *s,\n \t\tconst struct qbman_eq_desc *d,\n \t\tconst struct qbman_fd *fd,\n@@ -1478,6 +1638,62 @@ static int qbman_swp_enqueue_multiple_desc_cinh_direct(\n \treturn num_enqueued;\n }\n \n+static int qbman_swp_enqueue_multiple_desc_cinh_direct(\n+\t\tstruct qbman_swp *s,\n+\t\tconst struct qbman_eq_desc *d,\n+\t\tconst struct qbman_fd *fd,\n+\t\tint num_frames)\n+{\n+\tuint32_t *p;\n+\tconst uint32_t *cl;\n+\tuint32_t eqcr_ci, eqcr_pi, half_mask, full_mask;\n+\tint i, num_enqueued = 0;\n+\n+\thalf_mask = (s->eqcr.pi_ci_mask>>1);\n+\tfull_mask = s->eqcr.pi_ci_mask;\n+\tif (!s->eqcr.available) {\n+\t\teqcr_ci = s->eqcr.ci;\n+\t\ts->eqcr.ci = qbman_cinh_read(&s->sys,\n+\t\t\t\tQBMAN_CINH_SWP_EQCR_CI) & full_mask;\n+\t\ts->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size,\n+\t\t\t\t\teqcr_ci, s->eqcr.ci);\n+\t\tif (!s->eqcr.available)\n+\t\t\treturn 0;\n+\t}\n+\n+\teqcr_pi = s->eqcr.pi;\n+\tnum_enqueued = (s->eqcr.available < num_frames) ?\n+\t\t\ts->eqcr.available : num_frames;\n+\ts->eqcr.available -= num_enqueued;\n+\t/* Fill in the EQCR ring */\n+\tfor (i = 0; i < num_enqueued; i++) {\n+\t\tp = qbman_cinh_write_start_wo_shadow(&s->sys,\n+\t\t\t\tQBMAN_CENA_SWP_EQCR(eqcr_pi & half_mask));\n+\t\tcl = qb_cl(&d[i]);\n+\t\tmemcpy_byte_by_byte(&p[1], &cl[1], 28);\n+\t\tmemcpy_byte_by_byte(&p[8], &fd[i], sizeof(*fd));\n+\t\teqcr_pi++;\n+\t}\n+\n+\tlwsync();\n+\n+\t/* Set the verb byte, have to substitute in the valid-bit */\n+\teqcr_pi = s->eqcr.pi;\n+\tfor (i = 0; i < num_enqueued; i++) {\n+\t\tp = qbman_cinh_write_start_wo_shadow(&s->sys,\n+\t\t\t\tQBMAN_CENA_SWP_EQCR(eqcr_pi & half_mask));\n+\t\tcl = qb_cl(&d[i]);\n+\t\tp[0] = cl[0] | s->eqcr.pi_vb;\n+\t\teqcr_pi++;\n+\t\tif (!(eqcr_pi & half_mask))\n+\t\t\ts->eqcr.pi_vb ^= QB_VALID_BIT;\n+\t}\n+\n+\ts->eqcr.pi = eqcr_pi & full_mask;\n+\n+\treturn num_enqueued;\n+}\n+\n static int qbman_swp_enqueue_multiple_desc_mem_back(struct qbman_swp *s,\n \t\t\t\t\tconst struct qbman_eq_desc *d,\n \t\t\t\t\tconst struct qbman_fd *fd,\n",
    "prefixes": [
        "v2",
        "08/29"
    ]
}