Lines Matching refs:entries
169 struct ib_cq *mlx4_ib_create_cq(struct ib_device *ibdev, int entries, int vector, in mlx4_ib_create_cq() argument
178 if (entries < 1 || entries > dev->dev->caps.max_cqes) in mlx4_ib_create_cq()
185 entries = roundup_pow_of_two(entries + 1); in mlx4_ib_create_cq()
186 cq->ibcq.cqe = entries - 1; in mlx4_ib_create_cq()
203 ucmd.buf_addr, entries); in mlx4_ib_create_cq()
223 err = mlx4_ib_alloc_cq_buf(dev, &cq->buf, entries); in mlx4_ib_create_cq()
233 err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar, in mlx4_ib_create_cq()
275 int entries) in mlx4_alloc_resize_buf() argument
286 err = mlx4_ib_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mlx4_alloc_resize_buf()
293 cq->resize_buf->cqe = entries - 1; in mlx4_alloc_resize_buf()
299 int entries, struct ib_udata *udata) in mlx4_alloc_resize_umem() argument
315 &cq->resize_umem, ucmd.buf_addr, entries); in mlx4_alloc_resize_umem()
322 cq->resize_buf->cqe = entries - 1; in mlx4_alloc_resize_umem()
363 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mlx4_ib_resize_cq() argument
372 if (entries < 1 || entries > dev->dev->caps.max_cqes) { in mlx4_ib_resize_cq()
377 entries = roundup_pow_of_two(entries + 1); in mlx4_ib_resize_cq()
378 if (entries == ibcq->cqe + 1) { in mlx4_ib_resize_cq()
383 if (entries > dev->dev->caps.max_cqes + 1) { in mlx4_ib_resize_cq()
389 err = mlx4_alloc_resize_umem(dev, cq, entries, udata); in mlx4_ib_resize_cq()
395 if (entries < outst_cqe + 1) { in mlx4_ib_resize_cq()
400 err = mlx4_alloc_resize_buf(dev, cq, entries); in mlx4_ib_resize_cq()
407 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt); in mlx4_ib_resize_cq()