Lines Matching defs:cqe

2961 	int cqe = attr->cqe;
2969 if (cqe < 1 || cqe > dev_attr->max_cq_wqes) {
2978 entries = bnxt_re_init_depth(cqe + 1, uctx);
3027 cq->ib_cq.cqe = entries;
3087 int bnxt_re_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata)
3113 if (cqe < 1 || cqe > dev_attr->max_cq_wqes) {
3114 ibdev_err(&rdev->ibdev, "Resize CQ %#x failed - out of range cqe %d",
3115 cq->qplib_cq.id, cqe);
3120 entries = bnxt_re_init_depth(cqe + 1, uctx);
3156 cq->ib_cq.cqe = cq->resize_cqe;
3255 static void bnxt_re_process_req_wc(struct ib_wc *wc, struct bnxt_qplib_cqe *cqe)
3257 switch (cqe->type) {
3296 wc->status = __req_to_ib_wc_status(cqe->status);
3389 struct bnxt_qplib_cqe *cqe)
3410 tbl_idx = cqe->wr_id;
3422 /* Store this cqe */
3423 memcpy(&sqp_entry->cqe, cqe, sizeof(struct bnxt_qplib_cqe));
3426 /* Find packet type from the cqe */
3428 pkt_type = bnxt_re_check_packet_type(cqe->raweth_qp1_flags,
3429 cqe->raweth_qp1_flags2);
3500 struct bnxt_qplib_cqe *cqe)
3503 wc->status = __rawqp1_to_ib_wc_status(cqe->status);
3547 struct bnxt_qplib_cqe *cqe)
3550 wc->status = __rc_to_ib_wc_status(cqe->status);
3552 if (cqe->flags & CQ_RES_RC_FLAGS_IMM)
3554 if (cqe->flags & CQ_RES_RC_FLAGS_INV)
3556 if ((cqe->flags & (CQ_RES_RC_FLAGS_RDMA | CQ_RES_RC_FLAGS_IMM)) ==
3563 struct bnxt_qplib_cqe *cqe)
3574 tbl_idx = cqe->wr_id;
3578 orig_cqe = &sqp_entry->cqe;
3611 struct bnxt_qplib_cqe *cqe)
3619 wc->status = __rc_to_ib_wc_status(cqe->status);
3621 if (cqe->flags & CQ_RES_UD_FLAGS_IMM)
3626 memcpy(wc->smac, cqe->smac, ETH_ALEN);
3628 if (cqe->flags & CQ_RES_UD_FLAGS_META_FORMAT_VLAN) {
3629 vlan_id = (cqe->cfa_meta & 0xFFF);
3636 nw_type = (cqe->flags & CQ_RES_UD_FLAGS_ROCE_IP_VER_MASK) >>
3670 struct bnxt_qplib_cqe *cqe;
3694 cqe = &cq->cql[0];
3697 ncqe = bnxt_qplib_poll_cq(&cq->qplib_cq, cqe, budget, &lib_qp);
3712 cqe + ncqe,
3718 for (i = 0; i < ncqe; i++, cqe++) {
3722 wc->wr_id = cqe->wr_id;
3723 wc->byte_len = cqe->length;
3726 (unsigned long)(cqe->qp_handle),
3729 wc->ex.imm_data = cqe->immdata;
3730 wc->src_qp = cqe->src_qp;
3731 memcpy(wc->smac, cqe->smac, ETH_ALEN);
3733 wc->vendor_err = cqe->status;
3735 switch (cqe->opcode) {
3746 bnxt_re_process_req_wc(wc, cqe);
3749 if (!cqe->status) {
3753 (qp, cqe);
3758 cqe->status = -1;
3764 tbl_idx = cqe->wr_id;
3767 bnxt_re_process_res_rawqp1_wc(wc, cqe);
3770 bnxt_re_process_res_rc_wc(wc, cqe);
3779 if (cqe->status) {
3783 (qp, wc, cqe);
3787 bnxt_re_process_res_ud_wc(qp, wc, cqe);
3792 cqe->opcode);