/linux/drivers/gpio/ |
H A D | gpio-tangier.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 20 struct device; 24 /* Elkhart Lake specific wake registers */ 25 #define GWMR_EHL 0x100 /* Wake mask */ 26 #define GWSR_EHL 0x118 /* Wake source */ 29 /* Merrifield specific wake registers */ 30 #define GWMR_MRFLD 0x400 /* Wake mask */ 31 #define GWSR_MRFLD 0x418 /* Wake source */ 35 * struct tng_wake_regs - Platform specific wake registers 36 * @gwmr: Wake mask [all …]
|
/linux/drivers/media/rc/ |
H A D | nuvoton-cir.c | 2 * Driver for Nuvoton Technology Corporation w83667hg/w83677hg-i CIR 32 #include <media/rc-core.h> 35 #include "nuvoton-cir.h" 46 static inline struct device *nvt_get_dev(const struct nvt_dev *nvt) in nvt_get_dev() 48 return nvt->rdev->dev.parent; in nvt_get_dev() 53 return nvt->chip_ver == NVT_W83667HG; in is_w83667hg() 59 outb(reg, nvt->cr_efir); in nvt_cr_write() 60 outb(val, nvt->cr_efdr); in nvt_cr_write() 66 outb(reg, nvt->cr_efir); in nvt_cr_read() 67 return inb(nvt->cr_efdr); in nvt_cr_read() [all …]
|
/linux/arch/x86/platform/olpc/ |
H A D | olpc-xo15-sci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Support for OLPC XO-1.5 System Control Interrupts (SCI) 5 * Copyright (C) 2009-2010 One Laptop per Child 8 #include <linux/device.h> 12 #include <linux/olpc-ec.h> 17 #define DRV_NAME "olpc-xo15-sci" 20 #define XO15_SCI_DEVICE_NAME "OLPC XO-1.5 SCI" 26 * The normal ACPI LID wakeup behavior is wake-on-open, but not 27 * wake-on-close. This is implemented as standard by the XO-1.5 DSDT. 30 * wake-on-close behavior. This is useful (e.g.) when we opportunistically [all …]
|
/linux/drivers/hid/intel-thc-hid/intel-thc/ |
H A D | intel-thc-wot.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "intel-thc-dev.h" 8 #include "intel-thc-wot.h" 11 * thc_wot_config - Query and configure wake-on-touch feature 15 * THC ACPI device only provides _CRS with GpioInt() resources, doesn't contain 16 * _DSD to map this GPIO resource, so this function first registers wake GPIO 17 * mapping manually, then queries wake-on-touch GPIO resource from ACPI, 18 * if it exists and is wake-able, configure driver to enable it, otherwise, 31 adev = ACPI_COMPANION(thc_dev->dev); in thc_wot_config() 35 wot = &thc_dev->wot; in thc_wot_config() [all …]
|
/linux/include/linux/ |
H A D | lis3lv02d.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * struct lis3lv02d_platform_data - lis3 chip family platform data 15 * data available / wake up, open drain, polarity) 18 * @duration1: Wake up unit 1 duration parameter 19 * @duration2: Wake up unit 2 duration parameter 20 * @wakeup_flags: Wake up unit 1 flags 21 * @wakeup_thresh: Wake up unit 1 threshold value 22 * @wakeup_flags2: Wake up unit 2 flags 23 * @wakeup_thresh2: Wake up unit 2 threshold value 26 * @axis_x: Sensor orientation remapping for x-axis [all …]
|
H A D | gpio_keys.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 struct device; 10 * struct gpio_keys_button - configuration parameters 12 * @gpio: %-1 if this key does not support gpio 17 * @wakeup: configure the button as a wake-up source 24 * @wakeirq: Optional dedicated wake-up interrupt 42 * struct gpio_keys_platform_data - platform data for gpio_keys driver 44 * describing buttons attached to the device 46 * @poll_interval: polling interval in msecs - for polling driver only 48 * @enable: platform hook for enabling the device [all …]
|
/linux/Documentation/networking/dsa/ |
H A D | bcm_sf2.rst | 8 - xDSL gateways such as BCM63138 9 - streaming/multimedia Set Top Box such as BCM7445 10 - Cable Modem/residential gateways such as BCM7145/BCM3390 13 ports, offering a range of built-in and customizable interfaces: 15 - single integrated Gigabit PHY 16 - quad integrated Gigabit PHY 17 - quad external Gigabit PHY w/ MDIO multiplexer 18 - integrated MoCA PHY 19 - several external MII/RevMII/GMII/RGMII interfaces 22 fail-over not to lose packets during a MoCA role re-election, as well as out of [all …]
|
/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | realtek,bluetooth.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vasily Khoruzhick <anarsoul@gmail.com> 11 - Alistair Francis <alistair@alistair23.me> 22 - enum: 23 - realtek,rtl8723bs-bt 24 - realtek,rtl8723cs-bt 25 - realtek,rtl8723ds-bt 26 - realtek,rtl8822cs-bt [all …]
|
/linux/drivers/soc/qcom/ |
H A D | rpmh-internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. 27 * @type: Type of the TCS in this group - active, sleep, wake. 33 * transfers (could be on a wake/sleep TCS if we are borrowing for 35 * Start: grab drv->lock, set req, set tcs_in_use, drop drv->lock, 38 * grab drv->lock, clear tcs_in_use, drop drv->lock 40 * SLEEP / WAKE TCSs. Things are tightly packed in the 56 * struct rpmh_request: the message to be sent to rpmh-rsc 61 * @dev: the device making the request 68 const struct device *dev; [all …]
|
H A D | rpmh.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. 23 #include "rpmh-internal.h" 27 #define DEFINE_RPMH_MSG_ONSTACK(device, s, q, name) \ argument 37 .dev = device, \ 48 * @wake_val: the wake vote 59 * struct batch_cache_req - An entry in our batch catch 72 static struct rpmh_ctrlr *get_rpmh_ctrlr(const struct device *dev) in get_rpmh_ctrlr() 74 struct rsc_drv *drv = dev_get_drvdata(dev->parent); in get_rpmh_ctrlr() 76 return &drv->client; in get_rpmh_ctrlr() [all …]
|
/linux/drivers/hsi/controllers/ |
H A D | omap_ssi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 #include <linux/device.h> 23 #define SSI_BYTES_TO_FRAMES(x) ((((x) - 1) >> 2) + 1) 28 * struct omap_ssm_ctx - OMAP synchronous serial module (TX/RX) context 50 * struct omap_ssi_port - OMAP SSI port data 51 * @dev: device associated to the port (HSI port) 52 * @pdev: platform device associated to the port 57 * @wk_lock: spin lock to serialize access to the wake lines 66 * @wake_irq: IRQ number for incoming wake line (-1 if none) 67 * @wake_gpio: GPIO number for incoming wake line (-1 if none) [all …]
|
/linux/drivers/interconnect/qcom/ |
H A D | bcm-voter.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. 7 #include <linux/interconnect-provider.h> 16 #include "bcm-voter.h" 17 #include "icc-rpmh.h" 23 * struct bcm_voter - Bus Clock Manager voter 24 * @dev: reference to the device that communicates with the BCM 25 * @np: reference to the device node to match bcm voters 26 * @lock: mutex to protect commit and wake/sleep lists in the voter 28 * @ws_list: list containing bcms that have different wake/sleep votes [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | debugfs-cros-ec | 1 What: /sys/kernel/debug/<cros-ec-device>/console_log 10 What: /sys/kernel/debug/<cros-ec-device>/panicinfo 18 What: /sys/kernel/debug/<cros-ec-device>/pdinfo 23 information for all the USB PD/type-C ports available. If 27 What: /sys/kernel/debug/<cros-ec-device>/uptime 36 What: /sys/kernel/debug/<cros-ec-device>/last_resume_result 49 received. Bit 31 is set if the EC attempted to wake the 51 Callers can use this to detect a wake from the EC due to 58 What: /sys/kernel/debug/<cros-ec-device>/suspend_timeout_ms 63 a hardware-controlled sleep line, such as Intel's SLP_S0 line, [all …]
|
/linux/drivers/bluetooth/ |
H A D | hci_ll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * Written by Ohad Ben-Cohen <ohad@bencohen.org> 43 #include <linux/nvmem-consumer.h> 47 /* Vendor-specific HCI commands */ 89 struct ll_struct *ll = hu->priv; in send_hcill_cmd() 97 err = -ENOMEM; in send_hcill_cmd() 105 skb_queue_tail(&ll->txq, skb); in send_hcill_cmd() 119 return -ENOMEM; in ll_open() 121 skb_queue_head_init(&ll->txq); in ll_open() 122 skb_queue_head_init(&ll->tx_wait_q); in ll_open() [all …]
|
/linux/include/sound/ |
H A D | soc-jack.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * soc-jack.h 12 * struct snd_soc_jack_pin - Describes a pin to update based on jack detection 16 * @invert: if non-zero then pin is enabled when status is not reported 27 * struct snd_soc_jack_zone - Describes voltage zones of jack detection 45 * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection 48 * consumer device 49 * @gpiod_dev: GPIO consumer device 51 * device function name lookup 55 * @wake: enable as wake source [all …]
|
/linux/drivers/acpi/ |
H A D | power.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/acpi/power.c - ACPI Power Resources management. 5 * Copyright (C) 2001 - 2015 Intel Corp. 12 * ACPI power-managed devices may be controlled in two ways: 13 * 1. via "Device Specific (D-State) Control" 18 * plane, clock plane, or other resource depended on by a device. 20 * A device may rely on multiple power resources, and a power resource 47 struct device *dev; 52 struct acpi_device device; member 73 /* -------------------------------------------------------------------------- [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | samsung,pinctrl-gpio-bank.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/samsung,pinctrl-gpio-bank.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Samsung S3C/S5P/Exynos SoC pin controller - gpio bank 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 - Sylwester Nawrocki <s.nawrocki@samsung.com> 12 - Tomasz Figa <tomasz.figa@gmail.com> 15 This is a part of device tree bindings for Samsung S3C/S5P/Exynos SoC pin 24 '#gpio-cells': [all …]
|
/linux/Documentation/power/ |
H A D | suspend-and-interrupts.rst | 2 System Suspend and Device Interrupts 9 Suspending and Resuming Device IRQs 10 ----------------------------------- 12 Device interrupt request lines (IRQs) are generally disabled during system 14 ->prepare, ->suspend and ->suspend_late callbacks have been executed for all 17 The rationale for doing so is that after the "late" phase of device suspend 21 interrupt handlers for shared IRQs that device drivers implementing them were 26 of suspend_device_irqs(), along with the "noirq" phase of device suspend and 29 Device IRQs are re-enabled during system resume, right before the "early" phase 30 of resuming devices (that is, before starting to execute ->resume_early [all …]
|
/linux/include/net/ |
H A D | netdev_queues.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * struct netdev_config - queue-related configuration for a netdev 57 u64 wake; member 61 * struct netdev_stat_ops - netdev ops for fine grained stats 67 * on entry (specifically they are *not* zero-initialized). Drivers should 72 * queues are queried by the per-queue callbacks. This means that per-queu [all...] |
/linux/drivers/crypto/ |
H A D | atmel-i2c.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 38 * atmel_i2c_cmd - structure used for communicating with the device. 39 * @word_addr: indicates the function of the packet sent to the device. This 41 * @count : number of bytes to be transferred to (or from) the device. 45 * @data : optional remaining input data. Includes a 2-byte CRC. 76 /* Definitions for the device lock state */ 82 * Wake High delay to data communication (microseconds). SDA should be stable 88 /* Wake Low duration */ 124 * atmel_i2c_client_priv - i2c_client private data 125 * @client : pointer to i2c client device [all …]
|
/linux/drivers/char/tpm/ |
H A D | tpm_tis_spi_cr50.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * This device driver implements a TCG PTP FIFO interface over SPI for chips 23 * - can go to sleep not earlier than after CR50_SLEEP_DELAY_MSEC. 24 * - needs up to CR50_WAKE_START_DELAY_USEC to wake after sleep. 25 * - requires waiting for "ready" IRQ, if supported; or waiting for at least 27 * - waits for up to CR50_FLOW_CONTROL for flow control 'ready' indication. 69 cr50_phy->irq_confirmed = true; in cr50_spi_irq_handler() 70 complete(&cr50_phy->spi_phy.ready); in cr50_spi_irq_handler() 81 unsigned long allowed_access = phy->last_access + phy->access_delay; in cr50_ensure_access_delay() 83 struct device *dev = &phy->spi_phy.spi_device->dev; in cr50_ensure_access_delay() [all …]
|
/linux/arch/arm/mach-omap1/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 74 intra-tick resolution than OMAP_MPU_TIMER. The 32KHz timer is 87 timer provides more intra-tick resolution than the 32KHz timer, 91 bool "Enable wake-up events for serial ports" 95 Select this option if you want to have your system wake up 96 to data on the serial RX line. This allows you to wake the 109 device drivers work properly. 149 have such a device. 161 if you have such a device.
|
/linux/Documentation/devicetree/bindings/timer/ |
H A D | riscv,timer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: RISC-V timer 10 - Anup Patel <anup@brainfault.org> 13 RISC-V platforms always have a RISC-V timer device for the supervisor-mode 14 based on the time CSR defined by the RISC-V privileged specification. The 15 timer interrupts of this device are configured using the RISC-V SBI Time 16 extension or the RISC-V Sstc extension. 18 The clock frequency of RISC-V timer device is specified via the [all …]
|
/linux/drivers/soc/tegra/ |
H A D | pmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved. 12 #define pr_fmt(fmt) "tegra-pmc: " fmt 14 #include <linux/arm-smccc.h> 16 #include <linux/clk-provider.h> 18 #include <linux/clk/clk-conf.h> 22 #include <linux/device.h> 37 #include <linux/pinctrl/pinconf-generic.h> 57 #include <dt-bindings/interrupt-controller/arm-gic.h> 58 #include <dt-bindings/pinctrl/pinctrl-tegra-io-pad.h> [all …]
|
/linux/include/linux/soundwire/ |
H A D | sdw_intel.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ 2 /* Copyright(c) 2015-17 Intel Corporation. */ 43 #define SDW_SHIM_SYNC_SYNCPRD_VAL_24 (24000 / SDW_CADENCE_GSYNC_KHZ - 1) 44 #define SDW_SHIM_SYNC_SYNCPRD_VAL_24_576 (24576 / SDW_CADENCE_GSYNC_KHZ - 1) 45 #define SDW_SHIM_SYNC_SYNCPRD_VAL_38_4 (38400 / SDW_CADENCE_GSYNC_KHZ - 1) 46 #define SDW_SHIM_SYNC_SYNCPRD_VAL_96 (96000 / SDW_CADENCE_GSYNC_KHZ - 1) 91 /* Wake Enable*/ 96 /* Wake Status */ 117 * ACE2.x definitions for SHIM registers - only accessible when the 126 /* Read-only capabilities */ [all …]
|