| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_hdr.h | 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->flags); in __bth_se() 107 struct rxe_bth *bth = arg; in __bth_set_se() local 110 bth->flags |= BTH_SE_MASK; in __bth_set_se() 112 bth->flags &= ~BTH_SE_MASK; in __bth_set_se() 117 struct rxe_bth *bth = arg; in __bth_mig() local [all …]
|
| /linux/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[1]) & cpu_to_be32(IB_BECN_SMASK); in ib_bth_get_becn() [all …]
|
| /linux/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 | 402 opcode = (be32_to_cpu(req->hdr.bth[0]) >> 24) & 0xff; in hfi1_user_sdma_process_request() 425 pkey = (u16)be32_to_cpu(req->hdr.bth[0]); in hfi1_user_sdma_process_request() 963 hdr->bth[2] = cpu_to_be32( in set_txreq_header() 964 set_pkt_bth_psn(hdr->bth[2], in set_txreq_header() 970 hdr->bth[2] |= cpu_to_be32(1UL << 31); in set_txreq_header() 1054 val32 = (be32_to_cpu(hdr->bth[2]) + req->seqnum) & in set_txreq_header_ahg()
|
| H A D | driver.c | 484 u32 lqpn = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in hfi1_process_ecn_slowpath() 614 bth1 = be32_to_cpu(packet->ohdr->bth[1]); in __prescan_rxq() 629 packet->ohdr->bth[1] = cpu_to_be32(bth1); in __prescan_rxq() 1875 opcode = (be32_to_cpu(packet.ohdr->bth[0]) >> 24); in seqfile_dump_rcd() 1876 qpn = be32_to_cpu(packet.ohdr->bth[1]) & RVT_QPN_MASK; in seqfile_dump_rcd() 1877 psn = mask_psn(be32_to_cpu(packet.ohdr->bth[2])); in seqfile_dump_rcd()
|
| H A D | tid_rdma.c | 2061 bth0 = be32_to_cpu(ohdr->bth[0]); in tid_rdma_rcv_error() 2245 bth0 = be32_to_cpu(ohdr->bth[0]); in hfi1_rc_rcv_tid_rdma_read_req() 2250 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_read_req() 2464 kpsn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_read_resp() 2466 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_rc_rcv_tid_rdma_read_resp() 2884 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_handle_kdeth_eflags() 2885 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0xff; in hfi1_handle_kdeth_eflags() 3674 bth0 = be32_to_cpu(ohdr->bth[0]); in hfi1_rc_rcv_tid_rdma_write_req() 3679 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_write_req() 4053 psn = mask_psn(be32_to_cpu(ohdr->bth[2])); in hfi1_rc_rcv_tid_rdma_write_resp() [all …]
|
| H A D | ipoib_tx.c | 328 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_ipoib_build_ib_tx_headers() 329 ohdr->bth[1] = cpu_to_be32(txp->dqpn); in hfi1_ipoib_build_ib_tx_headers() 330 ohdr->bth[2] = cpu_to_be32(mask_psn((u32)txp->txq->tx_ring.sent_txreqs)); in hfi1_ipoib_build_ib_tx_headers()
|
| H A D | verbs.h | 442 return ohdr->bth[1] & cpu_to_be32(OPA_BTH_MIG_REQ); in opa_bth_is_migration()
|
| H A D | rc.c | 1191 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_bth_aeth() 1192 ohdr->bth[1] = cpu_to_be32(bth1 | qp->remote_qpn); in hfi1_make_bth_aeth() 1193 ohdr->bth[2] = cpu_to_be32(mask_psn(qp->r_ack_psn)); in hfi1_make_bth_aeth() 1686 ohdr->bth[2] = cpu_to_be32(psn); in hfi1_rc_verbs_aborted() 2792 opfn_trigger_conn_request(qp, be32_to_cpu(ohdr->bth[1])); in hfi1_rc_rcv()
|
| H A D | verbs.c | 352 opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24); in hfi1_kdeth_eager_rcv() 406 opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24); in hfi1_kdeth_expected_rcv()
|
| /linux/drivers/infiniband/hw/qedr/ |
| H A D | qedr_roce_cm.c | 444 udh->bth.solicited_event = !!(swr->send_flags & IB_SEND_SOLICITED); in qedr_gsi_build_header() 445 udh->bth.pkey = QEDR_ROCE_PKEY_DEFAULT; in qedr_gsi_build_header() 446 udh->bth.destination_qpn = htonl(ud_wr(swr)->remote_qpn); in qedr_gsi_build_header() 447 udh->bth.psn = htonl((qp->sq_psn++) & ((1 << 24) - 1)); in qedr_gsi_build_header() 448 udh->bth.opcode = IB_OPCODE_UD_SEND_ONLY; in qedr_gsi_build_header()
|
| /linux/include/uapi/rdma/hfi/ |
| H A D | hfi1_user.h | 243 __be32 bth[3]; member
|
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | qp.c | 2916 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_sriov_qp0_header() 2920 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_sriov_qp0_header() 2922 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_sriov_qp0_header() 2924 sqp->ud_header.bth.destination_qpn = in build_sriov_qp0_header() 2927 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_sriov_qp0_header() 2938 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_sriov_qp0_header() 3166 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_mlx_header() 3170 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in build_mlx_header() 3212 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_mlx_header() 3222 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_mlx_header() [all …]
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_qp.c | 1527 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in build_mlx_header() 1531 sqp->ud_header.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in build_mlx_header() 1542 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_mlx_header() 1549 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_mlx_header() 1550 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_mlx_header() 1551 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_mlx_header()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_hw.h | 830 __le32 bth; member 965 u32 bth; member
|
| H A D | enetc_qos.c | 93 gcl_data->bth = cpu_to_le32(upper_32_bits(admin_conf->base_time)); in enetc_setup_taprio() 843 sgcl_data->bth = upper_32_bits(start); in enetc_streamgate_hw_set() 849 sgcl_data->bth = hi; in enetc_streamgate_hw_set()
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | ib_verbs.c | 2519 qp->qp1_hdr.bth.opcode = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE; in bnxt_re_build_qp1_send_v2() 2522 qp->qp1_hdr.bth.opcode = IB_OPCODE_UD_SEND_ONLY; in bnxt_re_build_qp1_send_v2() 2525 qp->qp1_hdr.bth.solicited_event = 1; in bnxt_re_build_qp1_send_v2() 2527 qp->qp1_hdr.bth.pad_count = (4 - payload_size) & 3; in bnxt_re_build_qp1_send_v2() 2530 qp->qp1_hdr.bth.pkey = cpu_to_be16(0xFFFF); in bnxt_re_build_qp1_send_v2() 2531 qp->qp1_hdr.bth.destination_qpn = IB_QP1; in bnxt_re_build_qp1_send_v2() 2532 qp->qp1_hdr.bth.ack_req = 0; in bnxt_re_build_qp1_send_v2() 2535 qp->qp1_hdr.bth.psn = cpu_to_be32(qp->send_psn); in bnxt_re_build_qp1_send_v2()
|