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);
219 struct ib_other_headers *ohdr;
231 ohdr = &priv->s_hdr->u.oth;
233 ohdr = &priv->s_hdr->u.l.oth;
237 qib_make_rc_ack(dev, qp, ohdr, pmtu))
328 ohdr->u.imm_data = wqe->wr.ex.imm_data;
347 ohdr->u.rc.reth.vaddr =
349 ohdr->u.rc.reth.rkey =
351 ohdr->u.rc.reth.length = cpu_to_be32(len);
363 ohdr->u.rc.imm_data =
390 ohdr->u.rc.reth.vaddr =
392 ohdr->u.rc.reth.rkey =
394 ohdr->u.rc.reth.length = cpu_to_be32(len);
396 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
423 &ohdr->u.atomic_eth);
425 &ohdr->u.atomic_eth);
429 &ohdr->u.atomic_eth);
430 put_ib_ateth_compare(0, &ohdr->u.atomic_eth);
433 &ohdr->u.atomic_eth);
434 ohdr->u.atomic_eth.rkey = cpu_to_be32(
491 ohdr->u.imm_data = wqe->wr.ex.imm_data;
530 ohdr->u.imm_data = wqe->wr.ex.imm_data;
552 ohdr->u.rc.reth.vaddr =
554 ohdr->u.rc.reth.rkey =
556 ohdr->u.rc.reth.length = cpu_to_be32(wqe->length - len);
558 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
581 qib_make_ruc_header(qp, ohdr, bth0 | (qp->s_state << 24), bth2);
609 struct ib_other_headers *ohdr;
623 ohdr = &hdr.u.oth;
632 ohdr = &hdr.u.l.oth;
640 ohdr->u.aeth = cpu_to_be32((qp->r_msn & IB_MSN_MASK) |
644 ohdr->u.aeth = rvt_compute_aeth(qp);
652 ohdr->bth[0] = cpu_to_be32(bth0);
653 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn);
654 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & QIB_PSN_MASK);
883 struct ib_other_headers *ohdr;
893 ohdr = &hdr->u.oth;
895 ohdr = &hdr->u.l.oth;
897 opcode = be32_to_cpu(ohdr->bth[0]) >> 24;
905 psn = be32_to_cpu(ohdr->bth[2]);
1254 * @ohdr: the other headers for this packet
1268 struct ib_other_headers *ohdr,
1320 aeth = be32_to_cpu(ohdr->u.aeth);
1346 aeth = be32_to_cpu(ohdr->u.aeth);
1348 val = ib_u64_get(&ohdr->u.at.atomic_ack_eth);
1404 aeth = be32_to_cpu(ohdr->u.aeth);
1408 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1433 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1445 aeth = be32_to_cpu(ohdr->u.aeth);
1477 * @ohdr: the other headers for this packet
1490 static int qib_rc_rcv_error(struct ib_other_headers *ohdr,
1587 reth = &ohdr->u.rc.reth;
1715 struct ib_other_headers *ohdr;
1729 ohdr = &hdr->u.oth;
1732 ohdr = &hdr->u.l.oth;
1736 opcode = be32_to_cpu(ohdr->bth[0]);
1740 psn = be32_to_cpu(ohdr->bth[2]);
1751 qib_rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn,
1759 if (qib_rc_rcv_error(ohdr, data, qp, opcode, psn, diff, rcd))
1845 wc.ex.imm_data = ohdr->u.imm_data;
1856 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1888 rvt_recv_cq(qp, &wc, ib_bth_is_solicited(ohdr));
1897 reth = &ohdr->u.rc.reth;
1931 wc.ex.imm_data = ohdr->u.rc.imm_data;
1958 reth = &ohdr->u.rc.reth;
2029 ateth = &ohdr->u.atomic_eth;