Lines Matching refs:wqe
61 struct ipath_rwqe *wqe;
132 wqe = get_rwqe_ptr(rq, tail);
134 if (!ipath_init_sge(qp, wqe, &rlen, &rsge)) {
148 wc.wr_id = wqe->wr_id;
244 struct ipath_swqe *wqe;
267 wqe = get_swqe_ptr(qp, qp->s_last);
268 ipath_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR);
275 wqe = get_swqe_ptr(qp, qp->s_cur);
281 ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr;
297 ipath_ud_loopback(qp, wqe);
299 ipath_send_complete(qp, wqe, IB_WC_SUCCESS);
305 extra_bytes = -wqe->length & 3;
306 nwords = (wqe->length + extra_bytes) >> 2;
310 qp->s_cur_size = wqe->length;
313 qp->s_wqe = wqe;
314 qp->s_sge.sge = wqe->sg_list[0];
315 qp->s_sge.sg_list = wqe->sg_list + 1;
316 qp->s_sge.num_sge = wqe->wr.num_sge;
334 if (wqe->wr.opcode == IB_WR_SEND_WITH_IMM) {
336 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data;
354 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
366 cpu_to_be32(wqe->wr.wr.ud.remote_qpn);
372 ohdr->u.ud.deth[0] = cpu_to_be32((int)wqe->wr.wr.ud.remote_qkey < 0 ?
373 qp->qkey : wqe->wr.wr.ud.remote_qkey);