Lines Matching defs:entries
675 static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries,
685 if (entries < 1 || entries > to_mdev(ibdev)->limits.max_cqes)
717 for (nent = 1; nent <= entries; nent <<= 1)
753 int entries)
779 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries);
788 cq->resize_buf->cqe = entries - 1;
797 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
806 if (entries < 1 || entries > dev->limits.max_cqes)
811 entries = roundup_pow_of_two(entries + 1);
812 if (entries == ibcq->cqe + 1) {
818 ret = mthca_alloc_resize_buf(dev, cq, entries);
830 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries), &status);
868 ibcq->cqe = entries - 1;