Lines Matching refs:ibcq

96 	if (head >= (unsigned)cq->ibcq.cqe) {  in rvt_cq_enter()
97 head = cq->ibcq.cqe; in rvt_cq_enter()
110 if (cq->ibcq.event_handler) { in rvt_cq_enter()
113 ev.device = cq->ibcq.device; in rvt_cq_enter()
114 ev.element.cq = &cq->ibcq; in rvt_cq_enter()
116 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context); in rvt_cq_enter()
182 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in send_complete()
200 int rvt_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, in rvt_create_cq() argument
203 struct ib_device *ibdev = ibcq->device; in rvt_create_cq()
205 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); in rvt_create_cq()
291 cq->ibcq.cqe = entries; in rvt_create_cq()
318 int rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in rvt_destroy_cq() argument
320 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); in rvt_destroy_cq()
344 int rvt_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags notify_flags) in rvt_req_notify_cq() argument
346 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); in rvt_req_notify_cq()
380 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in rvt_resize_cq() argument
382 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); 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()
452 if (tail == (u32)cq->ibcq.cqe) in rvt_resize_cq()
457 cq->ibcq.cqe = cqe; in rvt_resize_cq()
518 int rvt_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry) in rvt_poll_cq() argument
520 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); in rvt_poll_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()