Lines Matching refs:ohdr

86 		       struct ib_other_headers *ohdr,  in make_rc_ack()  argument
164 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack()
173 ohdr->u.at.aeth = rvt_compute_aeth(qp); in make_rc_ack()
174 ib_u64_put(e->atomic_data, &ohdr->u.at.atomic_ack_eth); in make_rc_ack()
175 hwords += sizeof(ohdr->u.at) / sizeof(u32); in make_rc_ack()
195 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack()
217 ohdr->u.aeth = in make_rc_ack()
222 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack()
232 hfi1_make_ruc_header(qp, ohdr, bth0, bth2, middle, ps); in make_rc_ack()
260 struct ib_other_headers *ohdr; in hfi1_make_rc_req() local
281 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_rc_req()
283 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_rc_req()
289 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; in hfi1_make_rc_req()
291 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; in hfi1_make_rc_req()
296 make_rc_ack(dev, qp, ohdr, ps)) in hfi1_make_rc_req()
420 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_rc_req()
425 ohdr->u.ieth = cpu_to_be32( in hfi1_make_rc_req()
450 &ohdr->u.rc.reth); in hfi1_make_rc_req()
451 ohdr->u.rc.reth.rkey = in hfi1_make_rc_req()
453 ohdr->u.rc.reth.length = cpu_to_be32(len); in hfi1_make_rc_req()
466 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in hfi1_make_rc_req()
493 &ohdr->u.rc.reth); in hfi1_make_rc_req()
494 ohdr->u.rc.reth.rkey = in hfi1_make_rc_req()
496 ohdr->u.rc.reth.length = cpu_to_be32(len); in hfi1_make_rc_req()
498 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32); in hfi1_make_rc_req()
525 &ohdr->u.atomic_eth); in hfi1_make_rc_req()
527 &ohdr->u.atomic_eth); in hfi1_make_rc_req()
531 &ohdr->u.atomic_eth); in hfi1_make_rc_req()
532 put_ib_ateth_compare(0, &ohdr->u.atomic_eth); in hfi1_make_rc_req()
535 &ohdr->u.atomic_eth); in hfi1_make_rc_req()
536 ohdr->u.atomic_eth.rkey = cpu_to_be32( in hfi1_make_rc_req()
594 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_rc_req()
599 ohdr->u.ieth = cpu_to_be32(wqe->wr.ex.invalidate_rkey); in hfi1_make_rc_req()
639 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_rc_req()
663 &ohdr->u.rc.reth); in hfi1_make_rc_req()
664 ohdr->u.rc.reth.rkey = in hfi1_make_rc_req()
666 ohdr->u.rc.reth.length = cpu_to_be32(wqe->length - len); in hfi1_make_rc_req()
668 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32); in hfi1_make_rc_req()
694 ohdr, in hfi1_make_rc_req()
716 struct ib_other_headers *ohdr, in hfi1_make_bth_aeth() argument
720 ohdr->u.aeth = cpu_to_be32((qp->r_msn & IB_MSN_MASK) | in hfi1_make_bth_aeth()
724 ohdr->u.aeth = rvt_compute_aeth(qp); in hfi1_make_bth_aeth()
726 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_bth_aeth()
727 ohdr->bth[1] = cpu_to_be32(bth1 | qp->remote_qpn); in hfi1_make_bth_aeth()
728 ohdr->bth[2] = cpu_to_be32(mask_psn(qp->r_ack_psn)); in hfi1_make_bth_aeth()
764 struct ib_other_headers *ohdr; in hfi1_make_rc_ack_9B() local
770 ohdr = &hdr->u.oth; in hfi1_make_rc_ack_9B()
778 ohdr = &hdr->u.l.oth; in hfi1_make_rc_ack_9B()
799 hfi1_make_bth_aeth(qp, ohdr, bth0, bth1); in hfi1_make_rc_ack_9B()
812 struct ib_other_headers *ohdr; in hfi1_make_rc_ack_16B() local
820 ohdr = &hdr->u.oth; in hfi1_make_rc_ack_16B()
831 ohdr = &hdr->u.l.oth; in hfi1_make_rc_ack_16B()
852 hfi1_make_bth_aeth(qp, ohdr, bth0, bth1); in hfi1_make_rc_ack_16B()
1102 struct ib_other_headers *ohdr; in hfi1_rc_send_complete() local
1118 ohdr = &hdr->u.oth; in hfi1_rc_send_complete()
1120 ohdr = &hdr->u.l.oth; in hfi1_rc_send_complete()
1127 ohdr = &hdr_16b->u.oth; in hfi1_rc_send_complete()
1129 ohdr = &hdr_16b->u.l.oth; in hfi1_rc_send_complete()
1132 opcode = ib_bth_get_opcode(ohdr); in hfi1_rc_send_complete()
1140 psn = ib_bth_get_psn(ohdr); in hfi1_rc_send_complete()
1543 struct ib_other_headers *ohdr = packet->ohdr; in rc_rcv_resp() local
1550 u32 psn = ib_bth_get_psn(packet->ohdr); in rc_rcv_resp()
1569 aeth = be32_to_cpu(ohdr->u.aeth); in rc_rcv_resp()
1595 aeth = be32_to_cpu(ohdr->u.aeth); in rc_rcv_resp()
1597 val = ib_u64_get(&ohdr->u.at.atomic_ack_eth); in rc_rcv_resp()
1651 aeth = be32_to_cpu(ohdr->u.aeth); in rc_rcv_resp()
1686 aeth = be32_to_cpu(ohdr->u.aeth); in rc_rcv_resp()
1751 static noinline int rc_rcv_error(struct ib_other_headers *ohdr, void *data, in rc_rcv_error() argument
1841 reth = &ohdr->u.rc.reth; in rc_rcv_error()
2039 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv() local
2042 u32 psn = ib_bth_get_psn(packet->ohdr); in hfi1_rc_rcv()
2079 if (rc_rcv_error(ohdr, data, qp, opcode, psn, diff, rcd)) in hfi1_rc_rcv()
2175 wc.ex.imm_data = ohdr->u.imm_data; in hfi1_rc_rcv()
2180 rkey = be32_to_cpu(ohdr->u.ieth); in hfi1_rc_rcv()
2237 ib_bth_is_solicited(ohdr)); in hfi1_rc_rcv()
2248 reth = &ohdr->u.rc.reth; in hfi1_rc_rcv()
2282 wc.ex.imm_data = ohdr->u.rc.imm_data; in hfi1_rc_rcv()
2308 reth = &ohdr->u.rc.reth; in hfi1_rc_rcv()
2382 ateth = &ohdr->u.atomic_eth; in hfi1_rc_rcv()
2497 psn = ib_bth_get_psn(packet->ohdr); in hfi1_rc_hdrerr()
2498 opcode = ib_bth_get_opcode(packet->ohdr); in hfi1_rc_hdrerr()