Lines Matching refs:ohdr

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