Lines Matching defs:nreq

1545 static inline int mthca_wq_overflow(struct mthca_wq *wq, int nreq,
1552 if (likely(cur + nreq < wq->max))
1560 return cur + nreq >= wq->max;
1611 int nreq;
1615 * f0 and size0 are only used if nreq != 0, and they will
1617 * before nreq is incremented. So nreq cannot become non-zero
1632 for (nreq = 0; wr; ++nreq, wr = wr->next) {
1633 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
1635 " %d max, %d nreq)\n", qp->qpn,
1637 qp->sq.max, nreq);
1766 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size |
1770 if (!nreq) {
1783 if (likely(nreq)) {
1799 qp->sq.head += nreq;
1812 int nreq;
1816 * size0 is only used if nreq != 0, and it will always be
1818 * nreq is incremented. So nreq cannot become non-zero
1833 for (nreq = 0; wr; wr = wr->next) {
1834 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) {
1836 " %d max, %d nreq)\n", qp->qpn,
1838 qp->rq.max, nreq);
1872 if (!nreq)
1879 ++nreq;
1880 if (unlikely(nreq == MTHCA_TAVOR_MAX_WQES_PER_RECV_DB)) {
1881 nreq = 0;
1895 if (likely(nreq)) {
1899 qp->qpn << 8 | nreq, dev->kar + MTHCA_RECEIVE_DOORBELL,
1904 qp->rq.head += nreq;
1926 int nreq;
1930 * f0 and size0 are only used if nreq != 0, and they will
1932 * before nreq is incremented. So nreq cannot become non-zero
1947 for (nreq = 0; wr; ++nreq, wr = wr->next) {
1948 if (unlikely(nreq == MTHCA_ARBEL_MAX_WQES_PER_SEND_DB)) {
1949 nreq = 0;
1974 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
1976 " %d max, %d nreq)\n", qp->qpn,
1978 qp->sq.max, nreq);
2111 if (!nreq) {
2124 if (likely(nreq)) {
2125 dbhi = (nreq << 24) | ((qp->sq.head & 0xffff) << 8) | f0 | op0;
2127 qp->sq.head += nreq;
2163 int nreq;
2174 for (nreq = 0; wr; ++nreq, wr = wr->next) {
2175 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) {
2177 " %d max, %d nreq)\n", qp->qpn,
2179 qp->rq.max, nreq);
2212 if (likely(nreq)) {
2213 qp->rq.head += nreq;