Lines Matching refs:max
98 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1);
101 desc_size = max(32UL,
107 buf_size = srq->msrq.max * desc_size;
150 srq->tail = srq->msrq.max - 1;
153 for (i = 0; i < srq->msrq.max; ++i) {
156 cpu_to_be16((i + 1) & (srq->msrq.max - 1));
168 srq->wrid = kmalloc(srq->msrq.max * sizeof (u64), GFP_KERNEL);
188 init_attr->attr.max_wr = srq->msrq.max - 1;
229 if (attr->srq_limit >= srq->msrq.max)
256 mlx4_buf_free(dev->dev, msrq->msrq.max << msrq->msrq.wqe_shift,