Lines Matching refs:max
118 int logsize, max; in mthca_arbel_init_srq_context() local
126 max = srq->max; in mthca_arbel_init_srq_context()
127 logsize = ilog2(max); in mthca_arbel_init_srq_context()
142 mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue, in mthca_free_srq_buf()
158 srq->wrid = kmalloc(srq->max * sizeof (u64), GFP_KERNEL); in mthca_alloc_srq_buf()
162 err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift, in mthca_alloc_srq_buf()
175 for (i = 0; i < srq->max; ++i) { in mthca_alloc_srq_buf()
180 if (i < srq->max - 1) { in mthca_alloc_srq_buf()
194 srq->last = get_wqe(srq, srq->max - 1); in mthca_alloc_srq_buf()
211 srq->max = attr->max_wr; in mthca_alloc_srq()
216 srq->max = roundup_pow_of_two(srq->max + 1); in mthca_alloc_srq()
218 srq->max = srq->max + 1; in mthca_alloc_srq()
220 ds = max(64UL, in mthca_alloc_srq()
287 srq->last_free = srq->max - 1; in mthca_alloc_srq()
289 attr->max_wr = srq->max - 1; in mthca_alloc_srq()
376 u32 max_wr = mthca_is_memfree(dev) ? srq->max - 1 : srq->max; in mthca_modify_srq()
413 srq_attr->max_wr = srq->max - 1; in mthca_query_srq()