• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/infiniband/hw/mthca/

Lines Matching refs:max

234 	wq->last_comp = wq->max - 1;
501 qp_attr->cap.max_send_wr = qp->sq.max;
502 qp_attr->cap.max_recv_wr = qp->rq.max;
523 mthca_dbg(dev, "sgid_index (%u) too large. max is %d\n",
598 if (qp->rq.max)
599 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3;
602 if (qp->sq.max)
603 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3;
671 mthca_dbg(dev, "Alternate P_Key index (%u) too large. max is %d\n",
828 qp->sq.last = get_send_wqe(qp, qp->sq.max - 1);
831 qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1);
893 mthca_dbg(dev, "P_Key index (%u) too large. max is %d\n",
906 mthca_dbg(dev, "Max rdma_atomic as initiator %u too large (max is %d)\n",
913 mthca_dbg(dev, "Max rdma_atomic as responder %u too large (max %d)\n",
992 * Allocate and register buffer for WQEs. qp->rq.max, sq.max,
1059 qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift,
1071 (qp->sq.max << qp->sq.wqe_shift));
1073 qp->wrid = kmalloc((qp->rq.max + qp->sq.max) * sizeof (u64),
1094 (qp->sq.max << qp->sq.wqe_shift)),
1225 for (i = 0; i < qp->rq.max; ++i) {
1227 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) <<
1237 for (i = 0; i < qp->sq.max; ++i) {
1239 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) <<
1245 qp->sq.last = get_send_wqe(qp, qp->sq.max - 1);
1246 qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1);
1272 qp->rq.max = cap->max_recv_wr ?
1274 qp->sq.max = cap->max_send_wr ?
1277 qp->rq.max = cap->max_recv_wr;
1278 qp->sq.max = cap->max_send_wr;
1378 sqp->header_buf_size = sqp->qp.sq.max * MTHCA_UD_HEADER_SIZE;
1570 if (likely(cur + nreq < wq->max))
1578 return cur + nreq >= wq->max;
1606 " %d max, %d nreq)\n", qp->qpn,
1608 qp->sq.max, nreq);
1755 qp->wrid[ind + qp->rq.max] = wr->wr_id;
1782 if (unlikely(ind >= qp->sq.max))
1783 ind -= qp->sq.max;
1837 " %d max, %d nreq)\n", qp->qpn,
1839 qp->rq.max, nreq);
1886 if (unlikely(ind >= qp->rq.max))
1887 ind -= qp->rq.max;
1954 ind = qp->sq.head & (qp->sq.max - 1);
1987 " %d max, %d nreq)\n", qp->qpn,
1989 qp->sq.max, nreq);
2132 qp->wrid[ind + qp->rq.max] = wr->wr_id;
2159 if (unlikely(ind >= qp->sq.max))
2160 ind -= qp->sq.max;
2214 ind = qp->rq.head & (qp->rq.max - 1);
2219 " %d max, %d nreq)\n", qp->qpn,
2221 qp->rq.max, nreq);
2258 if (unlikely(ind >= qp->rq.max))
2259 ind -= qp->rq.max;