Home
last modified time | relevance | path

Searched full:gpe (Results 1 – 25 of 170) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/acpi/acpica/
Devgpe.c27 * PARAMETERS: gpe_event_info - GPE to update
31 * DESCRIPTION: Updates GPE register enable mask based upon whether there are
32 * runtime references to this GPE
55 /* Set the mask bit only if there are references to this GPE */ in acpi_ev_update_gpe_enable_mask()
70 * PARAMETERS: gpe_event_info - GPE to enable
74 * DESCRIPTION: Enable a GPE.
84 /* Enable the requested GPE */ in acpi_ev_enable_gpe()
94 * PARAMETERS: gpe_event_info - GPE to be blocked/unblocked
95 * is_masked - Whether the GPE is masked or not
99 * DESCRIPTION: Unconditionally mask/unmask a GPE during runtime.
[all …]
Devxfgpe.c29 * DESCRIPTION: Complete GPE initialization and enable all GPEs that have
37 * after the system _PRW methods have been run, but also after a GPE Block
38 * Device has been added or if any new GPE methods have been added via a
83 * PARAMETERS: gpe_device - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
84 * gpe_number - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
88 * DESCRIPTION: Add a reference to a GPE. On the first reference, the GPE is in ACPI_EXPORT_SYMBOL()
103 * Ensure that we have a valid GPE number and that there is some way in ACPI_EXPORT_SYMBOL()
104 * of handling the GPE (handler or a GPE method). In other words, we in ACPI_EXPORT_SYMBOL()
105 * won't allow a valid GPE to be enabled if there is no way to handle it. in ACPI_EXPORT_SYMBOL()
137 * PARAMETERS: gpe_device - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
[all …]
Devgpeinit.c4 * Module Name: evgpeinit - System GPE initialization and update
21 * Originally (2000 - 2010), the GPE initialization code performed a walk of
53 * DESCRIPTION: Initialize the GPE data structures and the FADT GPE 0/1 blocks
75 * Initialize the GPE Block(s) defined in the FADT in acpi_ev_gpe_initialize()
77 * Why the GPE register block lengths are divided by 2: From the ACPI in acpi_ev_gpe_initialize()
91 * Determine the maximum GPE number for this machine. in acpi_ev_gpe_initialize()
103 /* GPE block 0 exists (has both length and address > 0) */ in acpi_ev_gpe_initialize()
109 /* Install GPE Block 0 */ in acpi_ev_gpe_initialize()
120 "Could not create GPE Block 0")); in acpi_ev_gpe_initialize()
128 /* GPE block 1 exists (has both length and address > 0) */ in acpi_ev_gpe_initialize()
[all …]
Dhwgpe.c4 * Module Name: hwgpe - Low level GPE enable/disable/clear functions
32 * reg - GPE register structure
36 * DESCRIPTION: Read from a GPE register in either memory or IO space.
73 * reg - GPE register structure
77 * DESCRIPTION: Write to a GPE register in either memory or IO space.
101 * PARAMETERS: gpe_event_info - Info block for the GPE
103 * RETURN: Register mask with a one in the GPE bit position
105 * DESCRIPTION: Compute the register mask for this GPE. One bit is set in the
106 * correct position for the input GPE.
122 * PARAMETERS: gpe_event_info - Info block for the GPE to be disabled
[all …]
Devgpeblk.c4 * Module Name: evgpeblk - GPE block creation and initialization.
30 * PARAMETERS: gpe_block - New GPE block
32 * GPE block
36 * DESCRIPTION: Install new GPE block with mutex support
89 * PARAMETERS: gpe_block - Existing GPE block
93 * DESCRIPTION: Remove a GPE block
160 * PARAMETERS: gpe_block - New GPE block
164 * DESCRIPTION: Create the register_info and event_info blocks for this GPE block
181 /* Allocate the GPE register information block */ in acpi_ev_create_gpe_info_blocks()
194 * Allocate the GPE event_info block. There are eight distinct GPEs in acpi_ev_create_gpe_info_blocks()
[all …]
Devgpeutil.c4 * Module Name: evgpeutil - GPE utilities
22 * PARAMETERS: gpe_walk_callback - Routine called for each GPE block
27 * DESCRIPTION: Walk the GPE lists.
47 /* Walk all Gpe Blocks attached to this interrupt level */ in acpi_ev_walk_gpe_list()
52 /* One callback per GPE block */ in acpi_ev_walk_gpe_list()
83 * DESCRIPTION: Matches the input GPE index (0-current_gpe_count) with a GPE
84 * block device. NULL if the GPE is one of the FADT-defined GPEs.
100 * The GPE index is within this block, get the node. Leave the node in acpi_ev_get_gpe_device()
118 * PARAMETERS: interrupt_number - Interrupt for a GPE block
123 * DESCRIPTION: Get or Create a GPE interrupt block. There is one interrupt
[all …]
Dacevents.h14 * Conditions to trigger post enabling GPE polling:
15 * It is not sufficient to trigger edge-triggered GPE with specific GPE
59 * evgpe - Low-level GPE support
92 * evgpeblk - Upper-level GPE block support
118 * evgpeinit - GPE initialization and update
130 * evgpeutil - GPE utilities
Devxface.c42 * context - Value passed to the handler on each GPE
528 * is invoked upon each incoming GPE and Fixed Event. It is in ACPI_EXPORT_SYMBOL()
575 * context - Value passed to the handler on each GPE in ACPI_EXPORT_SYMBOL()
699 * PARAMETERS: gpe_device - Namespace node for the GPE (NULL for FADT in ACPI_EXPORT_SYMBOL()
701 * gpe_number - The GPE number within the GPE block in ACPI_EXPORT_SYMBOL()
702 * type - Whether this GPE should be treated as an in ACPI_EXPORT_SYMBOL()
704 * is_raw_handler - Whether this GPE should be handled using in ACPI_EXPORT_SYMBOL()
705 * the special GPE handler mode. in ACPI_EXPORT_SYMBOL()
707 * context - Value passed to the handler on each GPE in ACPI_EXPORT_SYMBOL()
750 /* Ensure that we have a valid GPE number */ in ACPI_EXPORT_SYMBOL()
[all …]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
Devgpe.c27 * PARAMETERS: gpe_event_info - GPE to update
31 * DESCRIPTION: Updates GPE register enable mask based upon whether there are
32 * runtime references to this GPE
55 /* Set the mask bit only if there are references to this GPE */ in acpi_ev_update_gpe_enable_mask()
70 * PARAMETERS: gpe_event_info - GPE to enable
74 * DESCRIPTION: Enable a GPE.
84 /* Enable the requested GPE */ in acpi_ev_enable_gpe()
94 * PARAMETERS: gpe_event_info - GPE to be blocked/unblocked
95 * is_masked - Whether the GPE is masked or not
99 * DESCRIPTION: Unconditionally mask/unmask a GPE during runtime.
[all …]
Devxfgpe.c29 * DESCRIPTION: Complete GPE initialization and enable all GPEs that have
37 * after the system _PRW methods have been run, but also after a GPE Block
38 * Device has been added or if any new GPE methods have been added via a
83 * PARAMETERS: gpe_device - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
84 * gpe_number - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
88 * DESCRIPTION: Add a reference to a GPE. On the first reference, the GPE is in ACPI_EXPORT_SYMBOL()
103 * Ensure that we have a valid GPE number and that there is some way in ACPI_EXPORT_SYMBOL()
104 * of handling the GPE (handler or a GPE method). In other words, we in ACPI_EXPORT_SYMBOL()
105 * won't allow a valid GPE to be enabled if there is no way to handle it. in ACPI_EXPORT_SYMBOL()
137 * PARAMETERS: gpe_device - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
[all …]
Devgpeinit.c4 * Module Name: evgpeinit - System GPE initialization and update
21 * Originally (2000 - 2010), the GPE initialization code performed a walk of
53 * DESCRIPTION: Initialize the GPE data structures and the FADT GPE 0/1 blocks
75 * Initialize the GPE Block(s) defined in the FADT in acpi_ev_gpe_initialize()
77 * Why the GPE register block lengths are divided by 2: From the ACPI in acpi_ev_gpe_initialize()
91 * Determine the maximum GPE number for this machine. in acpi_ev_gpe_initialize()
103 /* GPE block 0 exists (has both length and address > 0) */ in acpi_ev_gpe_initialize()
109 /* Install GPE Block 0 */ in acpi_ev_gpe_initialize()
120 "Could not create GPE Block 0")); in acpi_ev_gpe_initialize()
128 /* GPE block 1 exists (has both length and address > 0) */ in acpi_ev_gpe_initialize()
[all …]
Dhwgpe.c4 * Module Name: hwgpe - Low level GPE enable/disable/clear functions
32 * reg - GPE register structure
36 * DESCRIPTION: Read from a GPE register in either memory or IO space.
73 * reg - GPE register structure
77 * DESCRIPTION: Write to a GPE register in either memory or IO space.
101 * PARAMETERS: gpe_event_info - Info block for the GPE
103 * RETURN: Register mask with a one in the GPE bit position
105 * DESCRIPTION: Compute the register mask for this GPE. One bit is set in the
106 * correct position for the input GPE.
122 * PARAMETERS: gpe_event_info - Info block for the GPE to be disabled
[all …]
Devgpeblk.c4 * Module Name: evgpeblk - GPE block creation and initialization.
30 * PARAMETERS: gpe_block - New GPE block
32 * GPE block
36 * DESCRIPTION: Install new GPE block with mutex support
89 * PARAMETERS: gpe_block - Existing GPE block
93 * DESCRIPTION: Remove a GPE block
160 * PARAMETERS: gpe_block - New GPE block
164 * DESCRIPTION: Create the register_info and event_info blocks for this GPE block
181 /* Allocate the GPE register information block */ in acpi_ev_create_gpe_info_blocks()
194 * Allocate the GPE event_info block. There are eight distinct GPEs in acpi_ev_create_gpe_info_blocks()
[all …]
Devgpeutil.c4 * Module Name: evgpeutil - GPE utilities
22 * PARAMETERS: gpe_walk_callback - Routine called for each GPE block
27 * DESCRIPTION: Walk the GPE lists.
47 /* Walk all Gpe Blocks attached to this interrupt level */ in acpi_ev_walk_gpe_list()
52 /* One callback per GPE block */ in acpi_ev_walk_gpe_list()
83 * DESCRIPTION: Matches the input GPE index (0-current_gpe_count) with a GPE
84 * block device. NULL if the GPE is one of the FADT-defined GPEs.
100 * The GPE index is within this block, get the node. Leave the node in acpi_ev_get_gpe_device()
118 * PARAMETERS: interrupt_number - Interrupt for a GPE block
123 * DESCRIPTION: Get or Create a GPE interrupt block. There is one interrupt
[all …]
Dacevents.h14 * Conditions to trigger post enabling GPE polling:
15 * It is not sufficient to trigger edge-triggered GPE with specific GPE
59 * evgpe - Low-level GPE support
92 * evgpeblk - Upper-level GPE block support
118 * evgpeinit - GPE initialization and update
130 * evgpeutil - GPE utilities
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Ds3c2416-pinctrl.dtsi35 gpe: gpe { label
124 samsung,pins = "gpe-14", "gpe-15";
129 samsung,pins = "gpe-11", "gpe-12", "gpe-13";
134 samsung,pins = "gpe-5";
139 samsung,pins = "gpe-6";
144 samsung,pins = "gpe-7";
149 samsung,pins = "gpe-8", "gpe-9", "gpe-10";
/kernel/linux/linux-6.6/drivers/gpio/
Dgpio-sch.c45 /* GPE handling */
46 u32 gpe; member
258 static u32 sch_gpio_gpe_handler(acpi_handle gpe_device, u32 gpe, void *context) in sch_gpio_gpe_handler() argument
282 /* Acknowledge GPE to ACPICA */ in sch_gpio_gpe_handler()
292 acpi_disable_gpe(NULL, sch->gpe); in sch_gpio_remove_gpe_handler()
293 acpi_remove_gpe_handler(NULL, sch->gpe, sch->gpe_handler); in sch_gpio_remove_gpe_handler()
301 status = acpi_install_gpe_handler(NULL, sch->gpe, ACPI_GPE_LEVEL_TRIGGERED, in sch_gpio_install_gpe_handler()
304 dev_err(dev, "Failed to install GPE handler for %u: %s\n", in sch_gpio_install_gpe_handler()
305 sch->gpe, acpi_format_exception(status)); in sch_gpio_install_gpe_handler()
309 status = acpi_enable_gpe(NULL, sch->gpe); in sch_gpio_install_gpe_handler()
[all …]
/kernel/linux/linux-6.6/drivers/platform/surface/
Dsurface_gpe.c3 * Surface GPE/Lid driver to enable wakeup from suspend via the lid by
19 * Note: The GPE numbers for the lid devices found below have been obtained
20 * from ACPI/the DSDT table, specifically from the GPE handler for the
25 PROPERTY_ENTRY_U32("gpe", 0x17),
30 PROPERTY_ENTRY_U32("gpe", 0x4B),
35 PROPERTY_ENTRY_U32("gpe", 0x4D),
40 PROPERTY_ENTRY_U32("gpe", 0x4F),
45 PROPERTY_ENTRY_U32("gpe", 0x57),
209 dev_err(dev, "failed to set GPE wake mask: %s\n", in surface_lid_enable_wakeup()
236 ret = device_property_read_u32(&pdev->dev, "gpe", &gpe_number); in surface_gpe_probe()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dec.c129 * this threshold, will think there is a GPE storm happened and
130 * will disable the GPE for normal transaction.
134 MODULE_PARM_DESC(ec_storm_threshold, "Maxim false GPE numbers not considered as GPE storm");
186 static int EC_FLAGS_TRUST_DSDT_GPE; /* Needs DSDT GPE as correction setting */
336 * GPE Registers
343 (void)acpi_get_gpe_status(NULL, ec->gpe, &gpe_status); in acpi_ec_is_gpe_raised()
350 acpi_enable_gpe(NULL, ec->gpe); in acpi_ec_enable_gpe()
353 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE); in acpi_ec_enable_gpe()
357 * On some platforms, EN=1 writes cannot trigger GPE. So in acpi_ec_enable_gpe()
358 * software need to manually trigger a pseudo GPE event on in acpi_ec_enable_gpe()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Ddebugfs-ec1 What: /sys/kernel/debug/ec/*/{gpe,use_global_lock,io}
6 General information like which GPE is assigned to the EC and whether
8 Knowing the EC GPE one can watch the amount of HW events related to
9 the EC here (XY -> GPE number from `/sys/kernel/debug/ec/*/gpe`):
Dsysfs-firmware-acpi65 number of a "General Purpose Events" (GPE).
67 A GPE vectors to a specified handler in AML, which
69 OS context. GPE 0x12, for example, would vector
134 gpeXX count for individual GPE source
148 invalid it's either a GPE or a Fixed Event that
151 disable the GPE/Fixed Event is valid but disabled.
153 enable the GPE/Fixed Event is valid and enabled.
171 Note that only writing to VALID GPE/Fixed Event is allowed,
172 i.e. user can only change the status of runtime GPE and
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Ddebugfs-ec1 What: /sys/kernel/debug/ec/*/{gpe,use_global_lock,io}
6 General information like which GPE is assigned to the EC and whether
8 Knowing the EC GPE one can watch the amount of HW events related to
9 the EC here (XY -> GPE number from `/sys/kernel/debug/ec/*/gpe`):
/kernel/linux/linux-6.6/drivers/acpi/
Dec.c128 * this threshold, will think there is a GPE storm happened and
129 * will disable the GPE for normal transaction.
133 MODULE_PARM_DESC(ec_storm_threshold, "Maxim false GPE numbers not considered as GPE storm");
184 static int EC_FLAGS_TRUST_DSDT_GPE; /* Needs DSDT GPE as correction setting */
334 * GPE Registers
341 (void)acpi_get_gpe_status(NULL, ec->gpe, &gpe_status); in acpi_ec_gpe_status_set()
348 acpi_enable_gpe(NULL, ec->gpe); in acpi_ec_enable_gpe()
351 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE); in acpi_ec_enable_gpe()
355 * On some platforms, EN=1 writes cannot trigger GPE. So in acpi_ec_enable_gpe()
356 * software need to manually trigger a pseudo GPE event on in acpi_ec_enable_gpe()
[all …]
/kernel/linux/linux-5.10/arch/mips/boot/dts/ingenic/
Dgcw0.dts44 gpio = <&gpe 9 0>;
143 gpios = <&gpe 21 GPIO_ACTIVE_LOW>;
150 gpios = <&gpe 25 GPIO_ACTIVE_LOW>;
157 gpios = <&gpe 23 GPIO_ACTIVE_LOW>;
164 gpios = <&gpe 24 GPIO_ACTIVE_LOW>;
171 gpios = <&gpe 29 GPIO_ACTIVE_LOW>;
178 gpios = <&gpe 20 GPIO_ACTIVE_LOW>;
185 gpios = <&gpe 27 GPIO_ACTIVE_LOW>;
192 gpios = <&gpe 28 GPIO_ACTIVE_LOW>;
206 gpios = <&gpe 26 GPIO_ACTIVE_LOW>;
[all …]
/kernel/linux/linux-6.6/arch/mips/boot/dts/ingenic/
Dgcw0.dts44 gpio = <&gpe 9 0>;
139 gpios = <&gpe 21 GPIO_ACTIVE_LOW>;
146 gpios = <&gpe 25 GPIO_ACTIVE_LOW>;
153 gpios = <&gpe 23 GPIO_ACTIVE_LOW>;
160 gpios = <&gpe 24 GPIO_ACTIVE_LOW>;
167 gpios = <&gpe 29 GPIO_ACTIVE_LOW>;
174 gpios = <&gpe 20 GPIO_ACTIVE_LOW>;
181 gpios = <&gpe 27 GPIO_ACTIVE_LOW>;
188 gpios = <&gpe 28 GPIO_ACTIVE_LOW>;
202 gpios = <&gpe 26 GPIO_ACTIVE_LOW>;
[all …]

1234567