Lines Matching defs:ohdr
55 * @ohdr: a pointer to the IB header being constructed
63 struct ib_other_headers *ohdr, u32 pmtu)
132 ohdr->u.aeth = rvt_compute_aeth(qp);
141 ohdr->u.at.aeth = rvt_compute_aeth(qp);
142 ib_u64_put(e->atomic_data, &ohdr->u.at.atomic_ack_eth);
143 hwords += sizeof(ohdr->u.at) / sizeof(u32);
162 ohdr->u.aeth = rvt_compute_aeth(qp);
184 ohdr->u.aeth =
189 ohdr->u.aeth = rvt_compute_aeth(qp);
198 qib_make_ruc_header(qp, ohdr, bth0, bth2);
220 struct ib_other_headers *ohdr;
232 ohdr = &priv->s_hdr->u.oth;
234 ohdr = &priv->s_hdr->u.l.oth;
238 qib_make_rc_ack(dev, qp, ohdr, pmtu))
329 ohdr->u.imm_data = wqe->wr.ex.imm_data;
348 ohdr->u.rc.reth.vaddr =
350 ohdr->u.rc.reth.rkey =
352 ohdr->u.rc.reth.length = cpu_to_be32(len);
364 ohdr->u.rc.imm_data =
391 ohdr->u.rc.reth.vaddr =
393 ohdr->u.rc.reth.rkey =
395 ohdr->u.rc.reth.length = cpu_to_be32(len);
397 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
424 &ohdr->u.atomic_eth);
426 &ohdr->u.atomic_eth);
430 &ohdr->u.atomic_eth);
431 put_ib_ateth_compare(0, &ohdr->u.atomic_eth);
434 &ohdr->u.atomic_eth);
435 ohdr->u.atomic_eth.rkey = cpu_to_be32(
492 ohdr->u.imm_data = wqe->wr.ex.imm_data;
531 ohdr->u.imm_data = wqe->wr.ex.imm_data;
553 ohdr->u.rc.reth.vaddr =
555 ohdr->u.rc.reth.rkey =
557 ohdr->u.rc.reth.length = cpu_to_be32(wqe->length - len);
559 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
582 qib_make_ruc_header(qp, ohdr, bth0 | (qp->s_state << 24), bth2);
610 struct ib_other_headers *ohdr;
624 ohdr = &hdr.u.oth;
633 ohdr = &hdr.u.l.oth;
641 ohdr->u.aeth = cpu_to_be32((qp->r_msn & IB_MSN_MASK) |
645 ohdr->u.aeth = rvt_compute_aeth(qp);
653 ohdr->bth[0] = cpu_to_be32(bth0);
654 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn);
655 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & QIB_PSN_MASK);
884 struct ib_other_headers *ohdr;
894 ohdr = &hdr->u.oth;
896 ohdr = &hdr->u.l.oth;
898 opcode = be32_to_cpu(ohdr->bth[0]) >> 24;
906 psn = be32_to_cpu(ohdr->bth[2]);
1255 * @ohdr: the other headers for this packet
1270 struct ib_other_headers *ohdr,
1322 aeth = be32_to_cpu(ohdr->u.aeth);
1348 aeth = be32_to_cpu(ohdr->u.aeth);
1350 val = ib_u64_get(&ohdr->u.at.atomic_ack_eth);
1406 aeth = be32_to_cpu(ohdr->u.aeth);
1410 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1435 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1447 aeth = be32_to_cpu(ohdr->u.aeth);
1479 * @ohdr: the other headers for this packet
1493 static int qib_rc_rcv_error(struct ib_other_headers *ohdr,
1590 reth = &ohdr->u.rc.reth;
1718 struct ib_other_headers *ohdr;
1732 ohdr = &hdr->u.oth;
1735 ohdr = &hdr->u.l.oth;
1739 opcode = be32_to_cpu(ohdr->bth[0]);
1743 psn = be32_to_cpu(ohdr->bth[2]);
1754 qib_rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn,
1762 if (qib_rc_rcv_error(ohdr, data, qp, opcode, psn, diff, rcd))
1848 wc.ex.imm_data = ohdr->u.imm_data;
1859 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1891 rvt_recv_cq(qp, &wc, ib_bth_is_solicited(ohdr));
1900 reth = &ohdr->u.rc.reth;
1934 wc.ex.imm_data = ohdr->u.rc.imm_data;
1961 reth = &ohdr->u.rc.reth;
2032 ateth = &ohdr->u.atomic_eth;