/drivers/infiniband/hw/ehca/ |
D | ehca_mcast.c | 56 #define EHCA_VALID_MULTICAST_LID(lid) \ argument 57 (((lid) >= MIN_MC_LID) && ((lid) <= MAX_MC_LID)) 59 int ehca_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in ehca_attach_mcast() argument 75 } else if ((lid < MIN_MC_LID) || (lid > MAX_MC_LID)) { in ehca_attach_mcast() 76 ehca_err(ibqp->device, "invalid mulitcast lid=%x", lid); in ehca_attach_mcast() 87 lid, subnet_prefix, interface_id); in ehca_attach_mcast() 96 int ehca_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in ehca_detach_mcast() argument 112 } else if ((lid < MIN_MC_LID) || (lid > MAX_MC_LID)) { in ehca_detach_mcast() 113 ehca_err(ibqp->device, "invalid mulitcast lid=%x", lid); in ehca_detach_mcast() 124 lid, subnet_prefix, interface_id); in ehca_detach_mcast()
|
D | ehca_hca.c | 216 props->lid = rblock->lid; in ehca_query_port() 267 attr->lid = rblock->lid; in ehca_query_sma_attr()
|
D | ehca_sqp.c | 181 sport->saved_attr.lid | in_wc->dlid_path_bits; in ehca_process_perf() 202 sport->saved_attr.lid, sport->pma_qp_nr); in ehca_process_perf()
|
D | ehca_iverbs.h | 179 int ehca_attach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid); 181 int ehca_detach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid);
|
/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 78 u16 lid; in qib_ud_loopback() local 83 lid = ppd->lid | (ah_attr->src_path_bits & in qib_ud_loopback() 88 cpu_to_be16(lid), in qib_ud_loopback() 105 u16 lid; in qib_ud_loopback() local 107 lid = ppd->lid | (ah_attr->src_path_bits & in qib_ud_loopback() 112 cpu_to_be16(lid), in qib_ud_loopback() 207 wc.slid = ppd->lid | (ah_attr->src_path_bits & ((1 << ppd->lmc) - 1)); in qib_ud_loopback() 240 u16 lid; in qib_make_ud_req() local 281 lid = ah_attr->dlid & ~((1 << ppd->lmc) - 1); in qib_make_ud_req() 282 if (unlikely(lid == ppd->lid)) { in qib_make_ud_req() [all …]
|
D | qib_driver.c | 109 if (ppd->lid && (ppd->lflags & (QIBL_LINKINIT | in qib_count_active_units() 141 if (ppd->lid && (ppd->lflags & (QIBL_LINKINIT | in qib_count_units() 311 u16 lid = be16_to_cpu(hdr->lrh[1]); in qib_rcv_hdrerr() local 322 if (lid < QIB_MULTICAST_LID_BASE) { in qib_rcv_hdrerr() 323 lid &= ~((1 << ppd->lmc) - 1); in qib_rcv_hdrerr() 324 if (unlikely(lid != ppd->lid)) in qib_rcv_hdrerr() 652 int qib_set_lid(struct qib_pportdata *ppd, u32 lid, u8 lmc) in qib_set_lid() argument 655 ppd->lid = lid; in qib_set_lid() 659 lid | (~((1U << lmc) - 1)) << 16); in qib_set_lid() 662 dd->unit, ppd->port, lid); in qib_set_lid()
|
D | qib_mad.h | 74 __be16 lid; /* where violation happened */ member 80 __be16 lid; /* LID where change occurred */ member 90 __be16 lid; /* lid where sys guid changed */ member 97 __be16 lid; member
|
D | qib_mad.c | 153 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_pqkey() 177 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_mkey() 180 data.details.ntc_256.lid = data.issuer_lid; in qib_bad_mkey() 215 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_cap_mask_chg() 218 data.details.ntc_144.lid = data.issuer_lid; in qib_cap_mask_chg() 235 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_sys_guid_chg() 238 data.details.ntc_145.lid = data.issuer_lid; in qib_sys_guid_chg() 255 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_node_desc_chg() 258 data.details.ntc_144.lid = data.issuer_lid; in qib_node_desc_chg() 495 pip->lid = cpu_to_be16(ppd->lid); in subn_get_portinfo() [all …]
|
D | qib_verbs_mcast.c | 225 int qib_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in qib_multicast_attach() argument 283 int qib_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in qib_multicast_detach() argument
|
D | qib_verbs.c | 618 u16 lid; in qib_ib_rcv() local 625 lid = be16_to_cpu(hdr->lrh[1]); in qib_ib_rcv() 626 if (lid < QIB_MULTICAST_LID_BASE) { in qib_ib_rcv() 627 lid &= ~((1 << ppd->lmc) - 1); in qib_ib_rcv() 628 if (unlikely(lid != ppd->lid)) in qib_ib_rcv() 1603 u16 lid = ppd->lid; in qib_query_port() local 1606 props->lid = lid ? lid : be16_to_cpu(IB_LID_PERMISSIVE); in qib_query_port()
|
/drivers/infiniband/hw/mthca/ |
D | mthca_mad.c | 75 u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument 85 ah_attr.dlid = lid; in update_sm_ah() 118 u16 lid = be16_to_cpu(pinfo->lid); in smp_snoop() local 133 if (prev_lid != lid) { in smp_snoop() 249 prev_lid = pattr.lid; in mthca_process_mad()
|
D | mthca_mcg.c | 120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument 214 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_detach() argument
|
D | mthca_dev.h | 573 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); 574 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
|
/drivers/infiniband/hw/ipath/ |
D | ipath_ud.c | 252 u16 lid; in ipath_make_ud_req() local 291 lid = ah_attr->dlid & ~((1 << dev->dd->ipath_lmc) - 1); in ipath_make_ud_req() 292 if (unlikely(lid == dev->dd->ipath_lid)) { in ipath_make_ud_req() 356 lid = dev->dd->ipath_lid; in ipath_make_ud_req() 357 if (lid) { in ipath_make_ud_req() 358 lid |= ah_attr->src_path_bits & in ipath_make_ud_req() 360 qp->s_hdr.lrh[3] = cpu_to_be16(lid); in ipath_make_ud_req()
|
D | ipath_mad.c | 241 u16 lid; in recv_subn_get_portinfo() local 263 lid = dd->ipath_lid; in recv_subn_get_portinfo() 264 pip->lid = lid ? cpu_to_be16(lid) : IB_LID_PERMISSIVE; in recv_subn_get_portinfo() 425 u16 lid, smlid; in recv_subn_set_portinfo() local 445 lid = be16_to_cpu(pip->lid); in recv_subn_set_portinfo() 446 if (dd->ipath_lid != lid || in recv_subn_set_portinfo() 449 if (lid == 0 || lid >= IPATH_MULTICAST_LID_BASE) in recv_subn_set_portinfo() 451 ipath_set_lid(dd, lid, pip->mkeyprot_resv_lmc & 7); in recv_subn_set_portinfo()
|
D | ipath_sysfs.c | 228 u16 lid = 0; in store_lid() local 231 ret = ipath_parse_ushort(buf, &lid); in store_lid() 235 if (lid == 0 || lid >= IPATH_MULTICAST_LID_BASE) { in store_lid() 240 ipath_set_lid(dd, lid, dd->ipath_lmc); in store_lid() 244 ipath_dev_err(dd, "attempt to set invalid LID 0x%x\n", lid); in store_lid() 1081 static DEVICE_ATTR(lid, S_IWUSR | S_IRUGO, show_lid, store_lid);
|
D | ipath_verbs_mcast.c | 236 int ipath_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in ipath_multicast_attach() argument 285 int ipath_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in ipath_multicast_detach() argument
|
D | ipath_verbs.c | 592 u16 lid; in ipath_ib_rcv() local 603 lid = be16_to_cpu(hdr->lrh[1]); in ipath_ib_rcv() 604 if (lid < IPATH_MULTICAST_LID_BASE) { in ipath_ib_rcv() 605 lid &= ~((1 << dev->dd->ipath_lmc) - 1); in ipath_ib_rcv() 606 if (unlikely(lid != dev->dd->ipath_lid)) { in ipath_ib_rcv() 1586 u16 lid = dd->ipath_lid; in ipath_query_port() local 1590 props->lid = lid ? lid : be16_to_cpu(IB_LID_PERMISSIVE); in ipath_query_port()
|
/drivers/infiniband/hw/mlx4/ |
D | mad.c | 185 static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument 195 ah_attr.dlid = lid; in update_sm_ah() 219 u16 lid; in smp_snoop() local 232 lid = be16_to_cpu(pinfo->lid); in smp_snoop() 241 if (prev_lid != lid) in smp_snoop() 701 prev_lid = pattr.lid; in ib_process_mad() 960 u16 lid = be16_to_cpu(eqe->event.port_mgmt_change.params.port_info.mstr_sm_lid); in handle_port_mgmt_change_event() local 962 update_sm_ah(dev, port, lid, sl); in handle_port_mgmt_change_event()
|
D | alias_GUID.c | 232 be16_to_cpu(guid_rec->lid), cb_ctx->port, in aliasguid_query_handler() 386 guid_info_rec.lid = cpu_to_be16(attr.lid); in set_guid_rec()
|
/drivers/infiniband/core/ |
D | uverbs.h | 116 u16 lid; member
|
D | verbs.c | 1187 int ib_attach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid) in ib_attach_mcast() argument 1196 ret = qp->device->attach_mcast(qp, gid, lid); in ib_attach_mcast() 1203 int ib_detach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid) in ib_detach_mcast() argument 1212 ret = qp->device->detach_mcast(qp, gid, lid); in ib_detach_mcast()
|
D | user_mad.c | 226 packet->mad.hdr.lid = cpu_to_be16(mad_recv_wc->wc->slid); in recv_handler() 396 return (hdr1->lid == hdr2->lid); in same_destination() 482 ah_attr.dlid = be16_to_cpu(packet->mad.hdr.lid); in ib_umad_write()
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.h | 366 u16 lid; member
|
/drivers/infiniband/hw/amso1100/ |
D | c2_provider.c | 83 props->lid = 0; in c2_query_port() 575 static int c2_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in c2_multicast_attach() argument 581 static int c2_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in c2_multicast_detach() argument
|