slid             1282 drivers/infiniband/core/cm.c 					      pri_path->opa.slid);
slid             1314 drivers/infiniband/core/cm.c 			= OPA_MAKE_ID(be32_to_cpu(pri_path->opa.slid));
slid             1343 drivers/infiniband/core/cm.c 						      alt_path->opa.slid);
slid             1349 drivers/infiniband/core/cm.c 				= OPA_MAKE_ID(be32_to_cpu(alt_path->opa.slid));
slid             1912 drivers/infiniband/core/cm.c 			req_msg->primary_local_lid = ib_lid_be16(wc->slid);
slid             1922 drivers/infiniband/core/cm.c 			req_msg->alt_local_lid = ib_lid_be16(wc->slid);
slid             3089 drivers/infiniband/core/cm.c 					      alternate_path->opa.slid);
slid             3105 drivers/infiniband/core/cm.c 			= OPA_MAKE_ID(be32_to_cpu(alternate_path->opa.slid));
slid             3567 drivers/infiniband/core/cm.c 	cm_id_priv->av.dgid.global.subnet_prefix = cpu_to_be64(wc->slid);
slid              760 drivers/infiniband/core/mad.c static void build_smp_wc(struct ib_qp *qp, struct ib_cqe *cqe, u16 slid,
slid              771 drivers/infiniband/core/mad.c 	wc->slid = slid;
slid             1957 drivers/infiniband/core/mad.c 		return rdma_ah_get_dlid(&attr) == rwc->wc->slid;
slid               67 drivers/infiniband/core/mad_rmpp.c 	u32 slid;
slid              320 drivers/infiniband/core/mad_rmpp.c 	rmpp_recv->slid = mad_recv_wc->wc->slid;
slid              341 drivers/infiniband/core/mad_rmpp.c 		    rmpp_recv->slid == mad_recv_wc->wc->slid &&
slid              874 drivers/infiniband/core/mad_rmpp.c 		if (rmpp_recv->slid == rdma_ah_get_dlid(&ah_attr)) {
slid              213 drivers/infiniband/core/sa_query.c 	{ PATH_REC_FIELD(ib.slid),
slid              315 drivers/infiniband/core/sa_query.c 	{ OPA_PATH_REC_FIELD(opa.slid),
slid              254 drivers/infiniband/core/user_mad.c 						  mad_recv_wc->wc->slid);
slid              256 drivers/infiniband/core/user_mad.c 		packet->mad.hdr.lid = ib_lid_be16(mad_recv_wc->wc->slid);
slid             1155 drivers/infiniband/core/uverbs_cmd.c 		tmp.slid	= OPA_TO_IB_UCAST_LID(wc->slid);
slid             1157 drivers/infiniband/core/uverbs_cmd.c 		tmp.slid	= ib_lid_cpu16(wc->slid);
slid              143 drivers/infiniband/core/uverbs_marshall.c 	dst->slid		= htons(ntohl(sa_path_get_slid(src)));
slid              178 drivers/infiniband/core/uverbs_marshall.c 	u32 slid, dlid;
slid              184 drivers/infiniband/core/uverbs_marshall.c 		slid = opa_get_lid_from_gid((union ib_gid *)src->sgid);
slid              188 drivers/infiniband/core/uverbs_marshall.c 		slid = ntohs(src->slid);
slid              195 drivers/infiniband/core/uverbs_marshall.c 	sa_path_set_slid(dst, slid);
slid              825 drivers/infiniband/core/verbs.c 		rdma_ah_set_dlid(ah_attr, wc->slid);
slid              453 drivers/infiniband/hw/hfi1/driver.c 	u32 rlid, slid, dlid = 0;
slid              463 drivers/infiniband/hw/hfi1/driver.c 		slid = hfi1_16B_get_slid(pkt->hdr);
slid              474 drivers/infiniband/hw/hfi1/driver.c 		slid = ib_get_slid(pkt->hdr);
slid              485 drivers/infiniband/hw/hfi1/driver.c 		rlid = slid;
slid              491 drivers/infiniband/hw/hfi1/driver.c 		rlid = slid;
slid             1423 drivers/infiniband/hw/hfi1/driver.c 	if ((!packet->slid) || (!packet->dlid))
slid             1477 drivers/infiniband/hw/hfi1/driver.c 	packet->slid = ib_get_slid(hdr);
slid             1558 drivers/infiniband/hw/hfi1/driver.c 	packet->slid = hfi1_16B_get_slid(packet->hdr);
slid              379 drivers/infiniband/hw/hfi1/hfi.h 	u32 slid;
slid             1012 drivers/infiniband/hw/hfi1/hfi.h 	u32 slid;
slid             1618 drivers/infiniband/hw/hfi1/hfi.h 		u16 pkey, u32 slid, u32 dlid, u8 sc5,
slid             1621 drivers/infiniband/hw/hfi1/hfi.h 		    u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
slid             1624 drivers/infiniband/hw/hfi1/hfi.h 				u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
slid             1628 drivers/infiniband/hw/hfi1/hfi.h int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey,
slid             1710 drivers/infiniband/hw/hfi1/hfi.h 				    u32 slid)
slid             1717 drivers/infiniband/hw/hfi1/hfi.h 		dd->err_info_rcv_constraint.slid = slid;
slid             1731 drivers/infiniband/hw/hfi1/hfi.h 				     u8 sc5, u8 idx, u32 slid, bool force)
slid             1753 drivers/infiniband/hw/hfi1/hfi.h 	ingress_pkey_table_fail(ppd, pkey, slid);
slid             1764 drivers/infiniband/hw/hfi1/hfi.h 				 u8 sc5, u16 slid)
slid             1775 drivers/infiniband/hw/hfi1/hfi.h 	ingress_pkey_table_fail(ppd, pkey, slid);
slid             2453 drivers/infiniband/hw/hfi1/hfi.h 				     struct ib_grh *grh, u32 slid,
slid             2464 drivers/infiniband/hw/hfi1/hfi.h 	if (slid == opa_get_lid(be32_to_cpu(OPA_LID_PERMISSIVE), 16B))
slid             2468 drivers/infiniband/hw/hfi1/hfi.h 		grh->sgid.global.interface_id = OPA_MAKE_ID(slid);
slid             2490 drivers/infiniband/hw/hfi1/hfi.h 				    u16 dlid, u16 slid)
slid             2495 drivers/infiniband/hw/hfi1/hfi.h 	hdr->lrh[3] = cpu_to_be16(slid);
slid             2499 drivers/infiniband/hw/hfi1/hfi.h 				     u32 slid, u32 dlid,
slid             2511 drivers/infiniband/hw/hfi1/hfi.h 	lrh0 = (lrh0 & ~OPA_16B_LID_MASK)  | (slid & OPA_16B_LID_MASK);
slid             2516 drivers/infiniband/hw/hfi1/hfi.h 		((slid >> OPA_16B_SLID_SHIFT) << OPA_16B_SLID_HIGH_SHIFT);
slid             2559 drivers/infiniband/hw/hfi1/mad.c 			__be32 slid;
slid             2567 drivers/infiniband/hw/hfi1/mad.c 			__be32 slid;
slid             3448 drivers/infiniband/hw/hfi1/mad.c 	rsp->port_xmit_constraint_ei.slid =
slid             3449 drivers/infiniband/hw/hfi1/mad.c 		cpu_to_be32(dd->err_info_xmit_constraint.slid);
slid             3455 drivers/infiniband/hw/hfi1/mad.c 	rsp->port_rcv_constraint_ei.slid =
slid             3456 drivers/infiniband/hw/hfi1/mad.c 		cpu_to_be32(dd->err_info_rcv_constraint.slid);
slid             4408 drivers/infiniband/hw/hfi1/mad.c 	return (in_wc->slid == ppd->lid);
slid             4451 drivers/infiniband/hw/hfi1/mad.c 	ingress_pkey_table_fail(ppd, pkey, in_wc->slid);
slid             2989 drivers/infiniband/hw/hfi1/rc.c 		wc.slid = rdma_ah_get_dlid(&qp->remote_ah_attr) & U16_MAX;
slid               76 drivers/infiniband/hw/hfi1/ruc.c 	u32 slid = packet->slid;
slid              105 drivers/infiniband/hw/hfi1/ruc.c 					    sc5, slid))) {
slid              107 drivers/infiniband/hw/hfi1/ruc.c 				      slid, dlid);
slid              111 drivers/infiniband/hw/hfi1/ruc.c 		if (slid != rdma_ah_get_dlid(&qp->alt_ah_attr) ||
slid              142 drivers/infiniband/hw/hfi1/ruc.c 					    sc5, slid))) {
slid              144 drivers/infiniband/hw/hfi1/ruc.c 				      slid, dlid);
slid              148 drivers/infiniband/hw/hfi1/ruc.c 		if ((slid != rdma_ah_get_dlid(&qp->remote_ah_attr)) ||
slid              281 drivers/infiniband/hw/hfi1/ruc.c 	u32 slid;
slid              332 drivers/infiniband/hw/hfi1/ruc.c 		slid = be32_to_cpu(OPA_LID_PERMISSIVE);
slid              334 drivers/infiniband/hw/hfi1/ruc.c 		slid = ppd->lid |
slid              339 drivers/infiniband/hw/hfi1/ruc.c 			  slid,
slid              192 drivers/infiniband/hw/hfi1/trace.c 			     u16 *len, u32 *dlid, u32 *slid)
slid              200 drivers/infiniband/hw/hfi1/trace.c 	*slid = ib_get_slid(hdr);
slid              207 drivers/infiniband/hw/hfi1/trace.c 			      u32 *dlid, u32 *slid)
slid              219 drivers/infiniband/hw/hfi1/trace.c 	*slid = hfi1_16B_get_slid(hdr);
slid              230 drivers/infiniband/hw/hfi1/trace.c 			       u16 len, u16 pkey, u32 dlid, u32 slid)
slid              234 drivers/infiniband/hw/hfi1/trace.c 	trace_seq_printf(p, LRH_PRN, len, sc, dlid, slid);
slid              121 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 			     u16 *len, u32 *dlid, u32 *slid);
slid              130 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 			      u32 *dlid, u32 *slid);
slid              136 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 			       u16 len, u16 pkey, u32 dlid, u32 slid);
slid              185 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 			__field(u32, slid)
slid              211 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 							 &__entry->slid);
slid              237 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 							&__entry->slid);
slid              281 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 						 __entry->slid),
slid              344 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 			__field(u32, slid)
slid              371 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 							 &__entry->slid);
slid              402 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 							&__entry->slid);
slid              445 drivers/infiniband/hw/hfi1/trace_ibhdrs.h 						 __entry->slid),
slid              460 drivers/infiniband/hw/hfi1/uc.c 		wc.slid = rdma_ah_get_dlid(&qp->remote_ah_attr) & U16_MAX;
slid              113 drivers/infiniband/hw/hfi1/ud.c 		u32 slid;
slid              117 drivers/infiniband/hw/hfi1/ud.c 		slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) &
slid              121 drivers/infiniband/hw/hfi1/ud.c 						slid, false))) {
slid              125 drivers/infiniband/hw/hfi1/ud.c 				      slid, rdma_ah_get_dlid(ah_attr));
slid              249 drivers/infiniband/hw/hfi1/ud.c 	wc.slid = (ppd->lid | (rdma_ah_get_path_bits(ah_attr) &
slid              252 drivers/infiniband/hw/hfi1/ud.c 	if (wc.slid == 0 && sqp->ibqp.qp_type == IB_QPT_GSI)
slid              253 drivers/infiniband/hw/hfi1/ud.c 		wc.slid = be16_to_cpu(IB_LID_PERMISSIVE);
slid              307 drivers/infiniband/hw/hfi1/ud.c 	u16 len, slid, dlid, pkey;
slid              353 drivers/infiniband/hw/hfi1/ud.c 		slid = be16_to_cpu(IB_LID_PERMISSIVE);
slid              360 drivers/infiniband/hw/hfi1/ud.c 			slid = lid;
slid              362 drivers/infiniband/hw/hfi1/ud.c 			slid = be16_to_cpu(IB_LID_PERMISSIVE);
slid              371 drivers/infiniband/hw/hfi1/ud.c 			 lrh0, len, dlid, slid);
slid              382 drivers/infiniband/hw/hfi1/ud.c 	u32 dlid, slid, nwords, extra_bytes;
slid              446 drivers/infiniband/hw/hfi1/ud.c 		slid = be32_to_cpu(OPA_LID_PERMISSIVE);
slid              448 drivers/infiniband/hw/hfi1/ud.c 		slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) &
slid              465 drivers/infiniband/hw/hfi1/ud.c 			  slid, dlid, len, pkey, 0, 0, l4, priv->s_sc);
slid              633 drivers/infiniband/hw/hfi1/ud.c 		    u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
slid              678 drivers/infiniband/hw/hfi1/ud.c 	hfi1_make_16b_hdr(&hdr.opah, slid, dlid, len, pkey, 1, 0, l4, sc5);
slid              695 drivers/infiniband/hw/hfi1/ud.c 		u16 pkey, u32 slid, u32 dlid, u8 sc5,
slid              734 drivers/infiniband/hw/hfi1/ud.c 	hfi1_make_ib_hdr(&hdr.ibh, lrh0, hwords + SIZE_OF_CRC, dlid, slid);
slid              768 drivers/infiniband/hw/hfi1/ud.c 			 struct rvt_qp *qp, u16 slid, struct opa_smp *smp)
slid              779 drivers/infiniband/hw/hfi1/ud.c 	if (rcv_pkey_check(ppd, pkey, sc5, slid))
slid              789 drivers/infiniband/hw/hfi1/ud.c 		ingress_pkey_table_fail(ppd, pkey, slid);
slid              822 drivers/infiniband/hw/hfi1/ud.c 			ingress_pkey_table_fail(ppd, pkey, slid);
slid              835 drivers/infiniband/hw/hfi1/ud.c 		ingress_pkey_table_fail(ppd, pkey, slid);
slid              871 drivers/infiniband/hw/hfi1/ud.c 	u32 slid = packet->slid;
slid              887 drivers/infiniband/hw/hfi1/ud.c 		slid_is_permissive = (slid == permissive_lid);
slid              891 drivers/infiniband/hw/hfi1/ud.c 		slid_is_permissive = (slid == be16_to_cpu(IB_LID_PERMISSIVE));
slid              920 drivers/infiniband/hw/hfi1/ud.c 			if (unlikely(rcv_pkey_check(ppd, pkey, sc5, slid))) {
slid              930 drivers/infiniband/hw/hfi1/ud.c 					      slid, dlid);
slid              951 drivers/infiniband/hw/hfi1/ud.c 		if (opa_smp_check(ibp, pkey, sc5, qp, slid, smp))
slid             1018 drivers/infiniband/hw/hfi1/ud.c 		hfi1_make_ext_grh(packet, &grh, slid, dlid);
slid             1053 drivers/infiniband/hw/hfi1/ud.c 		slid = be32_to_cpu(OPA_LID_PERMISSIVE);
slid             1054 drivers/infiniband/hw/hfi1/ud.c 	wc.slid = slid & U16_MAX;
slid              358 drivers/infiniband/hw/hfi1/user_sdma.c 	u32 slid;
slid              492 drivers/infiniband/hw/hfi1/user_sdma.c 	slid = be16_to_cpu(req->hdr.lrh[3]);
slid              493 drivers/infiniband/hw/hfi1/user_sdma.c 	if (egress_pkey_check(dd->pport, slid, pkey, sc, PKEY_CHECK_INVALID)) {
slid              491 drivers/infiniband/hw/hfi1/verbs.c 				  packet->slid, true);
slid             1157 drivers/infiniband/hw/hfi1/verbs.c int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey,
slid             1201 drivers/infiniband/hw/hfi1/verbs.c 			dd->err_info_xmit_constraint.slid = slid;
slid             1262 drivers/infiniband/hw/hfi1/verbs.c 	u32 slid;
slid             1275 drivers/infiniband/hw/hfi1/verbs.c 		slid = hfi1_16B_get_slid(hdr);
slid             1285 drivers/infiniband/hw/hfi1/verbs.c 		slid = ib_get_slid(hdr);
slid             1295 drivers/infiniband/hw/hfi1/verbs.c 	ret = egress_pkey_check(dd->pport, slid, pkey,
slid             2939 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		wc->slid = 0;
slid              601 drivers/infiniband/hw/mlx4/cq.c 		wc->slid = 0;
slid              607 drivers/infiniband/hw/mlx4/cq.c 		wc->slid        = be16_to_cpu(hdr->tun.slid_mac_47_32);
slid              860 drivers/infiniband/hw/mlx4/cq.c 			wc->slid = 0;
slid              872 drivers/infiniband/hw/mlx4/cq.c 			wc->slid = be16_to_cpu(cqe->rlid);
slid              172 drivers/infiniband/hw/mlx4/mad.c 		in_modifier |= ib_lid_cpu16(in_wc->slid) << 16;
slid              628 drivers/infiniband/hw/mlx4/mad.c 		tun_mad->hdr.slid_mac_47_32 = ib_lid_be16(wc->slid);
slid              806 drivers/infiniband/hw/mlx4/mad.c 	u16 slid, prev_lid = 0;
slid              814 drivers/infiniband/hw/mlx4/mad.c 			 in_wc->slid, in_wc->src_qp,
slid              831 drivers/infiniband/hw/mlx4/mad.c 	slid = in_wc ? ib_lid_cpu16(in_wc->slid) : be16_to_cpu(IB_LID_PERMISSIVE);
slid              833 drivers/infiniband/hw/mlx4/mad.c 	if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) {
slid              247 drivers/infiniband/hw/mlx4/mcg.c 	wc.slid = rdma_ah_get_dlid(&ah_attr);  /* opensm lid */
slid              238 drivers/infiniband/hw/mlx5/cq.c 		wc->slid = be16_to_cpu(cqe->slid);
slid              243 drivers/infiniband/hw/mlx5/cq.c 	wc->slid = 0;
slid               81 drivers/infiniband/hw/mlx5/mad.c 	u16 slid;
slid               84 drivers/infiniband/hw/mlx5/mad.c 	slid = in_wc ? ib_lid_cpu16(in_wc->slid) : be16_to_cpu(IB_LID_PERMISSIVE);
slid               86 drivers/infiniband/hw/mlx5/mad.c 	if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0)
slid             1918 drivers/infiniband/hw/mthca/mthca_cmd.c 		MTHCA_PUT(inbox, ib_lid_cpu16(in_wc->slid), MAD_IFC_RLID_OFFSET);
slid             1926 drivers/infiniband/hw/mthca/mthca_cmd.c 		in_modifier |= ib_lid_cpu16(in_wc->slid) << 16;
slid              630 drivers/infiniband/hw/mthca/mthca_cq.c 		entry->slid 	   = be16_to_cpu(cqe->rlid);
slid              209 drivers/infiniband/hw/mthca/mthca_mad.c 	u16 slid = in_wc ? ib_lid_cpu16(in_wc->slid) : be16_to_cpu(IB_LID_PERMISSIVE);
slid              221 drivers/infiniband/hw/mthca/mthca_mad.c 	    slid == 0) {
slid             1880 drivers/infiniband/hw/qib/qib_rc.c 		wc.slid = rdma_ah_get_dlid(&qp->remote_ah_attr);
slid              395 drivers/infiniband/hw/qib/qib_uc.c 		wc.slid = rdma_ah_get_dlid(&qp->remote_ah_attr);
slid              208 drivers/infiniband/hw/qib/qib_ud.c 	wc.slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) &
slid              567 drivers/infiniband/hw/qib/qib_ud.c 	wc.slid = be16_to_cpu(hdr->lrh[3]);
slid              361 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c 	wc->slid = cqe->slid;
slid              132 drivers/infiniband/sw/rdmavt/cq.c 		uqueue[head].slid = ib_lid_cpu16(entry->slid);
slid             3183 drivers/infiniband/sw/rdmavt/qp.c 	wc.slid = rdma_ah_get_dlid(&qp->remote_ah_attr) & U16_MAX;
slid              663 drivers/infiniband/ulp/ipoib/ipoib_cm.c 		       wc->byte_len, wc->slid);
slid              217 drivers/infiniband/ulp/ipoib/ipoib_ib.c 		       wc->byte_len, wc->slid);
slid              239 drivers/infiniband/ulp/ipoib/ipoib_ib.c 	if (wc->slid == priv->local_lid && wc->src_qp == priv->qp->qp_num) {
slid               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,
slid               85 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c 	h[0] |= (slid & OPA_16B_LID_MASK);
slid               86 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c 	h[2] |= ((slid >> (20 - OPA_16B_SLID_HIGH_SHFT)) & OPA_16B_SLID_MASK);
slid              764 include/linux/mlx5/device.h 	__be16		slid;
slid              162 include/rdma/ib_sa.h 	__be16       slid;
slid              180 include/rdma/ib_sa.h 	__be32       slid;
slid              249 include/rdma/ib_sa.h 	    (be32_to_cpu(opa->opa.slid) >=
slid              257 include/rdma/ib_sa.h 				= OPA_MAKE_ID(be32_to_cpu(opa->opa.slid));
slid              262 include/rdma/ib_sa.h 		ib->ib.slid	= 0;
slid              265 include/rdma/ib_sa.h 		ib->ib.slid	= htons(ntohl(opa->opa.slid));
slid              274 include/rdma/ib_sa.h 	__be32 slid, dlid;
slid              278 include/rdma/ib_sa.h 		slid = htonl(opa_get_lid_from_gid(&ib->sgid));
slid              281 include/rdma/ib_sa.h 		slid = htonl(ntohs(ib->ib.slid));
slid              284 include/rdma/ib_sa.h 	opa->opa.slid		= slid;
slid              592 include/rdma/ib_sa.h static inline void sa_path_set_slid(struct sa_path_rec *rec, u32 slid)
slid              595 include/rdma/ib_sa.h 		rec->ib.slid = cpu_to_be16(slid);
slid              597 include/rdma/ib_sa.h 		rec->opa.slid = cpu_to_be32(slid);
slid              620 include/rdma/ib_sa.h 		return htonl(ntohs(rec->ib.slid));
slid              622 include/rdma/ib_sa.h 		return rec->opa.slid;
slid              983 include/rdma/ib_verbs.h 	u32			slid;
slid              100 include/rdma/opa_addr.h static inline bool opa_is_extended_lid(__be32 dlid, __be32 slid)
slid              104 include/rdma/opa_addr.h 	    (be32_to_cpu(slid) >=
slid              205 include/trace/events/ib_mad.h 		__field(u32,            slid)
slid              224 include/trace/events/ib_mad.h 		__entry->slid = wc->slid;
slid              247 include/trace/events/ib_mad.h 		__entry->slid, __entry->src_qp, __entry->sl, __entry->pkey
slid               59 include/uapi/rdma/ib_user_sa.h 	__be16	slid;
slid              474 include/uapi/rdma/ib_user_verbs.h 	__u16 slid;
slid              289 include/uapi/rdma/vmw_pvrdma-abi.h 	__u16 slid;