/drivers/infiniband/hw/hfi1/ |
D | trace.c | 52 struct ib_other_headers *ohdr; in __get_ib_hdr_len() local 56 ohdr = &hdr->u.oth; in __get_ib_hdr_len() 58 ohdr = &hdr->u.l.oth; in __get_ib_hdr_len() 59 opcode = ib_bth_get_opcode(ohdr); in __get_ib_hdr_len() 66 struct ib_other_headers *ohdr; in __get_16b_hdr_len() local 70 ohdr = &hdr->u.oth; in __get_16b_hdr_len() 72 ohdr = &hdr->u.l.oth; in __get_16b_hdr_len() 73 opcode = ib_bth_get_opcode(ohdr); in __get_16b_hdr_len() 143 void hfi1_trace_parse_9b_bth(struct ib_other_headers *ohdr, in hfi1_trace_parse_9b_bth() argument 148 *ack = ib_bth_get_ackreq(ohdr); in hfi1_trace_parse_9b_bth() [all …]
|
D | rc.c | 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() 262 struct ib_other_headers *ohdr; in hfi1_make_rc_req() local [all …]
|
D | uc.c | 66 struct ib_other_headers *ohdr; in hfi1_make_uc_req() local 101 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_uc_req() 103 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_uc_req() 109 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; in hfi1_make_uc_req() 111 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; in hfi1_make_uc_req() 177 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req() 189 ohdr->u.rc.reth.vaddr = in hfi1_make_uc_req() 191 ohdr->u.rc.reth.rkey = in hfi1_make_uc_req() 193 ohdr->u.rc.reth.length = cpu_to_be32(len); in hfi1_make_uc_req() 206 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req() [all …]
|
D | ud.c | 287 struct ib_other_headers *ohdr, in hfi1_make_bth_deth() argument 295 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; in hfi1_make_bth_deth() 310 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_bth_deth() 311 ohdr->bth[1] = cpu_to_be32(wqe->ud_wr.remote_qpn); in hfi1_make_bth_deth() 312 ohdr->bth[2] = cpu_to_be32(mask_psn(wqe->psn)); in hfi1_make_bth_deth() 317 ohdr->u.ud.deth[0] = cpu_to_be32((int)wqe->ud_wr.remote_qkey < 0 ? in hfi1_make_bth_deth() 319 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in hfi1_make_bth_deth() 330 struct ib_other_headers *ohdr; in hfi1_make_ud_req_9B() local 353 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_ud_req_9B() 356 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_ud_req_9B() [all …]
|
D | trace_ibhdrs.h | 104 void hfi1_trace_parse_9b_bth(struct ib_other_headers *ohdr, 111 void hfi1_trace_parse_16b_bth(struct ib_other_headers *ohdr, 196 hfi1_trace_parse_16b_bth(packet->ohdr, 216 hfi1_trace_parse_9b_bth(packet->ohdr, 231 &packet->ohdr->u, 315 struct ib_other_headers *ohdr; 335 ohdr = &opah->opah.u.oth; 337 ohdr = &opah->opah.u.l.oth; 338 hfi1_trace_parse_16b_bth(ohdr, 358 ohdr = &opah->ibh.u.oth; [all …]
|
D | driver.c | 287 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr() 289 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr() 319 qp_num = ib_bth_get_qpn(packet->ohdr); in rcv_hdrerr() 370 opcode = ib_bth_get_opcode(packet->ohdr); in rcv_hdrerr() 384 lqpn = ib_bth_get_qpn(packet->ohdr); in rcv_hdrerr() 441 struct ib_other_headers *ohdr = pkt->ohdr; in hfi1_process_ecn_slowpath() local 460 pkey = ib_bth_get_pkey(ohdr); in hfi1_process_ecn_slowpath() 471 rqpn = ib_get_sqpn(pkt->ohdr); in hfi1_process_ecn_slowpath() 477 rqpn = ib_get_sqpn(pkt->ohdr); in hfi1_process_ecn_slowpath() 494 bth1 = be32_to_cpu(ohdr->bth[1]); in hfi1_process_ecn_slowpath() [all …]
|
D | ruc.c | 232 bth0 = be32_to_cpu(packet->ohdr->bth[0]); in hfi1_ruc_check_hdr() 233 bth1 = be32_to_cpu(packet->ohdr->bth[1]); in hfi1_ruc_check_hdr() 238 pkey = ib_bth_get_pkey(packet->ohdr); in hfi1_ruc_check_hdr() 744 struct ib_other_headers *ohdr, in hfi1_make_ruc_bth() argument 748 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_ruc_bth() 749 ohdr->bth[1] = cpu_to_be32(bth1); in hfi1_make_ruc_bth() 750 ohdr->bth[2] = cpu_to_be32(bth2); in hfi1_make_ruc_bth() 768 struct ib_other_headers *ohdr, in hfi1_make_ruc_header_16B() argument 824 hfi1_make_ruc_bth(qp, ohdr, bth0, bth1, bth2); in hfi1_make_ruc_header_16B() 856 struct ib_other_headers *ohdr, in hfi1_make_ruc_header_9B() argument [all …]
|
D | verbs.c | 618 qp_num = ib_bth_get_qpn(packet->ohdr); in hfi1_handle_packet() 1310 struct ib_other_headers *ohdr; in hfi1_verbs_send() local 1322 ohdr = &hdr->u.l.oth; in hfi1_verbs_send() 1324 ohdr = &hdr->u.oth; in hfi1_verbs_send() 1332 ohdr = &hdr->u.l.oth; in hfi1_verbs_send() 1334 ohdr = &hdr->u.oth; in hfi1_verbs_send() 1336 pkey = ib_bth_get_pkey(ohdr); in hfi1_verbs_send() 1339 ps->opcode = ib_bth_get_opcode(ohdr); in hfi1_verbs_send()
|
D | hfi.h | 336 struct ib_other_headers *ohdr; member 470 static inline u8 hfi1_16B_bth_get_pad(struct ib_other_headers *ohdr) in hfi1_16B_bth_get_pad() argument 472 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in hfi1_16B_bth_get_pad() 1786 struct ib_other_headers *ohdr = pkt->ohdr; in process_ecn() local 1796 bth1 = be32_to_cpu(ohdr->bth[1]); in process_ecn()
|
D | verbs.h | 359 void hfi1_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr,
|
/drivers/infiniband/hw/qib/ |
D | qib_uc.c | 51 struct ib_other_headers *ohdr; in qib_make_uc_req() local 76 ohdr = &priv->s_hdr->u.oth; in qib_make_uc_req() 78 ohdr = &priv->s_hdr->u.l.oth; in qib_make_uc_req() 120 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req() 132 ohdr->u.rc.reth.vaddr = in qib_make_uc_req() 134 ohdr->u.rc.reth.rkey = in qib_make_uc_req() 136 ohdr->u.rc.reth.length = cpu_to_be32(len); in qib_make_uc_req() 149 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req() 178 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req() 203 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req() [all …]
|
D | qib_rc.c | 68 struct ib_other_headers *ohdr, u32 pmtu) in qib_make_rc_ack() argument 137 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack() 146 ohdr->u.at.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack() 147 ib_u64_put(e->atomic_data, &ohdr->u.at.atomic_ack_eth); in qib_make_rc_ack() 148 hwords += sizeof(ohdr->u.at) / sizeof(u32); in qib_make_rc_ack() 167 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack() 189 ohdr->u.aeth = in qib_make_rc_ack() 194 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack() 203 qib_make_ruc_header(qp, ohdr, bth0, bth2); in qib_make_rc_ack() 224 struct ib_other_headers *ohdr; in qib_make_rc_req() local [all …]
|
D | qib_ud.c | 238 struct ib_other_headers *ohdr; in qib_make_ud_req() local 335 ohdr = &priv->s_hdr->u.l.oth; in qib_make_ud_req() 343 ohdr = &priv->s_hdr->u.oth; in qib_make_ud_req() 347 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; in qib_make_ud_req() 374 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ud_req() 378 ohdr->bth[1] = rdma_ah_get_dlid(ah_attr) >= in qib_make_ud_req() 383 ohdr->bth[2] = cpu_to_be32(wqe->psn & QIB_PSN_MASK); in qib_make_ud_req() 388 ohdr->u.ud.deth[0] = cpu_to_be32((int)wqe->ud_wr.remote_qkey < 0 ? in qib_make_ud_req() 390 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in qib_make_ud_req() 435 struct ib_other_headers *ohdr; in qib_ud_rcv() local [all …]
|
D | qib_driver.c | 322 struct ib_other_headers *ohdr = NULL; in qib_rcv_hdrerr() local 347 ohdr = &hdr->u.oth; in qib_rcv_hdrerr() 351 ohdr = &hdr->u.l.oth; in qib_rcv_hdrerr() 361 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rcv_hdrerr() 363 psn = be32_to_cpu(ohdr->bth[2]); in qib_rcv_hdrerr() 366 qp_num = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in qib_rcv_hdrerr() 397 be32_to_cpu(ohdr->bth[0])); in qib_rcv_hdrerr()
|
D | qib_ruc.c | 663 void qib_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr, in qib_make_ruc_header() argument 697 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ruc_header() 698 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_make_ruc_header() 699 ohdr->bth[2] = cpu_to_be32(bth2); in qib_make_ruc_header()
|
D | qib_verbs.c | 310 struct ib_other_headers *ohdr; in qib_ib_rcv() local 332 ohdr = &hdr->u.oth; in qib_ib_rcv() 336 ohdr = &hdr->u.l.oth; in qib_ib_rcv() 345 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0x7f; in qib_ib_rcv() 352 qp_num = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in qib_ib_rcv()
|
D | qib_verbs.h | 334 void qib_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr,
|