Lines Matching refs:ibcq
63 int pvrdma_req_notify_cq(struct ib_cq *ibcq, in pvrdma_req_notify_cq() argument
66 struct pvrdma_dev *dev = to_vdev(ibcq->device); in pvrdma_req_notify_cq()
67 struct pvrdma_cq *cq = to_vcq(ibcq); in pvrdma_req_notify_cq()
83 cq->ibcq.cqe, &head); in pvrdma_req_notify_cq()
101 int pvrdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, in pvrdma_create_cq() argument
104 struct ib_device *ibdev = ibcq->device; in pvrdma_create_cq()
107 struct pvrdma_cq *cq = to_vcq(ibcq); in pvrdma_create_cq()
132 cq->ibcq.cqe = entries; in pvrdma_create_cq()
195 cq->ibcq.cqe = resp->cqe; in pvrdma_create_cq()
209 pvrdma_destroy_cq(&cq->ibcq, udata); in pvrdma_create_cq()
288 cq->ibcq.cqe, &head); in _pvrdma_flush_cqe()
293 cq->ibcq.cqe); in _pvrdma_flush_cqe()
298 (cq->ibcq.cqe - head + tail); in _pvrdma_flush_cqe()
302 curr = cq->ibcq.cqe - 1; in _pvrdma_flush_cqe()
304 tail = cq->ibcq.cqe - 1; in _pvrdma_flush_cqe()
315 cq->ibcq.cqe); in _pvrdma_flush_cqe()
325 struct pvrdma_dev *dev = to_vdev(cq->ibcq.device); in pvrdma_poll_one()
333 cq->ibcq.cqe, &head); in pvrdma_poll_one()
373 pvrdma_idx_ring_inc(&cq->ring_state->rx.cons_head, cq->ibcq.cqe); in pvrdma_poll_one()
386 int pvrdma_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in pvrdma_poll_cq() argument
388 struct pvrdma_cq *cq = to_vcq(ibcq); in pvrdma_poll_cq()