Lines Matching refs:wqe
26 struct rvt_swqe *wqe; in hfi1_make_uc_req() local
49 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in hfi1_make_uc_req()
50 rvt_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR); in hfi1_make_uc_req()
72 wqe = rvt_get_swqe_ptr(qp, qp->s_cur); in hfi1_make_uc_req()
88 if (wqe->wr.opcode == IB_WR_REG_MR || in hfi1_make_uc_req()
89 wqe->wr.opcode == IB_WR_LOCAL_INV) { in hfi1_make_uc_req()
97 if (!(wqe->wr.send_flags & RVT_SEND_COMPLETION_ONLY)) { in hfi1_make_uc_req()
99 qp, wqe->wr.ex.invalidate_rkey); in hfi1_make_uc_req()
102 rvt_send_complete(qp, wqe, err ? IB_WC_LOC_PROT_ERR in hfi1_make_uc_req()
111 qp->s_psn = wqe->psn; in hfi1_make_uc_req()
112 qp->s_sge.sge = wqe->sg_list[0]; in hfi1_make_uc_req()
113 qp->s_sge.sg_list = wqe->sg_list + 1; in hfi1_make_uc_req()
114 qp->s_sge.num_sge = wqe->wr.num_sge; in hfi1_make_uc_req()
115 qp->s_sge.total_len = wqe->length; in hfi1_make_uc_req()
116 len = wqe->length; in hfi1_make_uc_req()
118 switch (wqe->wr.opcode) { in hfi1_make_uc_req()
126 if (wqe->wr.opcode == IB_WR_SEND) { in hfi1_make_uc_req()
132 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
135 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_uc_req()
137 qp->s_wqe = wqe; in hfi1_make_uc_req()
145 cpu_to_be64(wqe->rdma_wr.remote_addr); in hfi1_make_uc_req()
147 cpu_to_be32(wqe->rdma_wr.rkey); in hfi1_make_uc_req()
155 if (wqe->wr.opcode == IB_WR_RDMA_WRITE) { in hfi1_make_uc_req()
161 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
163 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_uc_req()
166 qp->s_wqe = wqe; in hfi1_make_uc_req()
186 if (wqe->wr.opcode == IB_WR_SEND) { in hfi1_make_uc_req()
191 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
194 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_uc_req()
196 qp->s_wqe = wqe; in hfi1_make_uc_req()
211 if (wqe->wr.opcode == IB_WR_RDMA_WRITE) { in hfi1_make_uc_req()
217 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
219 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_uc_req()
222 qp->s_wqe = wqe; in hfi1_make_uc_req()