Searched refs:cidx (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-11-stable/sys/net/
H A Dmp_ring.c51 uint16_t cidx; member in struct:ring_state::__anon5387
70 if (s.cidx == s.pidx_head)
72 else if (s.cidx > s.pidx_head)
73 return (s.cidx - s.pidx_head - 1);
75 return (x - s.pidx_head + s.cidx);
92 if (s.cidx == s.pidx_tail)
106 uint16_t cidx = os.cidx; local
110 MPASS(cidx != pidx);
117 while (cidx !
181 uint16_t cidx = os.cidx; local
[all...]
H A Diflib.c422 get_inuse(int size, qidx_t cidx, qidx_t pidx, uint8_t gen) argument
426 if (pidx > cidx)
427 used = pidx - cidx;
428 else if (pidx < cidx)
429 used = size - cidx + pidx;
430 else if (gen == 0 && pidx == cidx)
432 else if (gen == 1 && pidx == cidx)
447 * these are the cq cidx and pidx. Otherwise
727 static int iflib_rxd_avail(if_ctx_t ctx, iflib_rxq_t rxq, qidx_t cidx, qidx_t budget);
1405 int i, cidx; local
2334 calc_next_rxd(iflib_fl_t fl, int cidx) argument
2353 prefetch_pkts(iflib_fl_t fl, int cidx) argument
2378 int flid, cidx; local
3153 calc_next_txd(iflib_txq_t txq, int cidx, uint8_t qid) argument
3225 int err, nsegs, ndesc, max_segs, pidx, cidx, next, ntxd; local
3421 uint32_t qsize, cidx, mask, gen; local
3515 _ring_peek_one(struct ifmp_ring *r, int cidx, int offset, int remaining) argument
3552 iflib_txq_drain(struct ifmp_ring *r, uint32_t cidx, uint32_t pidx) argument
3658 iflib_txq_drain_free(struct ifmp_ring *r, uint32_t cidx, uint32_t pidx) argument
5619 iflib_rxd_avail(if_ctx_t ctx, iflib_rxq_t rxq, qidx_t cidx, qidx_t budget) argument
[all...]
/freebsd-11-stable/sys/dev/cxgbe/
H A Dt4_mp_ring.c50 uint16_t cidx; member in struct:ring_state::__anon6321
69 if (s.cidx == s.pidx_head)
71 else if (s.cidx > s.pidx_head)
72 return (s.cidx - s.pidx_head - 1);
74 return (x - s.pidx_head + s.cidx);
91 if (s.cidx == s.pidx_tail)
108 uint16_t cidx = os.cidx; local
112 MPASS(cidx != pidx);
119 while (cidx !
[all...]
H A Dt4_sge.c1426 struct iq_desc *d = &iq->desc[iq->cidx];
1504 if (__predict_false(++iq->cidx == iq->sidx)) {
1505 iq->cidx = 0;
1559 struct iq_desc *d = &iq->desc[iq->cidx];
1658 if (__predict_false(++iq->cidx == iq->sidx)) {
1659 iq->cidx = 0;
1766 struct fl_sdesc *sd = &fl->sdesc[fl->cidx];
1856 return (m); /* without advancing the cidx */
1859 if (__predict_false(++fl->cidx % 8 == 0)) {
1860 uint16_t cidx local
1893 uint16_t cidx = fl->cidx / 8; local
2556 eth_tx(struct mp_ring *r, u_int cidx, u_int pidx) argument
4887 uint16_t cidx = spg->cidx; /* stable snapshot */ local
[all...]
H A Dt4_netmap.c71 &rx_ndesc, 0, "# of rx descriptors after which the hw cidx is updated.");
272 nm_txq->pidx = nm_txq->cidx = 0;
420 /* ... and then for the cidx. */
421 while (spg->pidx != spg->cidx)
653 if (nm_txq->cidx > nm_txq->pidx)
654 return (nm_txq->cidx - nm_txq->pidx - 1);
655 else if (nm_txq->cidx > 0)
665 uint16_t hw_cidx = spg->cidx; /* snapshot */
671 while (nm_txq->cidx != hw_cidx) {
672 wr = (void *)&nm_txq->desc[nm_txq->cidx];
[all...]
H A Dadapter.h406 uint16_t cidx; /* consumer index */ member in struct:sge_iq
449 uint16_t cidx; /* consumer idx (desc idx) */ member in struct:sge_eq
508 (IDXDIFF(fl->dbidx * 8, fl->cidx, fl->sidx * 8) <= fl->lowat)
510 (IDXDIFF(fl->dbidx * 8, fl->cidx, fl->sidx * 8) >= 2 * fl->lowat)
527 uint32_t cidx; /* consumer index */ member in struct:sge_fl
710 uint16_t cidx; member in struct:sge_nm_txq
/freebsd-11-stable/contrib/ofed/libcxgb4/
H A Dcq.c105 wq->sq.flush_cidx = wq->sq.cidx;
129 unsigned short cidx; local
132 wq->sq.flush_cidx = wq->sq.cidx;
133 cidx = wq->sq.flush_cidx;
134 BUG_ON(cidx >= wq->sq.size);
136 while (cidx != wq->sq.pidx) {
137 swsqe = &wq->sq.sw_sq[cidx];
139 if (++cidx == wq->sq.size)
140 cidx = 0;
149 __func__, cidx, c
[all...]
H A Ddev.c249 "CQ: %p id %u queue %p cidx 0x%08x sw_queue %p sw_cidx %d sw_pidx %d sw_in_use %d depth %u error %u gen %d "
251 chp->cq.cqid, chp->cq.queue, chp->cq.cidx,
260 if (i == chp->cq.cidx)
261 fprintf(stderr, " <-- cidx\n");
280 u16 cidx, pidx; local
285 " SQ: id %u queue %p sw_queue %p cidx %u pidx %u in_use %u wq_pidx %u depth %u flags 0x%x flush_cidx %d\n"
286 " RQ: id %u queue %p sw_queue %p cidx %u pidx %u in_use %u depth %u\n",
295 qhp->wq.sq.cidx,
305 qhp->wq.rq.cidx,
309 cidx
[all...]
H A Dt4.h98 __be16 cidx; member in struct:t4_status_page
208 u16 cidx; member in struct:t4_cqe::__anon3687::__anon3689
267 #define CQE_WRID_SQ_IDX(x) (x)->u.scqe.cidx
323 u16 cidx; member in struct:t4_sq
347 u16 cidx; member in struct:t4_rq
399 if (++wq->rq.cidx == wq->rq.size)
400 wq->rq.cidx = 0;
401 assert((wq->rq.cidx != wq->rq.pidx) || wq->rq.in_use == 0);
403 wq->rq.queue[wq->rq.size].status.host_cidx = wq->rq.cidx;
444 if (wq->sq.cidx
585 u16 cidx; member in struct:t4_cq
[all...]
H A Dverbs.c570 qhp->wq.sq.cidx = 0;
572 qhp->wq.rq.cidx = qhp->wq.rq.pidx = qhp->wq.rq.in_use = 0;
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/
H A Dcq.c265 wq->sq.flush_cidx = wq->sq.cidx;
290 int cidx; local
293 wq->sq.flush_cidx = wq->sq.cidx;
294 cidx = wq->sq.flush_cidx;
295 BUG_ON(cidx > wq->sq.size);
297 while (cidx != wq->sq.pidx) {
298 swsqe = &wq->sq.sw_sq[cidx];
300 if (++cidx == wq->sq.size)
301 cidx = 0;
311 __func__, cidx, c
[all...]
H A Dt4.h75 __be16 cidx; member in struct:t4_status_page
200 u16 cidx; member in struct:t4_cqe::__anon4468::__anon4470
260 #define CQE_WRID_SQ_IDX(x) ((x)->u.scqe.cidx)
329 u16 cidx; member in struct:t4_sq
357 u16 cidx; member in struct:t4_rq
404 if (++wq->rq.cidx == wq->rq.size)
405 wq->rq.cidx = 0;
451 if (wq->sq.cidx == wq->sq.flush_cidx)
454 if (++wq->sq.cidx == wq->sq.size)
455 wq->sq.cidx
562 u16 cidx; member in struct:t4_cq
[all...]
/freebsd-11-stable/sys/dev/cxgb/
H A Dcxgb_sge.c789 u_int cidx = q->cidx; local
792 struct rx_sw_desc *d = &q->sdesc[cidx];
809 if (++cidx == q->size)
810 cidx = 0;
1140 if (((txqs->pidx > txq->cidx) &&
1142 (txq->pidx >= txq->cidx)) ||
1143 ((txqs->pidx < txq->cidx) &&
1144 (txq->pidx >= txq-> cidx)) ||
1145 ((txqs->pidx < txq->cidx)
2124 unsigned int cidx, mask; local
2687 int mask, cidx = fl->cidx; local
[all...]
H A Dcxgb_adapter.h175 uint32_t cidx; member in struct:sge_rspq
208 uint32_t cidx; member in struct:sge_fl
236 uint32_t cidx; member in struct:sge_txq
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dconfig.c1271 apr_hash_index_t *cidx;
1274 for (cidx = apr_hash_first(pool, src_hash);
1275 cidx != NULL;
1276 cidx = apr_hash_next(cidx))
1284 apr_hash_this(cidx, &ckey, &ckeyLength, &cval);
1256 apr_hash_index_t *cidx; local
/freebsd-11-stable/contrib/binutils/gas/
H A Dmacro.c493 int cidx; local
569 cidx = idx;
571 if (idx != cidx && idx >= in->len)
573 idx = cidx;
657 int cidx; local
663 cidx = sb_skip_white (idx, in);
664 idx = sb_skip_comma (cidx, in);
665 if (idx == cidx || idx < in->len)
668 idx = cidx;
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_nmea.c282 int cidx; /* current field index */ member in struct:__anon13
1279 data->cidx = 0;
1354 if (fn < data->cidx) {
1355 data->cidx = 0;
1358 while ((fn > data->cidx) && (tmp = *data->cptr) != '\0') {
1359 data->cidx += (tmp == ',');
/freebsd-11-stable/sys/dev/cxgbe/common/
H A Dt4_hw.h99 volatile __be16 cidx; member in struct:sge_qstat
/freebsd-11-stable/sys/dev/oce/
H A Doce_if.h299 ring->cidx = GET_Q_NEXT(ring->cidx, n, ring->num_items)
304 (void*)((type *)DBUF_VA(&ring->dma) + ring->cidx)
306 (uint64_t)(((type *)DBUF_PA(ring->dbuf)) + ring->cidx)
329 uint16_t cidx; /* Get ptr */ member in struct:oce_ring_buffer_s
H A Doce_queue.c348 wq->ring->cidx = 0;
531 rq->ring->cidx = 0;
1166 pd = &rq->pckts[rq->ring->cidx];
1374 rq->ring->cidx = 0;
/freebsd-11-stable/crypto/openssl/crypto/x509/
H A Dx509_vfy.c1338 int cidx = ctx->error_depth; local
1341 if (cidx != sk_X509_num(ctx->chain) - 1)
1342 cidx++;
1344 crl_issuer = sk_X509_value(ctx->chain, cidx);
1354 for (cidx++; cidx < sk_X509_num(ctx->chain); cidx++) {
1355 crl_issuer = sk_X509_value(ctx->chain, cidx);
/freebsd-11-stable/sys/dev/cxgb/common/
H A Dcxgb_common.h806 unsigned int cidx);
809 unsigned int cong_thres, int gen, unsigned int cidx);
812 unsigned int fl_thres, int gen, unsigned int cidx);
H A Dcxgb_t3_hw.c2557 * @cidx: consumer pointer
2566 unsigned int cidx)
2576 t3_write_reg(adapter, A_SG_CONTEXT_DATA0, V_EC_INDEX(cidx) |
2600 * @cidx: consumer pointer
2608 unsigned int cong_thres, int gen, unsigned int cidx)
2620 V_FL_INDEX_LO(cidx & M_FL_INDEX_LO));
2622 V_FL_GEN(gen) | V_FL_INDEX_HI(cidx >> 12) |
2639 * @cidx: consumer pointer
2647 unsigned int fl_thres, int gen, unsigned int cidx)
2658 V_CQ_INDEX(cidx));
2563 t3_sge_init_ecntxt(adapter_t *adapter, unsigned int id, int gts_enable, enum sge_context_type type, int respq, u64 base_addr, unsigned int size, unsigned int token, int gen, unsigned int cidx) argument
2606 t3_sge_init_flcntxt(adapter_t *adapter, unsigned int id, int gts_enable, u64 base_addr, unsigned int size, unsigned int bsize, unsigned int cong_thres, int gen, unsigned int cidx) argument
2645 t3_sge_init_rspcntxt(adapter_t *adapter, unsigned int id, int irq_vec_idx, u64 base_addr, unsigned int size, unsigned int fl_thres, int gen, unsigned int cidx) argument
[all...]
/freebsd-11-stable/sys/dev/ocs_fc/
H A Docs_utils.c425 uint32_t cidx; /*<< consumer index */ member in struct:ocs_cbuf_s
455 cbuf->cidx = 0;
510 ret = cbuf->array[cbuf->cidx];
511 if (unlikely(++cbuf->cidx >= cbuf->entry_count)) {
512 cbuf->cidx = 0;
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_pf/
H A Dpf_snmp.c1438 int i, numtbls = 1, cidx, naddrs; local
1475 cidx = 1;
1485 if ((naddrs = pfa_table_addrs(cidx, it)) < 0)
1488 cidx += naddrs;
1492 pfa_table_count = cidx;

Completed in 235 milliseconds

12