Lines Matching defs:cidx
95 /* Write a 0 cidx increment value to enable SGE interrupts for this queue */
247 q->pidx = q->cidx = q->inc_idx = 0;
378 * 0-cidx increment GTS write for this queue just to clear the
870 uint16_t cidx = q->cidx = ntohs(stp->cidx);
878 CSIO_DB_ASSERT(cidx <= q->credits);
881 if (pidx > cidx) {
882 credits = q->credits - (pidx - cidx) - 1;
883 } else if (cidx > pidx) {
884 credits = cidx - pidx - 1;
886 /* cidx == pidx, empty queue */
1001 if (q->pidx > q->cidx)
1002 return q->pidx - q->cidx;
1003 else if (q->cidx > q->pidx)
1004 return q->credits - (q->cidx - q->pidx);
1006 return 0; /* cidx == pidx, empty queue */
1017 * queue cidx.
1023 flq->cidx++;
1024 if (flq->cidx == flq->credits) {
1025 flq->cidx = 0;
1074 buf = &flq->un.fl.bufs[flq->cidx];
1135 void *wr = (void *)((uintptr_t)q->vstart + (q->cidx * q->wr_sz));
1206 q->cidx = 0;
1214 q->cidx++;
1216 (q->cidx * q->wr_sz));