Lines Matching refs:entries
176 int entries = attr->cqe;
183 if (entries < 1 || entries > dev->dev->caps.max_cqes)
193 entries = roundup_pow_of_two(entries + 1);
194 cq->ibcq.cqe = entries - 1;
212 ucmd.buf_addr, entries);
232 err = mlx4_ib_alloc_cq_buf(dev, &cq->buf, entries);
242 err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar,
285 int entries)
296 err = mlx4_ib_alloc_cq_buf(dev, &cq->resize_buf->buf, entries);
303 cq->resize_buf->cqe = entries - 1;
309 int entries, struct ib_udata *udata)
325 &cq->resize_umem, ucmd.buf_addr, entries);
332 cq->resize_buf->cqe = entries - 1;
373 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
382 if (entries < 1 || entries > dev->dev->caps.max_cqes) {
387 entries = roundup_pow_of_two(entries + 1);
388 if (entries == ibcq->cqe + 1) {
393 if (entries > dev->dev->caps.max_cqes + 1) {
399 err = mlx4_alloc_resize_umem(dev, cq, entries, udata);
405 if (entries < outst_cqe + 1) {
410 err = mlx4_alloc_resize_buf(dev, cq, entries);
417 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt);
929 * adds new entries after this loop -- the QP we're worried
930 * about is already in RESET, so the new entries won't come
938 * Now sweep backwards through the CQ, removing CQ entries
939 * that match our QP by copying older entries on top of them.