Lines Matching refs:entries

175 	int entries = attr->cqe;  in mlx4_ib_create_cq()  local
182 if (entries < 1 || entries > dev->dev->caps.max_cqes) in mlx4_ib_create_cq()
192 entries = roundup_pow_of_two(entries + 1); in mlx4_ib_create_cq()
193 cq->ibcq.cqe = entries - 1; in mlx4_ib_create_cq()
211 ucmd.buf_addr, entries); in mlx4_ib_create_cq()
231 err = mlx4_ib_alloc_cq_buf(dev, &cq->buf, entries); in mlx4_ib_create_cq()
241 err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar, in mlx4_ib_create_cq()
284 int entries) in mlx4_alloc_resize_buf() argument
295 err = mlx4_ib_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mlx4_alloc_resize_buf()
302 cq->resize_buf->cqe = entries - 1; in mlx4_alloc_resize_buf()
308 int entries, struct ib_udata *udata) in mlx4_alloc_resize_umem() argument
324 &cq->resize_umem, ucmd.buf_addr, entries); in mlx4_alloc_resize_umem()
331 cq->resize_buf->cqe = entries - 1; in mlx4_alloc_resize_umem()
372 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mlx4_ib_resize_cq() argument
381 if (entries < 1 || entries > dev->dev->caps.max_cqes) { in mlx4_ib_resize_cq()
386 entries = roundup_pow_of_two(entries + 1); in mlx4_ib_resize_cq()
387 if (entries == ibcq->cqe + 1) { in mlx4_ib_resize_cq()
392 if (entries > dev->dev->caps.max_cqes + 1) { in mlx4_ib_resize_cq()
398 err = mlx4_alloc_resize_umem(dev, cq, entries, udata); in mlx4_ib_resize_cq()
404 if (entries < outst_cqe + 1) { in mlx4_ib_resize_cq()
409 err = mlx4_alloc_resize_buf(dev, cq, entries); in mlx4_ib_resize_cq()
416 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt); in mlx4_ib_resize_cq()