Lines Matching refs:entries
644 static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries, in mthca_create_cq() argument
654 if (entries < 1 || entries > to_mdev(ibdev)->limits.max_cqes) in mthca_create_cq()
686 for (nent = 1; nent <= entries; nent <<= 1) in mthca_create_cq()
723 int entries) in mthca_alloc_resize_buf() argument
749 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mthca_alloc_resize_buf()
758 cq->resize_buf->cqe = entries - 1; in mthca_alloc_resize_buf()
767 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mthca_resize_cq() argument
775 if (entries < 1 || entries > dev->limits.max_cqes) in mthca_resize_cq()
780 entries = roundup_pow_of_two(entries + 1); in mthca_resize_cq()
781 if (entries == ibcq->cqe + 1) { in mthca_resize_cq()
787 ret = mthca_alloc_resize_buf(dev, cq, entries); in mthca_resize_cq()
799 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); in mthca_resize_cq()
835 ibcq->cqe = entries - 1; in mthca_resize_cq()