Lines Matching refs:entries
654 int entries = attr->cqe;
663 if (entries < 1 || entries > to_mdev(ibdev)->limits.max_cqes)
695 for (nent = 1; nent <= entries; nent <<= 1)
732 int entries)
758 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries);
767 cq->resize_buf->cqe = entries - 1;
776 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
784 if (entries < 1 || entries > dev->limits.max_cqes)
789 entries = roundup_pow_of_two(entries + 1);
790 if (entries == ibcq->cqe + 1) {
796 ret = mthca_alloc_resize_buf(dev, cq, entries);
808 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries));
844 ibcq->cqe = entries - 1;