Home
last modified time | relevance | path

Searched +full:disable +full:- +full:hibernation +full:- +full:mode (Results 1 – 25 of 123) sorted by relevance

12345

/kernel/linux/linux-6.6/drivers/usb/dwc2/
Dcore_intr.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * core_intr.c - DesignWare HS OTG Controller common interrupt handling
5 * Copyright (C) 2004-2013 Synopsys, Inc.
16 #include <linux/dma-mapping.h>
29 switch (hsotg->op_state) { in dwc2_op_state_str()
46 * dwc2_handle_usb_port_intr - handles OTG PRTINT interrupts.
63 * dwc2_handle_mode_mismatch_intr() - Logs a mode mismatch warning message
72 dev_warn(hsotg->dev, "Mode Mismatch Interrupt: currently in %s mode\n", in dwc2_handle_mode_mismatch_intr()
77 * dwc2_handle_otg_intr() - Handles the OTG Interrupts. It reads the OTG
90 dev_dbg(hsotg->dev, "++OTG Interrupt gotgint=%0x [%s]\n", gotgint, in dwc2_handle_otg_intr()
[all …]
Dparams.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2004-2016 Synopsys, Inc.
20 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_bcm_params()
22 p->host_rx_fifo_size = 774; in dwc2_set_bcm_params()
23 p->max_transfer_size = 65535; in dwc2_set_bcm_params()
24 p->max_packet_count = 511; in dwc2_set_bcm_params()
25 p->ahbcfg = 0x10; in dwc2_set_bcm_params()
30 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_his_params()
32 p->otg_caps.hnp_support = false; in dwc2_set_his_params()
33 p->otg_caps.srp_support = false; in dwc2_set_his_params()
[all …]
Dhcd.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * hcd.c - DesignWare HS OTG Controller host-mode routines
5 * Copyright (C) 2004-2013 Synopsys, Inc.
17 #include <linux/dma-mapping.h>
37 * dwc2_enable_common_interrupts() - Initializes the commmon interrupts,
55 if (!hsotg->params.host_dma) in dwc2_enable_common_interrupts()
57 if (!hsotg->params.external_id_pin_ctl) in dwc2_enable_common_interrupts()
63 if (dwc2_is_device_mode(hsotg) && hsotg->params.lpm) in dwc2_enable_common_interrupts()
73 switch (hsotg->hw_params.arch) { in dwc2_gahbcfg_init()
75 dev_err(hsotg->dev, "External DMA Mode not supported\n"); in dwc2_gahbcfg_init()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/
Dqca,ar803x.yaml1 # SPDX-License-Identifier: GPL-2.0+
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Andrew Lunn <andrew@lunn.ch>
11 - Florian Fainelli <f.fainelli@gmail.com>
12 - Heiner Kallweit <hkallweit1@gmail.com>
18 - $ref: ethernet-phy.yaml#
21 qca,clk-out-frequency:
26 qca,clk-out-strength:
31 qca,disable-smarteee:
[all …]
/kernel/linux/linux-5.10/drivers/usb/dwc2/
Dcore_intr.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * core_intr.c - DesignWare HS OTG Controller common interrupt handling
5 * Copyright (C) 2004-2013 Synopsys, Inc.
16 * 3. The names of the above-listed copyright holders may not be used
46 #include <linux/dma-mapping.h>
59 switch (hsotg->op_state) { in dwc2_op_state_str()
76 * dwc2_handle_usb_port_intr - handles OTG PRTINT interrupts.
93 * dwc2_handle_mode_mismatch_intr() - Logs a mode mismatch warning message
102 dev_warn(hsotg->dev, "Mode Mismatch Interrupt: currently in %s mode\n", in dwc2_handle_mode_mismatch_intr()
107 * dwc2_handle_otg_intr() - Handles the OTG Interrupts. It reads the OTG
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/
Di915_gem_pm.c2 * SPDX-License-Identifier: MIT
28 GEM_TRACE("%s\n", dev_name(i915->drm.dev)); in i915_gem_suspend()
30 intel_wakeref_auto(&i915->runtime_pm.userfault_wakeref, 0); in i915_gem_suspend()
31 flush_workqueue(i915->wq); in i915_gem_suspend()
35 * that they can saved in the hibernation image. To ensure the last in i915_gem_suspend()
37 * leaves the i915->kernel_context still active when in i915_gem_suspend()
54 if (mr->type == INTEL_MEMORY_LOCAL) { in lmem_restore()
70 if (mr->type == INTEL_MEMORY_LOCAL) { in lmem_suspend()
86 if (mr->type == INTEL_MEMORY_LOCAL) in lmem_recover()
107 * page-tables for the migrate context. in i915_gem_backup_suspend()
[all …]
/kernel/linux/linux-5.10/arch/x86/power/
Dcpu.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Suspend support specific for i386/x86-64.
40 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_save_context()
41 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_save_context()
44 if (msr->valid) in msr_save_context()
45 rdmsrl(msr->info.msr_no, msr->info.reg.q); in msr_save_context()
52 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_restore_context()
53 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_restore_context()
56 if (msr->valid) in msr_restore_context()
57 wrmsrl(msr->info.msr_no, msr->info.reg.q); in msr_restore_context()
[all …]
/kernel/linux/linux-5.10/kernel/power/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
9 suspend-to-RAM state (e.g. the ACPI S3 state).
30 user-space before invoking suspend. There's a run-time switch
32 This setting changes the default for the run-tim switch. Say Y
33 to change the default to disable the kernel sys_sync().
38 config HIBERNATION config
39 bool "Hibernation (aka 'suspend to disk')"
47 called "hibernation" in user interfaces. STD checkpoints the
60 for suspend states like suspend-to-RAM (STR) often don't work very
72 <file:Documentation/power/swsusp-and-swap-files.rst>).
[all …]
/kernel/linux/linux-6.6/Documentation/power/
Duserland-swsusp.rst25 reading, it is considered to be in the suspend mode. Otherwise it is
26 assumed to be in the resume mode. The device cannot be open for simultaneous
71 return the actual size of the hibernation image
96 swap files (see Documentation/power/swsusp-and-swap-files.rst for
100 enable/disable the hibernation platform support,
104 make the kernel transition the system to the hibernation
109 immediately enter the suspend-to-RAM state, so this call must always
112 is needed to implement the suspend-to-both mechanism in which the
121 - you cannot read() more than one virtual memory page at a time
122 - read()s across page boundaries are impossible (ie. if you read() 1/2 of
[all …]
/kernel/linux/linux-5.10/Documentation/power/
Duserland-swsusp.rst25 reading, it is considered to be in the suspend mode. Otherwise it is
26 assumed to be in the resume mode. The device cannot be open for simultaneous
71 return the actual size of the hibernation image
96 swap files (see Documentation/power/swsusp-and-swap-files.rst for
100 enable/disable the hibernation platform support,
104 make the kernel transition the system to the hibernation
109 immediately enter the suspend-to-RAM state, so this call must always
112 is needed to implement the suspend-to-both mechanism in which the
121 - you cannot read() more than one virtual memory page at a time
122 - read()s across page boundaries are impossible (ie. if you read() 1/2 of
[all …]
/kernel/linux/linux-6.6/kernel/power/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
9 suspend-to-RAM state (e.g. the ACPI S3 state).
30 user-space before invoking suspend. There's a run-time switch
32 This setting changes the default for the run-tim switch. Say Y
33 to change the default to disable the kernel sys_sync().
38 config HIBERNATION config
39 bool "Hibernation (aka 'suspend to disk')"
47 called "hibernation" in user interfaces. STD checkpoints the
60 for suspend states like suspend-to-RAM (STR) often don't work very
72 <file:Documentation/power/swsusp-and-swap-files.rst>).
[all …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-power15 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
28 The /sys/power/mem_sleep file controls the operating mode of
31 supported). The mode that will be used on subsequent attempts
35 Writing one of the above strings to this file causes the mode
39 See Documentation/admin-guide/pm/sleep-states.rst for more
46 The /sys/power/disk file controls the operating mode of the
47 suspend-to-disk mechanism. Reading from this file returns
51 'firmware' - means that the memory image will be saved to disk
[all …]
Dsysfs-devices-power16 RAM) and hibernation (suspend to disk), and to enable or disable
40 space to control the run-time power management of the device.
61 with the main suspend/resume thread) during system-wide power
62 transitions (eg. suspend to RAM, hibernation).
86 attribute is read-only. If the device is not capable to wake up
98 is read-only. If the device is not capable to wake up the
110 state in progress. This attribute is read-only. If the device
122 read-only. If the device is not capable to wake up the system
133 the device is being processed (1). This attribute is read-only.
145 device, in milliseconds. This attribute is read-only. If the
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-power15 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
28 The /sys/power/mem_sleep file controls the operating mode of
31 supported). The mode that will be used on subsequent attempts
35 Writing one of the above strings to this file causes the mode
39 See Documentation/admin-guide/pm/sleep-states.rst for more
46 The /sys/power/disk file controls the operating mode of the
47 suspend-to-disk mechanism. Reading from this file returns
51 'firmware' - means that the memory image will be saved to disk
[all …]
Dsysfs-devices-power16 RAM) and hibernation (suspend to disk), and to enable or disable
40 space to control the run-time power management of the device.
61 with the main suspend/resume thread) during system-wide power
62 transitions (eg. suspend to RAM, hibernation).
86 attribute is read-only. If the device is not capable to wake up
98 is read-only. If the device is not capable to wake up the
110 state in progress. This attribute is read-only. If the device
122 read-only. If the device is not capable to wake up the system
133 the device is being processed (1). This attribute is read-only.
145 device, in milliseconds. This attribute is read-only. If the
[all …]
/kernel/linux/linux-5.10/include/linux/
Dsuspend.h1 /* SPDX-License-Identifier: GPL-2.0 */
100 * struct platform_suspend_ops - Callbacks for managing platform dependent
149 * @finish: Finish wake-up of the platform.
160 * suspend_again callback is the place assuming that periodic-wakeup or
161 * alarm-wakeup is already setup. This allows to execute some codes while
205 * suspend_set_ops - set platform dependent suspend operations
238 * pm_suspend_via_firmware - Check if platform firmware will suspend the system.
240 * To be called during system-wide power management transitions to sleep states
241 * or during the subsequent system-wide transitions back to the working state.
244 * the system-wide power management transition (to a sleep state) in progress in
[all …]
/kernel/linux/linux-6.6/arch/x86/power/
Dcpu.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Suspend support specific for i386/x86-64.
41 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_save_context()
42 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_save_context()
45 if (msr->valid) in msr_save_context()
46 rdmsrl(msr->info.msr_no, msr->info.reg.q); in msr_save_context()
53 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_restore_context()
54 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_restore_context()
57 if (msr->valid) in msr_restore_context()
58 wrmsrl(msr->info.msr_no, msr->info.reg.q); in msr_restore_context()
[all …]
/kernel/linux/linux-6.6/include/linux/
Dsuspend.h1 /* SPDX-License-Identifier: GPL-2.0 */
103 * struct platform_suspend_ops - Callbacks for managing platform dependent
152 * @finish: Finish wake-up of the platform.
163 * suspend_again callback is the place assuming that periodic-wakeup or
164 * alarm-wakeup is already setup. This allows to execute some codes while
210 * suspend_set_ops - set platform dependent suspend operations
243 * pm_suspend_via_firmware - Check if platform firmware will suspend the system.
245 * To be called during system-wide power management transitions to sleep states
246 * or during the subsequent system-wide transitions back to the working state.
249 * the system-wide power management transition (to a sleep state) in progress in
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_pm.c2 * SPDX-License-Identifier: MIT
16 GEM_TRACE("%s\n", dev_name(i915->drm.dev)); in i915_gem_suspend()
18 intel_wakeref_auto(&i915->ggtt.userfault_wakeref, 0); in i915_gem_suspend()
19 flush_workqueue(i915->wq); in i915_gem_suspend()
23 * that they can saved in the hibernation image. To ensure the last in i915_gem_suspend()
25 * leaves the i915->kernel_context still active when in i915_gem_suspend()
30 intel_gt_suspend_prepare(&i915->gt); in i915_gem_suspend()
46 &i915->mm.shrink_list, in i915_gem_suspend_late()
47 &i915->mm.purge_list, in i915_gem_suspend_late()
54 * expects the system to be in execlists mode on startup, in i915_gem_suspend_late()
[all …]
/kernel/linux/linux-5.10/arch/x86/hyperv/
Dhv_init.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * X86 specific Hyper-V initialization code.
16 #include <asm/hyperv-tlfs.h>
35 /* Storage to save the hypercall page temporarily for hibernation */
83 return -ENOMEM; in hv_cpu_init()
97 * The VP ASSIST PAGE is an "overlay" page (see Hyper-V TLFS's Section in hv_cpu_init()
175 pr_warn("Hyper-V: reenlightenment support is unavailable\n"); in set_hv_tscchange_cb()
236 * CPU or just disable the feature if there are no online CPUs in hv_cpu_die()
237 * left (happens on hibernation). in hv_cpu_die()
257 * For Generation-2 VM, we exit from pci_arch_init() by returning 0. in hv_pci_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_drv.c1 /* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
94 int domain = pci_domain_nr(dev_priv->drm.pdev->bus); in i915_get_bridge_dev()
96 dev_priv->bridge_dev = in i915_get_bridge_dev()
98 if (!dev_priv->bridge_dev) { in i915_get_bridge_dev()
99 drm_err(&dev_priv->drm, "bridge device not found\n"); in i915_get_bridge_dev()
100 return -1; in i915_get_bridge_dev()
115 pci_read_config_dword(dev_priv->bridge_dev, reg + 4, &temp_hi); in intel_alloc_mchbar_resource()
116 pci_read_config_dword(dev_priv->bridge_dev, reg, &temp_lo); in intel_alloc_mchbar_resource()
127 dev_priv->mch_res.name = "i915 MCHBAR"; in intel_alloc_mchbar_resource()
[all …]
/kernel/linux/linux-6.6/drivers/clocksource/
Dhyperv_timer.c1 // SPDX-License-Identifier: GPL-2.0
5 * provided by the Hyper-V hypervisor to guest VMs, as described
6 * in the Hyper-V Top Level Functional Spec (TLFS). This driver
26 #include <asm/hyperv-tlfs.h>
30 /* Note: offset can hold negative values after hibernation. */
36 * mechanism is used when running on older versions of Hyper-V
37 * that don't support Direct Mode. While Hyper-V provides
40 * Because Direct Mode does not require processing a VMbus
44 * However, for legacy versions of Hyper-V when Direct Mode
51 static int stimer0_irq = -1;
[all …]
/kernel/linux/linux-6.6/arch/riscv/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
4 # see Documentation/kbuild/kconfig-language.rst.
67 select CPU_PM if CPU_IDLE || HIBERNATION
169 # https://github.com/llvm/llvm-project/commit/6ab8927931851bb42b2c93a00801dc499d7d9b1e
176 depends on $(cc-option,-fpatchable-function-entry=8)
186 # VA_BITS - PAGE_SHIFT - 3
194 # set if we run in machine mode, cleared if we run in supervisor mode
199 # set if we are running in S-mode and can use SBI calls
206 bool "MMU-based Paged Memory Management Support"
209 Select if you want MMU-based virtualised addressing space
[all …]
/kernel/linux/linux-6.6/drivers/net/phy/
Dat803x.c1 // SPDX-License-Identifier: GPL-2.0+
23 #include <dt-bindings/net/qca-ar803x.h>
103 #define AT803X_PSSR 0x11 /*PHY-Specific Status Register*/
195 /* disable hibernation mode */
249 /* Hibernation yields lower power consumpiton in contrast with normal operation mode.
250 * when the copper cable is unplugged, the PHY enters into hibernation mode in about 10s.
422 context->bmcr = phy_read(phydev, MII_BMCR); in at803x_context_save()
423 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save()
424 context->control1000 = phy_read(phydev, MII_CTRL1000); in at803x_context_save()
425 context->int_enable = phy_read(phydev, AT803X_INTR_ENABLE); in at803x_context_save()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
Di915_driver.c1 /* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
117 * need high-priority retirement, such as waiting for an explicit in i915_workqueues_init()
120 * It is also used for periodic low-priority events, such as in i915_workqueues_init()
121 * idle-timers and recording error state. in i915_workqueues_init()
127 dev_priv->wq = alloc_ordered_workqueue("i915", 0); in i915_workqueues_init()
128 if (dev_priv->wq == NULL) in i915_workqueues_init()
131 dev_priv->display.hotplug.dp_wq = alloc_ordered_workqueue("i915-dp", 0); in i915_workqueues_init()
132 if (dev_priv->display.hotplug.dp_wq == NULL) in i915_workqueues_init()
141 dev_priv->unordered_wq = alloc_workqueue("i915-unordered", 0, 0); in i915_workqueues_init()
[all …]

12345