Lines Matching refs:cqe
96 if (head >= (unsigned)cq->ibcq.cqe) {
97 head = cq->ibcq.cqe;
209 unsigned int entries = attr->cqe;
279 * ib_create_cq() will initialize cq->ibcq except for cq->ibcq.cqe.
291 cq->ibcq.cqe = entries;
380 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata)
392 if (cqe < 1 || cqe > rdi->dparms.props.max_cqe)
399 sz = sizeof(struct ib_uverbs_wc) * (cqe + 1);
405 sz = sizeof(struct ib_wc) * (cqe + 1);
435 if (head > (u32)cq->ibcq.cqe)
436 head = (u32)cq->ibcq.cqe;
437 if (tail > (u32)cq->ibcq.cqe)
438 tail = (u32)cq->ibcq.cqe;
440 n = cq->ibcq.cqe + 1 + head - tail;
443 if (unlikely((u32)cqe < n)) {
452 if (tail == (u32)cq->ibcq.cqe)
457 cq->ibcq.cqe = cqe;
534 if (tail > (u32)cq->ibcq.cqe)
535 tail = (u32)cq->ibcq.cqe;
542 if (tail >= cq->ibcq.cqe)