Lines Matching defs:ibcq
63 if (head >= (unsigned) cq->ibcq.cqe) {
64 head = cq->ibcq.cqe;
70 if (cq->ibcq.event_handler) {
73 ev.device = cq->ibcq.device;
74 ev.element.cq = &cq->ibcq;
76 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context);
115 to_idev(cq->ibcq.device)->n_wqe_errs++;
120 * @ibcq: the completion queue to poll
129 int ipath_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
131 struct ipath_cq *cq = to_icq(ibcq);
147 if (tail > (u32) cq->ibcq.cqe)
148 tail = (u32) cq->ibcq.cqe;
154 if (tail >= cq->ibcq.cqe)
181 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context);
279 * ib_create_cq() will initialize cq->ibcq except for cq->ibcq.cqe.
283 cq->ibcq.cqe = entries;
292 ret = &cq->ibcq;
308 * @ibcq: the completion queue to destroy.
314 int ipath_destroy_cq(struct ib_cq *ibcq)
316 struct ipath_ibdev *dev = to_idev(ibcq->device);
317 struct ipath_cq *cq = to_icq(ibcq);
334 * @ibcq: the completion queue
342 int ipath_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags notify_flags)
344 struct ipath_cq *cq = to_icq(ibcq);
367 * @ibcq: the completion queue
371 int ipath_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata)
373 struct ipath_cq *cq = to_icq(ibcq);
415 if (head > (u32) cq->ibcq.cqe)
416 head = (u32) cq->ibcq.cqe;
418 if (tail > (u32) cq->ibcq.cqe)
419 tail = (u32) cq->ibcq.cqe;
421 n = cq->ibcq.cqe + 1 + head - tail;
433 if (tail == (u32) cq->ibcq.cqe)
438 cq->ibcq.cqe = cqe;
447 struct ipath_ibdev *dev = to_idev(ibcq->device);