Lines Matching full:cqe
55 if (head >= (unsigned)cq->ibcq.cqe) { in rvt_cq_enter()
56 head = cq->ibcq.cqe; in rvt_cq_enter()
169 unsigned int entries = attr->cqe; in rvt_create_cq()
239 * ib_create_cq() will initialize cq->ibcq except for cq->ibcq.cqe. in rvt_create_cq()
251 cq->ibcq.cqe = entries; in rvt_create_cq()
340 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in rvt_resize_cq() argument
352 if (cqe < 1 || cqe > rdi->dparms.props.max_cqe) in rvt_resize_cq()
359 sz = sizeof(struct ib_uverbs_wc) * (cqe + 1); in rvt_resize_cq()
365 sz = sizeof(struct ib_wc) * (cqe + 1); in rvt_resize_cq()
395 if (head > (u32)cq->ibcq.cqe) in rvt_resize_cq()
396 head = (u32)cq->ibcq.cqe; in rvt_resize_cq()
397 if (tail > (u32)cq->ibcq.cqe) in rvt_resize_cq()
398 tail = (u32)cq->ibcq.cqe; in rvt_resize_cq()
400 n = cq->ibcq.cqe + 1 + head - tail; in rvt_resize_cq()
403 if (unlikely((u32)cqe < n)) { in rvt_resize_cq()
412 if (tail == (u32)cq->ibcq.cqe) in rvt_resize_cq()
417 cq->ibcq.cqe = cqe; in rvt_resize_cq()
494 if (tail > (u32)cq->ibcq.cqe) in rvt_poll_cq()
495 tail = (u32)cq->ibcq.cqe; in rvt_poll_cq()
502 if (tail >= cq->ibcq.cqe) in rvt_poll_cq()