Lines Matching refs:wr
89 * @wr: the work request
99 u32 length, struct ib_send_wr *wr,
116 qp = ipath_lookup_qpn(&dev->qp_table, wr->wr.ud.remote_qpn);
126 ((int) wr->wr.ud.remote_qkey < 0
127 ? qp->qkey : wr->wr.ud.remote_qkey) != qp->qkey)) {
139 if (wr->opcode == IB_WR_SEND_WITH_IMM) {
141 wc->imm_data = wr->imm_data;
147 if (wr->num_sge > 1) {
148 rsge.sg_list = kmalloc((wr->num_sge - 1) *
221 ah_attr = &to_iah(wr->wr.ud.ah)->attr;
268 wr->send_flags & IB_SEND_SOLICITED);
280 * @wr: the work request
286 int ipath_post_ud_send(struct ipath_qp *qp, struct ib_send_wr *wr)
309 if (wr->wr.ud.ah->pd != qp->ibqp.pd) {
315 if (wr->num_sge > qp->s_max_sge) {
320 if (wr->num_sge > 1) {
338 for (i = 0; i < wr->num_sge; i++) {
340 if (to_ipd(qp->ibqp.pd)->user && wr->sg_list[i].lkey == 0) {
345 if (wr->sg_list[i].length == 0)
349 &wr->sg_list[i], 0)) {
353 len += wr->sg_list[i].length;
365 ah_attr = &to_iah(wr->wr.ud.ah)->attr;
384 ipath_ud_loopback(qp, &ss, len, wr, &wc);
398 cpu_to_be16(((wr->opcode ==
420 if (wr->opcode == IB_WR_SEND_WITH_IMM) {
421 ohdr->u.ud.imm_data = wr->imm_data;
422 wc.imm_data = wr->imm_data;
425 } else if (wr->opcode == IB_WR_SEND) {
445 if (wr->send_flags & IB_SEND_SOLICITED)
457 cpu_to_be32(wr->wr.ud.remote_qpn);
463 ohdr->u.ud.deth[0] = cpu_to_be32((int)wr->wr.ud.remote_qkey < 0 ?
464 qp->qkey : wr->wr.ud.remote_qkey);
473 (wr->send_flags & IB_SEND_SIGNALED)) {
474 wc.wr_id = wr->wr_id;