Lines Matching refs:wqe

61 	struct ipath_rwqe *wqe;  in ipath_ud_loopback()  local
133 wqe = get_rwqe_ptr(rq, tail); in ipath_ud_loopback()
135 if (!ipath_init_sge(qp, wqe, &rlen, &rsge)) { in ipath_ud_loopback()
149 wc.wr_id = wqe->wr_id; in ipath_ud_loopback()
246 struct ipath_swqe *wqe; in ipath_make_ud_req() local
269 wqe = get_swqe_ptr(qp, qp->s_last); in ipath_make_ud_req()
270 ipath_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR); in ipath_make_ud_req()
277 wqe = get_swqe_ptr(qp, qp->s_cur); in ipath_make_ud_req()
283 ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr; in ipath_make_ud_req()
306 ipath_ud_loopback(qp, wqe); in ipath_make_ud_req()
308 ipath_send_complete(qp, wqe, IB_WC_SUCCESS); in ipath_make_ud_req()
314 extra_bytes = -wqe->length & 3; in ipath_make_ud_req()
315 nwords = (wqe->length + extra_bytes) >> 2; in ipath_make_ud_req()
319 qp->s_cur_size = wqe->length; in ipath_make_ud_req()
322 qp->s_wqe = wqe; in ipath_make_ud_req()
323 qp->s_sge.sge = wqe->sg_list[0]; in ipath_make_ud_req()
324 qp->s_sge.sg_list = wqe->sg_list + 1; in ipath_make_ud_req()
325 qp->s_sge.num_sge = wqe->wr.num_sge; in ipath_make_ud_req()
343 if (wqe->wr.opcode == IB_WR_SEND_WITH_IMM) { in ipath_make_ud_req()
345 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; in ipath_make_ud_req()
363 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in ipath_make_ud_req()
375 cpu_to_be32(wqe->wr.wr.ud.remote_qpn); in ipath_make_ud_req()
381 ohdr->u.ud.deth[0] = cpu_to_be32((int)wqe->wr.wr.ud.remote_qkey < 0 ? in ipath_make_ud_req()
382 qp->qkey : wqe->wr.wr.ud.remote_qkey); in ipath_make_ud_req()