Lines Matching refs:cqe
66 if (head >= (unsigned) cq->ibcq.cqe) { in qib_cq_enter()
67 head = cq->ibcq.cqe; in qib_cq_enter()
154 if (tail > (u32) cq->ibcq.cqe) in qib_poll_cq()
155 tail = (u32) cq->ibcq.cqe; in qib_poll_cq()
161 if (tail >= cq->ibcq.cqe) in qib_poll_cq()
299 cq->ibcq.cqe = entries; in qib_create_cq()
387 int qib_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in qib_resize_cq() argument
396 if (cqe < 1 || cqe > ib_qib_max_cqes) { in qib_resize_cq()
406 sz += sizeof(struct ib_uverbs_wc) * (cqe + 1); in qib_resize_cq()
408 sz += sizeof(struct ib_wc) * (cqe + 1); in qib_resize_cq()
431 if (head > (u32) cq->ibcq.cqe) in qib_resize_cq()
432 head = (u32) cq->ibcq.cqe; in qib_resize_cq()
434 if (tail > (u32) cq->ibcq.cqe) in qib_resize_cq()
435 tail = (u32) cq->ibcq.cqe; in qib_resize_cq()
437 n = cq->ibcq.cqe + 1 + head - tail; in qib_resize_cq()
440 if (unlikely((u32)cqe < n)) { in qib_resize_cq()
449 if (tail == (u32) cq->ibcq.cqe) in qib_resize_cq()
454 cq->ibcq.cqe = cqe; in qib_resize_cq()