Lines Matching refs:wqe
238 struct qib_swqe *wqe;
261 wqe = get_swqe_ptr(qp, qp->s_last);
262 qib_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR);
269 wqe = get_swqe_ptr(qp, qp->s_cur);
277 ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr;
293 qib_ud_loopback(qp, wqe);
295 qib_send_complete(qp, wqe, IB_WC_SUCCESS);
301 extra_bytes = -wqe->length & 3;
302 nwords = (wqe->length + extra_bytes) >> 2;
306 qp->s_cur_size = wqe->length;
309 qp->s_wqe = wqe;
310 qp->s_sge.sge = wqe->sg_list[0];
311 qp->s_sge.sg_list = wqe->sg_list + 1;
312 qp->s_sge.num_sge = wqe->wr.num_sge;
313 qp->s_sge.total_len = wqe->length;
331 if (wqe->wr.opcode == IB_WR_SEND_WITH_IMM) {
333 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data;
351 if (wqe->wr.send_flags & IB_SEND_SOLICITED)
356 wqe->wr.wr.ud.pkey_index : qp->s_pkey_index);
364 cpu_to_be32(wqe->wr.wr.ud.remote_qpn);
370 ohdr->u.ud.deth[0] = cpu_to_be32((int)wqe->wr.wr.ud.remote_qkey < 0 ?
371 qp->qkey : wqe->wr.wr.ud.remote_qkey);