Lines Matching defs:cidx
45 uint16_t cidx;
64 if (s.cidx == s.pidx_head)
66 else if (s.cidx > s.pidx_head)
67 return (s.cidx - s.pidx_head - 1);
69 return (x - s.pidx_head + s.cidx);
86 if (s.cidx == s.pidx_tail)
100 uint16_t cidx = os.cidx;
104 MPASS(cidx != pidx);
111 while (cidx != pidx) {
112 /* Items from cidx to pidx are available for consumption. */
113 n = r->drain(r, cidx, pidx);
116 ns.cidx = cidx;
127 cidx = increment_idx(r, cidx, n);
132 * We update the cidx only if we've caught up with the pidx, the
133 * real cidx is getting too far ahead of the one visible to
136 if (cidx != pidx && pending < 64 && total < budget)
140 ns.cidx = cidx;
174 uint16_t cidx = os.cidx;
178 MPASS(cidx != pidx);
185 while (cidx != pidx) {
186 /* Items from cidx to pidx are available for consumption. */
187 n = r->drain(r, cidx, pidx);
193 ns.cidx = cidx;
206 cidx = increment_idx(r, cidx, n);
211 * We update the cidx only if we've caught up with the pidx, the
212 * real cidx is getting too far ahead of the one visible to
215 if (cidx != pidx && pending < 64 && total < budget)
221 ns.cidx = cidx;
488 MPASS(os.cidx != os.pidx_tail); /* implied by STALLED */
531 if (s.pidx_head == s.pidx_tail && s.pidx_tail == s.cidx &&