Lines Matching refs:entries
653 int entries = attr->cqe; in mthca_create_cq() local
662 if (entries < 1 || entries > to_mdev(ibdev)->limits.max_cqes) in mthca_create_cq()
694 for (nent = 1; nent <= entries; nent <<= 1) in mthca_create_cq()
731 int entries) in mthca_alloc_resize_buf() argument
757 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mthca_alloc_resize_buf()
766 cq->resize_buf->cqe = entries - 1; in mthca_alloc_resize_buf()
775 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mthca_resize_cq() argument
783 if (entries < 1 || entries > dev->limits.max_cqes) in mthca_resize_cq()
788 entries = roundup_pow_of_two(entries + 1); in mthca_resize_cq()
789 if (entries == ibcq->cqe + 1) { in mthca_resize_cq()
795 ret = mthca_alloc_resize_buf(dev, cq, entries); in mthca_resize_cq()
807 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); in mthca_resize_cq()
843 ibcq->cqe = entries - 1; in mthca_resize_cq()