/Linux-v4.19/drivers/infiniband/sw/rxe/ |
D | rxe_hdr.h | 114 struct rxe_bth *bth = arg; in __bth_opcode() local 116 return bth->opcode; in __bth_opcode() 121 struct rxe_bth *bth = arg; in __bth_set_opcode() local 123 bth->opcode = opcode; in __bth_set_opcode() 128 struct rxe_bth *bth = arg; in __bth_se() local 130 return 0 != (BTH_SE_MASK & bth->flags); in __bth_se() 135 struct rxe_bth *bth = arg; in __bth_set_se() local 138 bth->flags |= BTH_SE_MASK; in __bth_set_se() 140 bth->flags &= ~BTH_SE_MASK; in __bth_set_se() 145 struct rxe_bth *bth = arg; in __bth_mig() local [all …]
|
D | rxe_icrc.c | 44 struct rxe_bth *bth; in rxe_icrc_hdr() local 84 bth = (struct rxe_bth *)&pshdr[bth_offset]; in rxe_icrc_hdr() 87 bth->qpn |= cpu_to_be32(~BTH_QPN_MASK); in rxe_icrc_hdr()
|
/Linux-v4.19/include/rdma/ |
D | ib_hdrs.h | 123 __be32 bth[3]; member 273 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in ib_bth_get_pad() 279 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK); in ib_bth_get_pkey() 284 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_OPCODE_SHIFT) & in ib_bth_get_opcode() 290 return (u8)((be32_to_cpu(ohdr->bth[2]) >> IB_BTH_A_SHIFT) & in ib_bth_get_ackreq() 296 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_M_SHIFT) & in ib_bth_get_migreq() 302 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_SE_SHIFT) & in ib_bth_get_se() 308 return (u32)(be32_to_cpu(ohdr->bth[2])); in ib_bth_get_psn() 313 return (u32)((be32_to_cpu(ohdr->bth[1])) & IB_QPN_MASK); in ib_bth_get_qpn() 318 return (ohdr->bth[1]) & cpu_to_be32(IB_BECN_SMASK); in ib_bth_get_becn() [all …]
|
D | ib_pack.h | 277 struct ib_unpacked_bth bth; member
|
/Linux-v4.19/drivers/infiniband/core/ |
D | ud_header.c | 222 { STRUCT_FIELD(bth, opcode), 226 { STRUCT_FIELD(bth, solicited_event), 230 { STRUCT_FIELD(bth, mig_req), 234 { STRUCT_FIELD(bth, pad_count), 238 { STRUCT_FIELD(bth, transport_header_version), 242 { STRUCT_FIELD(bth, pkey), 250 { STRUCT_FIELD(bth, destination_qpn), 254 { STRUCT_FIELD(bth, ack_req), 262 { STRUCT_FIELD(bth, psn), 388 header->bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in ib_ud_header_init() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 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() 457 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_ud_rcv() 474 pkey1 = be32_to_cpu(ohdr->bth[0]); in qib_ud_rcv() 511 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in qib_ud_rcv() 570 qib_lookup_pkey(ibp, be32_to_cpu(ohdr->bth[0])) : 0; in qib_ud_rcv()
|
D | qib_uc.c | 259 opcode = be32_to_cpu(ohdr->bth[0]); in qib_uc_rcv() 263 psn = be32_to_cpu(ohdr->bth[2]); in qib_uc_rcv() 377 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_uc_rcv() 462 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_uc_rcv() 489 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_uc_rcv()
|
D | qib_driver.c | 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_rc.c | 663 ohdr->bth[0] = cpu_to_be32(bth0); in qib_send_rc_ack() 664 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_send_rc_ack() 665 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & QIB_PSN_MASK); in qib_send_rc_ack() 908 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in qib_rc_send_complete() 916 psn = be32_to_cpu(ohdr->bth[2]); in qib_rc_send_complete() 1436 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv_resp() 1461 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv_resp() 1763 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rc_rcv() 1767 psn = be32_to_cpu(ohdr->bth[2]); in qib_rc_rcv() 1883 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv()
|
D | qib_ruc.c | 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_user_sdma.c | 463 hdr->bth[0] = cpu_to_be32(be32_to_cpu(hdr->bth[0])&0xFFCFFFFF); in qib_user_sdma_page_to_frags() 520 seqnum.val = be32_to_cpu(hdr->bth[2]); in qib_user_sdma_page_to_frags() 525 hdr->bth[2] = cpu_to_be32(seqnum.val); in qib_user_sdma_page_to_frags()
|
D | qib_common.h | 701 __be32 bth[3]; member
|
D | qib_verbs.c | 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()
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | ud.c | 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() 689 ohdr->bth[0] = cpu_to_be32(bth0); in return_cnp_16B() 691 ohdr->bth[1] = cpu_to_be32(remote_qpn); in return_cnp_16B() 692 ohdr->bth[2] = 0; /* PSN 0 */ in return_cnp_16B() 744 ohdr->bth[0] = cpu_to_be32(bth0); in return_cnp() 746 ohdr->bth[1] = cpu_to_be32(remote_qpn | (1 << IB_BECN_SHIFT)); in return_cnp() 747 ohdr->bth[2] = 0; /* PSN 0 */ in return_cnp()
|
D | trace_tx.h | 527 __be32 *bth = (__be32 *)hdr->bth; 538 __entry->bth0 = be32_to_cpu(bth[0]); 539 __entry->bth1 = be32_to_cpu(bth[1]); 540 __entry->bth2 = be32_to_cpu(bth[2]);
|
D | driver.c | 491 bth1 = be32_to_cpu(ohdr->bth[1]); in hfi1_process_ecn_slowpath() 628 bth1 = be32_to_cpu(packet->ohdr->bth[1]); in __prescan_rxq() 648 packet->ohdr->bth[1] = cpu_to_be32(bth1); in __prescan_rxq() 1751 opcode = (be32_to_cpu(packet.ohdr->bth[0]) >> 24); in seqfile_dump_rcd() 1752 qpn = be32_to_cpu(packet.ohdr->bth[1]) & RVT_QPN_MASK; in seqfile_dump_rcd() 1753 psn = mask_psn(be32_to_cpu(packet.ohdr->bth[2])); in seqfile_dump_rcd()
|
D | user_sdma.c | 440 opcode = (be32_to_cpu(req->hdr.bth[0]) >> 24) & 0xff; in hfi1_user_sdma_process_request() 463 pkey = (u16)be32_to_cpu(req->hdr.bth[0]); in hfi1_user_sdma_process_request() 1189 hdr->bth[2] = cpu_to_be32( in set_txreq_header() 1190 set_pkt_bth_psn(hdr->bth[2], in set_txreq_header() 1196 hdr->bth[2] |= cpu_to_be32(1UL << 31); in set_txreq_header() 1280 val32 = (be32_to_cpu(hdr->bth[2]) + req->seqnum) & in set_txreq_header_ahg()
|
D | ruc.c | 519 hdr.ibh.u.oth.bth[2]) / 4) 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()
|
D | verbs.h | 417 return ohdr->bth[1] & cpu_to_be32(OPA_BTH_MIG_REQ); in opa_bth_is_migration()
|
D | rc.c | 726 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_bth_aeth() 727 ohdr->bth[1] = cpu_to_be32(bth1 | qp->remote_qpn); in hfi1_make_bth_aeth() 728 ohdr->bth[2] = cpu_to_be32(mask_psn(qp->r_ack_psn)); in hfi1_make_bth_aeth()
|
/Linux-v4.19/include/uapi/rdma/hfi/ |
D | hfi1_user.h | 242 __be32 bth[3]; member
|
/Linux-v4.19/drivers/infiniband/hw/qedr/ |
D | qedr_roce_cm.c | 445 udh->bth.solicited_event = !!(swr->send_flags & IB_SEND_SOLICITED); in qedr_gsi_build_header() 446 udh->bth.pkey = QEDR_ROCE_PKEY_DEFAULT; in qedr_gsi_build_header() 447 udh->bth.destination_qpn = htonl(ud_wr(swr)->remote_qpn); in qedr_gsi_build_header() 448 udh->bth.psn = htonl((qp->sq_psn++) & ((1 << 24) - 1)); in qedr_gsi_build_header() 449 udh->bth.opcode = IB_OPCODE_UD_SEND_ONLY; in qedr_gsi_build_header()
|
/Linux-v4.19/drivers/infiniband/hw/mlx4/ |
D | qp.c | 2843 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_sriov_qp0_header() 2845 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_sriov_qp0_header() 2847 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_sriov_qp0_header() 2849 sqp->ud_header.bth.destination_qpn = in build_sriov_qp0_header() 2852 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_sriov_qp0_header() 2863 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_sriov_qp0_header() 3082 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_mlx_header() 3086 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in build_mlx_header() 3129 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_mlx_header() 3134 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_mlx_header() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 1516 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_mlx_header() 1520 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in build_mlx_header() 1531 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_mlx_header() 1538 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_mlx_header() 1539 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_mlx_header() 1540 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_mlx_header()
|
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 1981 qp->qp1_hdr.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in bnxt_re_build_qp1_send_v2() 1984 qp->qp1_hdr.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in bnxt_re_build_qp1_send_v2() 1987 qp->qp1_hdr.bth.solicited_event = 1; in bnxt_re_build_qp1_send_v2() 1989 qp->qp1_hdr.bth.pad_count = (4 - payload_size) & 3; in bnxt_re_build_qp1_send_v2() 1992 qp->qp1_hdr.bth.pkey = cpu_to_be16(0xFFFF); in bnxt_re_build_qp1_send_v2() 1993 qp->qp1_hdr.bth.destination_qpn = IB_QP1; in bnxt_re_build_qp1_send_v2() 1994 qp->qp1_hdr.bth.ack_req = 0; in bnxt_re_build_qp1_send_v2() 1997 qp->qp1_hdr.bth.psn = cpu_to_be32(qp->send_psn); in bnxt_re_build_qp1_send_v2()
|