/drivers/platform/surface/ |
D | surface_gpe.c | 170 const struct surface_lid_device *lid = dev_get_drvdata(dev); in surface_lid_enable_wakeup() local 174 status = acpi_set_gpe_wake_mask(NULL, lid->gpe_number, action); in surface_lid_enable_wakeup() 198 struct surface_lid_device *lid; in surface_gpe_probe() local 209 lid = devm_kzalloc(&pdev->dev, sizeof(*lid), GFP_KERNEL); in surface_gpe_probe() 210 if (!lid) in surface_gpe_probe() 213 lid->gpe_number = gpe_number; in surface_gpe_probe() 214 platform_set_drvdata(pdev, lid); in surface_gpe_probe() 239 struct surface_lid_device *lid = dev_get_drvdata(&pdev->dev); in surface_gpe_remove() local 243 acpi_disable_gpe(NULL, lid->gpe_number); in surface_gpe_remove()
|
/drivers/infiniband/sw/rdmavt/ |
D | mcast.c | 65 static struct rvt_mcast *rvt_mcast_alloc(union ib_gid *mgid, u16 lid) in rvt_mcast_alloc() argument 74 mcast->mcast_addr.lid = lid; in rvt_mcast_alloc() 107 u16 lid) in rvt_mcast_find() argument 129 if (mcast->mcast_addr.lid == lid) { in rvt_mcast_find() 179 if (tmcast->mcast_addr.lid != mcast->mcast_addr.lid) { in rvt_mcast_add() 238 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_attach_mcast() argument 254 mcast = rvt_mcast_alloc(gid, lid); in rvt_attach_mcast() 301 int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_detach_mcast() argument 334 if (mcast->mcast_addr.lid != lid) { in rvt_detach_mcast()
|
D | mcast.h | 12 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); 13 int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
|
/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 90 u16 lid; in qib_ud_loopback() local 95 lid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in qib_ud_loopback() 100 cpu_to_be16(lid), in qib_ud_loopback() 208 wc.slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in qib_ud_loopback() 243 u16 lid; in qib_make_ud_req() local 284 lid = rdma_ah_get_dlid(ah_attr) & ~((1 << ppd->lmc) - 1); in qib_make_ud_req() 285 if (unlikely(lid == ppd->lid)) { in qib_make_ud_req() 355 lid = ppd->lid; in qib_make_ud_req() 356 if (lid) { in qib_make_ud_req() 357 lid |= rdma_ah_get_path_bits(ah_attr) & in qib_make_ud_req() [all …]
|
D | qib_driver.c | 106 if (ppd->lid && (ppd->lflags & (QIBL_LINKINIT | in qib_count_active_units() 137 if (ppd->lid && (ppd->lflags & (QIBL_LINKINIT | in qib_count_units() 308 u16 lid = be16_to_cpu(hdr->lrh[1]); in qib_rcv_hdrerr() local 319 if (lid < be16_to_cpu(IB_MULTICAST_LID_BASE)) { in qib_rcv_hdrerr() 320 lid &= ~((1 << ppd->lmc) - 1); in qib_rcv_hdrerr() 321 if (unlikely(lid != ppd->lid)) in qib_rcv_hdrerr() 637 int qib_set_lid(struct qib_pportdata *ppd, u32 lid, u8 lmc) in qib_set_lid() argument 641 ppd->lid = lid; in qib_set_lid() 645 lid | (~((1U << lmc) - 1)) << 16); in qib_set_lid() 648 dd->unit, ppd->port, lid); in qib_set_lid()
|
D | qib_mad.c | 152 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_pkey() 176 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_mkey() 179 data.details.ntc_256.lid = data.issuer_lid; in qib_bad_mkey() 217 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_cap_mask_chg() 220 data.details.ntc_144.lid = data.issuer_lid; in qib_cap_mask_chg() 237 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_sys_guid_chg() 240 data.details.ntc_145.lid = data.issuer_lid; in qib_sys_guid_chg() 257 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_node_desc_chg() 260 data.details.ntc_144.lid = data.issuer_lid; in qib_node_desc_chg() 498 pip->lid = cpu_to_be16(ppd->lid); in subn_get_portinfo() [all …]
|
D | qib_verbs.c | 283 u16 lid; in qib_ib_rcv() local 290 lid = be16_to_cpu(hdr->lrh[1]); in qib_ib_rcv() 291 if (lid < be16_to_cpu(IB_MULTICAST_LID_BASE)) { in qib_ib_rcv() 292 lid &= ~((1 << ppd->lmc) - 1); in qib_ib_rcv() 293 if (unlikely(lid != ppd->lid)) in qib_ib_rcv() 327 mcast = rvt_mcast_find(&ibp->rvp, &hdr->u.l.grh.dgid, lid); in qib_ib_rcv() 1198 u16 lid = ppd->lid; in qib_query_port() local 1201 props->lid = lid ? lid : be16_to_cpu(IB_LID_PERMISSIVE); in qib_query_port()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | npc.h | 249 u8 lid; member 338 u64 lid : 3; member 360 u64 lid : 3; 492 u8 lid; member 498 u8 lid; member 506 u8 lid; member 513 u8 lid; member 521 u8 lid; member
|
D | rvu_npc_fs.c | 133 u64 cfg, u8 lid, u8 lt, u8 intf) in npc_set_layer_mdata() argument 144 input->layer_mdata.lid = lid; in npc_set_layer_mdata() 155 if (input1->layer_mdata.lid == input2->layer_mdata.lid && in npc_check_overlap_fields() 178 u8 nr_bits, lid, lt, ld; in npc_check_overlap() local 189 for (lid = start_lid; lid < NPC_MAX_LID; lid++) { in npc_check_overlap() 194 (intf, lid, lt, ld)); in npc_check_overlap() 199 lid, lt, intf); in npc_check_overlap() 356 start_lid = key_fields[NPC_ETYPE].layer_mdata.lid + 1; in npc_handle_multi_layer_fields() 380 start_lid = key_fields[NPC_OUTER_VID].layer_mdata.lid + 1; in npc_handle_multi_layer_fields() 388 static void npc_scan_ldata(struct rvu *rvu, int blkaddr, u8 lid, in npc_scan_ldata() argument [all …]
|
D | rvu_npc.c | 1233 #define SET_KEX_LD(intf, lid, ltype, ld, cfg) \ argument 1235 NPC_AF_INTFX_LIDX_LTX_LDX_CFG(intf, lid, ltype, ld), cfg) 1244 int lid, lt, ld, fl; in npc_program_mkex_rx() local 1253 for (lid = 0; lid < NPC_MAX_LID; lid++) { in npc_program_mkex_rx() 1256 SET_KEX_LD(intf, lid, lt, ld, in npc_program_mkex_rx() 1258 [lid][lt][ld]); in npc_program_mkex_rx() 1273 int lid, lt, ld, fl; in npc_program_mkex_tx() local 1282 for (lid = 0; lid < NPC_MAX_LID; lid++) { in npc_program_mkex_tx() 1285 SET_KEX_LD(intf, lid, lt, ld, in npc_program_mkex_tx() 1287 [lid][lt][ld]); in npc_program_mkex_tx() [all …]
|
D | rvu_nix.c | 3365 field->lid = NPC_LID_LC; in set_flowkey_fields() 3373 field->lid = NPC_LID_LC; in set_flowkey_fields() 3376 field->lid = NPC_LID_LG; in set_flowkey_fields() 3386 field->lid = NPC_LID_LC; in set_flowkey_fields() 3389 field->lid = NPC_LID_LG; in set_flowkey_fields() 3402 field->lid = NPC_LID_LD; in set_flowkey_fields() 3406 field->lid = NPC_LID_LH; in set_flowkey_fields() 3458 field->lid = NPC_LID_LD; in set_flowkey_fields() 3466 field->lid = NPC_LID_LE; in set_flowkey_fields() 3495 field->lid = NPC_LID_LA; in set_flowkey_fields() [all …]
|
D | npc_profile.h | 15147 .lid = NPC_LID_LA, 15152 .lid = NPC_LID_LB, 15157 .lid = NPC_LID_LB, 15162 .lid = NPC_LID_LC, 15167 .lid = NPC_LID_LG, 15172 .lid = NPC_LID_LC, 15177 .lid = NPC_LID_LG, 15182 .lid = NPC_LID_LD, 15187 .lid = NPC_LID_LH, 15192 .lid = NPC_LID_LD, [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | mad.h | 65 __be32 lid; member 69 __be32 lid; /* where violation happened */ member 74 __be32 lid; /* LID where change occurred */ member 83 __be32 lid; /* lid where sys guid changed */ member 87 __be32 lid; member 123 __be32 lid; member
|
D | hfi.h | 794 u32 lid; member 1889 int hfi1_set_lid(struct hfi1_pportdata *ppd, u32 lid, u8 lmc); 2446 (ppd->lid >= be16_to_cpu(IB_MULTICAST_LID_BASE))) && in hfi1_update_ah_attr() 2465 static inline bool hfi1_check_mcast(u32 lid) in hfi1_check_mcast() argument 2467 return ((lid >= opa_get_mcast_base(OPA_MCAST_NR)) && in hfi1_check_mcast() 2468 (lid != be32_to_cpu(OPA_LID_PERMISSIVE))); in hfi1_check_mcast() 2471 #define opa_get_lid(lid, format) \ argument 2472 __opa_get_lid(lid, OPA_PORT_PACKET_FORMAT_##format) 2475 static inline u32 __opa_get_lid(u32 lid, u8 format) in __opa_get_lid() argument 2477 bool is_mcast = hfi1_check_mcast(lid); in __opa_get_lid() [all …]
|
D | ud.c | 75 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback() 207 wc.slid = (ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback() 313 u16 lid = (u16)ppd->lid; in hfi1_make_ud_req_9B() local 315 if (lid) { in hfi1_make_ud_req_9B() 316 lid |= rdma_ah_get_path_bits(ah_attr) & in hfi1_make_ud_req_9B() 318 slid = lid; in hfi1_make_ud_req_9B() 403 if (!ppd->lid) in hfi1_make_ud_req_16B() 406 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in hfi1_make_ud_req_16B() 443 u32 lid; in hfi1_make_ud_req() local 478 priv->hdr_type = hfi1_get_hdr_type(ppd->lid, ah_attr); in hfi1_make_ud_req() [all …]
|
D | mad.c | 329 memcpy(smp->route.lid.data, &trap->data, trap->len); in send_trap() 389 static struct trap_node *create_trap_node(u8 type, __be16 trap_num, u32 lid) in create_trap_node() argument 401 trap->data.issuer_lid = cpu_to_be32(lid); in create_trap_node() 413 u32 lid = ppd_from_ibp(ibp)->lid; in hfi1_bad_pkey() local 419 lid); in hfi1_bad_pkey() 442 u32 lid = ppd_from_ibp(ibp)->lid; in bad_mkey() local 445 lid); in bad_mkey() 450 trap->data.ntc_256.lid = trap->data.issuer_lid; in bad_mkey() 482 u32 lid = ppd_from_ibp(ibp)->lid; in hfi1_cap_mask_chg() local 486 lid); in hfi1_cap_mask_chg() [all …]
|
D | ruc.c | 290 if (!ppd->lid) in hfi1_make_ruc_header_16B() 293 slid = ppd->lid | in hfi1_make_ruc_header_16B() 371 ppd_from_ibp(ibp)->lid | in hfi1_make_ruc_header_9B() 511 ps.ppd->lid)) { in hfi1_do_send() 521 ps.ppd->lid)) { in hfi1_do_send()
|
D | ipoib_tx.c | 343 u16 lid = (u16)ppd->lid; in hfi1_ipoib_build_ib_tx_headers() local 345 if (lid) { in hfi1_ipoib_build_ib_tx_headers() 346 lid |= rdma_ah_get_path_bits(ah_attr) & in hfi1_ipoib_build_ib_tx_headers() 348 slid = lid; in hfi1_ipoib_build_ib_tx_headers()
|
/drivers/infiniband/hw/mthca/ |
D | mthca_mad.c | 76 u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument 87 rdma_ah_set_dlid(&ah_attr, lid); in update_sm_ah() 120 u16 lid = be16_to_cpu(pinfo->lid); in smp_snoop() local 135 if (prev_lid != lid) { in smp_snoop() 249 prev_lid = ib_lid_cpu16(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
|
/drivers/iio/common/cros_ec_sensors/ |
D | Kconfig | 26 tristate "ChromeOS EC Sensor for lid angle" 29 Module to report the angle between lid and base for some 32 and the lid.
|
/drivers/pinctrl/tegra/ |
D | pinctrl-tegra194.c | 55 #define TEGRA_PIN_FUNCTION(lid) \ argument 57 .name = #lid, \
|
/drivers/infiniband/core/ |
D | uverbs_std_types_device.c | 157 resp->lid = OPA_TO_IB_UCAST_LID(attr->lid); in copy_port_attr_to_resp() 160 resp->lid = ib_lid_cpu16(attr->lid); in copy_port_attr_to_resp()
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_lif.c | 2907 union ionic_lif_identity *lid; in ionic_lif_alloc() local 2913 lid = kzalloc(sizeof(*lid), GFP_KERNEL); in ionic_lif_alloc() 2914 if (!lid) in ionic_lif_alloc() 2936 lif->identity = lid; in ionic_lif_alloc() 3026 kfree(lid); in ionic_lif_alloc() 3619 union ionic_lif_identity *lid) in ionic_lif_identify() argument 3625 sz = min(sizeof(*lid), sizeof(idev->dev_cmd_regs->data)); in ionic_lif_identify() 3630 memcpy_fromio(lid, &idev->dev_cmd_regs->data, sz); in ionic_lif_identify() 3636 le64_to_cpu(lid->capabilities)); in ionic_lif_identify() 3639 le32_to_cpu(lid->eth.max_ucast_filters)); in ionic_lif_identify() [all …]
|
/drivers/acpi/acpica/ |
D | dbconvert.c | 299 ACPI_PLD_SET_LID(&dword, pld_info->lid); in acpi_db_encode_pld_buffer() 413 acpi_os_printf(ACPI_PLD_OUTPUT, "PLD_Lid", pld_info->lid); in acpi_db_dump_pld_buffer()
|