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
871 uint16_t cidx = q->cidx = ntohs(stp->cidx);
879 CSIO_DB_ASSERT(cidx <= q->credits);
882 if (pidx > cidx) {
883 credits = q->credits - (pidx - cidx) - 1;
884 } else if (cidx > pidx) {
885 credits = cidx - pidx - 1;
887 /* cidx == pidx, empty queue */
1002 if (q->pidx > q->cidx)
1003 return q->pidx - q->cidx;
1004 else if (q->cidx > q->pidx)
1005 return q->credits - (q->cidx - q->pidx);
1007 return 0; /* cidx == pidx, empty queue */
1018 * queue cidx.
1024 flq->cidx++;
1025 if (flq->cidx == flq->credits) {
1026 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));