/linux/include/rdma/ |
A D | ib_sa.h | 134 __be16 dlid; member 152 __be32 dlid; member 220 if ((be32_to_cpu(opa->opa.dlid) >= in path_conv_opa_to_ib() 233 ib->ib.dlid = 0; in path_conv_opa_to_ib() 237 ib->ib.dlid = htons(ntohl(opa->opa.dlid)); in path_conv_opa_to_ib() 247 __be32 slid, dlid; in path_conv_ib_to_opa() local 255 dlid = htonl(ntohs(ib->ib.dlid)); in path_conv_ib_to_opa() 258 opa->opa.dlid = dlid; in path_conv_ib_to_opa() 549 rec->ib.dlid = cpu_to_be16(dlid); in sa_path_set_dlid() 551 rec->opa.dlid = cpu_to_be32(dlid); in sa_path_set_dlid() [all …]
|
A D | opa_addr.h | 58 static inline bool opa_is_extended_lid(__be32 dlid, __be32 slid) in opa_is_extended_lid() argument 60 if ((be32_to_cpu(dlid) >= in opa_is_extended_lid()
|
A D | ib_verbs.h | 907 u16 dlid; member 916 u32 dlid; member 1895 __be16 dlid; member 4419 static inline void rdma_ah_set_dlid(struct rdma_ah_attr *attr, u32 dlid) in rdma_ah_set_dlid() argument 4422 attr->ib.dlid = (u16)dlid; in rdma_ah_set_dlid() 4424 attr->opa.dlid = dlid; in rdma_ah_set_dlid() 4430 return attr->ib.dlid; in rdma_ah_get_dlid() 4432 return attr->opa.dlid; in rdma_ah_get_dlid()
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
A D | opa_vnic_encap.c | 88 h[1] |= (dlid & OPA_16B_LID_MASK); in opa_vnic_make_header() 303 u32 dlid = 0; in opa_vnic_chk_mac_tbl() local 329 return dlid; in opa_vnic_chk_mac_tbl() 338 u32 dlid; in opa_vnic_get_dlid() local 341 if (dlid) in opa_vnic_get_dlid() 342 return dlid; in opa_vnic_get_dlid() 345 dlid = info->vesw.u_mcast_dlid; in opa_vnic_get_dlid() 351 if (unlikely(!dlid)) in opa_vnic_get_dlid() 359 return dlid; in opa_vnic_get_dlid() 489 u32 dlid; in opa_vnic_encap_skb() local [all …]
|
/linux/drivers/infiniband/core/ |
A D | uverbs_marshall.c | 76 dst->dlid = rdma_ah_get_dlid(src); in ib_copy_ah_attr_to_user() 142 dst->dlid = htons(ntohl(sa_path_get_dlid(src))); in __ib_copy_path_rec_to_user() 178 u32 slid, dlid; in ib_copy_path_rec_from_user() local 185 dlid = opa_get_lid_from_gid((union ib_gid *)src->dgid); in ib_copy_path_rec_from_user() 189 dlid = ntohs(src->dlid); in ib_copy_path_rec_from_user() 194 sa_path_set_dlid(dst, dlid); in ib_copy_path_rec_from_user()
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | trace_ibhdrs.h | 80 u16 *len, u32 *dlid, u32 *slid); 89 u32 *dlid, u32 *slid); 95 u16 len, u16 pkey, u32 dlid, u32 slid); 141 __field(u32, dlid) 169 &__entry->dlid, 195 &__entry->dlid, 239 __entry->dlid, 300 __field(u32, dlid) 329 &__entry->dlid, 360 &__entry->dlid, [all …]
|
A D | ud.c | 265 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local 310 if (dlid == be16_to_cpu(IB_LID_PERMISSIVE)) { in hfi1_make_ud_req_9B() 329 lrh0, len, dlid, slid); in hfi1_make_ud_req_9B() 340 u32 dlid, slid, nwords, extra_bytes; in hfi1_make_ud_req_16B() local 423 slid, dlid, len, pkey, 0, 0, l4, priv->s_sc); in hfi1_make_ud_req_16B() 654 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp() argument 824 u32 dlid = packet->dlid; in hfi1_ud_rcv() local 840 dlid_is_permissive = (dlid == permissive_lid); in hfi1_ud_rcv() 884 slid, dlid); in hfi1_ud_rcv() 972 hfi1_make_ext_grh(packet, &grh, slid, dlid); in hfi1_ud_rcv() [all …]
|
A D | hfi.h | 346 u32 dlid; member 1700 u16 pkey, u32 slid, u32 dlid, u8 sc5, 2437 u32 dlid = rdma_ah_get_dlid(attr); in hfi1_update_ah_attr() local 2514 u32 dlid = rdma_ah_get_dlid(attr); in hfi1_make_opa_lid() local 2529 dlid = dlid - be16_to_cpu(IB_MULTICAST_LID_BASE) + in hfi1_make_opa_lid() 2532 dlid = be32_to_cpu(OPA_LID_PERMISSIVE); in hfi1_make_opa_lid() 2534 rdma_ah_set_dlid(attr, dlid); in hfi1_make_opa_lid() 2575 u32 dlid) in hfi1_make_ext_grh() argument 2611 u16 dlid, u16 slid) in hfi1_make_ib_hdr() argument 2614 hdr->lrh[1] = cpu_to_be16(dlid); in hfi1_make_ib_hdr() [all …]
|
A D | driver.c | 250 u32 dlid = ib_get_dlid(rhdr); in rcv_hdrerr() local 271 if (dlid < mlid_base) { in rcv_hdrerr() 416 u32 rlid, slid, dlid = 0; in hfi1_process_ecn_slowpath() local 425 dlid = hfi1_16B_get_dlid(pkt->hdr); in hfi1_process_ecn_slowpath() 427 is_mcast = hfi1_is_16B_mcast(dlid); in hfi1_process_ecn_slowpath() 439 (dlid != be16_to_cpu(IB_LID_PERMISSIVE)); in hfi1_process_ecn_slowpath() 487 dlid, rlid, sc, grh); in hfi1_process_ecn_slowpath() 1455 if ((!packet->slid) || (!packet->dlid)) in hfi1_bypass_ingress_pkt_check() 1459 if ((!(hfi1_is_16B_mcast(packet->dlid))) && in hfi1_bypass_ingress_pkt_check() 1460 (packet->dlid != in hfi1_bypass_ingress_pkt_check() [all …]
|
A D | trace.c | 157 u16 *len, u32 *dlid, u32 *slid) in hfi1_trace_parse_9b_hdr() argument 164 *dlid = ib_get_dlid(hdr); in hfi1_trace_parse_9b_hdr() 172 u32 *dlid, u32 *slid) in hfi1_trace_parse_16b_hdr() argument 183 *dlid = hfi1_16B_get_dlid(hdr); in hfi1_trace_parse_16b_hdr() 195 u16 len, u16 pkey, u32 dlid, u32 slid) in hfi1_trace_fmt_lrh() argument 199 trace_seq_printf(p, LRH_PRN, len, sc, dlid, slid); in hfi1_trace_fmt_lrh()
|
A D | ruc.c | 33 u32 dlid = packet->dlid; in hfi1_ruc_check_hdr() local 65 slid, dlid); in hfi1_ruc_check_hdr() 102 slid, dlid); in hfi1_ruc_check_hdr()
|
A D | user_sdma.c | 275 static u8 dlid_to_selector(u16 dlid) in dlid_to_selector() argument 287 hash = ((dlid >> 8) ^ dlid) & 0xFF; in dlid_to_selector() 320 u16 dlid; in hfi1_user_sdma_process_request() local 537 dlid = be16_to_cpu(req->hdr.lrh[1]); in hfi1_user_sdma_process_request() 538 selector = dlid_to_selector(dlid); in hfi1_user_sdma_process_request()
|
A D | ipoib_tx.c | 267 u16 dlid; in hfi1_ipoib_build_ib_tx_headers() local 302 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); in hfi1_ipoib_build_ib_tx_headers() 303 if (dlid == be16_to_cpu(IB_LID_PERMISSIVE)) { in hfi1_ipoib_build_ib_tx_headers() 322 hfi1_make_ib_hdr(&sdma_hdr->hdr.ibh, lrh0, dwords, dlid, slid); in hfi1_ipoib_build_ib_tx_headers()
|
A D | mad.c | 217 struct rdma_ah_attr *attr, u32 dlid) in hfi1_update_sm_ah_attr() argument 219 rdma_ah_set_dlid(attr, dlid); in hfi1_update_sm_ah_attr() 221 if (dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) { in hfi1_update_sm_ah_attr() 229 grh->dgid.global.interface_id = OPA_MAKE_ID(dlid); in hfi1_update_sm_ah_attr() 234 struct rvt_ah *ah, u32 dlid) in hfi1_modify_qp0_ah() argument 242 hfi1_update_sm_ah_attr(ibp, &attr, dlid); in hfi1_modify_qp0_ah() 251 static struct ib_ah *hfi1_create_qp0_ah(struct hfi1_ibport *ibp, u32 dlid) in hfi1_create_qp0_ah() argument 262 hfi1_update_sm_ah_attr(ibp, &attr, dlid); in hfi1_create_qp0_ah()
|
A D | verbs.c | 474 opa_get_lid(packet->dlid, 9B)); in hfi1_handle_packet() 540 hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid)); in hfi1_ib_rcv() 548 hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid)); in hfi1_16B_rcv()
|
/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_av.c | 60 __be16 dlid; member 202 av->dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); in mthca_create_ah() 276 header->lrh.destination_lid = ah->av->dlid; in mthca_read_ah() 304 rdma_ah_set_dlid(attr, be16_to_cpu(ah->av->dlid)); in mthca_ah_query()
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | ah.c | 65 ah->av.ib.dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); in create_ib_ah() 136 ah->av.ib.dlid = cpu_to_be16(0xc000); in create_iboe_ah() 211 rdma_ah_set_dlid(ah_attr, be16_to_cpu(ah->av.ib.dlid)); in mlx4_ib_query_ah()
|
/linux/arch/x86/kvm/svm/ |
A D | avic.c | 363 int dlid = GET_APIC_LOGICAL_ID(ldr); in avic_get_logical_id_entry() local 365 if (!dlid) in avic_get_logical_id_entry() 369 index = ffs(dlid) - 1; in avic_get_logical_id_entry() 373 int cluster = (dlid & 0xf0) >> 4; in avic_get_logical_id_entry() 374 int apic = ffs(dlid & 0x0f) - 1; in avic_get_logical_id_entry()
|
/linux/drivers/infiniband/hw/qib/ |
A D | qib_ud.c | 437 u16 dlid; in qib_ud_rcv() local 570 dlid = be16_to_cpu(hdr->lrh[1]); in qib_ud_rcv() 574 wc.dlid_path_bits = dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE) ? 0 : in qib_ud_rcv() 575 dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); in qib_ud_rcv()
|
A D | qib_verbs.h | 304 struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid);
|
/linux/include/uapi/rdma/ |
A D | ib_user_sa.h | 58 __be16 dlid; member
|
A D | ib_user_verbs.h | 525 __u16 dlid; member 656 __u16 dlid; member
|
/linux/drivers/infiniband/hw/vmw_pvrdma/ |
A D | pvrdma_misc.c | 279 rdma_ah_set_dlid(dst, src->dlid); in pvrdma_ah_attr_to_rdma() 292 dst->dlid = rdma_ah_get_dlid(src); in rdma_ah_attr_to_pvrdma()
|
A D | pvrdma_verbs.h | 194 u16 dlid; member
|
/linux/include/trace/events/ |
A D | ib_mad.h | 43 __field(u32, dlid) 103 be32_to_cpu(__entry->dlid), __entry->sl, __entry->pkey,
|