Home
last modified time | relevance | path

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

/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()
/linux/drivers/infiniband/hw/hfi1/
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 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.c1866 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