/linux-4.4.14/drivers/infiniband/core/ |
D | ud_header.c | 47 { STRUCT_FIELD(lrh, virtual_lane), 51 { STRUCT_FIELD(lrh, link_version), 55 { STRUCT_FIELD(lrh, service_level), 63 { STRUCT_FIELD(lrh, link_next_header), 67 { STRUCT_FIELD(lrh, destination_lid), 75 { STRUCT_FIELD(lrh, packet_length), 79 { STRUCT_FIELD(lrh, source_lid), 239 header->lrh.link_version = 0; in ib_ud_header_init() 240 header->lrh.link_next_header = in ib_ud_header_init() 249 header->lrh.packet_length = cpu_to_be16(packet_length); in ib_ud_header_init() [all …]
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | ud.c | 386 qp->s_hdr->ibh.lrh[0] = cpu_to_be16(lrh0); in hfi1_make_ud_req() 387 qp->s_hdr->ibh.lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ in hfi1_make_ud_req() 388 qp->s_hdr->ibh.lrh[2] = in hfi1_make_ud_req() 391 qp->s_hdr->ibh.lrh[3] = IB_LID_PERMISSIVE; in hfi1_make_ud_req() 396 qp->s_hdr->ibh.lrh[3] = cpu_to_be16(lid); in hfi1_make_ud_req() 398 qp->s_hdr->ibh.lrh[3] = IB_LID_PERMISSIVE; in hfi1_make_ud_req() 517 hdr.lrh[0] = cpu_to_be16(lrh0); in return_cnp() 518 hdr.lrh[1] = cpu_to_be16(dlid); in return_cnp() 519 hdr.lrh[2] = cpu_to_be16(hwords + SIZE_OF_CRC); in return_cnp() 520 hdr.lrh[3] = cpu_to_be16(slid); in return_cnp() [all …]
|
D | ruc.c | 310 sc5, be16_to_cpu(hdr->lrh[3])))) { in hfi1_ruc_check_hdr() 313 (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF, in hfi1_ruc_check_hdr() 315 hdr->lrh[3], hdr->lrh[1]); in hfi1_ruc_check_hdr() 319 if (be16_to_cpu(hdr->lrh[3]) != qp->alt_ah_attr.dlid || in hfi1_ruc_check_hdr() 342 sc5, be16_to_cpu(hdr->lrh[3])))) { in hfi1_ruc_check_hdr() 345 (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF, in hfi1_ruc_check_hdr() 347 hdr->lrh[3], hdr->lrh[1]); in hfi1_ruc_check_hdr() 351 if (be16_to_cpu(hdr->lrh[3]) != qp->remote_ah_attr.dlid || in hfi1_ruc_check_hdr() 804 qp->s_hdr->ibh.lrh[0] = cpu_to_be16(lrh0); in hfi1_make_ruc_header() 805 qp->s_hdr->ibh.lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in hfi1_make_ruc_header() [all …]
|
D | trace.h | 377 #define lrh_name(lrh) { HFI1_##lrh, #lrh } argument 378 #define show_lnh(lrh) \ argument 379 __print_symbolic(lrh, \ 464 (u8)(be16_to_cpu(hdr->lrh[0]) >> 12); 466 (u8)(be16_to_cpu(hdr->lrh[0]) >> 8) & 0xf; 468 (u8)(be16_to_cpu(hdr->lrh[0]) >> 4) & 0xf; 470 (u8)(be16_to_cpu(hdr->lrh[0]) & 3); 472 be16_to_cpu(hdr->lrh[1]); 475 be16_to_cpu(hdr->lrh[2]); 477 be16_to_cpu(hdr->lrh[3]); [all …]
|
D | driver.c | 266 int lnh = be16_to_cpu(rhdr->lrh[0]) & 3; in rcv_hdrerr() 277 u16 lid = be16_to_cpu(hdr->lrh[1]); in rcv_hdrerr() 378 sc5 = (be16_to_cpu(rhdr->lrh[0]) >> 12) & 0xf; in rcv_hdrerr() 398 rlid = be16_to_cpu(rhdr->lrh[3]); in rcv_hdrerr() 466 sc5 = (be16_to_cpu(hdr->lrh[0]) >> 12) & 0xf; in process_ecn() 473 u16 dlid = be16_to_cpu(hdr->lrh[1]); in process_ecn() 474 u16 slid = be16_to_cpu(hdr->lrh[3]); in process_ecn() 586 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in prescan_rxq()
|
D | diag.c | 91 #define HFI1_GET_PKT_LEN(x) (((be16_to_cpu((x)->lrh[2]) & 0x7FF)) << 2) 1257 if (*((u16 *)value) == be16_to_cpu(hdr->lrh[3])) /* matches slid */ in hfi1_filter_lid() 1277 if (*((u16 *)value) == be16_to_cpu(hdr->lrh[1])) in hfi1_filter_dlid() 1306 if ((be16_to_cpu(hdr->lrh[0]) & 3) == HFI1_LRH_BTH) in hfi1_filter_mad_mgmt_class() 1339 if ((be16_to_cpu(hdr->lrh[0]) & 3) == HFI1_LRH_BTH) in hfi1_filter_qp_number() 1367 lnh = (be16_to_cpu(hdr->lrh[0]) & 3); in hfi1_filter_ibpacket_type() 1399 if ((*((u8 *)value)) == ((be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF)) in hfi1_filter_ib_service_level() 1422 lnh = (be16_to_cpu(hdr->lrh[0]) & 3); in hfi1_filter_ib_pkey() 1681 vl = be16_to_cpu(ahdr->ibh.lrh[0]) >> 12; in snoop_send_pio_handler()
|
D | uc.c | 292 u16 rlid = be16_to_cpu(hdr->lrh[3]); in hfi1_uc_rcv() 307 u16 slid = be16_to_cpu(hdr->lrh[3]); in hfi1_uc_rcv() 308 u16 dlid = be16_to_cpu(hdr->lrh[1]); in hfi1_uc_rcv()
|
D | user_sdma.c | 583 sc = (((be16_to_cpu(req->hdr.lrh[0]) >> 12) & 0xF) | in hfi1_user_sdma_process_request() 597 if ((be16_to_cpu(req->hdr.lrh[0]) & 0x3) == HFI1_LRH_GRH) { in hfi1_user_sdma_process_request() 741 len = ((be16_to_cpu(req->hdr.lrh[2]) << 2) - in compute_data_length() 1187 hdr->lrh[2] = cpu_to_be16(lrhlen >> 2); in set_txreq_header() 1203 req->hdr.lrh[2] = hdr->lrh[2]; in set_txreq_header()
|
D | common.h | 329 __be16 lrh[4]; member
|
D | trace.c | 57 u8 lnh = (u8)(be16_to_cpu(hdr->lrh[0]) & 3); in ibhdr_exhdr_len()
|
D | verbs.c | 622 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in hfi1_ib_rcv() 645 lid = be16_to_cpu(hdr->lrh[1]); in hfi1_ib_rcv() 973 phdr->hdr.lrh[0] = ahdr->ibh.lrh[0]; in build_verbs_tx_desc() 974 if ((be16_to_cpu(phdr->hdr.lrh[0]) & 3) == HFI1_LRH_GRH) { in build_verbs_tx_desc() 1261 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in egress_pkey_check() 1294 u16 slid = be16_to_cpu(hdr->lrh[3]); in egress_pkey_check()
|
D | rc.c | 737 hdr.lrh[0] = cpu_to_be16(lrh0); in hfi1_send_rc_ack() 738 hdr.lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in hfi1_send_rc_ack() 739 hdr.lrh[2] = cpu_to_be16(hwords + SIZE_OF_CRC); in hfi1_send_rc_ack() 740 hdr.lrh[3] = cpu_to_be16(ppd->lid | qp->remote_ah_attr.src_path_bits); in hfi1_send_rc_ack() 997 if ((be16_to_cpu(hdr->lrh[0]) & 3) == HFI1_LRH_BTH) in hfi1_rc_send_complete()
|
D | verbs.h | 186 __be16 lrh[4]; member
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 352 qp->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ud_req() 353 qp->s_hdr->lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ in qib_make_ud_req() 354 qp->s_hdr->lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ud_req() 358 qp->s_hdr->lrh[3] = cpu_to_be16(lid); in qib_make_ud_req() 360 qp->s_hdr->lrh[3] = IB_LID_PERMISSIVE; in qib_make_ud_req() 466 if (unlikely(hdr->lrh[1] == IB_LID_PERMISSIVE || in qib_ud_rcv() 467 hdr->lrh[3] == IB_LID_PERMISSIVE)) in qib_ud_rcv() 477 (be16_to_cpu(hdr->lrh[0]) >> 4) & in qib_ud_rcv() 480 hdr->lrh[3], hdr->lrh[1]); in qib_ud_rcv() 486 (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF, in qib_ud_rcv() [all …]
|
D | qib_ruc.c | 293 (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF, in qib_ruc_check_hdr() 295 hdr->lrh[3], hdr->lrh[1]); in qib_ruc_check_hdr() 299 if (be16_to_cpu(hdr->lrh[3]) != qp->alt_ah_attr.dlid || in qib_ruc_check_hdr() 325 (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF, in qib_ruc_check_hdr() 327 hdr->lrh[3], hdr->lrh[1]); in qib_ruc_check_hdr() 331 if (be16_to_cpu(hdr->lrh[3]) != qp->remote_ah_attr.dlid || in qib_ruc_check_hdr() 695 qp->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ruc_header() 696 qp->s_hdr->lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in qib_make_ruc_header() 697 qp->s_hdr->lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ruc_header() 698 qp->s_hdr->lrh[3] = cpu_to_be16(ppd_from_ibp(ibp)->lid | in qib_make_ruc_header()
|
D | qib_driver.c | 311 u16 lid = be16_to_cpu(hdr->lrh[1]); in qib_rcv_hdrerr() 312 int lnh = be16_to_cpu(hdr->lrh[0]) & 3; in qib_rcv_hdrerr() 495 u16 lrh_len = be16_to_cpu(hdr->lrh[2]) << 2; in qib_kreceive()
|
D | qib_user_sdma.c | 453 hdr->lrh[2] = cpu_to_be16(le16_to_cpu(pbc16[0])); in qib_user_sdma_page_to_frags() 471 be16_to_cpu(hdr->lrh[2]) - in qib_user_sdma_page_to_frags() 499 hdr->lrh[2] = cpu_to_be16(le16_to_cpu(pbc16[0])); in qib_user_sdma_page_to_frags() 515 be16_to_cpu(hdr->lrh[2]) - in qib_user_sdma_page_to_frags()
|
D | qib_common.h | 700 __be16 lrh[4]; member
|
D | qib_rc.c | 698 hdr.lrh[0] = cpu_to_be16(lrh0); in qib_send_rc_ack() 699 hdr.lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in qib_send_rc_ack() 700 hdr.lrh[2] = cpu_to_be16(hwords + SIZE_OF_CRC); in qib_send_rc_ack() 701 hdr.lrh[3] = cpu_to_be16(ppd->lid | qp->remote_ah_attr.src_path_bits); in qib_send_rc_ack() 984 if ((be16_to_cpu(hdr->lrh[0]) & 3) == QIB_LRH_BTH) in qib_rc_send_complete()
|
D | qib_verbs.c | 642 lid = be16_to_cpu(hdr->lrh[1]); in qib_ib_rcv() 650 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in qib_ib_rcv() 1178 be16_to_cpu(hdr->lrh[0]) >> 12); in qib_verbs_send_dma() 1302 be16_to_cpu(ibhdr->lrh[0]) >> 12); in qib_verbs_send_pio()
|
D | qib_verbs.h | 190 __be16 lrh[4]; member
|
D | qib_iba7322.c | 1434 .lrh[0] = cpu_to_be16(0xF000 | QIB_LRH_BTH), in flush_fifo() 1435 .lrh[1] = IB_LID_PERMISSIVE, in flush_fifo() 1436 .lrh[2] = cpu_to_be16(hdrwords + SIZE_OF_CRC), in flush_fifo() 1437 .lrh[3] = IB_LID_PERMISSIVE, in flush_fifo()
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_ud.c | 351 qp->s_hdr.lrh[0] = cpu_to_be16(lrh0); in ipath_make_ud_req() 352 qp->s_hdr.lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ in ipath_make_ud_req() 353 qp->s_hdr.lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + in ipath_make_ud_req() 359 qp->s_hdr.lrh[3] = cpu_to_be16(lid); in ipath_make_ud_req() 361 qp->s_hdr.lrh[3] = IB_LID_PERMISSIVE; in ipath_make_ud_req() 453 if (unlikely(hdr->lrh[1] == IB_LID_PERMISSIVE || in ipath_ud_rcv() 454 hdr->lrh[3] == IB_LID_PERMISSIVE)) { in ipath_ud_rcv() 464 } else if (hdr->lrh[1] == IB_LID_PERMISSIVE || in ipath_ud_rcv() 465 hdr->lrh[3] == IB_LID_PERMISSIVE) { in ipath_ud_rcv() 508 (be16_to_cpu(hdr->lrh[0]) >> 12) != 15)) || in ipath_ud_rcv() [all …]
|
D | ipath_ruc.c | 618 qp->s_hdr.lrh[0] = cpu_to_be16(lrh0); in ipath_make_ruc_header() 619 qp->s_hdr.lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in ipath_make_ruc_header() 620 qp->s_hdr.lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in ipath_make_ruc_header() 621 qp->s_hdr.lrh[3] = cpu_to_be16(dev->dd->ipath_lid | in ipath_make_ruc_header()
|
D | ipath_common.h | 743 __be16 lrh[4]; member 752 __be16 lrh[4]; member
|
D | ipath_rc.c | 674 hdr.lrh[0] = cpu_to_be16(lrh0); in send_rc_ack() 675 hdr.lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in send_rc_ack() 676 hdr.lrh[2] = cpu_to_be16(hwords + SIZE_OF_CRC); in send_rc_ack() 677 hdr.lrh[3] = cpu_to_be16(dd->ipath_lid | in send_rc_ack() 1586 if (unlikely(be16_to_cpu(hdr->lrh[3]) != qp->remote_ah_attr.dlid)) in ipath_rc_rcv()
|
D | ipath_verbs.c | 616 lid = be16_to_cpu(hdr->lrh[1]); in ipath_ib_rcv() 626 lnh = be16_to_cpu(hdr->lrh[0]) & 3; in ipath_ib_rcv() 1161 if ((be16_to_cpu(hdr->lrh[0]) >> 12) == 15) { in ipath_verbs_send_dma() 1263 if ((be16_to_cpu(ibhdr->lrh[0]) >> 12) == 15) in ipath_verbs_send_pio()
|
D | ipath_uc.c | 254 if (unlikely(be16_to_cpu(hdr->lrh[3]) != qp->remote_ah_attr.dlid)) in ipath_uc_rcv()
|
D | ipath_verbs.h | 136 __be16 lrh[4]; member
|
/linux-4.4.14/net/ipv4/ |
D | inetpeer.c | 258 int lrh; in peer_avl_rebalance() local 261 lrh = node_height(lr); in peer_avl_rebalance() 262 if (lrh <= node_height(ll)) { /* ll: RH+1 */ in peer_avl_rebalance() 265 node->avl_height = lrh + 1; /* RH+1 or RH+2 */ in peer_avl_rebalance()
|
/linux-4.4.14/drivers/infiniband/hw/mthca/ |
D | mthca_av.c | 272 header->lrh.service_level = be32_to_cpu(ah->av->sl_tclass_flowlabel) >> 28; in mthca_read_ah() 273 header->lrh.destination_lid = ah->av->dlid; in mthca_read_ah() 274 header->lrh.source_lid = cpu_to_be16(ah->av->g_slid & 0x7f); in mthca_read_ah()
|
D | mthca_qp.c | 1496 (sqp->ud_header.lrh.destination_lid == in build_mlx_header() 1498 (sqp->ud_header.lrh.service_level << 8)); in build_mlx_header() 1499 mlx->rlid = sqp->ud_header.lrh.destination_lid; in build_mlx_header() 1516 sqp->ud_header.lrh.virtual_lane = !sqp->qp.ibqp.qp_num ? 15 : 0; in build_mlx_header() 1517 if (sqp->ud_header.lrh.destination_lid == IB_LID_PERMISSIVE) in build_mlx_header() 1518 sqp->ud_header.lrh.source_lid = IB_LID_PERMISSIVE; in build_mlx_header()
|
/linux-4.4.14/include/uapi/rdma/hfi/ |
D | hfi1_user.h | 401 __be16 lrh[4]; member
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
D | qp.c | 2174 sqp->ud_header.lrh.service_level = in build_sriov_qp0_header() 2176 sqp->ud_header.lrh.destination_lid = in build_sriov_qp0_header() 2178 sqp->ud_header.lrh.source_lid = in build_sriov_qp0_header() 2186 mlx->rlid = sqp->ud_header.lrh.destination_lid; in build_sriov_qp0_header() 2188 sqp->ud_header.lrh.virtual_lane = 0; in build_sriov_qp0_header() 2320 sqp->ud_header.lrh.service_level = in build_mlx_header() 2322 sqp->ud_header.lrh.destination_lid = ah->av.ib.dlid; in build_mlx_header() 2323 sqp->ud_header.lrh.source_lid = cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_mlx_header() 2359 (sqp->ud_header.lrh.destination_lid == in build_mlx_header() 2361 (sqp->ud_header.lrh.service_level << 8)); in build_mlx_header() [all …]
|
/linux-4.4.14/include/rdma/ |
D | ib_pack.h | 233 struct ib_unpacked_lrh lrh; member
|