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