Lines Matching refs:ohdr
124 struct ib_other_headers *ohdr,
129 struct ib_other_headers *ohdr,
1704 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_read_packet() argument
1712 struct tid_rdma_read_req *rreq = &ohdr->u.tid_rdma.r_req; in hfi1_build_tid_rdma_read_packet()
1726 memset(&ohdr->u.tid_rdma.r_req, 0, sizeof(ohdr->u.tid_rdma.r_req)); in hfi1_build_tid_rdma_read_packet()
1780 return sizeof(ohdr->u.tid_rdma.r_req) / sizeof(u32); in hfi1_build_tid_rdma_read_packet()
1788 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_read_req() argument
1879 hdwords = hfi1_build_tid_rdma_read_packet(wqe, ohdr, bth1, bth2, len); in hfi1_build_tid_rdma_read_req()
1892 struct ib_other_headers *ohdr, in tid_rdma_rcv_read_request() argument
1941 flow->tid_qpn = be32_to_cpu(ohdr->u.tid_rdma.r_req.tid_flow_qp); in tid_rdma_rcv_read_request()
1944 flow_psn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.r_req.tid_flow_psn)); in tid_rdma_rcv_read_request()
1986 struct ib_other_headers *ohdr, in tid_rdma_rcv_error() argument
2031 reth = &ohdr->u.tid_rdma.r_req.reth; in tid_rdma_rcv_error()
2061 bth0 = be32_to_cpu(ohdr->bth[0]); in tid_rdma_rcv_error()
2062 if (tid_rdma_rcv_read_request(qp, e, packet, ohdr, bth0, psn, in tid_rdma_rcv_error()
2233 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_read_req() local
2245 bth0 = be32_to_cpu(ohdr->bth[0]); in hfi1_rc_rcv_tid_rdma_read_req()
2250 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_read_req()
2259 reth = &ohdr->u.tid_rdma.r_req.reth; in hfi1_rc_rcv_tid_rdma_read_req()
2268 tid_rdma_rcv_err(packet, ohdr, qp, psn, diff, fecn); in hfi1_rc_rcv_tid_rdma_read_req()
2295 if (tid_rdma_rcv_read_request(qp, e, packet, ohdr, bth0, psn, vaddr, in hfi1_rc_rcv_tid_rdma_read_req()
2345 struct ib_other_headers *ohdr, u32 *bth0, in hfi1_build_tid_rdma_read_resp() argument
2354 struct tid_rdma_read_resp *resp = &ohdr->u.tid_rdma.r_rsp; in hfi1_build_tid_rdma_read_resp()
2408 hdwords = sizeof(ohdr->u.tid_rdma.r_rsp) / sizeof(u32); in hfi1_build_tid_rdma_read_resp()
2451 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_read_resp() local
2464 kpsn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_read_resp()
2465 aeth = be32_to_cpu(ohdr->u.tid_rdma.r_rsp.aeth); in hfi1_rc_rcv_tid_rdma_read_resp()
2466 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_rc_rcv_tid_rdma_read_resp()
2469 ipsn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.r_rsp.verbs_psn)); in hfi1_rc_rcv_tid_rdma_read_resp()
2855 struct ib_other_headers *ohdr = NULL; in hfi1_handle_kdeth_eflags() local
2874 packet->ohdr = &hdr->u.oth; in hfi1_handle_kdeth_eflags()
2875 ohdr = packet->ohdr; in hfi1_handle_kdeth_eflags()
2879 qp_num = be32_to_cpu(ohdr->u.tid_rdma.r_rsp.verbs_qp) & in hfi1_handle_kdeth_eflags()
2884 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_handle_kdeth_eflags()
2885 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_handle_kdeth_eflags()
2922 ibpsn = be32_to_cpu(ohdr->u.tid_rdma.r_rsp.verbs_psn); in hfi1_handle_kdeth_eflags()
3367 struct ib_other_headers *ohdr, in hfi1_build_tid_rdma_write_req() argument
3383 KDETH_RESET(ohdr->u.tid_rdma.w_req.kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_write_req()
3384 KDETH_RESET(ohdr->u.tid_rdma.w_req.kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_write_req()
3385 ohdr->u.tid_rdma.w_req.reth.vaddr = in hfi1_build_tid_rdma_write_req()
3387 ohdr->u.tid_rdma.w_req.reth.rkey = in hfi1_build_tid_rdma_write_req()
3389 ohdr->u.tid_rdma.w_req.reth.length = cpu_to_be32(*len); in hfi1_build_tid_rdma_write_req()
3390 ohdr->u.tid_rdma.w_req.verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_write_req()
3399 return sizeof(ohdr->u.tid_rdma.w_req) / sizeof(u32); in hfi1_build_tid_rdma_write_req()
3662 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_req() local
3674 bth0 = be32_to_cpu(ohdr->bth[0]); in hfi1_rc_rcv_tid_rdma_write_req()
3679 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_write_req()
3688 reth = &ohdr->u.tid_rdma.w_req.reth; in hfi1_rc_rcv_tid_rdma_write_req()
3695 tid_rdma_rcv_err(packet, ohdr, qp, psn, diff, fecn); in hfi1_rc_rcv_tid_rdma_write_req()
3836 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_write_resp() argument
3893 memset(&ohdr->u.tid_rdma.w_rsp, 0, sizeof(ohdr->u.tid_rdma.w_rsp)); in hfi1_build_tid_rdma_write_resp()
3916 KDETH_RESET(ohdr->u.tid_rdma.w_rsp.kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_write_resp()
3917 KDETH_RESET(ohdr->u.tid_rdma.w_rsp.kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_write_resp()
3918 ohdr->u.tid_rdma.w_rsp.aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_write_resp()
3919 ohdr->u.tid_rdma.w_rsp.tid_flow_psn = in hfi1_build_tid_rdma_write_resp()
3924 ohdr->u.tid_rdma.w_rsp.tid_flow_qp = in hfi1_build_tid_rdma_write_resp()
3929 ohdr->u.tid_rdma.w_rsp.verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_write_resp()
3932 hdwords = sizeof(ohdr->u.tid_rdma.w_rsp) / sizeof(u32); in hfi1_build_tid_rdma_write_resp()
4040 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_resp() local
4053 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_write_resp()
4054 aeth = be32_to_cpu(ohdr->u.tid_rdma.w_rsp.aeth); in hfi1_rc_rcv_tid_rdma_write_resp()
4055 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_rc_rcv_tid_rdma_write_resp()
4112 flow->tid_qpn = be32_to_cpu(ohdr->u.tid_rdma.w_rsp.tid_flow_qp); in hfi1_rc_rcv_tid_rdma_write_resp()
4115 flow_psn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.w_rsp.tid_flow_psn)); in hfi1_rc_rcv_tid_rdma_write_resp()
4206 struct ib_other_headers *ohdr, in hfi1_build_tid_rdma_packet() argument
4216 struct tid_rdma_write_data *wd = &ohdr->u.tid_rdma.w_data; in hfi1_build_tid_rdma_packet()
4274 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_data() local
4285 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_write_data()
4286 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_rc_rcv_tid_rdma_write_data()
4427 struct ib_other_headers *ohdr, u16 iflow, in hfi1_build_tid_rdma_write_ack() argument
4438 KDETH_RESET(ohdr->u.tid_rdma.ack.kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_write_ack()
4439 ohdr->u.tid_rdma.ack.verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_write_ack()
4446 ohdr->u.tid_rdma.ack.aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_write_ack()
4449 ohdr->u.tid_rdma.ack.aeth = in hfi1_build_tid_rdma_write_ack()
4455 ohdr->u.tid_rdma.ack.aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_write_ack()
4457 KDETH_RESET(ohdr->u.tid_rdma.ack.kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_write_ack()
4458 ohdr->u.tid_rdma.ack.tid_flow_qp = in hfi1_build_tid_rdma_write_ack()
4464 ohdr->u.tid_rdma.ack.tid_flow_psn = 0; in hfi1_build_tid_rdma_write_ack()
4465 ohdr->u.tid_rdma.ack.verbs_psn = in hfi1_build_tid_rdma_write_ack()
4476 ohdr->u.tid_rdma.ack.tid_flow_psn = in hfi1_build_tid_rdma_write_ack()
4487 ohdr->u.tid_rdma.ack.tid_flow_psn = in hfi1_build_tid_rdma_write_ack()
4494 return sizeof(ohdr->u.tid_rdma.ack) / sizeof(u32); in hfi1_build_tid_rdma_write_ack()
4499 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_ack() local
4511 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_ack()
4512 aeth = be32_to_cpu(ohdr->u.tid_rdma.ack.aeth); in hfi1_rc_rcv_tid_rdma_ack()
4513 req_psn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.ack.verbs_psn)); in hfi1_rc_rcv_tid_rdma_ack()
4514 resync_psn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.ack.tid_flow_psn)); in hfi1_rc_rcv_tid_rdma_ack()
4729 req->r_ack_psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_ack()
4844 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_resync() argument
4855 KDETH_RESET(ohdr->u.tid_rdma.ack.kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_resync()
4856 ohdr->u.tid_rdma.ack.verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_resync()
4864 KDETH_RESET(ohdr->u.tid_rdma.ack.kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_resync()
4866 return sizeof(ohdr->u.tid_rdma.resync) / sizeof(u32); in hfi1_build_tid_rdma_resync()
4871 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_resync() local
4885 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_resync()
5014 struct ib_other_headers *ohdr; in hfi1_make_tid_rdma_pkt() local
5047 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_tid_rdma_pkt()
5050 make_tid_rdma_ack(qp, ohdr, ps)) in hfi1_make_tid_rdma_pkt()
5110 last = hfi1_build_tid_rdma_packet(wqe, ohdr, &bth1, &bth2, in hfi1_make_tid_rdma_pkt()
5129 hwords += sizeof(ohdr->u.tid_rdma.w_data) / sizeof(u32); in hfi1_make_tid_rdma_pkt()
5145 hwords += hfi1_build_tid_rdma_resync(qp, wqe, ohdr, &bth1, in hfi1_make_tid_rdma_pkt()
5167 hfi1_make_ruc_header(qp, ohdr, (opcode << 24), bth1, bth2, in hfi1_make_tid_rdma_pkt()
5187 struct ib_other_headers *ohdr, in make_tid_rdma_ack() argument
5308 hwords += hfi1_build_tid_rdma_write_ack(qp, e, ohdr, flow, &bth1, in make_tid_rdma_ack()
5316 hfi1_make_ruc_header(qp, ohdr, (TID_OP(ACK) << 24), bth1, bth2, middle, in make_tid_rdma_ack()
5502 struct ib_other_headers *ohdr, in tid_rdma_rcv_err() argument
5507 tid_rdma_rcv_error(packet, ohdr, qp, psn, diff); in tid_rdma_rcv_err()