Lines Matching refs:wqe
49 struct ipath_swqe *wqe;
70 wqe = get_swqe_ptr(qp, qp->s_last);
71 ipath_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR);
84 wqe = get_swqe_ptr(qp, qp->s_cur);
97 qp->s_psn = wqe->psn = qp->s_next_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_len = len = wqe->length;
102 switch (wqe->wr.opcode) {
110 if (wqe->wr.opcode == IB_WR_SEND)
116 ohdr->u.imm_data = wqe->wr.ex.imm_data;
119 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
121 qp->s_wqe = wqe;
129 cpu_to_be64(wqe->wr.wr.rdma.remote_addr);
131 cpu_to_be32(wqe->wr.wr.rdma.rkey);
139 if (wqe->wr.opcode == IB_WR_RDMA_WRITE)
145 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data;
147 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
150 qp->s_wqe = wqe;
169 if (wqe->wr.opcode == IB_WR_SEND)
174 ohdr->u.imm_data = wqe->wr.ex.imm_data;
177 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
179 qp->s_wqe = wqe;
193 if (wqe->wr.opcode == IB_WR_RDMA_WRITE)
199 ohdr->u.imm_data = wqe->wr.ex.imm_data;
201 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
204 qp->s_wqe = wqe;