Lines Matching refs:wqe

49 	struct ipath_swqe *wqe;  in ipath_make_uc_req()  local
70 wqe = get_swqe_ptr(qp, qp->s_last); in ipath_make_uc_req()
71 ipath_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR); in ipath_make_uc_req()
84 wqe = get_swqe_ptr(qp, qp->s_cur); in ipath_make_uc_req()
97 qp->s_psn = wqe->psn = qp->s_next_psn; in ipath_make_uc_req()
98 qp->s_sge.sge = wqe->sg_list[0]; in ipath_make_uc_req()
99 qp->s_sge.sg_list = wqe->sg_list + 1; in ipath_make_uc_req()
100 qp->s_sge.num_sge = wqe->wr.num_sge; in ipath_make_uc_req()
101 qp->s_len = len = wqe->length; in ipath_make_uc_req()
102 switch (wqe->wr.opcode) { in ipath_make_uc_req()
110 if (wqe->wr.opcode == IB_WR_SEND) in ipath_make_uc_req()
116 ohdr->u.imm_data = wqe->wr.ex.imm_data; in ipath_make_uc_req()
119 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in ipath_make_uc_req()
121 qp->s_wqe = wqe; in ipath_make_uc_req()
129 cpu_to_be64(wqe->wr.wr.rdma.remote_addr); in ipath_make_uc_req()
131 cpu_to_be32(wqe->wr.wr.rdma.rkey); in ipath_make_uc_req()
139 if (wqe->wr.opcode == IB_WR_RDMA_WRITE) in ipath_make_uc_req()
145 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in ipath_make_uc_req()
147 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in ipath_make_uc_req()
150 qp->s_wqe = wqe; in ipath_make_uc_req()
169 if (wqe->wr.opcode == IB_WR_SEND) in ipath_make_uc_req()
174 ohdr->u.imm_data = wqe->wr.ex.imm_data; in ipath_make_uc_req()
177 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in ipath_make_uc_req()
179 qp->s_wqe = wqe; in ipath_make_uc_req()
193 if (wqe->wr.opcode == IB_WR_RDMA_WRITE) in ipath_make_uc_req()
199 ohdr->u.imm_data = wqe->wr.ex.imm_data; in ipath_make_uc_req()
201 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in ipath_make_uc_req()
204 qp->s_wqe = wqe; in ipath_make_uc_req()