/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
H A D | rxe_hdr.h | 18 u8 *hdr; /* points to bth */ 20 u32 psn; /* bth psn of packet */ 22 u16 paylen; /* length of bth - icrc */ 24 u8 opcode; /* bth opcode of packet */ 25 u8 offset; /* bth offset from pkt->hdr */ 87 struct rxe_bth *bth = arg; in __bth_opcode() local 89 return bth->opcode; in __bth_opcode() 94 struct rxe_bth *bth = arg; in __bth_set_opcode() local 96 bth->opcode = opcode; in __bth_set_opcode() 101 struct rxe_bth *bth in __bth_se() local 108 struct rxe_bth *bth = arg; __bth_set_se() local 118 struct rxe_bth *bth = arg; __bth_mig() local 125 struct rxe_bth *bth = arg; __bth_set_mig() local 135 struct rxe_bth *bth = arg; __bth_pad() local 142 struct rxe_bth *bth = arg; __bth_set_pad() local 150 struct rxe_bth *bth = arg; __bth_tver() local 157 struct rxe_bth *bth = arg; __bth_set_tver() local 165 struct rxe_bth *bth = arg; __bth_pkey() local 172 struct rxe_bth *bth = arg; __bth_set_pkey() local 179 struct rxe_bth *bth = arg; __bth_qpn() local 186 struct rxe_bth *bth = arg; __bth_set_qpn() local 195 struct rxe_bth *bth = arg; __bth_fecn() local 202 struct rxe_bth *bth = arg; __bth_set_fecn() local 212 struct rxe_bth *bth = arg; __bth_becn() local 219 struct rxe_bth *bth = arg; __bth_set_becn() local 229 struct rxe_bth *bth = arg; __bth_resv6a() local 236 struct rxe_bth *bth = arg; __bth_set_resv6a() local 243 struct rxe_bth *bth = arg; __bth_ack() local 250 struct rxe_bth *bth = arg; __bth_set_ack() local 260 struct rxe_bth *bth = arg; __bth_set_resv7() local 267 struct rxe_bth *bth = arg; __bth_psn() local 274 struct rxe_bth *bth = arg; __bth_set_psn() local 410 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr + pkt->offset); bth_init() local [all...] |
H A D | rxe_icrc.c | 17 struct rxe_bth *bth; in rxe_icrc_hdr() local 57 bth = (struct rxe_bth *)&pshdr[bth_offset]; in rxe_icrc_hdr() 59 /* exclude bth.resv8a */ in rxe_icrc_hdr() 60 bth->qpn |= cpu_to_be32(~BTH_QPN_MASK); in rxe_icrc_hdr()
|
/kernel/linux/linux-6.6/drivers/infiniband/sw/rxe/ |
H A D | rxe_hdr.h | 18 u8 *hdr; /* points to bth */ 20 u32 psn; /* bth psn of packet */ 22 u16 paylen; /* length of bth - icrc */ 24 u8 opcode; /* bth opcode of packet */ 86 struct rxe_bth *bth = arg; in __bth_opcode() local 88 return bth->opcode; in __bth_opcode() 93 struct rxe_bth *bth = arg; in __bth_set_opcode() local 95 bth->opcode = opcode; in __bth_set_opcode() 100 struct rxe_bth *bth = arg; in __bth_se() local 102 return 0 != (BTH_SE_MASK & bth in __bth_se() 107 struct rxe_bth *bth = arg; __bth_set_se() local 117 struct rxe_bth *bth = arg; __bth_mig() local 124 struct rxe_bth *bth = arg; __bth_set_mig() local 134 struct rxe_bth *bth = arg; __bth_pad() local 141 struct rxe_bth *bth = arg; __bth_set_pad() local 149 struct rxe_bth *bth = arg; __bth_tver() local 156 struct rxe_bth *bth = arg; __bth_set_tver() local 164 struct rxe_bth *bth = arg; __bth_pkey() local 171 struct rxe_bth *bth = arg; __bth_set_pkey() local 178 struct rxe_bth *bth = arg; __bth_qpn() local 185 struct rxe_bth *bth = arg; __bth_set_qpn() local 194 struct rxe_bth *bth = arg; __bth_fecn() local 201 struct rxe_bth *bth = arg; __bth_set_fecn() local 211 struct rxe_bth *bth = arg; __bth_becn() local 218 struct rxe_bth *bth = arg; __bth_set_becn() local 228 struct rxe_bth *bth = arg; __bth_resv6a() local 235 struct rxe_bth *bth = arg; __bth_set_resv6a() local 242 struct rxe_bth *bth = arg; __bth_ack() local 249 struct rxe_bth *bth = arg; __bth_set_ack() local 259 struct rxe_bth *bth = arg; __bth_set_resv7() local 266 struct rxe_bth *bth = arg; __bth_psn() local 273 struct rxe_bth *bth = arg; __bth_set_psn() local 409 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr); bth_init() local [all...] |
H A D | rxe_icrc.c | 78 struct rxe_bth *bth; in rxe_icrc_hdr() local 118 bth = (struct rxe_bth *)&pshdr[bth_offset]; in rxe_icrc_hdr() 120 /* exclude bth.resv8a */ in rxe_icrc_hdr() 121 bth->qpn |= cpu_to_be32(~BTH_QPN_MASK); in rxe_icrc_hdr()
|
/kernel/linux/linux-5.10/include/rdma/ |
H A D | ib_hdrs.h | 93 __be32 bth[3]; member 243 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in ib_bth_get_pad() 249 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK); in ib_bth_get_pkey() 254 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_OPCODE_SHIFT) & in ib_bth_get_opcode() 260 return (u8)((be32_to_cpu(ohdr->bth[2]) >> IB_BTH_A_SHIFT) & in ib_bth_get_ackreq() 266 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_M_SHIFT) & in ib_bth_get_migreq() 272 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_SE_SHIFT) & in ib_bth_get_se() 278 return (u32)(be32_to_cpu(ohdr->bth[2])); in ib_bth_get_psn() 283 return (u32)((be32_to_cpu(ohdr->bth[1])) & IB_QPN_MASK); in ib_bth_get_qpn() 288 return (ohdr->bth[ in ib_bth_get_becn() [all...] |
/kernel/linux/linux-6.6/include/rdma/ |
H A D | ib_hdrs.h | 93 __be32 bth[3]; member 239 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in ib_bth_get_pad() 245 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK); in ib_bth_get_pkey() 250 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_OPCODE_SHIFT) & in ib_bth_get_opcode() 256 return (u8)((be32_to_cpu(ohdr->bth[2]) >> IB_BTH_A_SHIFT) & in ib_bth_get_ackreq() 262 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_M_SHIFT) & in ib_bth_get_migreq() 268 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_SE_SHIFT) & in ib_bth_get_se() 274 return (u32)(be32_to_cpu(ohdr->bth[2])); in ib_bth_get_psn() 279 return (u32)((be32_to_cpu(ohdr->bth[1])) & IB_QPN_MASK); in ib_bth_get_qpn() 284 return (ohdr->bth[ in ib_bth_get_becn() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A 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 in ib_ud_header_init() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A 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 in ib_ud_header_init() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
H A D | qib_ud.c | 367 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ud_req() 371 ohdr->bth[1] = rdma_ah_get_dlid(ah_attr) >= in qib_make_ud_req() 376 ohdr->bth[2] = cpu_to_be32(wqe->psn & QIB_PSN_MASK); in qib_make_ud_req() 453 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_ud_rcv() 470 pkey1 = be32_to_cpu(ohdr->bth[0]); in qib_ud_rcv() 507 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in qib_ud_rcv() 566 qib_lookup_pkey(ibp, be32_to_cpu(ohdr->bth[0])) : 0; in qib_ud_rcv()
|
H A 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() 461 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_uc_rcv() 488 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_uc_rcv()
|
H A D | qib_ruc.c | 240 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ruc_header() 241 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_make_ruc_header() 242 ohdr->bth[2] = cpu_to_be32(bth2); in qib_make_ruc_header()
|
H A D | qib_driver.c | 341 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rcv_hdrerr() 343 psn = be32_to_cpu(ohdr->bth[2]); in qib_rcv_hdrerr() 346 qp_num = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in qib_rcv_hdrerr() 377 be32_to_cpu(ohdr->bth[0])); in qib_rcv_hdrerr()
|
H A D | qib_rc.c | 652 ohdr->bth[0] = cpu_to_be32(bth0); in qib_send_rc_ack() 653 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_send_rc_ack() 654 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & QIB_PSN_MASK); in qib_send_rc_ack() 897 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in qib_rc_send_complete() 905 psn = be32_to_cpu(ohdr->bth[2]); in qib_rc_send_complete() 1408 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv_resp() 1433 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv_resp() 1736 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rc_rcv() 1740 psn = be32_to_cpu(ohdr->bth[2]); in qib_rc_rcv() 1856 pad = (be32_to_cpu(ohdr->bth[ in qib_rc_rcv() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/ |
H A D | qib_ud.c | 368 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ud_req() 372 ohdr->bth[1] = rdma_ah_get_dlid(ah_attr) >= in qib_make_ud_req() 377 ohdr->bth[2] = cpu_to_be32(wqe->psn & QIB_PSN_MASK); in qib_make_ud_req() 454 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_ud_rcv() 471 pkey1 = be32_to_cpu(ohdr->bth[0]); in qib_ud_rcv() 508 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in qib_ud_rcv() 567 qib_lookup_pkey(ibp, be32_to_cpu(ohdr->bth[0])) : 0; in qib_ud_rcv()
|
H A D | qib_uc.c | 260 opcode = be32_to_cpu(ohdr->bth[0]); in qib_uc_rcv() 264 psn = be32_to_cpu(ohdr->bth[2]); in qib_uc_rcv() 378 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()
|
H A D | qib_ruc.c | 240 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ruc_header() 241 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_make_ruc_header() 242 ohdr->bth[2] = cpu_to_be32(bth2); in qib_make_ruc_header()
|
H A D | qib_driver.c | 342 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rcv_hdrerr() 344 psn = be32_to_cpu(ohdr->bth[2]); in qib_rcv_hdrerr() 347 qp_num = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in qib_rcv_hdrerr() 378 be32_to_cpu(ohdr->bth[0])); in qib_rcv_hdrerr()
|
H A D | qib_rc.c | 653 ohdr->bth[0] = cpu_to_be32(bth0); in qib_send_rc_ack() 654 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_send_rc_ack() 655 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & QIB_PSN_MASK); in qib_send_rc_ack() 898 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in qib_rc_send_complete() 906 psn = be32_to_cpu(ohdr->bth[2]); in qib_rc_send_complete() 1410 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv_resp() 1435 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv_resp() 1739 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rc_rcv() 1743 psn = be32_to_cpu(ohdr->bth[2]); in qib_rc_rcv() 1859 pad = (be32_to_cpu(ohdr->bth[ in qib_rc_rcv() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | ud.c | 290 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_bth_deth() 291 ohdr->bth[1] = cpu_to_be32(rvt_get_swqe_remote_qpn(wqe)); in hfi1_make_bth_deth() 292 ohdr->bth[2] = cpu_to_be32(mask_psn(wqe->psn)); in hfi1_make_bth_deth() 671 ohdr->bth[0] = cpu_to_be32(bth0); in return_cnp_16B() 673 ohdr->bth[1] = cpu_to_be32(remote_qpn); in return_cnp_16B() 674 ohdr->bth[2] = 0; /* PSN 0 */ in return_cnp_16B() 729 ohdr->bth[0] = cpu_to_be32(bth0); in return_cnp() 731 ohdr->bth[1] = cpu_to_be32(remote_qpn | (1 << IB_BECN_SHIFT)); in return_cnp() 732 ohdr->bth[2] = 0; /* PSN 0 */ in return_cnp()
|
H A D | ruc.c | 192 hdr.ibh.u.oth.bth[2]) / 4) 253 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_ruc_bth() 254 ohdr->bth[1] = cpu_to_be32(bth1); in hfi1_make_ruc_bth() 255 ohdr->bth[2] = cpu_to_be32(bth2); in hfi1_make_ruc_bth()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | ud.c | 248 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_bth_deth() 249 ohdr->bth[1] = cpu_to_be32(rvt_get_swqe_remote_qpn(wqe)); in hfi1_make_bth_deth() 250 ohdr->bth[2] = cpu_to_be32(mask_psn(wqe->psn)); in hfi1_make_bth_deth() 630 ohdr->bth[0] = cpu_to_be32(bth0); in return_cnp_16B() 632 ohdr->bth[1] = cpu_to_be32(remote_qpn); in return_cnp_16B() 633 ohdr->bth[2] = 0; /* PSN 0 */ in return_cnp_16B() 688 ohdr->bth[0] = cpu_to_be32(bth0); in return_cnp() 690 ohdr->bth[1] = cpu_to_be32(remote_qpn | (1 << IB_BECN_SHIFT)); in return_cnp() 691 ohdr->bth[2] = 0; /* PSN 0 */ in return_cnp()
|
H A D | ruc.c | 150 hdr.ibh.u.oth.bth[2]) / 4) 211 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_ruc_bth() 212 ohdr->bth[1] = cpu_to_be32(bth1); in hfi1_make_ruc_bth() 213 ohdr->bth[2] = cpu_to_be32(bth2); in hfi1_make_ruc_bth()
|
H A D | user_sdma.c | 404 opcode = (be32_to_cpu(req->hdr.bth[0]) >> 24) & 0xff; in hfi1_user_sdma_process_request() 427 pkey = (u16)be32_to_cpu(req->hdr.bth[0]); in hfi1_user_sdma_process_request() 965 hdr->bth[2] = cpu_to_be32( in set_txreq_header() 966 set_pkt_bth_psn(hdr->bth[2], in set_txreq_header() 972 hdr->bth[2] |= cpu_to_be32(1UL << 31); in set_txreq_header() 1056 val32 = (be32_to_cpu(hdr->bth[2]) + req->seqnum) & in set_txreq_header_ahg()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/ |
H A D | qedr_roce_cm.c | 448 udh->bth.solicited_event = !!(swr->send_flags & IB_SEND_SOLICITED); in qedr_gsi_build_header() 449 udh->bth.pkey = QEDR_ROCE_PKEY_DEFAULT; in qedr_gsi_build_header() 450 udh->bth.destination_qpn = htonl(ud_wr(swr)->remote_qpn); in qedr_gsi_build_header() 451 udh->bth.psn = htonl((qp->sq_psn++) & ((1 << 24) - 1)); in qedr_gsi_build_header() 452 udh->bth.opcode = IB_OPCODE_UD_SEND_ONLY; in qedr_gsi_build_header()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/qedr/ |
H A D | qedr_roce_cm.c | 446 udh->bth.solicited_event = !!(swr->send_flags & IB_SEND_SOLICITED); in qedr_gsi_build_header() 447 udh->bth.pkey = QEDR_ROCE_PKEY_DEFAULT; in qedr_gsi_build_header() 448 udh->bth.destination_qpn = htonl(ud_wr(swr)->remote_qpn); in qedr_gsi_build_header() 449 udh->bth.psn = htonl((qp->sq_psn++) & ((1 << 24) - 1)); in qedr_gsi_build_header() 450 udh->bth.opcode = IB_OPCODE_UD_SEND_ONLY; in qedr_gsi_build_header()
|