Lines Matching refs:ibcq

54 	if (head >= (unsigned)cq->ibcq.cqe) {  in rvt_cq_enter()
55 head = cq->ibcq.cqe; in rvt_cq_enter()
68 if (cq->ibcq.event_handler) { in rvt_cq_enter()
71 ev.device = cq->ibcq.device; in rvt_cq_enter()
72 ev.element.cq = &cq->ibcq; in rvt_cq_enter()
74 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context); in rvt_cq_enter()
140 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in send_complete()
158 int rvt_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, in rvt_create_cq() argument
161 struct ib_device *ibdev = ibcq->device; in rvt_create_cq()
163 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); in rvt_create_cq()
249 cq->ibcq.cqe = entries; in rvt_create_cq()
276 int rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in rvt_destroy_cq() argument
278 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); in rvt_destroy_cq()
302 int rvt_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags notify_flags) in rvt_req_notify_cq() argument
304 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); in rvt_req_notify_cq()
338 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in rvt_resize_cq() argument
340 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); 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()
410 if (tail == (u32)cq->ibcq.cqe) in rvt_resize_cq()
415 cq->ibcq.cqe = cqe; in rvt_resize_cq()
476 int rvt_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry) in rvt_poll_cq() argument
478 struct rvt_cq *cq = ibcq_to_rvtcq(ibcq); in rvt_poll_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()