Lines Matching refs:cqe
63 if (head >= (unsigned) cq->ibcq.cqe) { in ipath_cq_enter()
64 head = cq->ibcq.cqe; in ipath_cq_enter()
147 if (tail > (u32) cq->ibcq.cqe) in ipath_poll_cq()
148 tail = (u32) cq->ibcq.cqe; in ipath_poll_cq()
154 if (tail >= cq->ibcq.cqe) in ipath_poll_cq()
283 cq->ibcq.cqe = entries; in ipath_create_cq()
371 int ipath_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in ipath_resize_cq() argument
380 if (cqe < 1 || cqe > ib_ipath_max_cqes) { in ipath_resize_cq()
390 sz += sizeof(struct ib_uverbs_wc) * (cqe + 1); in ipath_resize_cq()
392 sz += sizeof(struct ib_wc) * (cqe + 1); in ipath_resize_cq()
415 if (head > (u32) cq->ibcq.cqe) in ipath_resize_cq()
416 head = (u32) cq->ibcq.cqe; in ipath_resize_cq()
418 if (tail > (u32) cq->ibcq.cqe) in ipath_resize_cq()
419 tail = (u32) cq->ibcq.cqe; in ipath_resize_cq()
421 n = cq->ibcq.cqe + 1 + head - tail; in ipath_resize_cq()
424 if (unlikely((u32)cqe < n)) { in ipath_resize_cq()
433 if (tail == (u32) cq->ibcq.cqe) in ipath_resize_cq()
438 cq->ibcq.cqe = cqe; in ipath_resize_cq()