Lines Matching refs:ohdr

124 			     struct ib_other_headers *ohdr,
129 struct ib_other_headers *ohdr,
1697 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_read_packet() argument
1705 struct tid_rdma_read_req *rreq = &ohdr->u.tid_rdma.r_req; in hfi1_build_tid_rdma_read_packet()
1719 memset(&ohdr->u.tid_rdma.r_req, 0, sizeof(ohdr->u.tid_rdma.r_req)); in hfi1_build_tid_rdma_read_packet()
1773 return sizeof(ohdr->u.tid_rdma.r_req) / sizeof(u32); in hfi1_build_tid_rdma_read_packet()
1781 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_read_req() argument
1872 hdwords = hfi1_build_tid_rdma_read_packet(wqe, ohdr, bth1, bth2, len); in hfi1_build_tid_rdma_read_req()
1885 struct ib_other_headers *ohdr, in tid_rdma_rcv_read_request() argument
1934 flow->tid_qpn = be32_to_cpu(ohdr->u.tid_rdma.r_req.tid_flow_qp); in tid_rdma_rcv_read_request()
1937 flow_psn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.r_req.tid_flow_psn)); in tid_rdma_rcv_read_request()
1979 struct ib_other_headers *ohdr, in tid_rdma_rcv_error() argument
2024 reth = &ohdr->u.tid_rdma.r_req.reth; in tid_rdma_rcv_error()
2054 bth0 = be32_to_cpu(ohdr->bth[0]); in tid_rdma_rcv_error()
2055 if (tid_rdma_rcv_read_request(qp, e, packet, ohdr, bth0, psn, in tid_rdma_rcv_error()
2226 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_read_req() local
2238 bth0 = be32_to_cpu(ohdr->bth[0]); in hfi1_rc_rcv_tid_rdma_read_req()
2243 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_read_req()
2252 reth = &ohdr->u.tid_rdma.r_req.reth; in hfi1_rc_rcv_tid_rdma_read_req()
2261 tid_rdma_rcv_err(packet, ohdr, qp, psn, diff, fecn); in hfi1_rc_rcv_tid_rdma_read_req()
2288 if (tid_rdma_rcv_read_request(qp, e, packet, ohdr, bth0, psn, vaddr, in hfi1_rc_rcv_tid_rdma_read_req()
2338 struct ib_other_headers *ohdr, u32 *bth0, in hfi1_build_tid_rdma_read_resp() argument
2347 struct tid_rdma_read_resp *resp = &ohdr->u.tid_rdma.r_rsp; in hfi1_build_tid_rdma_read_resp()
2401 hdwords = sizeof(ohdr->u.tid_rdma.r_rsp) / sizeof(u32); in hfi1_build_tid_rdma_read_resp()
2444 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_read_resp() local
2457 kpsn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_read_resp()
2458 aeth = be32_to_cpu(ohdr->u.tid_rdma.r_rsp.aeth); in hfi1_rc_rcv_tid_rdma_read_resp()
2459 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_rc_rcv_tid_rdma_read_resp()
2462 ipsn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.r_rsp.verbs_psn)); in hfi1_rc_rcv_tid_rdma_read_resp()
2847 struct ib_other_headers *ohdr = NULL; in hfi1_handle_kdeth_eflags() local
2866 packet->ohdr = &hdr->u.oth; in hfi1_handle_kdeth_eflags()
2867 ohdr = packet->ohdr; in hfi1_handle_kdeth_eflags()
2871 qp_num = be32_to_cpu(ohdr->u.tid_rdma.r_rsp.verbs_qp) & in hfi1_handle_kdeth_eflags()
2876 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_handle_kdeth_eflags()
2877 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_handle_kdeth_eflags()
2914 ibpsn = be32_to_cpu(ohdr->u.tid_rdma.r_rsp.verbs_psn); in hfi1_handle_kdeth_eflags()
3355 struct ib_other_headers *ohdr, in hfi1_build_tid_rdma_write_req() argument
3371 KDETH_RESET(ohdr->u.tid_rdma.w_req.kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_write_req()
3372 KDETH_RESET(ohdr->u.tid_rdma.w_req.kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_write_req()
3373 ohdr->u.tid_rdma.w_req.reth.vaddr = in hfi1_build_tid_rdma_write_req()
3375 ohdr->u.tid_rdma.w_req.reth.rkey = in hfi1_build_tid_rdma_write_req()
3377 ohdr->u.tid_rdma.w_req.reth.length = cpu_to_be32(*len); in hfi1_build_tid_rdma_write_req()
3378 ohdr->u.tid_rdma.w_req.verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_write_req()
3387 return sizeof(ohdr->u.tid_rdma.w_req) / sizeof(u32); in hfi1_build_tid_rdma_write_req()
3650 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_req() local
3662 bth0 = be32_to_cpu(ohdr->bth[0]); in hfi1_rc_rcv_tid_rdma_write_req()
3667 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_write_req()
3676 reth = &ohdr->u.tid_rdma.w_req.reth; in hfi1_rc_rcv_tid_rdma_write_req()
3683 tid_rdma_rcv_err(packet, ohdr, qp, psn, diff, fecn); in hfi1_rc_rcv_tid_rdma_write_req()
3824 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_write_resp() argument
3881 memset(&ohdr->u.tid_rdma.w_rsp, 0, sizeof(ohdr->u.tid_rdma.w_rsp)); in hfi1_build_tid_rdma_write_resp()
3904 KDETH_RESET(ohdr->u.tid_rdma.w_rsp.kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_write_resp()
3905 KDETH_RESET(ohdr->u.tid_rdma.w_rsp.kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_write_resp()
3906 ohdr->u.tid_rdma.w_rsp.aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_write_resp()
3907 ohdr->u.tid_rdma.w_rsp.tid_flow_psn = in hfi1_build_tid_rdma_write_resp()
3912 ohdr->u.tid_rdma.w_rsp.tid_flow_qp = in hfi1_build_tid_rdma_write_resp()
3917 ohdr->u.tid_rdma.w_rsp.verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_write_resp()
3920 hdwords = sizeof(ohdr->u.tid_rdma.w_rsp) / sizeof(u32); in hfi1_build_tid_rdma_write_resp()
4028 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_resp() local
4041 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_write_resp()
4042 aeth = be32_to_cpu(ohdr->u.tid_rdma.w_rsp.aeth); in hfi1_rc_rcv_tid_rdma_write_resp()
4043 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_rc_rcv_tid_rdma_write_resp()
4100 flow->tid_qpn = be32_to_cpu(ohdr->u.tid_rdma.w_rsp.tid_flow_qp); in hfi1_rc_rcv_tid_rdma_write_resp()
4103 flow_psn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.w_rsp.tid_flow_psn)); in hfi1_rc_rcv_tid_rdma_write_resp()
4194 struct ib_other_headers *ohdr, in hfi1_build_tid_rdma_packet() argument
4204 struct tid_rdma_write_data *wd = &ohdr->u.tid_rdma.w_data; in hfi1_build_tid_rdma_packet()
4262 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_data() local
4273 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_write_data()
4274 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_rc_rcv_tid_rdma_write_data()
4415 struct ib_other_headers *ohdr, u16 iflow, in hfi1_build_tid_rdma_write_ack() argument
4426 KDETH_RESET(ohdr->u.tid_rdma.ack.kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_write_ack()
4427 ohdr->u.tid_rdma.ack.verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_write_ack()
4434 ohdr->u.tid_rdma.ack.aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_write_ack()
4437 ohdr->u.tid_rdma.ack.aeth = in hfi1_build_tid_rdma_write_ack()
4443 ohdr->u.tid_rdma.ack.aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_write_ack()
4445 KDETH_RESET(ohdr->u.tid_rdma.ack.kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_write_ack()
4446 ohdr->u.tid_rdma.ack.tid_flow_qp = in hfi1_build_tid_rdma_write_ack()
4452 ohdr->u.tid_rdma.ack.tid_flow_psn = 0; in hfi1_build_tid_rdma_write_ack()
4453 ohdr->u.tid_rdma.ack.verbs_psn = in hfi1_build_tid_rdma_write_ack()
4464 ohdr->u.tid_rdma.ack.tid_flow_psn = in hfi1_build_tid_rdma_write_ack()
4475 ohdr->u.tid_rdma.ack.tid_flow_psn = in hfi1_build_tid_rdma_write_ack()
4482 return sizeof(ohdr->u.tid_rdma.ack) / sizeof(u32); in hfi1_build_tid_rdma_write_ack()
4487 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_ack() local
4499 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_ack()
4500 aeth = be32_to_cpu(ohdr->u.tid_rdma.ack.aeth); in hfi1_rc_rcv_tid_rdma_ack()
4501 req_psn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.ack.verbs_psn)); in hfi1_rc_rcv_tid_rdma_ack()
4502 resync_psn = mask_psn(be32_to_cpu(ohdr->u.tid_rdma.ack.tid_flow_psn)); in hfi1_rc_rcv_tid_rdma_ack()
4717 req->r_ack_psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_ack()
4832 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_resync() argument
4843 KDETH_RESET(ohdr->u.tid_rdma.ack.kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_resync()
4844 ohdr->u.tid_rdma.ack.verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_resync()
4852 KDETH_RESET(ohdr->u.tid_rdma.ack.kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_resync()
4854 return sizeof(ohdr->u.tid_rdma.resync) / sizeof(u32); in hfi1_build_tid_rdma_resync()
4859 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_resync() local
4873 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_resync()
5002 struct ib_other_headers *ohdr; in hfi1_make_tid_rdma_pkt() local
5035 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_tid_rdma_pkt()
5038 make_tid_rdma_ack(qp, ohdr, ps)) in hfi1_make_tid_rdma_pkt()
5098 last = hfi1_build_tid_rdma_packet(wqe, ohdr, &bth1, &bth2, in hfi1_make_tid_rdma_pkt()
5117 hwords += sizeof(ohdr->u.tid_rdma.w_data) / sizeof(u32); in hfi1_make_tid_rdma_pkt()
5133 hwords += hfi1_build_tid_rdma_resync(qp, wqe, ohdr, &bth1, in hfi1_make_tid_rdma_pkt()
5155 hfi1_make_ruc_header(qp, ohdr, (opcode << 24), bth1, bth2, in hfi1_make_tid_rdma_pkt()
5175 struct ib_other_headers *ohdr, in make_tid_rdma_ack() argument
5296 hwords += hfi1_build_tid_rdma_write_ack(qp, e, ohdr, flow, &bth1, in make_tid_rdma_ack()
5304 hfi1_make_ruc_header(qp, ohdr, (TID_OP(ACK) << 24), bth1, bth2, middle, in make_tid_rdma_ack()
5490 struct ib_other_headers *ohdr, in tid_rdma_rcv_err() argument
5495 tid_rdma_rcv_error(packet, ohdr, qp, psn, diff); in tid_rdma_rcv_err()