Lines Matching full:cqe

83 						    cq->ibcq.cqe, &head);  in pvrdma_req_notify_cq()
106 int entries = attr->cqe; in pvrdma_create_cq()
133 cq->ibcq.cqe = entries; in pvrdma_create_cq()
187 cmd->cqe = entries; in pvrdma_create_cq()
196 cq->ibcq.cqe = resp->cqe; in pvrdma_create_cq()
289 cq->ibcq.cqe, &head); in _pvrdma_flush_cqe()
294 cq->ibcq.cqe); in _pvrdma_flush_cqe()
295 struct pvrdma_cqe *cqe; in _pvrdma_flush_cqe() local
299 (cq->ibcq.cqe - head + tail); in _pvrdma_flush_cqe()
303 curr = cq->ibcq.cqe - 1; in _pvrdma_flush_cqe()
305 tail = cq->ibcq.cqe - 1; in _pvrdma_flush_cqe()
309 cqe = get_cqe(cq, tail); in _pvrdma_flush_cqe()
310 *cqe = *curr_cqe; in _pvrdma_flush_cqe()
316 cq->ibcq.cqe); in _pvrdma_flush_cqe()
330 struct pvrdma_cqe *cqe; in pvrdma_poll_one() local
334 cq->ibcq.cqe, &head); in pvrdma_poll_one()
348 cqe = get_cqe(cq, head); in pvrdma_poll_one()
350 /* Ensure cqe is valid. */ in pvrdma_poll_one()
352 if (dev->qp_tbl[cqe->qp & 0xffff]) in pvrdma_poll_one()
353 *cur_qp = (struct pvrdma_qp *)dev->qp_tbl[cqe->qp & 0xffff]; in pvrdma_poll_one()
357 wc->opcode = pvrdma_wc_opcode_to_ib(cqe->opcode); in pvrdma_poll_one()
358 wc->status = pvrdma_wc_status_to_ib(cqe->status); in pvrdma_poll_one()
359 wc->wr_id = cqe->wr_id; in pvrdma_poll_one()
361 wc->byte_len = cqe->byte_len; in pvrdma_poll_one()
362 wc->ex.imm_data = cqe->imm_data; in pvrdma_poll_one()
363 wc->src_qp = cqe->src_qp; in pvrdma_poll_one()
364 wc->wc_flags = pvrdma_wc_flags_to_ib(cqe->wc_flags); in pvrdma_poll_one()
365 wc->pkey_index = cqe->pkey_index; in pvrdma_poll_one()
366 wc->slid = cqe->slid; in pvrdma_poll_one()
367 wc->sl = cqe->sl; in pvrdma_poll_one()
368 wc->dlid_path_bits = cqe->dlid_path_bits; in pvrdma_poll_one()
369 wc->port_num = cqe->port_num; in pvrdma_poll_one()
370 wc->vendor_err = cqe->vendor_err; in pvrdma_poll_one()
371 wc->network_hdr_type = pvrdma_network_type_to_ib(cqe->network_hdr_type); in pvrdma_poll_one()
374 pvrdma_idx_ring_inc(&cq->ring_state->rx.cons_head, cq->ibcq.cqe); in pvrdma_poll_one()