/linux/drivers/acpi/ |
H A D | acpi_fpdt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * FPDT support for exporting boot and suspend/resume performance data 19 * performance data fields, for boot or suspend or resume phase. 83 return sprintf(buf, "%llu\n", record_##phase->name); \ 88 FPDT_ATTR(resume, resume_prev); 89 FPDT_ATTR(resume, resume_avg); 101 return sprintf(buf, "%u\n", record_resume->resume_count); in resume_count_show() 116 .name = "resume", 168 u32 length, offset; in fpdt_process_subtable() local 173 return -EINVAL; in fpdt_process_subtable() [all …]
|
/linux/arch/arm/mach-s3c/ |
H A D | gpio-core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * S3C Platform - GPIO core 13 /* Bring in machine-local definitions, especially S3C_GPIO_END */ 14 #include "gpio-samsung.h" 34 * struct samsung_gpio_pm - power management (suspend/resume) information 36 * @resume: Routine to resume the GPIO block. 40 void (*resume)(struct samsung_gpio_chip *chip); member 46 * struct samsung_gpio_chip - wrapper for specific implementation of gpio 51 * @config: special function and pull-resistor control information. 53 * @pm_save: Save information for suspend/resume support. [all …]
|
/linux/Documentation/devicetree/bindings/arm/hisilicon/controller/ |
H A D | sysctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Wei Xu <xuwei5@hisilicon.com> 19 offset. In addition, the HiP01 system controller has some specific control 23 Hisilicon system controller --> hisilicon,sysctrl 24 HiP01 system controller --> hisilicon,hip01-sysctrl 25 Hi6220 system controller --> hisilicon,hi6220-sysctrl 26 Hi3519 system controller --> hisilicon,hi3519-sysctrl 29 - if: [all …]
|
/linux/Documentation/power/ |
H A D | userland-swsusp.rst | 16 are going to develop your own suspend/resume utilities. 26 assumed to be in the resume mode. The device cannot be open for simultaneous 49 from it (0) (after resume the system finds itself finishing the 81 allocate a swap page from the resume partition 83 will contain the swap page offset if the call is successful) 90 set the resume partition and the offset (in <PAGE_SIZE> 94 containing the resume device specification and the offset); for swap 95 partitions the offset is always 0, but it is different from zero for 96 swap files (see Documentation/power/swsusp-and-swap-files.rst for 109 immediately enter the suspend-to-RAM state, so this call must always [all …]
|
H A D | swsusp-and-swap-files.rst | 13 already taken care of by the swap-handling code, but (2) has to be taken into 19 journaled, it cannot be mounted during resume from disk. For this reason to 21 and the offset from the beginning of the partition at which the swap file's 22 header is located. For convenience, this offset is expressed in <PAGE_SIZE> 35 offset, in <PAGE_SIZE> units, from the beginning of the partition which 40 resume=<swap_file_partition> resume_offset=<swap_file_offset> 43 and <swap_file_offset> is the offset of the swap header determined by the 45 by the same application that determines the swap file's header offset using the 50 Use a userland suspend application that will set the partition and offset 52 Documentation/power/userland-swsusp.rst (this is the only method to suspend [all …]
|
/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-samsung.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's. 25 * enum pincfg_type - possible pin configuration types supported. 46 * packed together into a 16-bits. The upper 8-bits represent the configuration 47 * type and the lower 8-bits hold the value of the configuration type. 70 * enum pud_index - Possible index values to access the pud_val array. 84 * enum eint_type - possible external interrupt types. 104 /* maximum length of a pin in pin descriptor (example: "gpa0-0") */ 135 * struct samsung_pin_bank_data: represent a controller pin-bank (init data). 137 * @pctl_offset: starting offset of the pin-bank registers. [all …]
|
/linux/drivers/platform/x86/intel/speed_select_if/ |
H A D | isst_if_common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 40 * struct isst_if_cmd_cb - Used to register a IOCTL handler 44 * @offset: Offset to the first valid member in command structure. 45 * This will be the offset of the start of the command 52 * response to user ioctl buffer. The "resume" argument 54 * during system resume 66 int offset; member 69 long (*cmd_callback)(u8 *ptr, int *write_only, int resume);
|
/linux/drivers/tee/optee/ |
H A D | optee_ffa.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 3 * Copyright (c) 2019-2021, 2023 Linaro Limited 7 * This file is exported by OP-TEE and is kept in sync between secure world 8 * and normal world drivers. We're using ARM FF-A 1.0 specification. 23 * defined in FF-A specification: 27 * w3-w7: Implementation defined, free to be used below 38 * Returns the API version implemented, currently follows the FF-A version. 41 * w4-w7: Not used (MBZ) 46 * w5-w7: Not used (MBZ) 51 * Returns the revision of OP-TEE. [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-arizona.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 static int arizona_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in arizona_gpio_direction_in() argument 29 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_direction_in() 30 bool persistent = gpiochip_line_is_persistent(chip, offset); in arizona_gpio_direction_in() 34 ret = regmap_update_bits_check(arizona->regmap, in arizona_gpio_direction_in() 35 ARIZONA_GPIO1_CTRL + offset, in arizona_gpio_direction_in() 42 pm_runtime_mark_last_busy(chip->parent); in arizona_gpio_direction_in() 43 pm_runtime_put_autosuspend(chip->parent); in arizona_gpio_direction_in() 49 static int arizona_gpio_get(struct gpio_chip *chip, unsigned offset) in arizona_gpio_get() argument 52 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_get() [all …]
|
/linux/drivers/crypto/ |
H A D | atmel-sha.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (c) 2012 Eukréa Electromatique - ATMEL 10 * Some ideas are from omap-sham.c drivers. 30 #include <linux/dma-mapping.h> 40 #include "atmel-sha-regs.h" 41 #include "atmel-authenc.h" 102 unsigned int offset; /* offset in current sg */ member 147 atmel_sha_fn_t resume; member 170 static const char *atmel_sha_reg_name(u32 offset, char *tmp, size_t sz, bool wr) in atmel_sha_reg_name() argument 172 switch (offset) { in atmel_sha_reg_name() [all …]
|
H A D | atmel-aes.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (c) 2012 Eukréa Electromatique - ATMEL 10 * Some ideas are from omap-aes.c driver. 30 #include <linux/dma-mapping.h> 41 #include "atmel-aes-regs.h" 42 #include "atmel-authenc.h" 108 size_t offset; member 181 atmel_aes_fn_t resume; member 224 static const char *atmel_aes_reg_name(u32 offset, char *tmp, size_t sz) in atmel_aes_reg_name() argument 226 switch (offset) { in atmel_aes_reg_name() [all …]
|
H A D | exynos-rng.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * exynos-rng.c - Random Number Generator driver for the Exynos 7 * Loosely based on old driver from drivers/char/hw_random/exynos-rng.c: 51 * Driver re-seeds itself with generated random numbers to hinder 54 * Time for next re-seed in ms. 76 /* Generated numbers stored for seeding during resume */ 87 static u32 exynos_rng_readl(struct exynos_rng_dev *rng, u32 offset) in exynos_rng_readl() argument 89 return readl_relaxed(rng->mem + offset); in exynos_rng_readl() 92 static void exynos_rng_writel(struct exynos_rng_dev *rng, u32 val, u32 offset) in exynos_rng_writel() argument 94 writel_relaxed(val, rng->mem + offset); in exynos_rng_writel() [all …]
|
/linux/Documentation/devicetree/bindings/powerpc/4xx/ |
H A D | cpm.txt | 4 - compatible : compatible list, currently only "ibm,cpm" 5 - dcr-access-method : "native" 6 - dcr-reg : < DCR register range > 9 - er-offset : All 4xx SoCs with a CPM controller have 15 er-offset = <1>. 16 - unused-units : specifier consist of one cell. For each 20 - idle-doze : specifier consist of one cell. For each 24 - standby : specifier consist of one cell. For each 27 restored on resume. 28 - suspend : specifier consist of one cell. For each [all …]
|
/linux/Documentation/devicetree/bindings/arm/cpu-enable-method/ |
H A D | al,alpine-smp | 2 Secondary CPU enable-method "al,alpine-smp" binding 5 This document describes the "al,alpine-smp" method for 7 "al,alpine-smp" enable method should be defined in the 10 Enable method name: "al,alpine-smp" 12 Compatible CPUs: "arm,cortex-a15" 17 "al,alpine-cpu-resume" and "al,alpine-nb-service". 20 * Alpine CPU resume registers 22 The CPU resume register are used to define required resume address after 26 - compatible : Should contain "al,alpine-cpu-resume". 27 - reg : Offset and length of the register set for the device [all …]
|
/linux/drivers/gpu/drm/lima/ |
H A D | lima_device.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 2 /* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */ 8 #include <linux/dma-mapping.h> 25 int offset[lima_gpu_num]; member 29 int (*resume)(struct lima_ip *ip); member 41 .offset = { \ 47 .resume = lima_##func##_resume, \ 54 LIMA_IP_DESC(l2_cache1, false, true, -1, 0x01000, l2_cache, NULL), 55 LIMA_IP_DESC(l2_cache2, false, false, -1, 0x11000, l2_cache, NULL), 61 LIMA_IP_DESC(pp4, false, false, -1, 0x28000, pp, "pp4"), [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | switch_to.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * also clears the TS-flag if the task we switched to has used the 9 * math co-processor latest. 13 * automatically by SAVE_SWITCH_STACK in resume(), ie. d0-d5 and 14 * a0-a1. Some of these are used by schedule() and its predecessors 21 * Beware that resume now expects *next to be in d1 and the offset of 25 * 02/17/96 - Jes Sorensen (jds@kom.auc.dk) 30 asmlinkage void resume(void); 35 __asm__ __volatile__("jbsr resume" \
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-power | 15 labels, which may be "mem" (suspend), "standby" (power-on 16 suspend), "freeze" (suspend-to-idle) and "disk" (hibernation). 21 See Documentation/admin-guide/pm/sleep-states.rst for more 39 See Documentation/admin-guide/pm/sleep-states.rst for more 47 suspend-to-disk mechanism. Reading from this file returns 51 'firmware' - means that the memory image will be saved to disk 55 'platform' - the memory image will be saved by the kernel and 59 'shutdown' - the memory image will be saved by the kernel and 62 'reboot' - the memory image will be saved by the kernel and 66 two testing modes of the suspend-to-disk mechanism: 'testproc' [all …]
|
/linux/include/uapi/linux/ |
H A D | apm_bios.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 4 * Copyright 1994-2001 Stephen Rothwell (sfr@canb.auug.org.au) 28 __u32 offset; member 123 #define APM_CAP_RESUME_STANDBY_TIMER 0x0004 /* Timer resume from standby */ 124 #define APM_CAP_RESUME_SUSPEND_TIMER 0x0008 /* Timer resume from suspend */ 125 #define APM_CAP_RESUME_STANDBY_RING 0x0010 /* Resume on Ring fr standby */ 126 #define APM_CAP_RESUME_SUSPEND_RING 0x0020 /* Resume on Ring fr suspend */ 127 #define APM_CAP_RESUME_STANDBY_PCMCIA 0x0040 /* Resume on PCMCIA Ring */ 128 #define APM_CAP_RESUME_SUSPEND_PCMCIA 0x0080 /* Resume on PCMCIA Ring */
|
/linux/drivers/usb/host/ |
H A D | xhci-hub.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include "xhci-trace.h" 48 int offset; in xhci_create_usb3x_bos_desc() local 53 bos->bLength = USB_DT_BOS_SIZE; in xhci_create_usb3x_bos_desc() 54 bos->bDescriptorType = USB_DT_BOS; in xhci_create_usb3x_bos_desc() 55 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 57 bos->bNumDeviceCaps = 1; in xhci_create_usb3x_bos_desc() 60 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3x_bos_desc() 61 u8 major = xhci->port_caps[i].maj_rev; in xhci_create_usb3x_bos_desc() 62 u8 minor = xhci->port_caps[i].min_rev; in xhci_create_usb3x_bos_desc() [all …]
|
/linux/drivers/staging/media/meson/vdec/ |
H A D | vdec.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 13 #include <media/videobuf2-v4l2.h> 14 #include <media/v4l2-ctrls.h> 15 #include <media/v4l2-device.h> 16 #include <linux/soc/amlogic/meson-canvas.h> 20 /* 32 buffers in 3-plane YUV420 */ 29 * struct amvdec_timestamp - stores a src timestamp along with a VIFIFO offset 34 * @offset: offset in the VIFIFO where the associated packet was written 42 u32 offset; member 50 * struct amvdec_core - device parameters, singleton [all …]
|
/linux/arch/csky/kernel/ |
H A D | ftrace.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 21 * Gcc-csky with -pg will insert stub in function prologue: 27 * If the (callee - current_pc) is less then 64MB, we'll use bsr: 38 * (r26 is our reserved link-reg) 44 long offset; in make_jbsr() local 48 offset = (long) callee - (long) pc; in make_jbsr() 50 if (unlikely(offset < -67108864 || offset > 67108864)) { in make_jbsr() 58 offset = offset >> 1; in make_jbsr() 61 ((uint16_t)((unsigned long) offset >> 16) & 0x3ff); in make_jbsr() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
H A D | base.c | 34 struct nvkm_memory *memory = &iobj->memory; in nvkm_instobj_load() 41 nvkm_wo32(memory, i, iobj->suspend[i / 4]); in nvkm_instobj_load() 43 memcpy_toio(map, iobj->suspend, size); in nvkm_instobj_load() 47 kvfree(iobj->suspend); in nvkm_instobj_load() 48 iobj->suspend = NULL; in nvkm_instobj_load() 54 struct nvkm_memory *memory = &iobj->memory; in nvkm_instobj_save() 59 iobj->suspend = kvmalloc(size, GFP_KERNEL); in nvkm_instobj_save() 60 if (!iobj->suspend) in nvkm_instobj_save() 61 return -ENOMEM; in nvkm_instobj_save() 65 iobj->suspend[i / 4] = nvkm_ro32(memory, i); in nvkm_instobj_save() [all …]
|
/linux/kernel/power/ |
H A D | hibernate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kernel/power/hibernate.c - Hibernation (a.k.a suspend-to-disk) support. 71 #define HIBERNATION_MAX (__HIBERNATION_AFTER_LAST-1) 84 return atomic_add_unless(&hibernate_atomic, -1, 0); in hibernate_acquire() 100 * hibernation_set_ops - Set the global hibernate operations. 107 if (ops && !(ops->begin && ops->end && ops->pre_snapshot in hibernation_set_ops() 108 && ops->prepare && ops->finish && ops->enter && ops->pre_restore in hibernation_set_ops() 109 && ops->restore_cleanup && ops->leave)) { in hibernation_set_ops() 154 * platform_begin - Call platform to start hibernation. 160 hibernation_ops->begin(PMSG_FREEZE) : 0; in platform_begin() [all …]
|
H A D | swap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 1998,2001-2005 Pavel Machek <pavel@ucw.cz> 10 * Copyright (C) 2010-2012 Bojan Smojver <bojan@rexursive.com> 58 * During resume we pick up all swap_map_page structures into a list. 61 #define MAP_PAGE_ENTRIES (PAGE_SIZE / sizeof(sector_t) - 1) 68 return nr_free_pages() - nr_free_highpages(); in low_free_pages() 92 * a file-alike way 106 char reserved[PAGE_SIZE - 20 - sizeof(sector_t) - sizeof(int) - 107 sizeof(u32) - sizeof(u32)]; 141 if (swap_offset < ext->start) { in swsusp_extents_insert() [all …]
|
/linux/drivers/ufs/host/ |
H A D | ufshcd-pci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2011-2013 Samsung India Software Operations 50 return fn < 32 && fn >= 0 && (host->dsm_fns & (1u << fn)); in __intel_dsm_supported() 66 return -EOPNOTSUPP; in __intel_dsm() 68 if (obj->buffer.length < 1) { in __intel_dsm() 69 err = -EINVAL; in __intel_dsm() 73 len = min_t(size_t, obj->buffer.length, 4); in __intel_dsm() 76 memcpy(result, obj->buffer.pointer, len); in __intel_dsm() 87 return -EOPNOTSUPP; in intel_dsm() 96 err = __intel_dsm(intel_host, dev, INTEL_DSM_FNS, &intel_host->dsm_fns); in intel_dsm_init() [all …]
|