Lines Matching refs:entries
178 int entries = attr->cqe;
188 if (entries < 1 || entries > dev->dev->caps.max_cqes)
194 entries = roundup_pow_of_two(entries + 1);
195 cq->ibcq.cqe = entries - 1;
214 ucmd.buf_addr, entries);
234 err = mlx4_ib_alloc_cq_buf(dev, &cq->buf, entries);
247 err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar, cq->db.dma,
291 int entries)
302 err = mlx4_ib_alloc_cq_buf(dev, &cq->resize_buf->buf, entries);
309 cq->resize_buf->cqe = entries - 1;
315 int entries, struct ib_udata *udata)
331 ucmd.buf_addr, entries);
338 cq->resize_buf->cqe = entries - 1;
379 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
388 if (entries < 1 || entries > dev->dev->caps.max_cqes) {
393 entries = roundup_pow_of_two(entries + 1);
394 if (entries == ibcq->cqe + 1) {
399 if (entries > dev->dev->caps.max_cqes + 1) {
405 err = mlx4_alloc_resize_umem(dev, cq, entries, udata);
411 if (entries < outst_cqe + 1) {
416 err = mlx4_alloc_resize_buf(dev, cq, entries);
423 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt);
926 * adds new entries after this loop -- the QP we're worried
927 * about is already in RESET, so the new entries won't come
935 * Now sweep backwards through the CQ, removing CQ entries
936 * that match our QP by copying older entries on top of them.