• Home
  • Raw
  • Download

Lines Matching refs:wqe

67 	struct rvt_swqe *wqe;  in hfi1_make_uc_req()  local
90 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in hfi1_make_uc_req()
91 rvt_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR); in hfi1_make_uc_req()
113 wqe = rvt_get_swqe_ptr(qp, qp->s_cur); in hfi1_make_uc_req()
129 if (wqe->wr.opcode == IB_WR_REG_MR || in hfi1_make_uc_req()
130 wqe->wr.opcode == IB_WR_LOCAL_INV) { in hfi1_make_uc_req()
138 if (!(wqe->wr.send_flags & RVT_SEND_COMPLETION_ONLY)) { in hfi1_make_uc_req()
140 qp, wqe->wr.ex.invalidate_rkey); in hfi1_make_uc_req()
143 rvt_send_complete(qp, wqe, err ? IB_WC_LOC_PROT_ERR in hfi1_make_uc_req()
152 qp->s_psn = wqe->psn; in hfi1_make_uc_req()
153 qp->s_sge.sge = wqe->sg_list[0]; in hfi1_make_uc_req()
154 qp->s_sge.sg_list = wqe->sg_list + 1; in hfi1_make_uc_req()
155 qp->s_sge.num_sge = wqe->wr.num_sge; in hfi1_make_uc_req()
156 qp->s_sge.total_len = wqe->length; in hfi1_make_uc_req()
157 len = wqe->length; in hfi1_make_uc_req()
159 switch (wqe->wr.opcode) { in hfi1_make_uc_req()
167 if (wqe->wr.opcode == IB_WR_SEND) { in hfi1_make_uc_req()
173 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
176 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_uc_req()
178 qp->s_wqe = wqe; in hfi1_make_uc_req()
186 cpu_to_be64(wqe->rdma_wr.remote_addr); in hfi1_make_uc_req()
188 cpu_to_be32(wqe->rdma_wr.rkey); in hfi1_make_uc_req()
196 if (wqe->wr.opcode == IB_WR_RDMA_WRITE) { in hfi1_make_uc_req()
202 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
204 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_uc_req()
207 qp->s_wqe = wqe; in hfi1_make_uc_req()
227 if (wqe->wr.opcode == IB_WR_SEND) { in hfi1_make_uc_req()
232 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
235 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_uc_req()
237 qp->s_wqe = wqe; in hfi1_make_uc_req()
252 if (wqe->wr.opcode == IB_WR_RDMA_WRITE) { in hfi1_make_uc_req()
258 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
260 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_uc_req()
263 qp->s_wqe = wqe; in hfi1_make_uc_req()