Lines Matching refs:entries
674 static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries,
684 if (entries < 1 || entries > to_mdev(ibdev)->limits.max_cqes)
716 for (nent = 1; nent <= entries; nent <<= 1)
752 int entries)
778 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries);
787 cq->resize_buf->cqe = entries - 1;
796 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
805 if (entries < 1 || entries > dev->limits.max_cqes)
810 entries = roundup_pow_of_two(entries + 1);
811 if (entries == ibcq->cqe + 1) {
817 ret = mthca_alloc_resize_buf(dev, cq, entries);
829 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries), &status);
867 ibcq->cqe = entries - 1;