Lines Matching refs:ibcq

63 	if (head >= (unsigned) cq->ibcq.cqe) {  in ipath_cq_enter()
64 head = cq->ibcq.cqe; in ipath_cq_enter()
70 if (cq->ibcq.event_handler) { in ipath_cq_enter()
73 ev.device = cq->ibcq.device; in ipath_cq_enter()
74 ev.element.cq = &cq->ibcq; in ipath_cq_enter()
76 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context); in ipath_cq_enter()
115 to_idev(cq->ibcq.device)->n_wqe_errs++; in ipath_cq_enter()
129 int ipath_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry) in ipath_poll_cq() argument
131 struct ipath_cq *cq = to_icq(ibcq); in ipath_poll_cq()
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()
181 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in send_complete()
283 cq->ibcq.cqe = entries; in ipath_create_cq()
292 ret = &cq->ibcq; in ipath_create_cq()
314 int ipath_destroy_cq(struct ib_cq *ibcq) in ipath_destroy_cq() argument
316 struct ipath_ibdev *dev = to_idev(ibcq->device); in ipath_destroy_cq()
317 struct ipath_cq *cq = to_icq(ibcq); in ipath_destroy_cq()
342 int ipath_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags notify_flags) in ipath_req_notify_cq() argument
344 struct ipath_cq *cq = to_icq(ibcq); in ipath_req_notify_cq()
371 int ipath_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in ipath_resize_cq() argument
373 struct ipath_cq *cq = to_icq(ibcq); 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()
433 if (tail == (u32) cq->ibcq.cqe) in ipath_resize_cq()
438 cq->ibcq.cqe = cqe; in ipath_resize_cq()
447 struct ipath_ibdev *dev = to_idev(ibcq->device); in ipath_resize_cq()