Home
last modified time | relevance | path

Searched refs:dlid (Results 1 – 22 of 22) sorted by relevance

/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_encap.c73 static inline void opa_vnic_make_header(u8 *hdr, u32 slid, u32 dlid, u16 len, in opa_vnic_make_header() argument
88 h[1] |= (dlid & OPA_16B_LID_MASK); in opa_vnic_make_header()
89 h[2] |= ((dlid >> (20 - OPA_16B_DLID_HIGH_SHFT)) & OPA_16B_DLID_MASK); in opa_vnic_make_header()
303 u32 dlid = 0; in opa_vnic_chk_mac_tbl() local
322 dlid = OPA_VNIC_DLID_SD_GET_DLID(node->entry.dlid_sd); in opa_vnic_chk_mac_tbl()
329 return dlid; in opa_vnic_chk_mac_tbl()
338 u32 dlid; in opa_vnic_get_dlid() local
340 dlid = opa_vnic_chk_mac_tbl(adapter, mac_hdr); in opa_vnic_get_dlid()
341 if (dlid) in opa_vnic_get_dlid()
342 return dlid; in opa_vnic_get_dlid()
[all …]
/drivers/infiniband/hw/hfi1/
Dtrace_ibhdrs.h110 u16 *len, u32 *dlid, u32 *slid);
119 u32 *dlid, u32 *slid);
125 u16 len, u16 pkey, u32 dlid, u32 slid);
169 __field(u32, dlid)
193 &__entry->dlid,
213 &__entry->dlid,
252 __entry->dlid,
306 __field(u32, dlid)
331 &__entry->dlid,
355 &__entry->dlid,
[all …]
Dud.c326 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local
369 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); in hfi1_make_ud_req_9B()
370 if (dlid == be16_to_cpu(IB_LID_PERMISSIVE)) { in hfi1_make_ud_req_9B()
389 lrh0, len, dlid, slid); in hfi1_make_ud_req_9B()
400 u32 dlid, slid, nwords, extra_bytes; in hfi1_make_ud_req_16B() local
446 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 16B); in hfi1_make_ud_req_16B()
460 slid, dlid, len, pkey, 0, 0, l4, priv->s_sc); in hfi1_make_ud_req_16B()
633 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, in return_cnp_16B() argument
676 hfi1_make_16b_hdr(&hdr, slid, dlid, len, pkey, 1, 0, l4, sc5); in return_cnp_16B()
691 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp() argument
[all …]
Ddriver.c299 u32 dlid = ib_get_dlid(rhdr); in rcv_hdrerr() local
320 if (dlid < mlid_base) { in rcv_hdrerr()
445 u32 rlid, slid, dlid = 0; in hfi1_process_ecn_slowpath() local
451 is_mcast = hfi1_is_16B_mcast(dlid); in hfi1_process_ecn_slowpath()
454 dlid = hfi1_16B_get_dlid(pkt->hdr); in hfi1_process_ecn_slowpath()
458 is_mcast = (dlid > be16_to_cpu(IB_MULTICAST_LID_BASE)) && in hfi1_process_ecn_slowpath()
459 (dlid != be16_to_cpu(IB_LID_PERMISSIVE)); in hfi1_process_ecn_slowpath()
462 dlid = ib_get_dlid(pkt->hdr); in hfi1_process_ecn_slowpath()
469 dlid = ppd->lid; in hfi1_process_ecn_slowpath()
498 dlid, rlid, sc, grh); in hfi1_process_ecn_slowpath()
[all …]
Dhfi.h341 u32 dlid; member
1533 u16 pkey, u32 slid, u32 dlid, u8 sc5,
1536 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
1539 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
2239 u32 dlid = rdma_ah_get_dlid(attr); in hfi1_update_ah_attr() local
2247 if ((((dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) || in hfi1_update_ah_attr()
2249 (dlid != be32_to_cpu(OPA_LID_PERMISSIVE)) && in hfi1_update_ah_attr()
2250 (dlid != be16_to_cpu(IB_LID_PERMISSIVE)) && in hfi1_update_ah_attr()
2254 rdma_ah_set_interface_id(attr, OPA_MAKE_ID(dlid)); in hfi1_update_ah_attr()
2316 u32 dlid = rdma_ah_get_dlid(attr); in hfi1_make_opa_lid() local
[all …]
Dtrace.c178 u16 *len, u32 *dlid, u32 *slid) in hfi1_trace_parse_9b_hdr() argument
185 *dlid = ib_get_dlid(hdr); in hfi1_trace_parse_9b_hdr()
193 u32 *dlid, u32 *slid) in hfi1_trace_parse_16b_hdr() argument
204 *dlid = hfi1_16B_get_dlid(hdr); in hfi1_trace_parse_16b_hdr()
216 u16 len, u16 pkey, u32 dlid, u32 slid) in hfi1_trace_fmt_lrh() argument
220 trace_seq_printf(p, LRH_PRN, len, sc, dlid, slid); in hfi1_trace_fmt_lrh()
Duser_sdma.c296 static u8 dlid_to_selector(u16 dlid) in dlid_to_selector() argument
308 hash = ((dlid >> 8) ^ dlid) & 0xFF; in dlid_to_selector()
341 u16 dlid; in hfi1_user_sdma_process_request() local
558 dlid = be16_to_cpu(req->hdr.lrh[1]); in hfi1_user_sdma_process_request()
559 selector = dlid_to_selector(dlid); in hfi1_user_sdma_process_request()
Druc.c225 u32 dlid = packet->dlid; in hfi1_ruc_check_hdr() local
268 slid, dlid); in hfi1_ruc_check_hdr()
305 slid, dlid); in hfi1_ruc_check_hdr()
Dmad.c249 struct rdma_ah_attr *attr, u32 dlid) in hfi1_update_sm_ah_attr() argument
251 rdma_ah_set_dlid(attr, dlid); in hfi1_update_sm_ah_attr()
253 if (dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) { in hfi1_update_sm_ah_attr()
261 grh->dgid.global.interface_id = OPA_MAKE_ID(dlid); in hfi1_update_sm_ah_attr()
266 struct rvt_ah *ah, u32 dlid) in hfi1_modify_qp0_ah() argument
274 hfi1_update_sm_ah_attr(ibp, &attr, dlid); in hfi1_modify_qp0_ah()
283 static struct ib_ah *hfi1_create_qp0_ah(struct hfi1_ibport *ibp, u32 dlid) in hfi1_create_qp0_ah() argument
294 hfi1_update_sm_ah_attr(ibp, &attr, dlid); in hfi1_create_qp0_ah()
Dverbs.c593 opa_get_lid(packet->dlid, 9B)); in hfi1_handle_packet()
658 hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid)); in hfi1_ib_rcv()
666 hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid)); in hfi1_16B_rcv()
/drivers/infiniband/core/
Duverbs_marshall.c77 dst->dlid = rdma_ah_get_dlid(src); in ib_copy_ah_attr_to_user()
143 dst->dlid = htons(ntohl(sa_path_get_dlid(src))); in __ib_copy_path_rec_to_user()
179 __be32 slid, dlid; in ib_copy_path_rec_from_user() local
186 dlid = htonl(opa_get_lid_from_gid((union ib_gid *)src->dgid)); in ib_copy_path_rec_from_user()
190 dlid = htonl(ntohs(src->dlid)); in ib_copy_path_rec_from_user()
195 sa_path_set_dlid(dst, dlid); in ib_copy_path_rec_from_user()
Dcm.c1203 pri_ext = opa_is_extended_lid(pri_path->opa.dlid, in cm_format_req()
1238 = OPA_MAKE_ID(be32_to_cpu(pri_path->opa.dlid)); in cm_format_req()
1264 alt_ext = opa_is_extended_lid(alt_path->opa.dlid, in cm_format_req()
1273 = OPA_MAKE_ID(be32_to_cpu(alt_path->opa.dlid)); in cm_format_req()
2947 alt_ext = opa_is_extended_lid(alternate_path->opa.dlid, in cm_format_lap()
2966 = OPA_MAKE_ID(be32_to_cpu(alternate_path->opa.dlid)); in cm_format_lap()
Dsa_query.c210 { PATH_REC_FIELD(ib.dlid),
312 { OPA_PATH_REC_FIELD(opa.dlid),
Duverbs_cmd.c1827 uverb_attr->dlid = rdma_ah_get_dlid(rdma_attr); in copy_ah_attr_to_uverbs()
1953 rdma_ah_set_dlid(rdma_attr, uverb_attr->dlid); in copy_ah_attr_from_uverbs()
2629 rdma_ah_set_dlid(&attr, cmd.attr.dlid); in ib_uverbs_create_ah()
/drivers/infiniband/hw/mthca/
Dmthca_av.c60 __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()
307 rdma_ah_set_dlid(attr, be16_to_cpu(ah->av->dlid)); in mthca_ah_query()
/drivers/infiniband/hw/mlx4/
Dah.c66 ah->av.ib.dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); in create_ib_ah()
138 ah->av.ib.dlid = cpu_to_be16(0xc000); in create_iboe_ah()
194 rdma_ah_set_dlid(ah_attr, be16_to_cpu(ah->av.ib.dlid)); in mlx4_ib_query_ah()
Dqp.c3125 sqp->ud_header.lrh.destination_lid = ah->av.ib.dlid; in build_mlx_header()
/drivers/infiniband/hw/qib/
Dqib_ud.c442 u16 dlid; in qib_ud_rcv() local
574 dlid = be16_to_cpu(hdr->lrh[1]); in qib_ud_rcv()
578 wc.dlid_path_bits = dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE) ? 0 : in qib_ud_rcv()
579 dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); in qib_ud_rcv()
Dqib_verbs.h311 struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid);
Dqib_verbs.c1376 struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid) in qib_create_qp0_ah() argument
1387 rdma_ah_set_dlid(&attr, dlid); in qib_create_qp0_ah()
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_misc.c285 rdma_ah_set_dlid(dst, src->dlid); in pvrdma_ah_attr_to_rdma()
298 dst->dlid = rdma_ah_get_dlid(src); in rdma_ah_attr_to_pvrdma()
Dpvrdma_verbs.h229 u16 dlid; member