• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/mthca/

Lines Matching defs:nreq

1543 static inline int mthca_wq_overflow(struct mthca_wq *wq, int nreq,
1550 if (likely(cur + nreq < wq->max))
1558 return cur + nreq >= wq->max;
1609 int nreq;
1613 * f0 and size0 are only used if nreq != 0, and they will
1615 * before nreq is incremented. So nreq cannot become non-zero
1630 for (nreq = 0; wr; ++nreq, wr = wr->next) {
1631 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
1633 " %d max, %d nreq)\n", qp->qpn,
1635 qp->sq.max, nreq);
1764 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size |
1768 if (!nreq) {
1781 if (likely(nreq)) {
1797 qp->sq.head += nreq;
1810 int nreq;
1814 * size0 is only used if nreq != 0, and it will always be
1816 * nreq is incremented. So nreq cannot become non-zero
1831 for (nreq = 0; wr; wr = wr->next) {
1832 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) {
1834 " %d max, %d nreq)\n", qp->qpn,
1836 qp->rq.max, nreq);
1870 if (!nreq)
1877 ++nreq;
1878 if (unlikely(nreq == MTHCA_TAVOR_MAX_WQES_PER_RECV_DB)) {
1879 nreq = 0;
1893 if (likely(nreq)) {
1897 qp->qpn << 8 | nreq, dev->kar + MTHCA_RECEIVE_DOORBELL,
1902 qp->rq.head += nreq;
1924 int nreq;
1928 * f0 and size0 are only used if nreq != 0, and they will
1930 * before nreq is incremented. So nreq cannot become non-zero
1945 for (nreq = 0; wr; ++nreq, wr = wr->next) {
1946 if (unlikely(nreq == MTHCA_ARBEL_MAX_WQES_PER_SEND_DB)) {
1947 nreq = 0;
1972 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) {
1974 " %d max, %d nreq)\n", qp->qpn,
1976 qp->sq.max, nreq);
2109 if (!nreq) {
2122 if (likely(nreq)) {
2123 dbhi = (nreq << 24) | ((qp->sq.head & 0xffff) << 8) | f0 | op0;
2125 qp->sq.head += nreq;
2161 int nreq;
2172 for (nreq = 0; wr; ++nreq, wr = wr->next) {
2173 if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) {
2175 " %d max, %d nreq)\n", qp->qpn,
2177 qp->rq.max, nreq);
2210 if (likely(nreq)) {
2211 qp->rq.head += nreq;