Lines Matching defs:entries
175 struct ib_cq *mlx4_ib_create_cq(struct ib_device *ibdev, int entries,
182 if (entries < 1 || entries > dev->dev->caps.max_cqes)
189 entries = roundup_pow_of_two(entries + 1);
190 cq->ibcq.cqe = entries - 1;
205 ucmd.buf_addr, entries);
224 err = mlx4_ib_alloc_cq_buf(dev, &cq->buf, entries);
234 err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar, cq->db.dma,
270 int entries)
281 err = mlx4_ib_alloc_cq_buf(dev, &cq->resize_buf->buf, entries);
288 cq->resize_buf->cqe = entries - 1;
294 int entries, struct ib_udata *udata)
310 &cq->resize_umem, ucmd.buf_addr, entries);
317 cq->resize_buf->cqe = entries - 1;
358 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
371 if (entries < 1 || entries > dev->dev->caps.max_cqes) {
376 entries = roundup_pow_of_two(entries + 1);
377 if (entries == ibcq->cqe + 1) {
383 err = mlx4_alloc_resize_umem(dev, cq, entries, udata);
389 if (entries < outst_cqe + 1) {
394 err = mlx4_alloc_resize_buf(dev, cq, entries);
401 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt);
835 * adds new entries after this loop -- the QP we're worried
836 * about is already in RESET, so the new entries won't come
844 * Now sweep backwards through the CQ, removing CQ entries
845 * that match our QP by copying older entries on top of them.