dlid 4588 arch/x86/kvm/svm.c int dlid = GET_APIC_LOGICAL_ID(ldr); dlid 4590 arch/x86/kvm/svm.c if (!dlid) dlid 4594 arch/x86/kvm/svm.c index = ffs(dlid) - 1; dlid 4598 arch/x86/kvm/svm.c int cluster = (dlid & 0xf0) >> 4; dlid 4599 arch/x86/kvm/svm.c int apic = ffs(dlid & 0x0f) - 1; dlid 1281 drivers/infiniband/core/cm.c pri_ext = opa_is_extended_lid(pri_path->opa.dlid, dlid 1316 drivers/infiniband/core/cm.c = OPA_MAKE_ID(be32_to_cpu(pri_path->opa.dlid)); dlid 1342 drivers/infiniband/core/cm.c alt_ext = opa_is_extended_lid(alt_path->opa.dlid, dlid 1351 drivers/infiniband/core/cm.c = OPA_MAKE_ID(be32_to_cpu(alt_path->opa.dlid)); dlid 3088 drivers/infiniband/core/cm.c alt_ext = opa_is_extended_lid(alternate_path->opa.dlid, dlid 3107 drivers/infiniband/core/cm.c = OPA_MAKE_ID(be32_to_cpu(alternate_path->opa.dlid)); dlid 76 drivers/infiniband/core/mad.c entry->dlid = rdma_ah_get_dlid(&attr); dlid 209 drivers/infiniband/core/sa_query.c { PATH_REC_FIELD(ib.dlid), dlid 311 drivers/infiniband/core/sa_query.c { OPA_PATH_REC_FIELD(opa.dlid), dlid 1630 drivers/infiniband/core/uverbs_cmd.c uverb_attr->dlid = rdma_ah_get_dlid(rdma_attr); dlid 1752 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_dlid(rdma_attr, uverb_attr->dlid); dlid 2423 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_dlid(&attr, cmd.attr.dlid); dlid 76 drivers/infiniband/core/uverbs_marshall.c dst->dlid = rdma_ah_get_dlid(src); dlid 142 drivers/infiniband/core/uverbs_marshall.c dst->dlid = htons(ntohl(sa_path_get_dlid(src))); dlid 178 drivers/infiniband/core/uverbs_marshall.c u32 slid, dlid; dlid 185 drivers/infiniband/core/uverbs_marshall.c dlid = opa_get_lid_from_gid((union ib_gid *)src->dgid); dlid 189 drivers/infiniband/core/uverbs_marshall.c dlid = ntohs(src->dlid); dlid 194 drivers/infiniband/core/uverbs_marshall.c sa_path_set_dlid(dst, dlid); dlid 287 drivers/infiniband/hw/hfi1/driver.c u32 dlid = ib_get_dlid(rhdr); dlid 308 drivers/infiniband/hw/hfi1/driver.c if (dlid < mlid_base) { dlid 453 drivers/infiniband/hw/hfi1/driver.c u32 rlid, slid, dlid = 0; dlid 462 drivers/infiniband/hw/hfi1/driver.c dlid = hfi1_16B_get_dlid(pkt->hdr); dlid 464 drivers/infiniband/hw/hfi1/driver.c is_mcast = hfi1_is_16B_mcast(dlid); dlid 472 drivers/infiniband/hw/hfi1/driver.c dlid = qp->ibqp.qp_type != IB_QPT_UD ? ib_get_dlid(pkt->hdr) : dlid 475 drivers/infiniband/hw/hfi1/driver.c is_mcast = (dlid > be16_to_cpu(IB_MULTICAST_LID_BASE)) && dlid 476 drivers/infiniband/hw/hfi1/driver.c (dlid != be16_to_cpu(IB_LID_PERMISSIVE)); dlid 524 drivers/infiniband/hw/hfi1/driver.c dlid, rlid, sc, grh); dlid 1423 drivers/infiniband/hw/hfi1/driver.c if ((!packet->slid) || (!packet->dlid)) dlid 1427 drivers/infiniband/hw/hfi1/driver.c if ((!(hfi1_is_16B_mcast(packet->dlid))) && dlid 1428 drivers/infiniband/hw/hfi1/driver.c (packet->dlid != dlid 1430 drivers/infiniband/hw/hfi1/driver.c if ((packet->dlid & ~((1 << ppd->lmc) - 1)) != ppd->lid) dlid 1435 drivers/infiniband/hw/hfi1/driver.c if ((hfi1_is_16B_mcast(packet->dlid)) && (packet->sc == 0xF)) dlid 1439 drivers/infiniband/hw/hfi1/driver.c if ((packet->dlid == opa_get_lid(be32_to_cpu(OPA_LID_PERMISSIVE), dlid 1478 drivers/infiniband/hw/hfi1/driver.c packet->dlid = ib_get_dlid(hdr); dlid 1479 drivers/infiniband/hw/hfi1/driver.c if (unlikely((packet->dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) && dlid 1480 drivers/infiniband/hw/hfi1/driver.c (packet->dlid != be16_to_cpu(IB_LID_PERMISSIVE)))) dlid 1481 drivers/infiniband/hw/hfi1/driver.c packet->dlid += opa_get_mcast_base(OPA_MCAST_NR) - dlid 1559 drivers/infiniband/hw/hfi1/driver.c packet->dlid = hfi1_16B_get_dlid(packet->hdr); dlid 1560 drivers/infiniband/hw/hfi1/driver.c if (unlikely(hfi1_is_16B_mcast(packet->dlid))) dlid 1561 drivers/infiniband/hw/hfi1/driver.c packet->dlid += opa_get_mcast_base(OPA_MCAST_NR) - dlid 378 drivers/infiniband/hw/hfi1/hfi.h u32 dlid; dlid 1618 drivers/infiniband/hw/hfi1/hfi.h u16 pkey, u32 slid, u32 dlid, u8 sc5, dlid 1621 drivers/infiniband/hw/hfi1/hfi.h u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, dlid 1624 drivers/infiniband/hw/hfi1/hfi.h u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, dlid 2316 drivers/infiniband/hw/hfi1/hfi.h u32 dlid = rdma_ah_get_dlid(attr); dlid 2324 drivers/infiniband/hw/hfi1/hfi.h if ((((dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) || dlid 2326 drivers/infiniband/hw/hfi1/hfi.h (dlid != be32_to_cpu(OPA_LID_PERMISSIVE)) && dlid 2327 drivers/infiniband/hw/hfi1/hfi.h (dlid != be16_to_cpu(IB_LID_PERMISSIVE)) && dlid 2331 drivers/infiniband/hw/hfi1/hfi.h rdma_ah_set_interface_id(attr, OPA_MAKE_ID(dlid)); dlid 2393 drivers/infiniband/hw/hfi1/hfi.h u32 dlid = rdma_ah_get_dlid(attr); dlid 2404 drivers/infiniband/hw/hfi1/hfi.h dlid = opa_get_lid_from_gid(&grh->dgid); dlid 2405 drivers/infiniband/hw/hfi1/hfi.h else if ((dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) && dlid 2406 drivers/infiniband/hw/hfi1/hfi.h (dlid != be16_to_cpu(IB_LID_PERMISSIVE)) && dlid 2407 drivers/infiniband/hw/hfi1/hfi.h (dlid != be32_to_cpu(OPA_LID_PERMISSIVE))) dlid 2408 drivers/infiniband/hw/hfi1/hfi.h dlid = dlid - be16_to_cpu(IB_MULTICAST_LID_BASE) + dlid 2410 drivers/infiniband/hw/hfi1/hfi.h else if (dlid == be16_to_cpu(IB_LID_PERMISSIVE)) dlid 2411 drivers/infiniband/hw/hfi1/hfi.h dlid = be32_to_cpu(OPA_LID_PERMISSIVE); dlid 2413 drivers/infiniband/hw/hfi1/hfi.h rdma_ah_set_dlid(attr, dlid); dlid 2454 drivers/infiniband/hw/hfi1/hfi.h u32 dlid) dlid 2490 drivers/infiniband/hw/hfi1/hfi.h u16 dlid, u16 slid) dlid 2493 drivers/infiniband/hw/hfi1/hfi.h hdr->lrh[1] = cpu_to_be16(dlid); dlid 2499 drivers/infiniband/hw/hfi1/hfi.h u32 slid, u32 dlid, dlid 2514 drivers/infiniband/hw/hfi1/hfi.h lrh1 = (lrh1 & ~OPA_16B_LID_MASK) | (dlid & OPA_16B_LID_MASK); dlid 2518 drivers/infiniband/hw/hfi1/hfi.h ((dlid >> OPA_16B_DLID_SHIFT) << OPA_16B_DLID_HIGH_SHIFT); dlid 259 drivers/infiniband/hw/hfi1/mad.c struct rdma_ah_attr *attr, u32 dlid) dlid 261 drivers/infiniband/hw/hfi1/mad.c rdma_ah_set_dlid(attr, dlid); dlid 263 drivers/infiniband/hw/hfi1/mad.c if (dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) { dlid 271 drivers/infiniband/hw/hfi1/mad.c grh->dgid.global.interface_id = OPA_MAKE_ID(dlid); dlid 276 drivers/infiniband/hw/hfi1/mad.c struct rvt_ah *ah, u32 dlid) dlid 284 drivers/infiniband/hw/hfi1/mad.c hfi1_update_sm_ah_attr(ibp, &attr, dlid); dlid 293 drivers/infiniband/hw/hfi1/mad.c static struct ib_ah *hfi1_create_qp0_ah(struct hfi1_ibport *ibp, u32 dlid) dlid 304 drivers/infiniband/hw/hfi1/mad.c hfi1_update_sm_ah_attr(ibp, &attr, dlid); dlid 75 drivers/infiniband/hw/hfi1/ruc.c u32 dlid = packet->dlid; dlid 107 drivers/infiniband/hw/hfi1/ruc.c slid, dlid); dlid 144 drivers/infiniband/hw/hfi1/ruc.c slid, dlid); dlid 192 drivers/infiniband/hw/hfi1/trace.c u16 *len, u32 *dlid, u32 *slid) dlid 199 drivers/infiniband/hw/hfi1/trace.c *dlid = ib_get_dlid(hdr); dlid 207 drivers/infiniband/hw/hfi1/trace.c u32 *dlid, u32 *slid) dlid 218 drivers/infiniband/hw/hfi1/trace.c *dlid = hfi1_16B_get_dlid(hdr); dlid 230 drivers/infiniband/hw/hfi1/trace.c u16 len, u16 pkey, u32 dlid, u32 slid) dlid 234 drivers/infiniband/hw/hfi1/trace.c trace_seq_printf(p, LRH_PRN, len, sc, dlid, slid); dlid 121 drivers/infiniband/hw/hfi1/trace_ibhdrs.h u16 *len, u32 *dlid, u32 *slid); dlid 130 drivers/infiniband/hw/hfi1/trace_ibhdrs.h u32 *dlid, u32 *slid); dlid 136 drivers/infiniband/hw/hfi1/trace_ibhdrs.h u16 len, u16 pkey, u32 dlid, u32 slid); dlid 182 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __field(u32, dlid) dlid 210 drivers/infiniband/hw/hfi1/trace_ibhdrs.h &__entry->dlid, dlid 236 drivers/infiniband/hw/hfi1/trace_ibhdrs.h &__entry->dlid, dlid 280 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __entry->dlid, dlid 341 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __field(u32, dlid) dlid 370 drivers/infiniband/hw/hfi1/trace_ibhdrs.h &__entry->dlid, dlid 401 drivers/infiniband/hw/hfi1/trace_ibhdrs.h &__entry->dlid, dlid 444 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __entry->dlid, dlid 307 drivers/infiniband/hw/hfi1/ud.c u16 len, slid, dlid, pkey; dlid 351 drivers/infiniband/hw/hfi1/ud.c dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); dlid 352 drivers/infiniband/hw/hfi1/ud.c if (dlid == be16_to_cpu(IB_LID_PERMISSIVE)) { dlid 371 drivers/infiniband/hw/hfi1/ud.c lrh0, len, dlid, slid); dlid 382 drivers/infiniband/hw/hfi1/ud.c u32 dlid, slid, nwords, extra_bytes; dlid 444 drivers/infiniband/hw/hfi1/ud.c dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 16B); dlid 465 drivers/infiniband/hw/hfi1/ud.c slid, dlid, len, pkey, 0, 0, l4, priv->s_sc); dlid 633 drivers/infiniband/hw/hfi1/ud.c u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, dlid 678 drivers/infiniband/hw/hfi1/ud.c hfi1_make_16b_hdr(&hdr.opah, slid, dlid, len, pkey, 1, 0, l4, sc5); dlid 695 drivers/infiniband/hw/hfi1/ud.c u16 pkey, u32 slid, u32 dlid, u8 sc5, dlid 734 drivers/infiniband/hw/hfi1/ud.c hfi1_make_ib_hdr(&hdr.ibh, lrh0, hwords + SIZE_OF_CRC, dlid, slid); dlid 870 drivers/infiniband/hw/hfi1/ud.c u32 dlid = packet->dlid; dlid 886 drivers/infiniband/hw/hfi1/ud.c dlid_is_permissive = (dlid == permissive_lid); dlid 890 drivers/infiniband/hw/hfi1/ud.c dlid_is_permissive = (dlid == be16_to_cpu(IB_LID_PERMISSIVE)); dlid 930 drivers/infiniband/hw/hfi1/ud.c slid, dlid); dlid 1018 drivers/infiniband/hw/hfi1/ud.c hfi1_make_ext_grh(packet, &grh, slid, dlid); dlid 1060 drivers/infiniband/hw/hfi1/ud.c wc.dlid_path_bits = hfi1_check_mcast(dlid) ? 0 : dlid 1061 drivers/infiniband/hw/hfi1/ud.c dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); dlid 314 drivers/infiniband/hw/hfi1/user_sdma.c static u8 dlid_to_selector(u16 dlid) dlid 326 drivers/infiniband/hw/hfi1/user_sdma.c hash = ((dlid >> 8) ^ dlid) & 0xFF; dlid 359 drivers/infiniband/hw/hfi1/user_sdma.c u16 dlid; dlid 576 drivers/infiniband/hw/hfi1/user_sdma.c dlid = be16_to_cpu(req->hdr.lrh[1]); dlid 577 drivers/infiniband/hw/hfi1/user_sdma.c selector = dlid_to_selector(dlid); dlid 515 drivers/infiniband/hw/hfi1/verbs.c opa_get_lid(packet->dlid, 9B)); dlid 581 drivers/infiniband/hw/hfi1/verbs.c hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid)); dlid 589 drivers/infiniband/hw/hfi1/verbs.c hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid)); dlid 65 drivers/infiniband/hw/mlx4/ah.c ah->av.ib.dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); dlid 136 drivers/infiniband/hw/mlx4/ah.c ah->av.ib.dlid = cpu_to_be16(0xc000); dlid 208 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(ah->av.ib.dlid)); dlid 3102 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.destination_lid = ah->av.ib.dlid; dlid 60 drivers/infiniband/hw/mthca/mthca_av.c __be16 dlid; dlid 202 drivers/infiniband/hw/mthca/mthca_av.c av->dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); dlid 276 drivers/infiniband/hw/mthca/mthca_av.c header->lrh.destination_lid = ah->av->dlid; dlid 304 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_set_dlid(attr, be16_to_cpu(ah->av->dlid)); dlid 436 drivers/infiniband/hw/qib/qib_ud.c u16 dlid; dlid 569 drivers/infiniband/hw/qib/qib_ud.c dlid = be16_to_cpu(hdr->lrh[1]); dlid 573 drivers/infiniband/hw/qib/qib_ud.c wc.dlid_path_bits = dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE) ? 0 : dlid 574 drivers/infiniband/hw/qib/qib_ud.c dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); dlid 1339 drivers/infiniband/hw/qib/qib_verbs.c struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid) dlid 1350 drivers/infiniband/hw/qib/qib_verbs.c rdma_ah_set_dlid(&attr, dlid); dlid 306 drivers/infiniband/hw/qib/qib_verbs.h struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid); dlid 280 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c rdma_ah_set_dlid(dst, src->dlid); dlid 293 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c dst->dlid = rdma_ah_get_dlid(src); dlid 229 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h u16 dlid; dlid 73 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c static inline void opa_vnic_make_header(u8 *hdr, u32 slid, u32 dlid, u16 len, dlid 88 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c h[1] |= (dlid & OPA_16B_LID_MASK); dlid 89 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c h[2] |= ((dlid >> (20 - OPA_16B_DLID_HIGH_SHFT)) & OPA_16B_DLID_MASK); dlid 303 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c u32 dlid = 0; dlid 322 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c dlid = OPA_VNIC_DLID_SD_GET_DLID(node->entry.dlid_sd); dlid 329 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c return dlid; dlid 338 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c u32 dlid; dlid 340 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c dlid = opa_vnic_chk_mac_tbl(adapter, mac_hdr); dlid 341 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c if (dlid) dlid 342 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c return dlid; dlid 345 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c dlid = info->vesw.u_mcast_dlid; dlid 348 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c dlid = ((uint32_t)mac_hdr->h_dest[5] << 16) | dlid 351 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c if (unlikely(!dlid)) dlid 355 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c dlid = info->vesw.u_ucast_dlid[def_port]; dlid 359 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c return dlid; dlid 489 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c u32 dlid; dlid 496 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c dlid = opa_vnic_get_dlid(adapter, skb, def_port); dlid 505 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c if (unlikely(!dlid)) { dlid 510 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c opa_vnic_make_header(hdr, info->vport.encap_slid, dlid, len, dlid 2625 drivers/infiniband/ulp/srp/ib_srp.c u16 dlid; dlid 2630 drivers/infiniband/ulp/srp/ib_srp.c dlid = be16_to_cpu(cpi->redirect_lid); dlid 2631 drivers/infiniband/ulp/srp/ib_srp.c sa_path_set_dlid(&ch->ib_cm.path, dlid); dlid 2636 drivers/infiniband/ulp/srp/ib_srp.c ch->status = dlid ? SRP_DLID_REDIRECT : SRP_PORT_REDIRECT; dlid 791 include/linux/mlx4/device.h __be16 dlid; dlid 161 include/rdma/ib_sa.h __be16 dlid; dlid 179 include/rdma/ib_sa.h __be32 dlid; dlid 247 include/rdma/ib_sa.h if ((be32_to_cpu(opa->opa.dlid) >= dlid 253 include/rdma/ib_sa.h = OPA_MAKE_ID(be32_to_cpu(opa->opa.dlid)); dlid 260 include/rdma/ib_sa.h ib->ib.dlid = 0; dlid 264 include/rdma/ib_sa.h ib->ib.dlid = htons(ntohl(opa->opa.dlid)); dlid 274 include/rdma/ib_sa.h __be32 slid, dlid; dlid 279 include/rdma/ib_sa.h dlid = htonl(opa_get_lid_from_gid(&ib->dgid)); dlid 282 include/rdma/ib_sa.h dlid = htonl(ntohs(ib->ib.dlid)); dlid 285 include/rdma/ib_sa.h opa->opa.dlid = dlid; dlid 600 include/rdma/ib_sa.h static inline void sa_path_set_dlid(struct sa_path_rec *rec, u32 dlid) dlid 603 include/rdma/ib_sa.h rec->ib.dlid = cpu_to_be16(dlid); dlid 605 include/rdma/ib_sa.h rec->opa.dlid = cpu_to_be32(dlid); dlid 629 include/rdma/ib_sa.h return htonl(ntohs(rec->ib.dlid)); dlid 631 include/rdma/ib_sa.h return rec->opa.dlid; dlid 884 include/rdma/ib_verbs.h u16 dlid; dlid 893 include/rdma/ib_verbs.h u32 dlid; dlid 1874 include/rdma/ib_verbs.h __be16 dlid; dlid 4368 include/rdma/ib_verbs.h static inline void rdma_ah_set_dlid(struct rdma_ah_attr *attr, u32 dlid) dlid 4371 include/rdma/ib_verbs.h attr->ib.dlid = (u16)dlid; dlid 4373 include/rdma/ib_verbs.h attr->opa.dlid = dlid; dlid 4379 include/rdma/ib_verbs.h return attr->ib.dlid; dlid 4381 include/rdma/ib_verbs.h return attr->opa.dlid; dlid 100 include/rdma/opa_addr.h static inline bool opa_is_extended_lid(__be32 dlid, __be32 slid) dlid 102 include/rdma/opa_addr.h if ((be32_to_cpu(dlid) >= dlid 43 include/trace/events/ib_mad.h __field(u32, dlid) dlid 103 include/trace/events/ib_mad.h be32_to_cpu(__entry->dlid), __entry->sl, __entry->pkey, dlid 58 include/uapi/rdma/ib_user_sa.h __be16 dlid; dlid 514 include/uapi/rdma/ib_user_verbs.h __u16 dlid; dlid 659 include/uapi/rdma/ib_user_verbs.h __u16 dlid;