Lines Matching +full:icid +full:- +full:base

1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
3 * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
4 * Copyright 2016-2019 NXP
10 #include <soc/fsl/dpaa2-fd.h>
24 void *cena_bar; /* Cache-enabled portal base address */
25 void __iomem *cinh_bar; /* Cache-inhibited portal base address */
51 /* dequeue with priority precedence, respect intra-class scheduling */
248 * qbman_swp_enqueue() - Issue an enqueue command
253 * Return 0 for successful enqueue, -EBUSY if the EQCR is not ready.
263 * qbman_swp_enqueue_multiple() - Issue a multi enqueue command
284 * qbman_swp_enqueue_multiple_desc() - Issue a multi enqueue command
303 * qbman_result_is_DQ() - check if the dequeue result is a dequeue response
306 * DQRR entries may contain non-dequeue results, ie. notifications
310 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_DQ); in qbman_result_is_DQ()
314 * qbman_result_is_SCN() - Check the dequeue result is notification or not
326 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_FQDAN); in qbman_result_is_FQDAN()
332 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_CDAN); in qbman_result_is_CDAN()
338 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_CSCN_WQ); in qbman_result_is_CSCN()
344 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_BPSCN); in qbman_result_is_BPSCN()
350 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_CGCU); in qbman_result_is_CGCU()
356 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_FQRN); in qbman_result_is_FQRN()
362 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_FQRNI); in qbman_result_is_FQRNI()
368 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_FQPN); in qbman_result_is_FQPN()
372 * qbman_result_SCN_state() - Get the state field in State-change notification
376 return scn->scn.state; in qbman_result_SCN_state()
382 * qbman_result_SCN_rid() - Get the resource id in State-change notification
386 return le32_to_cpu(scn->scn.rid_tok) & SCN_RID_MASK; in qbman_result_SCN_rid()
390 * qbman_result_SCN_ctx() - Get the context data in State-change notification
394 return le64_to_cpu(scn->scn.ctx); in qbman_result_SCN_ctx()
398 * qbman_swp_fq_schedule() - Move the fq to the scheduled state
413 * qbman_swp_fq_force() - Force the FQ to fully scheduled state
417 * Force eligible will force a tentatively-scheduled FQ to be fully-scheduled
418 * and thus be available for selection by any channel-dequeuing behaviour (push
431 * qbman_swp_fq_xon() - sets FQ flow-control to XON
445 * qbman_swp_fq_xoff() - sets FQ flow-control to XOFF
450 * XOFF FQs will remain in the tenatively-scheduled state, even when
451 * non-empty, meaning they won't be selected for scheduled dequeuing.
452 * If a FQ is changed to XOFF after it had already become truly-scheduled
468 * CDAN-enabled channels only generate a single CDAN notification, after which
478 * qbman_swp_CDAN_set_context() - Set CDAN context
494 * qbman_swp_CDAN_enable() - Enable CDAN for the channel
508 * qbman_swp_CDAN_disable() - disable CDAN for the channel
522 * qbman_swp_CDAN_set_context_enable() - Set CDAN contest and enable CDAN
538 /* Wraps up submit + poll-for-result */
548 } while (!cmd && loopvar--); in qbman_swp_mc_complete()
596 __le16 icid; member
614 * qbman_swp_release() - Issue a buffer release command
620 * Return 0 for success, -EBUSY if the release command ring is not ready.
631 * qbman_swp_pull() - Issue the pull dequeue command
636 * Return 0 for success, and -EBUSY if the software portal is not ready
646 * qbman_swp_dqrr_next() - Get an valid DQRR entry