Lines Matching refs:max
232 wq->last_comp = wq->max - 1; in mthca_wq_reset()
504 qp_attr->cap.max_send_wr = qp->sq.max; in mthca_query_qp()
505 qp_attr->cap.max_recv_wr = qp->rq.max; in mthca_query_qp()
604 if (qp->rq.max) in __mthca_modify_qp()
605 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3; in __mthca_modify_qp()
608 if (qp->sq.max) in __mthca_modify_qp()
609 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3; in __mthca_modify_qp()
834 qp->sq.last = get_send_wqe(qp, qp->sq.max - 1); in __mthca_modify_qp()
837 qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1); in __mthca_modify_qp()
1039 qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift, in mthca_alloc_wqe_buf()
1051 (qp->sq.max << qp->sq.wqe_shift)); in mthca_alloc_wqe_buf()
1053 qp->wrid = kmalloc((qp->rq.max + qp->sq.max) * sizeof (u64), in mthca_alloc_wqe_buf()
1074 (qp->sq.max << qp->sq.wqe_shift)), in mthca_free_wqe_buf()
1205 for (i = 0; i < qp->rq.max; ++i) { in mthca_alloc_qp_common()
1207 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) << in mthca_alloc_qp_common()
1217 for (i = 0; i < qp->sq.max; ++i) { in mthca_alloc_qp_common()
1219 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) << in mthca_alloc_qp_common()
1224 for (i = 0; i < qp->rq.max; ++i) { in mthca_alloc_qp_common()
1226 next->nda_op = htonl((((i + 1) % qp->rq.max) << in mthca_alloc_qp_common()
1232 qp->sq.last = get_send_wqe(qp, qp->sq.max - 1); in mthca_alloc_qp_common()
1233 qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1); in mthca_alloc_qp_common()
1259 qp->rq.max = cap->max_recv_wr ? in mthca_set_qp_size()
1261 qp->sq.max = cap->max_send_wr ? in mthca_set_qp_size()
1264 qp->rq.max = cap->max_recv_wr; in mthca_set_qp_size()
1265 qp->sq.max = cap->max_send_wr; in mthca_set_qp_size()
1365 sqp->header_buf_size = sqp->qp.sq.max * MTHCA_UD_HEADER_SIZE; in mthca_alloc_sqp()
1557 if (likely(cur + nreq < wq->max)) in mthca_wq_overflow()
1565 return cur + nreq >= wq->max; in mthca_wq_overflow()
1642 qp->sq.max, nreq); in mthca_tavor_post_send()
1756 qp->wrid[ind + qp->rq.max] = wr->wr_id; in mthca_tavor_post_send()
1783 if (unlikely(ind >= qp->sq.max)) in mthca_tavor_post_send()
1784 ind -= qp->sq.max; in mthca_tavor_post_send()
1843 qp->rq.max, nreq); in mthca_tavor_post_receive()
1881 if (unlikely(ind >= qp->rq.max)) in mthca_tavor_post_receive()
1882 ind -= qp->rq.max; in mthca_tavor_post_receive()
1950 ind = qp->sq.head & (qp->sq.max - 1); in mthca_arbel_post_send()
1983 qp->sq.max, nreq); in mthca_arbel_post_send()
2097 qp->wrid[ind + qp->rq.max] = wr->wr_id; in mthca_arbel_post_send()
2124 if (unlikely(ind >= qp->sq.max)) in mthca_arbel_post_send()
2125 ind -= qp->sq.max; in mthca_arbel_post_send()
2177 ind = qp->rq.head & (qp->rq.max - 1); in mthca_arbel_post_receive()
2184 qp->rq.max, nreq); in mthca_arbel_post_receive()
2213 if (unlikely(ind >= qp->rq.max)) in mthca_arbel_post_receive()
2214 ind -= qp->rq.max; in mthca_arbel_post_receive()