Lines Matching refs:wqe
53 struct rvt_swqe *wqe; in qib_make_uc_req() local
71 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in qib_make_uc_req()
72 rvt_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR); in qib_make_uc_req()
85 wqe = rvt_get_swqe_ptr(qp, qp->s_cur); in qib_make_uc_req()
98 qp->s_psn = wqe->psn; in qib_make_uc_req()
99 qp->s_sge.sge = wqe->sg_list[0]; in qib_make_uc_req()
100 qp->s_sge.sg_list = wqe->sg_list + 1; in qib_make_uc_req()
101 qp->s_sge.num_sge = wqe->wr.num_sge; in qib_make_uc_req()
102 qp->s_sge.total_len = wqe->length; in qib_make_uc_req()
103 len = wqe->length; in qib_make_uc_req()
105 switch (wqe->wr.opcode) { in qib_make_uc_req()
113 if (wqe->wr.opcode == IB_WR_SEND) in qib_make_uc_req()
119 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req()
122 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in qib_make_uc_req()
124 qp->s_wqe = wqe; in qib_make_uc_req()
132 cpu_to_be64(wqe->rdma_wr.remote_addr); in qib_make_uc_req()
134 cpu_to_be32(wqe->rdma_wr.rkey); in qib_make_uc_req()
142 if (wqe->wr.opcode == IB_WR_RDMA_WRITE) in qib_make_uc_req()
148 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req()
150 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in qib_make_uc_req()
153 qp->s_wqe = wqe; in qib_make_uc_req()
172 if (wqe->wr.opcode == IB_WR_SEND) in qib_make_uc_req()
177 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req()
180 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in qib_make_uc_req()
182 qp->s_wqe = wqe; in qib_make_uc_req()
196 if (wqe->wr.opcode == IB_WR_RDMA_WRITE) in qib_make_uc_req()
202 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req()
204 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in qib_make_uc_req()
207 qp->s_wqe = wqe; in qib_make_uc_req()