/Linux-v4.19/include/rdma/ |
D | ib_hdrs.h | 244 static inline u32 ib_get_qkey(struct ib_other_headers *ohdr) in ib_get_qkey() argument 246 return be32_to_cpu(ohdr->u.ud.deth[0]); in ib_get_qkey() 249 static inline u32 ib_get_sqpn(struct ib_other_headers *ohdr) in ib_get_sqpn() argument 251 return ((be32_to_cpu(ohdr->u.ud.deth[1])) & IB_QPN_MASK); in ib_get_sqpn() 271 static inline u8 ib_bth_get_pad(struct ib_other_headers *ohdr) in ib_bth_get_pad() argument 273 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in ib_bth_get_pad() 277 static inline u16 ib_bth_get_pkey(struct ib_other_headers *ohdr) in ib_bth_get_pkey() argument 279 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK); in ib_bth_get_pkey() 282 static inline u8 ib_bth_get_opcode(struct ib_other_headers *ohdr) in ib_bth_get_opcode() argument 284 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_OPCODE_SHIFT) & in ib_bth_get_opcode() [all …]
|
/Linux-v4.19/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 = NULL; in __get_16b_hdr_len() local 76 ohdr = &hdr->u.oth; in __get_16b_hdr_len() 78 ohdr = &hdr->u.l.oth; in __get_16b_hdr_len() 80 opcode = ib_bth_get_opcode(ohdr); in __get_16b_hdr_len() 147 void hfi1_trace_parse_9b_bth(struct ib_other_headers *ohdr, in hfi1_trace_parse_9b_bth() argument 152 *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() 260 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 99 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_uc_req() 101 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_uc_req() 107 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; in hfi1_make_uc_req() 109 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; in hfi1_make_uc_req() 173 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req() 185 ohdr->u.rc.reth.vaddr = in hfi1_make_uc_req() 187 ohdr->u.rc.reth.rkey = in hfi1_make_uc_req() 189 ohdr->u.rc.reth.length = cpu_to_be32(len); in hfi1_make_uc_req() 202 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 354 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_ud_req_9B() 357 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_ud_req_9B() [all …]
|
D | driver.c | 277 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr() 279 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr() 309 qp_num = ib_bth_get_qpn(packet->ohdr); in rcv_hdrerr() 360 opcode = ib_bth_get_opcode(packet->ohdr); in rcv_hdrerr() 374 lqpn = ib_bth_get_qpn(packet->ohdr); in rcv_hdrerr() 438 struct ib_other_headers *ohdr = pkt->ohdr; in hfi1_process_ecn_slowpath() local 457 pkey = ib_bth_get_pkey(ohdr); in hfi1_process_ecn_slowpath() 468 rqpn = ib_get_sqpn(pkt->ohdr); in hfi1_process_ecn_slowpath() 474 rqpn = ib_get_sqpn(pkt->ohdr); in hfi1_process_ecn_slowpath() 491 bth1 = be32_to_cpu(ohdr->bth[1]); in hfi1_process_ecn_slowpath() [all …]
|
D | trace_ibhdrs.h | 105 void hfi1_trace_parse_9b_bth(struct ib_other_headers *ohdr, 112 void hfi1_trace_parse_16b_bth(struct ib_other_headers *ohdr, 208 hfi1_trace_parse_16b_bth(packet->ohdr, 229 hfi1_trace_parse_9b_bth(packet->ohdr, 245 &packet->ohdr->u, 342 struct ib_other_headers *ohdr; 364 ohdr = NULL; 370 ohdr = &opah->opah.u.oth; 372 ohdr = &opah->opah.u.l.oth; 373 hfi1_trace_parse_16b_bth(ohdr, [all …]
|
D | ruc.c | 577 struct ib_other_headers *ohdr, in hfi1_make_ruc_bth() argument 581 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_ruc_bth() 582 ohdr->bth[1] = cpu_to_be32(bth1); in hfi1_make_ruc_bth() 583 ohdr->bth[2] = cpu_to_be32(bth2); in hfi1_make_ruc_bth() 601 struct ib_other_headers *ohdr, in hfi1_make_ruc_header_16B() argument 657 hfi1_make_ruc_bth(qp, ohdr, bth0, bth1, bth2); in hfi1_make_ruc_header_16B() 689 struct ib_other_headers *ohdr, in hfi1_make_ruc_header_9B() argument 734 hfi1_make_ruc_bth(qp, ohdr, bth0, bth1, bth2); in hfi1_make_ruc_header_9B() 744 struct ib_other_headers *ohdr, 754 void hfi1_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr, in hfi1_make_ruc_header() argument [all …]
|
D | verbs.h | 356 void hfi1_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr, 415 static inline bool opa_bth_is_migration(struct ib_other_headers *ohdr) in opa_bth_is_migration() argument 417 return ohdr->bth[1] & cpu_to_be32(OPA_BTH_MIG_REQ); in opa_bth_is_migration()
|
D | verbs.c | 624 qp_num = ib_bth_get_qpn(packet->ohdr); in hfi1_handle_packet() 1316 struct ib_other_headers *ohdr = NULL; in hfi1_verbs_send() local 1329 ohdr = &hdr->u.oth; in hfi1_verbs_send() 1331 ohdr = &hdr->u.l.oth; in hfi1_verbs_send() 1340 ohdr = &hdr->u.l.oth; in hfi1_verbs_send() 1342 ohdr = &hdr->u.oth; in hfi1_verbs_send() 1344 pkey = ib_bth_get_pkey(ohdr); in hfi1_verbs_send() 1348 ps->opcode = ib_bth_get_opcode(ohdr); in hfi1_verbs_send()
|
D | hfi.h | 349 struct ib_other_headers *ohdr; member 492 static inline u8 hfi1_16B_bth_get_pad(struct ib_other_headers *ohdr) in hfi1_16B_bth_get_pad() argument 494 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in hfi1_16B_bth_get_pad() 1810 fecn = ib_bth_get_fecn(pkt->ohdr); in process_ecn() 1811 becn = ib_bth_get_becn(pkt->ohdr); in process_ecn()
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_uc.c | 51 struct ib_other_headers *ohdr; in qib_make_uc_req() local 75 ohdr = &priv->s_hdr->u.oth; in qib_make_uc_req() 77 ohdr = &priv->s_hdr->u.l.oth; in qib_make_uc_req() 118 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req() 130 ohdr->u.rc.reth.vaddr = in qib_make_uc_req() 132 ohdr->u.rc.reth.rkey = in qib_make_uc_req() 134 ohdr->u.rc.reth.length = cpu_to_be32(len); in qib_make_uc_req() 147 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req() 176 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req() 201 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 333 ohdr = &priv->s_hdr->u.l.oth; in qib_make_ud_req() 341 ohdr = &priv->s_hdr->u.oth; in qib_make_ud_req() 345 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; in qib_make_ud_req() 372 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ud_req() 376 ohdr->bth[1] = rdma_ah_get_dlid(ah_attr) >= in qib_make_ud_req() 381 ohdr->bth[2] = cpu_to_be32(wqe->psn & QIB_PSN_MASK); in qib_make_ud_req() 386 ohdr->u.ud.deth[0] = cpu_to_be32((int)wqe->ud_wr.remote_qkey < 0 ? in qib_make_ud_req() 388 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in qib_make_ud_req() 433 struct ib_other_headers *ohdr; in qib_ud_rcv() local [all …]
|
D | qib_driver.c | 306 struct ib_other_headers *ohdr = NULL; in qib_rcv_hdrerr() local 331 ohdr = &hdr->u.oth; in qib_rcv_hdrerr() 335 ohdr = &hdr->u.l.oth; in qib_rcv_hdrerr() 345 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rcv_hdrerr() 347 psn = be32_to_cpu(ohdr->bth[2]); in qib_rcv_hdrerr() 350 qp_num = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in qib_rcv_hdrerr() 381 be32_to_cpu(ohdr->bth[0])); in qib_rcv_hdrerr()
|
D | qib_ruc.c | 507 void qib_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr, in qib_make_ruc_header() argument 541 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ruc_header() 542 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_make_ruc_header() 543 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 | 329 void qib_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr,
|
/Linux-v4.19/net/tipc/ |
D | msg.c | 511 struct tipc_msg ohdr; in tipc_msg_reverse() local 524 memcpy(&ohdr, hdr, msg_hdr_sz(hdr)); in tipc_msg_reverse() 535 memcpy(hdr, &ohdr, BASIC_H_SIZE); in tipc_msg_reverse() 542 msg_set_origport(hdr, msg_destport(&ohdr)); in tipc_msg_reverse() 543 msg_set_destport(hdr, msg_origport(&ohdr)); in tipc_msg_reverse() 544 msg_set_destnode(hdr, msg_prevnode(&ohdr)); in tipc_msg_reverse()
|