Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/infiniband/core/
Dud_header.c48 { STRUCT_FIELD(lrh, virtual_lane),
52 { STRUCT_FIELD(lrh, link_version),
56 { STRUCT_FIELD(lrh, service_level),
64 { STRUCT_FIELD(lrh, link_next_header),
68 { STRUCT_FIELD(lrh, destination_lid),
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()
349 header->lrh.packet_length = cpu_to_be16(packet_length); in ib_ud_header_init()
[all …]
/linux-6.1.9/drivers/infiniband/hw/qib/
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()
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()
465 if (unlikely(hdr->lrh[1] == IB_LID_PERMISSIVE || in qib_ud_rcv()
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()
489 (be16_to_cpu(hdr->lrh[0]) >> 12) == 15))) in qib_ud_rcv()
[all …]
Dqib_driver.c309 u16 lid = be16_to_cpu(hdr->lrh[1]); in qib_rcv_hdrerr()
310 int lnh = be16_to_cpu(hdr->lrh[0]) & 3; in qib_rcv_hdrerr()
490 u16 lrh_len = be16_to_cpu(hdr->lrh[2]) << 2; in qib_kreceive()
Dqib_user_sdma.c449 hdr->lrh[2] = cpu_to_be16(le16_to_cpu(pbc16[0])); in qib_user_sdma_page_to_frags()
467 be16_to_cpu(hdr->lrh[2]) - in qib_user_sdma_page_to_frags()
495 hdr->lrh[2] = cpu_to_be16(le16_to_cpu(pbc16[0])); in qib_user_sdma_page_to_frags()
511 be16_to_cpu(hdr->lrh[2]) - in qib_user_sdma_page_to_frags()
Dqib_common.h700 __be16 lrh[4]; member
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()
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()
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-6.1.9/fs/ntfs3/
Dfslog.c396 struct LFS_RECORD_HDR *lrh; // Log record header of the current lsn. member
407 kfree(lcb->lrh); in lcb_put()
2368 struct LFS_RECORD_HDR *rh = lcb->lrh; in find_log_rec()
2376 lcb->lrh = rh; in find_log_rec()
2485 hdr = lcb->lrh; in find_client_next_lsn()
2502 if (hdr != lcb->lrh) in find_client_next_lsn()
2515 kfree(lcb->lrh); in find_client_next_lsn()
2516 lcb->lrh = hdr; in find_client_next_lsn()
2523 if (hdr != lcb->lrh) in find_client_next_lsn()
2548 kfree(lcb->lrh); in find_client_next_lsn()
[all …]
/linux-6.1.9/include/rdma/
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()
Dib_pack.h239 struct ib_unpacked_lrh lrh; member
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dhfi.h415 return (u8)(hdr->lrh[2] & OPA_16B_L4_MASK); in hfi1_16B_get_l4()
420 return (u8)((hdr->lrh[1] & OPA_16B_SC_MASK) >> OPA_16B_SC_SHIFT); in hfi1_16B_get_sc()
425 return (u32)((hdr->lrh[1] & OPA_16B_LID_MASK) | in hfi1_16B_get_dlid()
426 (((hdr->lrh[2] & OPA_16B_DLID_MASK) >> in hfi1_16B_get_dlid()
432 return (u32)((hdr->lrh[0] & OPA_16B_LID_MASK) | in hfi1_16B_get_slid()
433 (((hdr->lrh[2] & OPA_16B_SLID_MASK) >> in hfi1_16B_get_slid()
439 return (u8)((hdr->lrh[0] & OPA_16B_BECN_MASK) >> OPA_16B_BECN_SHIFT); in hfi1_16B_get_becn()
444 return (u8)((hdr->lrh[1] & OPA_16B_FECN_MASK) >> OPA_16B_FECN_SHIFT); in hfi1_16B_get_fecn()
449 return (u8)((hdr->lrh[1] & OPA_16B_L2_MASK) >> OPA_16B_L2_SHIFT); in hfi1_16B_get_l2()
454 return (u16)((hdr->lrh[2] & OPA_16B_PKEY_MASK) >> OPA_16B_PKEY_SHIFT); in hfi1_16B_get_pkey()
[all …]
Dtrace_ibhdrs.h108 #define lrh_name(lrh) { HFI1_##lrh, #lrh } argument
109 #define show_lnh(lrh) \ argument
110 __print_symbolic(lrh, \
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
Duser_sdma.c440 sc = (((be16_to_cpu(req->hdr.lrh[0]) >> 12) & 0xF) | in hfi1_user_sdma_process_request()
451 slid = be16_to_cpu(req->hdr.lrh[3]); in hfi1_user_sdma_process_request()
462 if ((be16_to_cpu(req->hdr.lrh[0]) & 0x3) == HFI1_LRH_GRH) { in hfi1_user_sdma_process_request()
535 dlid = be16_to_cpu(req->hdr.lrh[1]); in hfi1_user_sdma_process_request()
615 len = ((be16_to_cpu(req->hdr.lrh[2]) << 2) - in compute_data_length()
1141 hdr->lrh[2] = cpu_to_be16(lrhlen >> 2); in set_txreq_header()
1157 req->hdr.lrh[2] = hdr->lrh[2]; in set_txreq_header()
Dtrace_tx.h494 __be32 *lrh = (__be32 *)hdr->lrh;
504 __entry->lrh0 = be32_to_cpu(lrh[0]);
505 __entry->lrh1 = be32_to_cpu(lrh[1]);
Dtrace.c152 return be16_to_cpu(hdr->lrh[2]); in ib_get_len()
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()
Ddriver.c1865 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in seqfile_dump_rcd()
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-6.1.9/drivers/infiniband/hw/mthca/
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()
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-6.1.9/include/uapi/rdma/hfi/
Dhfi1_user.h242 __be16 lrh[4]; member
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dqp.c2855 sqp->ud_header.lrh.service_level = in build_sriov_qp0_header()
2857 sqp->ud_header.lrh.destination_lid = in build_sriov_qp0_header()
2859 sqp->ud_header.lrh.source_lid = in build_sriov_qp0_header()
2867 mlx->rlid = sqp->ud_header.lrh.destination_lid; in build_sriov_qp0_header()
2869 sqp->ud_header.lrh.virtual_lane = 0; in build_sriov_qp0_header()
3043 sqp->ud_header.lrh.service_level = in build_mlx_header()
3045 sqp->ud_header.lrh.destination_lid = ah->av.ib.dlid; in build_mlx_header()
3046 sqp->ud_header.lrh.source_lid = cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_mlx_header()
3108 (sqp->ud_header.lrh.destination_lid == in build_mlx_header()
3112 (sqp->ud_header.lrh.service_level << 8)); in build_mlx_header()
[all …]