get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66328,
    "url": "http://patches.dpdk.org/api/patches/66328/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200306095742.18080-10-hemant.agrawal@nxp.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200306095742.18080-10-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200306095742.18080-10-hemant.agrawal@nxp.com",
    "date": "2020-03-06T09:57:35",
    "name": "[v2,09/16] bus/fslmc: rename the cinh read functions used for ls1088",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "5a65dccdb1a7d5b254755d925f93c980789b9e6f",
    "submitter": {
        "id": 477,
        "url": "http://patches.dpdk.org/api/people/477/?format=api",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200306095742.18080-10-hemant.agrawal@nxp.com/mbox/",
    "series": [
        {
            "id": 8810,
            "url": "http://patches.dpdk.org/api/series/8810/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8810",
            "date": "2020-03-06T09:57:26",
            "name": "NXP DPAAx fixes and enhancements",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/8810/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/66328/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/66328/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E5163A056A;\n\tFri,  6 Mar 2020 11:01:16 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 19D401C07E;\n\tFri,  6 Mar 2020 11:00:00 +0100 (CET)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by dpdk.org (Postfix) with ESMTP id 1C1D11C01F\n for <dev@dpdk.org>; Fri,  6 Mar 2020 10:59:52 +0100 (CET)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id F226A1A0AA4;\n Fri,  6 Mar 2020 10:59:51 +0100 (CET)",
            "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 6333B1A0AAB;\n Fri,  6 Mar 2020 10:59:49 +0100 (CET)",
            "from bf-netperf1.ap.com (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 31896402D5;\n Fri,  6 Mar 2020 17:59:46 +0800 (SGT)"
        ],
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com,\n\tNipun Gupta <nipun.gupta@nxp.com>",
        "Date": "Fri,  6 Mar 2020 15:27:35 +0530",
        "Message-Id": "<20200306095742.18080-10-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200306095742.18080-1-hemant.agrawal@nxp.com>",
        "References": "<20200302145829.27808-1-hemant.agrawal@nxp.com>\n <20200306095742.18080-1-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH v2 09/16] bus/fslmc: rename the cinh read\n\tfunctions used for ls1088",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@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 747ccfbac..207faada3 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",
        "09/16"
    ]
}