Home
last modified time | relevance | path

Searched refs:lrh (Results 1 – 25 of 25) sorted by relevance

/linux/drivers/infiniband/core/
H A Dud_header.c48 { STRUCT_FIELD(lrh, virtual_lane),
52 { STRUCT_FIELD(lrh, link_version),
56 { STRUCT_FIELD(lrh, service_level),
76 { STRUCT_FIELD(lrh, packet_length),
80 { STRUCT_FIELD(lrh, source_lid),
339 header->lrh.link_version = 0; in ib_ud_header_init()
340 header->lrh.link_next_header = in ib_ud_header_init()
420 &header->lrh, buf + len); in ib_ud_header_pack()
478 buf, &header->lrh); in ib_ud_header_unpack()
483 header->lrh.link_version); in ib_ud_header_unpack()
[all …]
/linux/drivers/infiniband/hw/qib/
H A Dqib_ruc.c113 (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF, in qib_ruc_check_hdr()
115 hdr->lrh[3], hdr->lrh[1]); in qib_ruc_check_hdr()
119 if ((be16_to_cpu(hdr->lrh[3]) != in qib_ruc_check_hdr()
152 (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF, in qib_ruc_check_hdr()
154 hdr->lrh[3], hdr->lrh[1]); in qib_ruc_check_hdr()
158 if (be16_to_cpu(hdr->lrh[3]) != in qib_ruc_check_hdr()
228 priv->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ruc_header()
229 priv->s_hdr->lrh[1] = in qib_make_ruc_header()
231 priv->s_hdr->lrh[2] = in qib_make_ruc_header()
233 priv->s_hdr->lrh[3] = in qib_make_ruc_header()
H A Dqib_ud.c350 priv->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ud_req()
351 priv->s_hdr->lrh[1] = in qib_make_ud_req()
353 priv->s_hdr->lrh[2] = in qib_make_ud_req()
359 priv->s_hdr->lrh[3] = cpu_to_be16(lid); in qib_make_ud_req()
361 priv->s_hdr->lrh[3] = IB_LID_PERMISSIVE; in qib_make_ud_req()
466 hdr->lrh[3] == IB_LID_PERMISSIVE)) in qib_ud_rcv()
476 (be16_to_cpu(hdr->lrh[0]) >> 4) & in qib_ud_rcv()
479 hdr->lrh[3], hdr->lrh[1]); in qib_ud_rcv()
498 if ((hdr->lrh[1] == IB_LID_PERMISSIVE || in qib_ud_rcv()
568 wc.slid = be16_to_cpu(hdr->lrh[3]); in qib_ud_rcv()
[all …]
H A Dqib_driver.c303 u16 lid = be16_to_cpu(hdr->lrh[1]); in qib_rcv_hdrerr()
304 int lnh = be16_to_cpu(hdr->lrh[0]) & 3; in qib_rcv_hdrerr()
484 u16 lrh_len = be16_to_cpu(hdr->lrh[2]) << 2; in qib_kreceive()
H A Dqib_user_sdma.c448 hdr->lrh[2] = cpu_to_be16(le16_to_cpu(pbc16[0])); in qib_user_sdma_page_to_frags()
466 be16_to_cpu(hdr->lrh[2]) - in qib_user_sdma_page_to_frags()
494 hdr->lrh[2] = cpu_to_be16(le16_to_cpu(pbc16[0])); in qib_user_sdma_page_to_frags()
510 be16_to_cpu(hdr->lrh[2]) - in qib_user_sdma_page_to_frags()
H A Dqib_common.h700 __be16 lrh[4]; member
H A Dqib_rc.c648 hdr.lrh[0] = cpu_to_be16(lrh0); in qib_send_rc_ack()
649 hdr.lrh[1] = cpu_to_be16(rdma_ah_get_dlid(&qp->remote_ah_attr)); in qib_send_rc_ack()
650 hdr.lrh[2] = cpu_to_be16(hwords + SIZE_OF_CRC); in qib_send_rc_ack()
651 hdr.lrh[3] = cpu_to_be16(ppd->lid | in qib_send_rc_ack()
893 if ((be16_to_cpu(hdr->lrh[0]) & 3) == QIB_LRH_BTH) in qib_rc_send_complete()
H A Dqib_verbs.c290 lid = be16_to_cpu(hdr->lrh[1]); in qib_ib_rcv()
298 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in qib_ib_rcv()
798 be16_to_cpu(hdr->lrh[0]) >> 12); in qib_verbs_send_dma()
922 be16_to_cpu(ibhdr->lrh[0]) >> 12); in qib_verbs_send_pio()
H A Dqib_iba7322.c1403 .lrh[0] = cpu_to_be16(0xF000 | QIB_LRH_BTH), in flush_fifo()
1404 .lrh[1] = IB_LID_PERMISSIVE, in flush_fifo()
1405 .lrh[2] = cpu_to_be16(hdrwords + SIZE_OF_CRC), in flush_fifo()
1406 .lrh[3] = IB_LID_PERMISSIVE, in flush_fifo()
/linux/fs/ntfs3/
H A Dfslog.c407 kfree(lcb->lrh); in lcb_put()
2396 lcb->lrh = rh; in find_log_rec()
2505 hdr = lcb->lrh; in find_client_next_lsn()
2569 lcb->lrh = hdr; in find_client_next_lsn()
3294 if (lrh->redo_len == lrh->undo_len) { in do_action()
4140 frh = lcb->lrh; in log_replay()
4180 frh = lcb->lrh; in log_replay()
4550 Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
4624 Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)), t16); in log_replay()
4951 data = Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
[all …]
/linux/include/rdma/
H A Dib_hdrs.h98 __be16 lrh[4]; member
175 return (be16_to_cpu(hdr->lrh[0]) & IB_LNH_MASK); in ib_get_lnh()
180 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SC_SHIFT) & IB_SC_MASK); in ib_get_sc()
190 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SL_SHIFT) & IB_SL_MASK); in ib_get_sl()
195 return (be16_to_cpu(hdr->lrh[1])); in ib_get_dlid()
200 return (be16_to_cpu(hdr->lrh[3])); in ib_get_slid()
205 return (u8)((be16_to_cpu(hdr->lrh[0]) >> IB_LVER_SHIFT) & in ib_get_lver()
H A Dib_pack.h244 struct ib_unpacked_lrh lrh; member
/linux/drivers/infiniband/hw/hfi1/
H A Dhfi.h415 return (u8)(hdr->lrh[2] & OPA_16B_L4_MASK); in hfi1_16B_get_l4()
426 (((hdr->lrh[2] & OPA_16B_DLID_MASK) >> in hfi1_16B_get_dlid()
433 (((hdr->lrh[2] & OPA_16B_SLID_MASK) >> in hfi1_16B_get_slid()
2611 hdr->lrh[0] = cpu_to_be16(lrh0); in hfi1_make_ib_hdr()
2612 hdr->lrh[1] = cpu_to_be16(dlid); in hfi1_make_ib_hdr()
2613 hdr->lrh[2] = cpu_to_be16(len); in hfi1_make_ib_hdr()
2614 hdr->lrh[3] = cpu_to_be16(slid); in hfi1_make_ib_hdr()
2641 hdr->lrh[0] = lrh0; in hfi1_make_16b_hdr()
2642 hdr->lrh[1] = lrh1; in hfi1_make_16b_hdr()
2643 hdr->lrh[2] = lrh2; in hfi1_make_16b_hdr()
[all …]
H A Dtrace_ibhdrs.h108 #define lrh_name(lrh) { HFI1_##lrh, #lrh } argument
109 #define show_lnh(lrh) \ argument
110 __print_symbolic(lrh, \
H A Dverbs.h68 #define LRH_16B_BYTES (sizeof_field(struct hfi1_16b_header, lrh))
70 #define LRH_9B_BYTES (sizeof_field(struct ib_header, lrh))
80 u32 lrh[4]; member
H A Duser_sdma.c417 sc = (((be16_to_cpu(req->hdr.lrh[0]) >> 12) & 0xF) | in hfi1_user_sdma_process_request()
428 slid = be16_to_cpu(req->hdr.lrh[3]); in hfi1_user_sdma_process_request()
439 if ((be16_to_cpu(req->hdr.lrh[0]) & 0x3) == HFI1_LRH_GRH) { in hfi1_user_sdma_process_request()
511 dlid = be16_to_cpu(req->hdr.lrh[1]); in hfi1_user_sdma_process_request()
591 len = ((be16_to_cpu(req->hdr.lrh[2]) << 2) - in compute_data_length()
934 hdr->lrh[2] = cpu_to_be16(lrhlen >> 2); in set_txreq_header()
950 req->hdr.lrh[2] = hdr->lrh[2]; in set_txreq_header()
H A Dtrace_tx.h494 __be32 *lrh = (__be32 *)hdr->lrh;
504 __entry->lrh0 = be32_to_cpu(lrh[0]);
505 __entry->lrh1 = be32_to_cpu(lrh[1]);
H A Dtrace.c152 return be16_to_cpu(hdr->lrh[2]); in ib_get_len()
H A Dverbs.c345 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in hfi1_kdeth_eager_rcv()
399 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in hfi1_kdeth_expected_rcv()
H A Ddriver.c1865 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in seqfile_dump_rcd()
H A Dtid_rdma.c2856 int lnh = be16_to_cpu(hdr->lrh[0]) & 3; in hfi1_handle_kdeth_eflags()
2857 u16 lid = be16_to_cpu(hdr->lrh[1]); in hfi1_handle_kdeth_eflags()
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_av.c275 header->lrh.service_level = be32_to_cpu(ah->av->sl_tclass_flowlabel) >> 28; in mthca_read_ah()
276 header->lrh.destination_lid = ah->av->dlid; in mthca_read_ah()
277 header->lrh.source_lid = cpu_to_be16(ah->av->g_slid & 0x7f); in mthca_read_ah()
H A Dmthca_qp.c1519 (sqp->ud_header.lrh.destination_lid == in build_mlx_header()
1521 (sqp->ud_header.lrh.service_level << 8)); in build_mlx_header()
1522 mlx->rlid = sqp->ud_header.lrh.destination_lid; in build_mlx_header()
1539 sqp->ud_header.lrh.virtual_lane = !qp->ibqp.qp_num ? 15 : 0; in build_mlx_header()
1540 if (sqp->ud_header.lrh.destination_lid == IB_LID_PERMISSIVE) in build_mlx_header()
1541 sqp->ud_header.lrh.source_lid = IB_LID_PERMISSIVE; in build_mlx_header()
/linux/include/uapi/rdma/hfi/
H A Dhfi1_user.h242 __be16 lrh[4]; member
/linux/drivers/infiniband/hw/mlx4/
H A Dqp.c2894 sqp->ud_header.lrh.service_level = in build_sriov_qp0_header()
2896 sqp->ud_header.lrh.destination_lid = in build_sriov_qp0_header()
2898 sqp->ud_header.lrh.source_lid = in build_sriov_qp0_header()
2906 mlx->rlid = sqp->ud_header.lrh.destination_lid; in build_sriov_qp0_header()
2908 sqp->ud_header.lrh.virtual_lane = 0; in build_sriov_qp0_header()
3082 sqp->ud_header.lrh.service_level = in build_mlx_header()
3147 (sqp->ud_header.lrh.destination_lid == in build_mlx_header()
3151 (sqp->ud_header.lrh.service_level << 8)); in build_mlx_header()
3154 mlx->rlid = sqp->ud_header.lrh.destination_lid; in build_mlx_header()
3194 sqp->ud_header.lrh.virtual_lane = in build_mlx_header()
[all …]