Lines Matching refs:ohdr
102 * @ohdr: a pointer to the IB header being constructed
110 struct ib_other_headers *ohdr,
210 ohdr->u.aeth = rvt_compute_aeth(qp);
258 ohdr->u.at.aeth = rvt_compute_aeth(qp);
259 ib_u64_put(e->atomic_data, &ohdr->u.at.atomic_ack_eth);
260 hwords += sizeof(ohdr->u.at) / sizeof(u32);
281 ohdr->u.aeth = rvt_compute_aeth(qp);
328 hdrlen = hfi1_build_tid_rdma_write_resp(qp, e, ohdr, &bth1,
351 delta = hfi1_build_tid_rdma_read_resp(qp, e, ohdr, &bth0,
380 ohdr->u.aeth =
385 ohdr->u.aeth = rvt_compute_aeth(qp);
398 hfi1_make_ruc_header(qp, ohdr, bth0, bth1, bth2, middle, ps);
433 struct ib_other_headers *ohdr;
460 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth;
462 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth;
468 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth;
470 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth;
475 make_rc_ack(dev, qp, ohdr, ps))
610 ohdr->u.imm_data = wqe->wr.ex.imm_data;
615 ohdr->u.ieth = cpu_to_be32(
637 &ohdr->u.rc.reth);
638 ohdr->u.rc.reth.rkey =
640 ohdr->u.rc.reth.length = cpu_to_be32(len);
653 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data;
676 hwords += hfi1_build_tid_rdma_write_req(qp, wqe, ohdr,
785 &ohdr->u.rc.reth);
786 ohdr->u.rc.reth.rkey =
788 ohdr->u.rc.reth.length = cpu_to_be32(len);
790 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
855 delta = hfi1_build_tid_rdma_read_req(qp, wqe, ohdr,
892 &ohdr->u.atomic_eth);
894 &ohdr->u.atomic_eth);
898 &ohdr->u.atomic_eth);
899 put_ib_ateth_compare(0, &ohdr->u.atomic_eth);
902 &ohdr->u.atomic_eth);
903 ohdr->u.atomic_eth.rkey = cpu_to_be32(
966 ohdr->u.imm_data = wqe->wr.ex.imm_data;
971 ohdr->u.ieth = cpu_to_be32(wqe->wr.ex.invalidate_rkey);
1011 ohdr->u.imm_data = wqe->wr.ex.imm_data;
1035 &ohdr->u.rc.reth);
1036 ohdr->u.rc.reth.rkey =
1038 ohdr->u.rc.reth.length = cpu_to_be32(wqe->length - len);
1040 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
1065 hwords += hfi1_build_tid_rdma_write_req(qp, wqe, ohdr, &bth1,
1116 delta = hfi1_build_tid_rdma_read_packet(wqe, ohdr, &bth1,
1159 delta = hfi1_build_tid_rdma_read_req(qp, wqe, ohdr, &bth1,
1193 ohdr,
1222 struct ib_other_headers *ohdr,
1226 ohdr->u.aeth = cpu_to_be32((qp->r_msn & IB_MSN_MASK) |
1230 ohdr->u.aeth = rvt_compute_aeth(qp);
1232 ohdr->bth[0] = cpu_to_be32(bth0);
1233 ohdr->bth[1] = cpu_to_be32(bth1 | qp->remote_qpn);
1234 ohdr->bth[2] = cpu_to_be32(mask_psn(qp->r_ack_psn));
1270 struct ib_other_headers *ohdr;
1276 ohdr = &hdr->u.oth;
1284 ohdr = &hdr->u.l.oth;
1310 hfi1_make_bth_aeth(qp, ohdr, bth0, bth1);
1323 struct ib_other_headers *ohdr;
1331 ohdr = &hdr->u.oth;
1342 ohdr = &hdr->u.l.oth;
1363 hfi1_make_bth_aeth(qp, ohdr, bth0, bth1);
1716 struct ib_other_headers *ohdr = hfi1_get_rc_ohdr(opah);
1717 u8 opcode = ib_bth_get_opcode(ohdr);
1727 psn = ib_bth_get_psn(ohdr) | IB_BTH_REQ_ACK;
1728 ohdr->bth[2] = cpu_to_be32(psn);
1737 struct ib_other_headers *ohdr;
1748 ohdr = hfi1_get_rc_ohdr(opah);
1749 opcode = ib_bth_get_opcode(ohdr);
1759 psn = ib_bth_get_psn(ohdr);
2351 struct ib_other_headers *ohdr = packet->ohdr;
2358 u32 psn = ib_bth_get_psn(packet->ohdr);
2377 aeth = be32_to_cpu(ohdr->u.aeth);
2403 aeth = be32_to_cpu(ohdr->u.aeth);
2405 val = ib_u64_get(&ohdr->u.at.atomic_ack_eth);
2460 aeth = be32_to_cpu(ohdr->u.aeth);
2495 aeth = be32_to_cpu(ohdr->u.aeth);
2538 * @ohdr: the other headers for this packet
2551 static noinline int rc_rcv_error(struct ib_other_headers *ohdr, void *data,
2621 reth = &ohdr->u.rc.reth;
2812 struct ib_other_headers *ohdr = packet->ohdr;
2815 u32 psn = ib_bth_get_psn(packet->ohdr);
2833 opfn_trigger_conn_request(qp, be32_to_cpu(ohdr->bth[1]));
2850 if (rc_rcv_error(ohdr, data, qp, opcode, psn, diff, rcd))
2946 wc.ex.imm_data = ohdr->u.imm_data;
2951 rkey = be32_to_cpu(ohdr->u.ieth);
3007 rvt_recv_cq(qp, &wc, ib_bth_is_solicited(ohdr));
3018 reth = &ohdr->u.rc.reth;
3052 wc.ex.imm_data = ohdr->u.rc.imm_data;
3075 reth = &ohdr->u.rc.reth;
3126 struct ib_atomic_eth *ateth = &ohdr->u.atomic_eth;
3263 psn = ib_bth_get_psn(packet->ohdr);
3264 opcode = ib_bth_get_opcode(packet->ohdr);