Lines Matching +full:qman +full:- +full:fqd
1 /* Copyright 2008 - 2016 Freescale Semiconductor, Inc.
33 #include <soc/fsl/qman.h>
34 #include <linux/dma-mapping.h>
44 u16 channel_wq; /* ignores wq (3 lsbits): _res[0-2] */
51 return wq->channel_wq >> 3; in qm_mcr_querywq_get_chan()
74 u8 i_bcnt_hi; /* high 8-bits of 40-bit "Instant" */
75 __be32 i_bcnt_lo; /* low 32-bits of 40-bit */
77 u8 a_bcnt_hi; /* high 8-bits of 40-bit "Average" */
78 __be32 a_bcnt_lo; /* low 32-bits of 40-bit */
84 return ((u64)q->i_bcnt_hi << 32) | be32_to_cpu(q->i_bcnt_lo); in qm_mcr_querycgr_i_get64()
88 return ((u64)q->a_bcnt_hi << 32) | be32_to_cpu(q->a_bcnt_lo); in qm_mcr_querycgr_a_get64()
94 * This wrapper represents a bit-array for the state of the 256 QMan congestion
120 return c->q.state[CGR_WORD(cgr)] & CGR_BIT(cgr); in qman_cgrs_get()
133 u32 *_d = dest->q.state; in qman_cgrs_and()
134 const u32 *_a = a->q.state; in qman_cgrs_and()
135 const u32 *_b = b->q.state; in qman_cgrs_and()
145 u32 *_d = dest->q.state; in qman_cgrs_xor()
146 const u32 *_a = a->q.state; in qman_cgrs_xor()
147 const u32 *_b = b->q.state; in qman_cgrs_xor()
163 /* User-visible portal configuration settings */
191 extern struct gen_pool *qm_qpalloc; /* pool-channel allocator */
212 * qman_query_fq - Queries FQD fields (via h/w query command)
214 * @fqd: storage for the queried FQD fields
216 int qman_query_fq(struct qman_fq *fq, struct qm_fqd *fqd);
220 /* QMan s/w corenet portal, low-level i/face */
224 * dequeue TYPE. Choose TOKEN (8-bit).
230 * Either select the work-queue ID with SPECIFICWQ_WQ(), or select the
232 * work-queue priority (0-7) with SPECIFICWQ_WQ() - either way, you get the