Lines Matching refs:wqe
266 static void hfi1_make_bth_deth(struct rvt_qp *qp, struct rvt_swqe *wqe, in hfi1_make_bth_deth() argument
274 if (wqe->wr.opcode == IB_WR_SEND_WITH_IMM) { in hfi1_make_bth_deth()
275 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; in hfi1_make_bth_deth()
281 if (wqe->wr.send_flags & IB_SEND_SOLICITED) in hfi1_make_bth_deth()
285 *pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_bth_deth()
291 ohdr->bth[1] = cpu_to_be32(rvt_get_swqe_remote_qpn(wqe)); in hfi1_make_bth_deth()
292 ohdr->bth[2] = cpu_to_be32(mask_psn(wqe->psn)); in hfi1_make_bth_deth()
298 cpu_to_be32((int)rvt_get_swqe_remote_qkey(wqe) < 0 ? qp->qkey : in hfi1_make_bth_deth()
299 rvt_get_swqe_remote_qkey(wqe)); in hfi1_make_bth_deth()
304 struct rvt_swqe *wqe) in hfi1_make_ud_req_9B() argument
319 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req_9B()
321 extra_bytes = -wqe->length & 3; in hfi1_make_ud_req_9B()
322 nwords = ((wqe->length + extra_bytes) >> 2) + SIZE_OF_CRC; in hfi1_make_ud_req_9B()
325 if (wqe->wr.opcode == IB_WR_SEND_WITH_IMM) in hfi1_make_ud_req_9B()
365 hfi1_make_bth_deth(qp, wqe, ohdr, &pkey, extra_bytes, false); in hfi1_make_ud_req_9B()
375 struct rvt_swqe *wqe) in hfi1_make_ud_req_16B() argument
383 u32 dest_qp = rvt_get_swqe_remote_qpn(wqe); in hfi1_make_ud_req_16B()
391 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req_16B()
404 if (wqe->wr.opcode == IB_WR_SEND_WITH_IMM) in hfi1_make_ud_req_16B()
410 wqe->length); in hfi1_make_ud_req_16B()
411 nwords = ((wqe->length + extra_bytes + SIZE_OF_LT) >> 2) + SIZE_OF_CRC; in hfi1_make_ud_req_16B()
453 pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_ud_req_16B()
457 hfi1_make_bth_deth(qp, wqe, ohdr, &pkey, extra_bytes, true); in hfi1_make_ud_req_16B()
482 struct rvt_swqe *wqe; in hfi1_make_ud_req() local
501 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in hfi1_make_ud_req()
502 rvt_send_complete(qp, wqe, IB_WC_WR_FLUSH_ERR); in hfi1_make_ud_req()
510 wqe = rvt_get_swqe_ptr(qp, qp->s_cur); in hfi1_make_ud_req()
518 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req()
541 ud_loopback(qp, wqe); in hfi1_make_ud_req()
544 rvt_send_complete(qp, wqe, IB_WC_SUCCESS); in hfi1_make_ud_req()
550 ps->s_txreq->s_cur_size = wqe->length; in hfi1_make_ud_req()
554 qp->s_wqe = wqe; in hfi1_make_ud_req()
555 qp->s_sge.sge = wqe->sg_list[0]; in hfi1_make_ud_req()
556 qp->s_sge.sg_list = wqe->sg_list + 1; in hfi1_make_ud_req()
557 qp->s_sge.num_sge = wqe->wr.num_sge; in hfi1_make_ud_req()
558 qp->s_sge.total_len = wqe->length; in hfi1_make_ud_req()