Lines Matching refs:last
118 SOD (("soc_solicited, %d pkts arrived\n", (sw_cq->in-sw_cq->out) & sw_cq->last))
140 if (++sw_cq->out > sw_cq->last) {
174 if (((s->req[1].in + 1) & s->req[1].last) != (s->req[1].out))
198 SOD (("soc_unsolicited, %d packets arrived\n", (sw_cq->in - sw_cq->out) & sw_cq->last))
221 if (in < sw_cq->out) in += sw_cq->last + 1;
234 in += sw_cq->last + 1;
238 if (sw_cq->out == sw_cq->last)
305 if (++sw_cq->out > sw_cq->last) {
311 if (++sw_cq->out > sw_cq->last) {
375 cq_next_in = (sw_cq->in + 1) & sw_cq->last;
379 SOD(("%d IN %d OUT %d LAST %d\n", qno, sw_cq->in, sw_cq->out, sw_cq->last))
501 if (++sw_cq->in > sw_cq->last) {
678 cq[0].last = SOC_CQ_REQ0_SIZE - 1;
679 cq[1].last = SOC_CQ_REQ1_SIZE - 1;
680 cq[4].last = SOC_CQ_RSP0_SIZE - 1;
681 cq[5].last = SOC_CQ_RSP1_SIZE - 1;
685 s->req[0].last = SOC_CQ_REQ0_SIZE - 1;
686 s->req[1].last = SOC_CQ_REQ1_SIZE - 1;
687 s->rsp[0].last = SOC_CQ_RSP0_SIZE - 1;
688 s->rsp[1].last = SOC_CQ_RSP1_SIZE - 1;