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()
220 int entries = attr->cqe; in qib_create_cq()
304 cq->ibcq.cqe = entries; in qib_create_cq()
392 int qib_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in qib_resize_cq() argument
401 if (cqe < 1 || cqe > ib_qib_max_cqes) { in qib_resize_cq()
411 sz += sizeof(struct ib_uverbs_wc) * (cqe + 1); in qib_resize_cq()
413 sz += sizeof(struct ib_wc) * (cqe + 1); in qib_resize_cq()
436 if (head > (u32) cq->ibcq.cqe) in qib_resize_cq()
437 head = (u32) cq->ibcq.cqe; in qib_resize_cq()
439 if (tail > (u32) cq->ibcq.cqe) in qib_resize_cq()
440 tail = (u32) cq->ibcq.cqe; in qib_resize_cq()
442 n = cq->ibcq.cqe + 1 + head - tail; in qib_resize_cq()
445 if (unlikely((u32)cqe < n)) { in qib_resize_cq()
454 if (tail == (u32) cq->ibcq.cqe) in qib_resize_cq()
459 cq->ibcq.cqe = cqe; in qib_resize_cq()