Lines Matching refs:nreq
1565 static inline int mthca_wq_overflow(struct mthca_wq *wq, int nreq,
1572 if (likely(cur + nreq < wq->max))
1580 return cur + nreq >= wq->max;
1631 int nreq;
1635 * f0 and size0 are only used if nreq != 0, and they will
1637 * before nreq is incremented. So nreq cannot become non-zero
1652 for (nreq = 0; wr; ++nreq, wr = wr->next) {
1653 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
1655 " %d max, %d nreq)\n", qp->qpn,
1657 qp->sq.max, nreq);
1786 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size |
1790 if (!nreq) {
1803 if (likely(nreq)) {
1814 qp->sq.head += nreq;
1827 int nreq;
1831 * size0 is only used if nreq != 0, and it will always be
1833 * nreq is incremented. So nreq cannot become non-zero
1848 for (nreq = 0; wr; wr = wr->next) {
1849 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) {
1851 " %d max, %d nreq)\n", qp->qpn,
1853 qp->rq.max, nreq);
1887 if (!nreq)
1894 ++nreq;
1895 if (unlikely(nreq == MTHCA_TAVOR_MAX_WQES_PER_RECV_DB)) {
1896 nreq = 0;
1910 if (likely(nreq)) {
1914 qp->qpn << 8 | nreq, dev->kar + MTHCA_RECEIVE_DOORBELL,
1919 qp->rq.head += nreq;
1935 int nreq;
1939 * f0 and size0 are only used if nreq != 0, and they will
1941 * before nreq is incremented. So nreq cannot become non-zero
1956 for (nreq = 0; wr; ++nreq, wr = wr->next) {
1957 if (unlikely(nreq == MTHCA_ARBEL_MAX_WQES_PER_SEND_DB)) {
1958 nreq = 0;
1983 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
1985 " %d max, %d nreq)\n", qp->qpn,
1987 qp->sq.max, nreq);
2120 if (!nreq) {
2133 if (likely(nreq)) {
2134 dbhi = (nreq << 24) | ((qp->sq.head & 0xffff) << 8) | f0 | op0;
2136 qp->sq.head += nreq;
2166 int nreq;
2177 for (nreq = 0; wr; ++nreq, wr = wr->next) {
2178 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) {
2180 " %d max, %d nreq)\n", qp->qpn,
2182 qp->rq.max, nreq);
2215 if (likely(nreq)) {
2216 qp->rq.head += nreq;