Lines Matching defs:wqe
52 struct rvt_swqe *wqe;
70 wqe = rvt_get_swqe_ptr(qp, qp->s_last);
71 rvt_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR);
84 wqe = rvt_get_swqe_ptr(qp, qp->s_cur);
97 qp->s_psn = wqe->psn;
98 qp->s_sge.sge = wqe->sg_list[0];
99 qp->s_sge.sg_list = wqe->sg_list + 1;
100 qp->s_sge.num_sge = wqe->wr.num_sge;
101 qp->s_sge.total_len = wqe->length;
102 len = wqe->length;
104 switch (wqe->wr.opcode) {
112 if (wqe->wr.opcode == IB_WR_SEND)
118 ohdr->u.imm_data = wqe->wr.ex.imm_data;
121 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
123 qp->s_wqe = wqe;
131 cpu_to_be64(wqe->rdma_wr.remote_addr);
133 cpu_to_be32(wqe->rdma_wr.rkey);
141 if (wqe->wr.opcode == IB_WR_RDMA_WRITE)
147 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data;
149 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
152 qp->s_wqe = wqe;
171 if (wqe->wr.opcode == IB_WR_SEND)
176 ohdr->u.imm_data = wqe->wr.ex.imm_data;
179 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
181 qp->s_wqe = wqe;
195 if (wqe->wr.opcode == IB_WR_RDMA_WRITE)
201 ohdr->u.imm_data = wqe->wr.ex.imm_data;
203 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
206 qp->s_wqe = wqe;