/Linux-v6.1/drivers/usb/dwc2/ |
D | core_intr.c | 1 // 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 …]
|
D | params.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) 2004-2016 Synopsys, Inc. 15 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_bcm_params() 17 p->host_rx_fifo_size = 774; in dwc2_set_bcm_params() 18 p->max_transfer_size = 65535; in dwc2_set_bcm_params() 19 p->max_packet_count = 511; in dwc2_set_bcm_params() 20 p->ahbcfg = 0x10; in dwc2_set_bcm_params() 25 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_his_params() 27 p->otg_caps.hnp_support = false; in dwc2_set_his_params() 28 p->otg_caps.srp_support = false; in dwc2_set_his_params() [all …]
|
D | hcd.c | 1 // 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 …]
|
D | core.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * core.h - DesignWare HS OTG Controller common declarations 5 * Copyright (C) 2004-2013 Synopsys, Inc. 21 * - no_printk: Disable tracing 22 * - pr_info: Print this info to the console 23 * - trace_printk: Print this info to trace buffer (good for verbose logging) 32 dev_name(hsotg->dev), ##__VA_ARGS__) 37 dev_name(hsotg->dev), ##__VA_ARGS__) 42 /* dwc2-hsotg declarations */ 74 * struct dwc2_hsotg_ep - driver endpoint definition. [all …]
|
D | gadget.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * S3C USB2.0 High-speed / OtG driver 19 #include <linux/dma-mapping.h> 66 return hsotg->eps_in[ep_index]; in index_to_ep() 68 return hsotg->eps_out[ep_index]; in index_to_ep() 75 * using_dma - return the DMA status of the driver. 95 return hsotg->params.g_dma; in using_dma() 99 * using_desc_dma - return the descriptor DMA status of the driver. 106 return hsotg->params.g_dma_desc; in using_desc_dma() 110 * dwc2_gadget_incr_frame_num - Increments the targeted frame number. [all …]
|
D | platform.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * platform.c - DesignWare HS OTG Controller platform driver 13 #include <linux/dma-mapping.h> 18 #include <linux/platform_data/s3c-hsotg.h> 39 * ------------------------------ 41 * HST DEV any : --- 44 * DEV HST any : --- 54 enum usb_dr_mode mode; in dwc2_get_dr_mode() local 56 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode() 57 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode() [all …]
|
D | core.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * core.c - DesignWare HS OTG Controller common routines 5 * Copyright (C) 2004-2013 Synopsys, Inc. 18 #include <linux/dma-mapping.h> 31 * dwc2_backup_global_registers() - Backup global controller registers. 41 dev_dbg(hsotg->dev, "%s\n", __func__); in dwc2_backup_global_registers() 44 gr = &hsotg->gr_backup; in dwc2_backup_global_registers() 46 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers() 47 gr->gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_backup_global_registers() 48 gr->gahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_backup_global_registers() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/net/ |
D | qca,ar803x.yaml | 1 # 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 …]
|
/Linux-v6.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_pm.c | 2 * SPDX-License-Identifier: MIT 25 GEM_TRACE("%s\n", dev_name(i915->drm.dev)); in i915_gem_suspend() 27 intel_wakeref_auto(&to_gt(i915)->userfault_wakeref, 0); in i915_gem_suspend() 28 flush_workqueue(i915->wq); in i915_gem_suspend() 32 * that they can saved in the hibernation image. To ensure the last in i915_gem_suspend() 34 * leaves the i915->kernel_context still active when in i915_gem_suspend() 50 if (mr->type == INTEL_MEMORY_LOCAL) { in lmem_restore() 66 if (mr->type == INTEL_MEMORY_LOCAL) { in lmem_suspend() 82 if (mr->type == INTEL_MEMORY_LOCAL) in lmem_recover() 103 * page-tables for the migrate context. in i915_gem_backup_suspend() [all …]
|
/Linux-v6.1/arch/x86/power/ |
D | cpu.c | 1 // 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 …]
|
/Linux-v6.1/Documentation/power/ |
D | userland-swsusp.rst | 25 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 …]
|
/Linux-v6.1/kernel/power/ |
D | Kconfig | 1 # 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 …]
|
/Linux-v6.1/Documentation/ABI/testing/ |
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 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 …]
|
D | sysfs-devices-power | 16 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 …]
|
/Linux-v6.1/include/linux/ |
D | suspend.h | 1 /* 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 206 * suspend_set_ops - set platform dependent suspend operations 239 * pm_suspend_via_firmware - Check if platform firmware will suspend the system. 241 * To be called during system-wide power management transitions to sleep states 242 * or during the subsequent system-wide transitions back to the working state. 245 * the system-wide power management transition (to a sleep state) in progress in [all …]
|
/Linux-v6.1/drivers/net/phy/ |
D | at803x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 24 #include <dt-bindings/net/qca-ar803x.h> 104 #define AT803X_PSSR 0x11 /*PHY-Specific Status Register*/ 196 /* disable hibernation mode */ 250 /* Hibernation yields lower power consumpiton in contrast with normal operation mode. 251 * when the copper cable is unplugged, the PHY enters into hibernation mode in about 10s. 417 context->bmcr = phy_read(phydev, MII_BMCR); in at803x_context_save() 418 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save() 419 context->control1000 = phy_read(phydev, MII_CTRL1000); in at803x_context_save() 420 context->int_enable = phy_read(phydev, AT803X_INTR_ENABLE); in at803x_context_save() [all …]
|
/Linux-v6.1/arch/x86/hyperv/ |
D | hv_init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * X86 specific Hyper-V initialization code. 18 #include <asm/hyperv-tlfs.h> 43 /* Storage to save the hypercall page temporarily for hibernation */ 59 return -EINVAL; in hyperv_init_ghcb() 69 return -ENOMEM; in hyperv_init_ghcb() 100 * The VP assist page is an "overlay" page (see Hyper-V TLFS's in hv_cpu_init() 176 pr_warn("Hyper-V: reenlightenment support is unavailable\n"); in set_hv_tscchange_cb() 251 * CPU or just disable the feature if there are no online CPUs in hv_cpu_die() 252 * left (happens on hibernation). in hv_cpu_die() [all …]
|
/Linux-v6.1/drivers/gpu/drm/i915/ |
D | i915_driver.c | 1 /* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*- 22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 117 int domain = pci_domain_nr(to_pci_dev(dev_priv->drm.dev)->bus); in i915_get_bridge_dev() 119 dev_priv->bridge_dev = in i915_get_bridge_dev() 121 if (!dev_priv->bridge_dev) { in i915_get_bridge_dev() 122 drm_err(&dev_priv->drm, "bridge device not found\n"); in i915_get_bridge_dev() 123 return -EIO; in i915_get_bridge_dev() 126 return drmm_add_action_or_reset(&dev_priv->drm, i915_release_bridge_dev, in i915_get_bridge_dev() 127 dev_priv->bridge_dev); in i915_get_bridge_dev() 140 pci_read_config_dword(dev_priv->bridge_dev, reg + 4, &temp_hi); in intel_alloc_mchbar_resource() [all …]
|
/Linux-v6.1/Documentation/admin-guide/ |
D | kernel-parameters.txt | 5 force -- enable ACPI if default was off 6 on -- enable ACPI but allow fallback to DT [arm64] 7 off -- disable ACPI if default was on 8 noirq -- do not use ACPI for IRQ routing 9 strict -- Be less tolerant of platforms that are not 11 rsdt -- prefer RSDT over (default) XSDT 12 copy_dsdt -- copy DSDT to memory 26 If set to vendor, prefer vendor-specific driver 30 If set to native, use the device's native backlight mode. 31 If set to none, disable the ACPI backlight interface. [all …]
|
/Linux-v6.1/drivers/usb/dwc3/ |
D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * core.h - DesignWare USB3 DRD Core Header 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 20 #include <linux/dma-mapping.h> 656 * struct dwc3_event_buffer - Software event buffer representation 690 * struct dwc3_ep - device side endpoint representation 701 * @saved_state: ep state saved during hibernation 703 * @number: endpoint number (1 - 15) 708 * @name: a human readable name e.g. ep1out-bulk 751 * anything larger than 256 - I can't see why people would want to do [all …]
|
D | drd.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drd.c - DesignWare USB3 DRD Controller Dual-role support 5 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com 21 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_disable_events() 24 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_disable_events() 29 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_enable_events() 32 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_enable_events() 37 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVT); in dwc3_otg_clear_events() 39 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_clear_events() 56 spin_lock(&dwc->lock); in dwc3_otg_thread_irq() [all …]
|
D | gadget.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * gadget.c - DesignWare USB3 DRD Controller Gadget Framework Link 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 20 #include <linux/dma-mapping.h> 30 #define DWC3_ALIGN_FRAME(d, n) (((d)->frame_number + ((d)->interval * (n))) \ 31 & ~((d)->interval - 1)) 34 * dwc3_gadget_set_test_mode - enables usb2 test modes 36 * @mode: the mode to set (J, K SE0 NAK, Force Enable) 39 * success or -EINVAL if wrong Test Selector is passed. 41 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument [all …]
|
/Linux-v6.1/Documentation/admin-guide/laptops/ |
D | thinkpad-acpi.rst | 9 - Borislav Deianov <borislav@users.sf.net> 10 - Henrique de Moraes Holschuh <hmh@hmh.eng.br> 12 http://ibm-acpi.sf.net/ 19 This driver used to be named ibm-acpi until kernel 2.6.21 and release 20 0.13-20070314. It used to be in the drivers/acpi tree, but it was 21 moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel 25 The driver is named "thinkpad-acpi". In some places, like module 29 "tpacpi" is used as a shorthand where "thinkpad-acpi" would be too 33 ------ 38 - Fn key combinations [all …]
|
/Linux-v6.1/Documentation/driver-api/usb/ |
D | power-management.rst | 1 .. _usb-power-management: 7 :Date: Last-updated: February 2014 11 --------- 17 * Changing the default idle-delay time 31 ------------------------- 35 component is ``suspended`` it is in a nonfunctional low-power state; it 37 ``resumed`` (returned to a functional full-power state) when the kernel 67 ---------------------- 85 -------------------------- 101 ------------------- [all …]
|
/Linux-v6.1/drivers/acpi/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 18 Linux requires an ACPI-compliant platform (hardware/firmware), 19 and assumes the presence of OS-directed configuration and power 25 the Plug-and-Play BIOS specification (PnP BIOS), the 35 ACPI is an open industry specification originally co-developed by 36 Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba. Currently, 67 Enable in-kernel debugging of AML facilities: statistics, 106 depends on SUSPEND || HIBERNATION 121 mode or in I2S mode, where the former is supposed to be used on Linux 125 This option enables a DMI-based quirk for the above Dell machine (so [all …]
|