Lines Matching refs:ibcq

66 	if (head >= (unsigned) cq->ibcq.cqe) {  in qib_cq_enter()
67 head = cq->ibcq.cqe; in qib_cq_enter()
73 if (cq->ibcq.event_handler) { in qib_cq_enter()
76 ev.device = cq->ibcq.device; in qib_cq_enter()
77 ev.element.cq = &cq->ibcq; in qib_cq_enter()
79 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context); in qib_cq_enter()
136 int qib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry) in qib_poll_cq() argument
138 struct qib_cq *cq = to_icq(ibcq); in qib_poll_cq()
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()
195 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in send_complete()
299 cq->ibcq.cqe = entries; in qib_create_cq()
308 ret = &cq->ibcq; in qib_create_cq()
330 int qib_destroy_cq(struct ib_cq *ibcq) in qib_destroy_cq() argument
332 struct qib_ibdev *dev = to_idev(ibcq->device); in qib_destroy_cq()
333 struct qib_cq *cq = to_icq(ibcq); in qib_destroy_cq()
358 int qib_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags notify_flags) in qib_req_notify_cq() argument
360 struct qib_cq *cq = to_icq(ibcq); in qib_req_notify_cq()
387 int qib_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in qib_resize_cq() argument
389 struct qib_cq *cq = to_icq(ibcq); 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()
449 if (tail == (u32) cq->ibcq.cqe) in qib_resize_cq()
454 cq->ibcq.cqe = cqe; in qib_resize_cq()
463 struct qib_ibdev *dev = to_idev(ibcq->device); in qib_resize_cq()