/drivers/infiniband/core/ |
D | ud_header.c | 155 { STRUCT_FIELD(bth, opcode), 159 { STRUCT_FIELD(bth, solicited_event), 163 { STRUCT_FIELD(bth, mig_req), 167 { STRUCT_FIELD(bth, pad_count), 171 { STRUCT_FIELD(bth, transport_header_version), 175 { STRUCT_FIELD(bth, pkey), 183 { STRUCT_FIELD(bth, destination_qpn), 187 { STRUCT_FIELD(bth, ack_req), 195 { STRUCT_FIELD(bth, psn), 267 header->bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in ib_ud_header_init() [all …]
|
/drivers/staging/rdma/hfi1/ |
D | driver.c | 302 qp_num = be32_to_cpu(ohdr->bth[1]) & HFI1_QPN_MASK; in rcv_hdrerr() 350 __be32 *bth = NULL; in rcv_hdrerr() local 359 bth = (__be32 *)ebuf; in rcv_hdrerr() 361 bth = (__be32 *)((char *)ebuf + sizeof(struct ib_grh)); in rcv_hdrerr() 365 opcode = be32_to_cpu(bth[0]) >> 24; in rcv_hdrerr() 383 lqpn = be32_to_cpu(bth[1]) & HFI1_QPN_MASK; in rcv_hdrerr() 461 is_fecn = (be32_to_cpu(ohdr->bth[1]) >> HFI1_FECN_SHIFT) & in process_ecn() 463 is_becn = (be32_to_cpu(ohdr->bth[1]) >> HFI1_BECN_SHIFT) & in process_ecn() 472 u16 pkey = (u16)be32_to_cpu(ohdr->bth[0]); in process_ecn() 481 u32 lqpn = be32_to_cpu(ohdr->bth[1]) & HFI1_QPN_MASK; in process_ecn() [all …]
|
D | ud.c | 407 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_ud_req() 408 ohdr->bth[1] = cpu_to_be32(wqe->ud_wr.remote_qpn); in hfi1_make_ud_req() 409 ohdr->bth[2] = cpu_to_be32(mask_psn(qp->s_next_psn++)); in hfi1_make_ud_req() 512 ohdr->bth[0] = cpu_to_be32(bth0); in return_cnp() 514 ohdr->bth[1] = cpu_to_be32(remote_qpn | (1 << HFI1_BECN_SHIFT)); in return_cnp() 515 ohdr->bth[2] = 0; /* PSN 0 */ in return_cnp() 670 bth1 = be32_to_cpu(ohdr->bth[1]); in hfi1_ud_rcv() 677 u32 lqpn = be32_to_cpu(ohdr->bth[1]) & HFI1_QPN_MASK; in hfi1_ud_rcv() 691 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in hfi1_ud_rcv() 694 pkey = (u16)be32_to_cpu(ohdr->bth[0]); in hfi1_ud_rcv() [all …]
|
D | trace.h | 484 (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; 486 (be32_to_cpu(ohdr->bth[0]) >> 23) & 1; 488 (be32_to_cpu(ohdr->bth[0]) >> 22) & 1; 490 (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; 492 (be32_to_cpu(ohdr->bth[0]) >> 16) & 0xf; 494 be32_to_cpu(ohdr->bth[0]) & 0xffff; 496 (be32_to_cpu(ohdr->bth[1]) >> HFI1_FECN_SHIFT) 499 (be32_to_cpu(ohdr->bth[1]) >> HFI1_BECN_SHIFT) 502 be32_to_cpu(ohdr->bth[1]) & HFI1_QPN_MASK; 504 (be32_to_cpu(ohdr->bth[2]) >> 31) & 1; [all …]
|
D | uc.c | 283 opcode = be32_to_cpu(ohdr->bth[0]); in hfi1_uc_rcv() 287 bth1 = be32_to_cpu(ohdr->bth[1]); in hfi1_uc_rcv() 306 u16 pkey = (u16)be32_to_cpu(ohdr->bth[0]); in hfi1_uc_rcv() 318 psn = be32_to_cpu(ohdr->bth[2]); in hfi1_uc_rcv() 431 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in hfi1_uc_rcv() 469 (ohdr->bth[0] & in hfi1_uc_rcv() 526 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in hfi1_uc_rcv() 553 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in hfi1_uc_rcv()
|
D | rc.c | 741 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_send_rc_ack() 742 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in hfi1_send_rc_ack() 743 ohdr->bth[1] |= cpu_to_be32((!!is_fecn) << HFI1_BECN_SHIFT); in hfi1_send_rc_ack() 744 ohdr->bth[2] = cpu_to_be32(mask_psn(qp->r_ack_psn)); in hfi1_send_rc_ack() 1002 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in hfi1_rc_send_complete() 1010 psn = be32_to_cpu(ohdr->bth[2]); in hfi1_rc_send_complete() 1547 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in rc_rcv_resp() 1571 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in rc_rcv_resp() 1959 bth0 = be32_to_cpu(ohdr->bth[0]); in hfi1_rc_rcv() 1963 bth1 = be32_to_cpu(ohdr->bth[1]); in hfi1_rc_rcv() [all …]
|
D | ruc.c | 698 #define BTH2_OFFSET (offsetof(struct hfi1_pio_header, hdr.u.oth.bth[2]) / 4) 812 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_ruc_header() 819 ohdr->bth[1] = cpu_to_be32(bth1); in hfi1_make_ruc_header() 820 ohdr->bth[2] = cpu_to_be32(bth2); in hfi1_make_ruc_header()
|
D | user_sdma.c | 570 opcode = (be32_to_cpu(req->hdr.bth[0]) >> 24) & 0xff; in hfi1_user_sdma_process_request() 1219 hdr->bth[2] = cpu_to_be32( in set_txreq_header() 1220 set_pkt_bth_psn(hdr->bth[2], in set_txreq_header() 1226 hdr->bth[2] |= cpu_to_be32(1UL<<31); in set_txreq_header() 1299 val32 = (be32_to_cpu(hdr->bth[2]) + req->seqnum) & in set_txreq_header_ahg()
|
D | verbs.c | 640 opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24); in hfi1_ib_rcv() 644 qp_num = be32_to_cpu(packet->ohdr->bth[1]) & HFI1_QPN_MASK; in hfi1_ib_rcv() 979 dohdr->bth[0] = sohdr->bth[0]; in build_verbs_tx_desc() 981 dohdr->bth[2] = sohdr->bth[2]; in build_verbs_tx_desc() 1267 pkey = (u16)be32_to_cpu(ohdr->bth[0]); in egress_pkey_check()
|
D | trace.c | 63 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in ibhdr_exhdr_len()
|
D | diag.c | 1311 qpn = be32_to_cpu(ohdr->bth[1]) & 0x00FFFFFF; in hfi1_filter_mad_mgmt_class() 1343 if (*((u32 *)value) == (be32_to_cpu(ohdr->bth[1]) & 0x00FFFFFF)) in hfi1_filter_qp_number() 1376 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in hfi1_filter_ibpacket_type() 1439 ((be32_to_cpu(ohdr->bth[0])) & 0x7FFF)) in hfi1_filter_ib_pkey()
|
/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 367 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ud_req() 371 ohdr->bth[1] = ah_attr->dlid >= QIB_MULTICAST_LID_BASE && in qib_make_ud_req() 375 ohdr->bth[2] = cpu_to_be32(qp->s_next_psn++ & QIB_PSN_MASK); in qib_make_ud_req() 455 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_ud_rcv() 472 pkey1 = be32_to_cpu(ohdr->bth[0]); in qib_ud_rcv() 513 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in qib_ud_rcv() 571 qib_lookup_pkey(ibp, be32_to_cpu(ohdr->bth[0])) : 0; in qib_ud_rcv() 583 (ohdr->bth[0] & in qib_ud_rcv()
|
D | qib_uc.c | 264 opcode = be32_to_cpu(ohdr->bth[0]); in qib_uc_rcv() 268 psn = be32_to_cpu(ohdr->bth[2]); in qib_uc_rcv() 391 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_uc_rcv() 418 (ohdr->bth[0] & in qib_uc_rcv() 477 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_uc_rcv() 504 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_uc_rcv()
|
D | qib_driver.c | 344 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rcv_hdrerr() 346 psn = be32_to_cpu(ohdr->bth[2]); in qib_rcv_hdrerr() 349 qp_num = be32_to_cpu(ohdr->bth[1]) & QIB_QPN_MASK; in qib_rcv_hdrerr() 377 be32_to_cpu(ohdr->bth[0])); in qib_rcv_hdrerr()
|
D | qib_rc.c | 702 ohdr->bth[0] = cpu_to_be32(bth0); in qib_send_rc_ack() 703 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_send_rc_ack() 704 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & QIB_PSN_MASK); in qib_send_rc_ack() 989 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in qib_rc_send_complete() 997 psn = be32_to_cpu(ohdr->bth[2]); in qib_rc_send_complete() 1543 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv_resp() 1568 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv_resp() 1889 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rc_rcv() 1893 psn = be32_to_cpu(ohdr->bth[2]); in qib_rc_rcv() 2018 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in qib_rc_rcv() [all …]
|
D | qib_user_sdma.c | 464 hdr->bth[0] = cpu_to_be32(be32_to_cpu(hdr->bth[0])&0xFFCFFFFF); in qib_user_sdma_page_to_frags() 521 seqnum.val = be32_to_cpu(hdr->bth[2]); in qib_user_sdma_page_to_frags() 526 hdr->bth[2] = cpu_to_be32(seqnum.val); in qib_user_sdma_page_to_frags()
|
D | qib_ruc.c | 704 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ruc_header() 705 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_make_ruc_header() 706 ohdr->bth[2] = cpu_to_be32(bth2); in qib_make_ruc_header()
|
D | qib_common.h | 701 __be32 bth[3]; member
|
/drivers/staging/rdma/ipath/ |
D | ipath_uc.c | 261 psn = be32_to_cpu(ohdr->bth[2]); in ipath_uc_rcv() 277 psn = be32_to_cpu(ohdr->bth[2]); in ipath_uc_rcv() 283 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in ipath_uc_rcv() 394 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_uc_rcv() 421 (ohdr->bth[0] & in ipath_uc_rcv() 496 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_uc_rcv() 522 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_uc_rcv()
|
D | ipath_ud.c | 367 ohdr->bth[0] = cpu_to_be32(bth0); in ipath_make_ud_req() 371 ohdr->bth[1] = ah_attr->dlid >= IPATH_MULTICAST_LID_BASE && in ipath_make_ud_req() 375 ohdr->bth[2] = cpu_to_be32(qp->s_next_psn++ & IPATH_PSN_MASK); in ipath_make_ud_req() 478 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in ipath_ud_rcv() 497 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_ud_rcv() 575 (ohdr->bth[0] & in ipath_ud_rcv()
|
D | ipath_rc.c | 679 ohdr->bth[0] = cpu_to_be32(bth0); in send_rc_ack() 680 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in send_rc_ack() 681 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & IPATH_PSN_MASK); in send_rc_ack() 1248 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_rc_rcv_resp() 1279 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_rc_rcv_resp() 1593 psn = be32_to_cpu(ohdr->bth[2]); in ipath_rc_rcv() 1608 psn = be32_to_cpu(ohdr->bth[2]); in ipath_rc_rcv() 1617 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in ipath_rc_rcv() 1719 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_rc_rcv() 1746 (ohdr->bth[0] & in ipath_rc_rcv()
|
D | ipath_common.h | 744 __be32 bth[3]; member 753 __be32 bth[3]; member
|
D | ipath_ruc.c | 625 ohdr->bth[0] = cpu_to_be32(bth0 | (1 << 22)); in ipath_make_ruc_header() 626 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in ipath_make_ruc_header() 627 ohdr->bth[2] = cpu_to_be32(bth2); in ipath_make_ruc_header()
|
/drivers/infiniband/hw/mlx4/ |
D | qp.c | 2195 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_sriov_qp0_header() 2199 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_sriov_qp0_header() 2201 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_sriov_qp0_header() 2203 sqp->ud_header.bth.destination_qpn = in build_sriov_qp0_header() 2206 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_sriov_qp0_header() 2217 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_sriov_qp0_header() 2380 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_mlx_header() 2384 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in build_mlx_header() 2429 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_mlx_header() 2439 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_mlx_header() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 1504 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_mlx_header() 1508 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in build_mlx_header() 1519 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_mlx_header() 1526 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_mlx_header() 1527 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_mlx_header() 1528 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_mlx_header()
|