Lines Matching defs:cqe
54 if (head >= (unsigned)cq->ibcq.cqe) {
55 head = cq->ibcq.cqe;
167 unsigned int entries = attr->cqe;
237 * ib_create_cq() will initialize cq->ibcq except for cq->ibcq.cqe.
249 cq->ibcq.cqe = entries;
338 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata)
350 if (cqe < 1 || cqe > rdi->dparms.props.max_cqe)
357 sz = sizeof(struct ib_uverbs_wc) * (cqe + 1);
363 sz = sizeof(struct ib_wc) * (cqe + 1);
393 if (head > (u32)cq->ibcq.cqe)
394 head = (u32)cq->ibcq.cqe;
395 if (tail > (u32)cq->ibcq.cqe)
396 tail = (u32)cq->ibcq.cqe;
398 n = cq->ibcq.cqe + 1 + head - tail;
401 if (unlikely((u32)cqe < n)) {
410 if (tail == (u32)cq->ibcq.cqe)
415 cq->ibcq.cqe = cqe;
492 if (tail > (u32)cq->ibcq.cqe)
493 tail = (u32)cq->ibcq.cqe;
500 if (tail >= cq->ibcq.cqe)