Lines Matching defs:max
126 int logsize, max;
131 * Put max in a temporary variable to work around gcc bug
134 max = srq->max;
135 logsize = ilog2(max);
149 mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue,
165 srq->wrid = kmalloc_array(srq->max, sizeof(u64), GFP_KERNEL);
169 err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift,
182 for (i = 0; i < srq->max; ++i) {
187 if (i < srq->max - 1) {
201 srq->last = get_wqe(srq, srq->max - 1);
219 srq->max = attr->max_wr;
224 srq->max = roundup_pow_of_two(srq->max + 1);
226 srq->max = srq->max + 1;
228 ds = max(64UL,
295 srq->last_free = srq->max - 1;
297 attr->max_wr = srq->max - 1;
384 u32 max_wr = mthca_is_memfree(dev) ? srq->max - 1 : srq->max;
421 srq_attr->max_wr = srq->max - 1;
651 * Therefore, we need to base the max number of sg entries on
653 * actual max WQE descriptor size, rather than return the