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