Home
last modified time | relevance | path

Searched full:lid (Results 1 – 25 of 266) sorted by relevance

1234567891011

/linux-6.12.1/Documentation/firmware-guide/acpi/
Dacpi-lid.rst5 Special Usage Model of the ACPI Control Method Lid Device
14 Platforms containing lids convey lid state (open/close) to OSPMs
15 using a control method lid device. To implement this, the AML tables issue
16 Notify(lid_device, 0x80) to notify the OSPMs whenever the lid state has
17 changed. The _LID control method for the lid device must be implemented to
18 report the "current" state of the lid as either "opened" or "closed".
20 For most platforms, both the _LID method and the lid notifications are
24 exceptions of the Linux ACPI lid device driver.
30 The _LID control method is described to return the "current" lid state.
32 the lid state upon the last lid notification instead of returning the lid
[all …]
/linux-6.12.1/drivers/infiniband/sw/rdmavt/
Dmcast.c61 * @lid: the muilticast LID (host order)
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()
95 * rvt_mcast_find - search the global table for the given multicast GID/LID
100 * @lid: the multicast LID portion of the multicast address (host order)
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()
234 * @lid: multicast lid
238 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_attach_mcast() argument
[all …]
/linux-6.12.1/drivers/platform/surface/
Dsurface_gpe.c3 * Surface GPE/Lid driver to enable wakeup from suspend via the lid by
4 * properly configuring the respective GPEs. Required for wakeup via lid on
19 * Note: The GPE numbers for the lid devices found below have been obtained
21 * lid.
203 const struct surface_lid_device *lid = dev_get_drvdata(dev); in surface_lid_enable_wakeup() local
207 status = acpi_set_gpe_wake_mask(NULL, lid->gpe_number, action); in surface_lid_enable_wakeup()
231 struct surface_lid_device *lid; in surface_gpe_probe() local
242 lid = devm_kzalloc(&pdev->dev, sizeof(*lid), GFP_KERNEL); in surface_gpe_probe()
243 if (!lid) in surface_gpe_probe()
246 lid->gpe_number = gpe_number; in surface_gpe_probe()
[all …]
/linux-6.12.1/arch/mips/mm/
Duasm.c413 void uasm_build_label(struct uasm_label **lab, u32 *addr, int lid) in uasm_build_label() argument
416 (*lab)->lab = lid; in uasm_build_label()
491 void uasm_r_mips_pc16(struct uasm_reloc **rel, u32 *addr, int lid) in uasm_r_mips_pc16() argument
495 (*rel)->lab = lid; in uasm_r_mips_pc16()
560 int lid) in uasm_il_bltz() argument
562 uasm_r_mips_pc16(r, *p, lid); in uasm_il_bltz()
567 void uasm_il_b(u32 **p, struct uasm_reloc **r, int lid) in uasm_il_b() argument
569 uasm_r_mips_pc16(r, *p, lid); in uasm_il_b()
575 unsigned int r2, int lid) in uasm_il_beq() argument
577 uasm_r_mips_pc16(r, *p, lid); in uasm_il_beq()
[all …]
/linux-6.12.1/fs/jfs/
Djfs_txnmgr.c142 lid_t maxlid; /* 4: biggest lid ever used */
182 lid_t lid; in txLockAlloc() local
189 while (!(lid = TxAnchor.freelock)) in txLockAlloc()
191 TxAnchor.freelock = TxLock[lid].next; in txLockAlloc()
192 HIGHWATERMARK(stattx.maxlid, lid); in txLockAlloc()
199 return lid; in txLockAlloc()
202 static void txLockFree(lid_t lid) in txLockFree() argument
204 TxLock[lid].tid = 0; in txLockFree()
205 TxLock[lid].next = TxAnchor.freelock; in txLockFree()
206 TxAnchor.freelock = lid; in txLockFree()
[all …]
/linux-6.12.1/drivers/acpi/
Dbutton.c37 #define ACPI_BUTTON_SUBCLASS_LID "lid"
38 #define ACPI_BUTTON_DEVICE_NAME_LID "Lid Switch"
81 /* Nextbook Ares 8A tablet, _LID device always reports lid closed */
91 * Lenovo Yoga 9 14ITL5, initial notification of the LID device
102 * Medion Akoya E2215T, notification of the LID device only
113 * Medion Akoya E2228T, notification of the LID device only
124 * Razer Blade Stealth 13 late 2019, notification of the LID device
136 * lid closed.
186 MODULE_PARM_DESC(lid_report_interval, "Interval (ms) between lid key events");
211 * In lid_init_state=ignore mode, if user opens/closes lid in acpi_lid_notify_state()
[all …]
/linux-6.12.1/drivers/infiniband/hw/qib/
Dqib_ud.c90 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()
352 cpu_to_be16(rdma_ah_get_dlid(ah_attr)); /* DEST LID */ in qib_make_ud_req()
355 lid = ppd->lid; in qib_make_ud_req()
356 if (lid) { in qib_make_ud_req()
[all …]
Dqib_driver.c101 if (ppd->lid && (ppd->lflags & (QIBL_LINKINIT | in qib_count_active_units()
132 if (ppd->lid && (ppd->lflags & (QIBL_LINKINIT | in qib_count_units()
303 u16 lid = be16_to_cpu(hdr->lrh[1]); in qib_rcv_hdrerr() local
314 if (lid < be16_to_cpu(IB_MULTICAST_LID_BASE)) { in qib_rcv_hdrerr()
315 lid &= ~((1 << ppd->lmc) - 1); in qib_rcv_hdrerr()
316 if (unlikely(lid != ppd->lid)) in qib_rcv_hdrerr()
632 int qib_set_lid(struct qib_pportdata *ppd, u32 lid, u8 lmc) in qib_set_lid() argument
636 ppd->lid = lid; in qib_set_lid()
640 lid | (~((1U << lmc) - 1)) << 16); in qib_set_lid()
642 qib_devinfo(dd->pcidev, "IB%u:%u got a lid: 0x%x\n", in qib_set_lid()
[all …]
/linux-6.12.1/arch/mips/include/asm/
Duasm.h195 int lid);
303 void uasm_r_mips_pc16(struct uasm_reloc **rel, u32 *addr, int lid);
312 void uasm_il_b(u32 **p, struct uasm_reloc **r, int lid);
314 unsigned int bit, int lid);
316 unsigned int bit, int lid);
318 unsigned int r2, int lid);
319 void uasm_il_beqz(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
320 void uasm_il_beqzl(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
321 void uasm_il_bgezl(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
322 void uasm_il_bgez(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
[all …]
/linux-6.12.1/include/rdma/
Dopa_addr.h18 * Example: For 24 bit LID space,
29 * extended LID information.
42 * store the lid.
69 /* Get multicast lid base */
75 /* Check for a valid unicast LID for non-SM traffic types */
Dopa_smi.h38 } lid; member
105 return smp->route.lid.data; in opa_get_smp_data()
113 return sizeof(smp->route.lid.data); in opa_get_smp_data_size()
121 return sizeof(*smp) - sizeof(smp->route.lid.data); in opa_get_smp_header_size()
/linux-6.12.1/drivers/iio/common/cros_ec_sensors/
Dcros_ec_lid_angle.c4 * cros_ec_lid_angle - Driver for CrOS EC lid angle sensor.
29 #define DRV_NAME "cros-ec-lid-angle"
32 * One channel for the lid angle, the other for timestamp.
60 dev_warn(&indio_dev->dev, "Unable to read lid angle\n"); in cros_ec_sensors_read_lid_angle()
137 MODULE_DESCRIPTION("ChromeOS EC driver for reporting convertible lid angle.");
DKconfig26 tristate "ChromeOS EC Sensor for lid angle"
29 Module to report the angle between lid and base for some
32 and the lid.
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/
Dnpc.h13 #define SET_KEX_LD(intf, lid, ltype, ld, cfg) \ argument
15 NPC_AF_INTFX_LIDX_LTX_LDX_CFG(intf, lid, ltype, ld), cfg)
279 u8 lid; member
368 u64 lid : 3; member
390 u64 lid : 3;
538 u8 lid; member
544 u8 lid; member
552 u8 lid; member
559 u8 lid; member
567 u8 lid; member
/linux-6.12.1/drivers/infiniband/hw/hfi1/
Dmad.h65 __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
Dhfi.h548 #define HFI1_IB_CFG_LIDLMC 0 /* LID (LS16b) and Mask (MS16b) */
793 /* LID programmed for this instance */
794 u32 lid; member
810 /* LID mask control */
1887 int hfi1_set_lid(struct hfi1_pportdata *ppd, u32 lid, u8 lmc);
2444 (ppd->lid >= be16_to_cpu(IB_MULTICAST_LID_BASE))) && in hfi1_update_ah_attr()
2456 * hfi1_check_mcast- Check if the given lid is
2459 * The LID might either reside in ah.dlid or might be
2463 static inline bool hfi1_check_mcast(u32 lid) in hfi1_check_mcast() argument
2465 return ((lid >= opa_get_mcast_base(OPA_MCAST_NR)) && in hfi1_check_mcast()
[all …]
Dud.c75 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()
209 /* Check for loopback when the port lid is not set */ 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
[all …]
/linux-6.12.1/arch/arm64/boot/dts/allwinner/
Dsun50i-h700-anbernic-rg35xx-sp.dts14 gpio-keys-lid {
17 lid-switch {
18 label = "Lid Switch";
/linux-6.12.1/include/trace/events/
Dib_umad.h35 __field(u16, lid)
63 __entry->lid = umad_hdr->lid;
86 "len %u QP%u qkey 0x%08x lid 0x%04x sl %u path_bits 0x%x " \
95 be32_to_cpu(__entry->qkey), be16_to_cpu(__entry->lid),
/linux-6.12.1/drivers/base/
Dphysical_location.c36 dev->physical_location->lid = pld->lid; in dev_add_physical_location()
129 dev->physical_location->lid ? "yes" : "no"); in lid_show()
131 static DEVICE_ATTR_RO(lid);
/linux-6.12.1/Documentation/infiniband/
Duser_mad.rst78 example, the remote LID will be in mad.lid.
90 filled into the id field of the MAD, the destination LID should be
91 filled into the lid field, and so on. The send side does support
101 mad->hdr.lid = my_dest; /* in network byte order... */
/linux-6.12.1/drivers/infiniband/hw/mthca/
Dmthca_mad.c76 u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument
87 rdma_ah_set_dlid(&ah_attr, lid); in update_sm_ah()
105 * synthesize LID change and P_Key change events.
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()
/linux-6.12.1/include/uapi/rdma/
Dib_user_mad.h63 * @lid - Remote lid received from/to be sent to
81 __be16 lid; member
106 * @lid - Remote lid received from/to be sent to
125 __be16 lid; member
/linux-6.12.1/arch/arm/boot/dts/rockchip/
Drk3288-veyron-chromebook.dtsi30 lid_switch: lid-switch {
35 switch-lid {
36 label = "Lid";
140 ap_lid_int_l: ap-lid-int-l {
/linux-6.12.1/arch/x86/platform/olpc/
Dolpc-xo15-sci.c26 * The normal ACPI LID wakeup behavior is wake-on-open, but not
31 * suspend with the display running; if the lid is then closed, we want to
40 status = acpi_execute_simple_method(NULL, "\\_SB.PCI0.LID.LIDW", wake_on_close); in set_lid_wake_behavior()
42 pr_warn(PFX "failed to set lid behavior\n"); in set_lid_wake_behavior()

1234567891011