/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/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/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_put_autosuspend(chip->parent); in arizona_gpio_direction_in() 48 static int arizona_gpio_get(struct gpio_chip *chip, unsigned offset) in arizona_gpio_get() argument 51 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_get() 55 reg = ARIZONA_GPIO1_CTRL + offset; in arizona_gpio_get() [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/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/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 18 #include "xhci-trace.h" 49 int offset; in xhci_create_usb3x_bos_desc() local 54 bos->bLength = USB_DT_BOS_SIZE; in xhci_create_usb3x_bos_desc() 55 bos->bDescriptorType = USB_DT_BOS; in xhci_create_usb3x_bos_desc() 56 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 58 bos->bNumDeviceCaps = 1; in xhci_create_usb3x_bos_desc() 61 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3x_bos_desc() 62 u8 major = xhci->port_caps[i].maj_rev; in xhci_create_usb3x_bos_desc() 63 u8 minor = xhci->port_caps[i].min_rev; in xhci_create_usb3x_bos_desc() [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 45 return fn < 32 && fn >= 0 && (host->dsm_fns & (1u << fn)); in __intel_dsm_supported() 61 return -EOPNOTSUPP; in __intel_dsm() 63 if (obj->buffer.length < 1) { in __intel_dsm() 64 err = -EINVAL; in __intel_dsm() 68 len = min_t(size_t, obj->buffer.length, 4); in __intel_dsm() 71 memcpy(result, obj->buffer.pointer, len); in __intel_dsm() 82 return -EOPNOTSUPP; in intel_dsm() 91 err = __intel_dsm(intel_host, dev, INTEL_DSM_FNS, &intel_host->dsm_fns); in intel_dsm_init() [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/kernel/power/ |
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> 59 * During resume we pick up all swap_map_page structures into a list. 62 #define MAP_PAGE_ENTRIES (PAGE_SIZE / sizeof(sector_t) - 1) 69 return nr_free_pages() - nr_free_highpages(); in low_free_pages() 93 * a file-alik 179 unsigned long offset; alloc_swapdev_block() local 380 write_page(void * buf,sector_t offset,struct hib_bio_batch * hb) write_page() argument 456 sector_t offset; swap_write_page() local 1005 sector_t offset; get_swap_reader() local 1049 sector_t offset; swap_read_page() local [all...] |
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. 72 #define HIBERNATION_MAX (__HIBERNATION_AFTER_LAST-1) 85 * pm_hibernation_mode_is_suspend - Check if hibernation has been set to suspend 96 return atomic_add_unless(&hibernate_atomic, -1, 0); in hibernate_acquire() 117 * hibernation_set_ops - Set the global hibernate operations. 124 if (ops && !(ops->begin && ops->end && ops->pre_snapshot in hibernation_set_ops() 125 && ops->prepare && ops->finish && ops->enter && ops->pre_restore in hibernation_set_ops() 126 && ops->restore_cleanup && ops->leave)) { in hibernation_set_ops() 176 * platform_begin - Call platform to start hibernation. [all …]
|
/linux/sound/soc/sof/imx/ |
H A D | imx-common.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 // Copyright 2020-2025 NXP 16 #include "imx-common.h" 19 * imx8_get_registers() - This function is called in case of DSP oops 33 u32 offset = sdev->dsp_oops_offset; in imx8_get_registers() local 36 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in imx8_get_registers() 39 if (xoops->arch_hdr.totalsize > EXCEPT_MAX_HDR_SIZE) { in imx8_get_registers() 40 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in imx8_get_registers() 41 xoops->arch_hdr.totalsize); in imx8_get_registers() 44 offset += xoops->arch_hdr.totalsize; in imx8_get_registers() [all …]
|
/linux/Documentation/trace/coresight/ |
H A D | coresight-perf.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 CoreSight - Perf 15 perf record -e cs_etm//u testbinary 22 perf report --stdio --dump -i perf.data 26 … [0x30]: PERF_RECORD_AUXTRACE size: 0x11dd0 offset: 0 ref: 0x1b614fc1061b0ad1 idx: 0 tid: 5312… 48 for the support such as libopencsd and libopencsd-dev or download it 60 ------------------------ 81 Fine-grained tracing with AUX pause and resume 82 ---------------------------------------------- 87 provides AUX pause and resume functionality for fine-grained tracing. [all …]
|
/linux/tools/perf/util/ |
H A D | unwind-libunwind-local.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Copyright (C) 2002-2007 Hewlett-Packard Co 10 * Contributed by David Mosberger-Tang <davidm@hpl.hp.com> 31 #include <libunwind-ptrace.h> 65 /* Pointer-encoding formats: */ 67 #define DW_EH_PE_ptr 0x00 /* pointer-sized unsigned value */ 68 #define DW_EH_PE_udata4 0x03 /* unsigned 32-bit value */ 69 #define DW_EH_PE_udata8 0x04 /* unsigned 64-bit value */ 70 #define DW_EH_PE_sdata4 0x0b /* signed 32-bit value */ 71 #define DW_EH_PE_sdata8 0x0c /* signed 64-bit value */ [all …]
|
/linux/drivers/rtc/ |
H A D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include "rtc-core.h" 28 struct timerqueue_head *head = &rtc->timerqueue; in rtc_device_release() 31 mutex_lock(&rtc->ops_lock); in rtc_device_release() 34 mutex_unlock(&rtc->ops_lock); in rtc_device_release() 36 cancel_work_sync(&rtc->irqwork); in rtc_device_release() 38 ida_free(&rtc_ida, rtc->id); in rtc_device_release() 39 mutex_destroy(&rtc->ops_lock); in rtc_device_release() 45 int rtc_hctosys_ret = -ENODEV; 68 dev_err(rtc->dev.parent, in rtc_hctosys() [all …]
|
/linux/drivers/memory/ |
H A D | ti-emif-pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2016-2017 Texas Instruments Inc. 18 #include <linux/ti-emif-sram.h> 22 #define TI_EMIF_SRAM_SYMBOL_OFFSET(sym) ((unsigned long)(sym) - \ 43 return (emif_data->ti_emif_sram_virt + in sram_suspend_address() 50 return ((unsigned long)emif_data->ti_emif_sram_phys + in sram_resume_address() 56 gen_pool_free(emif_data->sram_pool_code, emif_data->ti_emif_sram_virt, in ti_emif_free_sram() 58 gen_pool_free(emif_data->sram_pool_data, in ti_emif_free_sram() 59 emif_data->ti_emif_sram_data_virt, in ti_emif_free_sram() 66 struct device_node *np = dev->of_node; in ti_emif_alloc_sram() [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | sleep34xx.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Karthik Dasu <karthik-dp@ti.com> 9 * Richard Woodruff <r-woodruff2@ti.com> 57 * with non-Thumb-2-capable firmware. 76 ldr r2, [r3] @ value for offset 86 .arch armv7-a 89 stmfd sp!, {r4 - r11, lr} @ save registers on stack 103 ldmfd sp!, {r4 - r11, pc} 115 * omap34xx_cpu_suspend() - This bit of code saves the CPU context if needed 121 * - only the minimum set of functions gets copied to internal SRAM at boot [all …]
|
/linux/drivers/usb/gadget/udc/ |
H A D | udc-xilinx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Copyright (C) 2010 - 2014 Xilinx, Inc. 10 * Some parts of this driver code is based on the driver for at91-series 17 #include <linux/dma-mapping.h> 28 #define XUSB_EP0_CONFIG_OFFSET 0x0000 /* EP0 Config Reg Offset */ 57 #define XUSB_STATUS_RESUME_MASK 0x01000000 /* USB Resume Mask */ 75 #define XUSB_STATUS_EP_BUFF2_SHIFT 8 /* EP buffer offset */ 109 * struct xusb_req - Xilinx USB device request structure 121 * struct xusb_ep - USB end point structure. 127 * @offset: the endpoint register offset value [all …]
|