Lines Matching defs:nreq

1568 static inline int mthca_wq_overflow(struct mthca_wq *wq, int nreq,
1575 if (likely(cur + nreq < wq->max))
1583 return cur + nreq >= wq->max;
1634 int nreq;
1638 * f0 and size0 are only used if nreq != 0, and they will
1640 * before nreq is incremented. So nreq cannot become non-zero
1655 for (nreq = 0; wr; ++nreq, wr = wr->next) {
1656 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
1658 " %d max, %d nreq)\n", qp->qpn,
1660 qp->sq.max, nreq);
1789 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size |
1793 if (!nreq) {
1806 if (likely(nreq)) {
1817 qp->sq.head += nreq;
1830 int nreq;
1834 * size0 is only used if nreq != 0, and it will always be
1836 * nreq is incremented. So nreq cannot become non-zero
1851 for (nreq = 0; wr; wr = wr->next) {
1852 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) {
1854 " %d max, %d nreq)\n", qp->qpn,
1856 qp->rq.max, nreq);
1890 if (!nreq)
1897 ++nreq;
1898 if (unlikely(nreq == MTHCA_TAVOR_MAX_WQES_PER_RECV_DB)) {
1899 nreq = 0;
1913 if (likely(nreq)) {
1917 qp->qpn << 8 | nreq, dev->kar + MTHCA_RECEIVE_DOORBELL,
1922 qp->rq.head += nreq;
1938 int nreq;
1942 * f0 and size0 are only used if nreq != 0, and they will
1944 * before nreq is incremented. So nreq cannot become non-zero
1959 for (nreq = 0; wr; ++nreq, wr = wr->next) {
1960 if (unlikely(nreq == MTHCA_ARBEL_MAX_WQES_PER_SEND_DB)) {
1961 nreq = 0;
1986 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
1988 " %d max, %d nreq)\n", qp->qpn,
1990 qp->sq.max, nreq);
2123 if (!nreq) {
2136 if (likely(nreq)) {
2137 dbhi = (nreq << 24) | ((qp->sq.head & 0xffff) << 8) | f0 | op0;
2139 qp->sq.head += nreq;
2169 int nreq;
2180 for (nreq = 0; wr; ++nreq, wr = wr->next) {
2181 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) {
2183 " %d max, %d nreq)\n", qp->qpn,
2185 qp->rq.max, nreq);
2218 if (likely(nreq)) {
2219 qp->rq.head += nreq;