Lines Matching refs:wqe
49 struct qib_swqe *wqe;
70 wqe = get_swqe_ptr(qp, qp->s_last);
71 qib_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR);
84 wqe = get_swqe_ptr(qp, qp->s_cur);
97 wqe->psn = qp->s_next_psn;
99 qp->s_sge.sge = wqe->sg_list[0];
100 qp->s_sge.sg_list = wqe->sg_list + 1;
101 qp->s_sge.num_sge = wqe->wr.num_sge;
102 qp->s_sge.total_len = wqe->length;
103 len = wqe->length;
105 switch (wqe->wr.opcode) {
113 if (wqe->wr.opcode == IB_WR_SEND)
119 ohdr->u.imm_data = wqe->wr.ex.imm_data;
122 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
124 qp->s_wqe = wqe;
132 cpu_to_be64(wqe->wr.wr.rdma.remote_addr);
134 cpu_to_be32(wqe->wr.wr.rdma.rkey);
142 if (wqe->wr.opcode == IB_WR_RDMA_WRITE)
148 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data;
150 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
153 qp->s_wqe = wqe;
172 if (wqe->wr.opcode == IB_WR_SEND)
177 ohdr->u.imm_data = wqe->wr.ex.imm_data;
180 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
182 qp->s_wqe = wqe;
196 if (wqe->wr.opcode == IB_WR_RDMA_WRITE)
202 ohdr->u.imm_data = wqe->wr.ex.imm_data;
204 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
207 qp->s_wqe = wqe;