/Linux-v5.15/drivers/soc/mediatek/ |
D | mtk-pm-domains.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 19 #include "mt8167-pm-domains.h" 20 #include "mt8173-pm-domains.h" 21 #include "mt8183-pm-domains.h" 22 #include "mt8192-pm-domains.h" 58 static bool scpsys_domain_is_on(struct scpsys_domain *pd) in scpsys_domain_is_on() argument 60 struct scpsys *scpsys = pd->scpsys; in scpsys_domain_is_on() 63 regmap_read(scpsys->base, scpsys->soc_data->pwr_sta_offs, &status); in scpsys_domain_is_on() 64 status &= pd->data->sta_mask; in scpsys_domain_is_on() [all …]
|
/Linux-v5.15/arch/mips/netlogic/common/ |
D | irq.c | 2 * Copyright 2003-2011 NetLogic Microsystems, Inc. (NetLogic). All rights 53 #include <asm/netlogic/mips-extns.h> 59 #include <asm/netlogic/xlp-hal/iomap.h> 60 #include <asm/netlogic/xlp-hal/xlp.h> 61 #include <asm/netlogic/xlp-hal/pic.h> 81 struct nlm_soc_info *node; member 90 struct nlm_pic_irq *pd = irq_data_get_irq_chip_data(d); in xlp_pic_enable() local 92 BUG_ON(!pd); in xlp_pic_enable() 93 spin_lock_irqsave(&pd->node->piclock, flags); in xlp_pic_enable() 94 nlm_pic_enable_irt(pd->node->picbase, pd->irt); in xlp_pic_enable() [all …]
|
/Linux-v5.15/drivers/cpuidle/ |
D | cpuidle-psci-domain.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PM domains for CPUs via genpd - managed by cpuidle-psci. 22 #include "cpuidle-psci.h" 26 struct device_node *node; member 32 static int psci_pd_power_off(struct generic_pm_domain *pd) in psci_pd_power_off() argument 34 struct genpd_power_state *state = &pd->states[pd->state_idx]; in psci_pd_power_off() 37 if (!state->data) in psci_pd_power_off() 41 return -EBUSY; in psci_pd_power_off() 44 pd_state = state->data; in psci_pd_power_off() 64 ret = -ENOMEM; in psci_pd_parse_state_nodes() [all …]
|
/Linux-v5.15/drivers/soc/xilinx/ |
D | zynqmp_pm_domains.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015-2019 Xilinx, Inc. 20 #include <linux/firmware/xlnx-zynqmp.h> 29 * struct zynqmp_pm_domain - Wrapper around struct generic_pm_domain 31 * @node_id: PM node ID corresponding to device inside PM domain 41 * zynqmp_gpd_is_active_wakeup_path() - Check if device is in wakeup source 64 * zynqmp_gpd_power_on() - Power on PM domain 75 struct zynqmp_pm_domain *pd; in zynqmp_gpd_power_on() local 77 pd = container_of(domain, struct zynqmp_pm_domain, gpd); in zynqmp_gpd_power_on() 78 ret = zynqmp_pm_set_requirement(pd->node_id, in zynqmp_gpd_power_on() [all …]
|
/Linux-v5.15/drivers/soc/rockchip/ |
D | pm_domains.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <dt-bindings/power/px30-power.h> 20 #include <dt-bindings/power/rk3036-power.h> 21 #include <dt-bindings/power/rk3066-power.h> 22 #include <dt-bindings/power/rk3128-power.h> 23 #include <dt-bindings/power/rk3188-power.h> 24 #include <dt-bindings/power/rk3228-power.h> 25 #include <dt-bindings/power/rk3288-power.h> 26 #include <dt-bindings/power/rk3328-power.h> 27 #include <dt-bindings/power/rk3366-power.h> [all …]
|
/Linux-v5.15/drivers/gpu/drm/lima/ |
D | lima_vm.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 2 /* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */ 5 #include <linux/dma-mapping.h> 16 struct drm_mm_node node; member 26 #define LIMA_VM_PT_MASK ((1 << LIMA_VM_PD_SHIFT) - 1) 27 #define LIMA_VM_BT_MASK ((1 << LIMA_VM_PB_SHIFT) - 1) 43 vm->bts[pbe].cpu[bte] = 0; in lima_vm_unmap_range() 52 if (!vm->bts[pbe].cpu) { in lima_vm_map_page() 54 u32 *pd; in lima_vm_map_page() local 57 vm->bts[pbe].cpu = dma_alloc_wc( in lima_vm_map_page() [all …]
|
/Linux-v5.15/drivers/soc/ti/ |
D | ti_sci_pm_domains.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ 6 * J Keerthy <j-keerthy@ti.com> 7 * Dave Gerlach <d-gerlach@ti.com> 17 #include <dt-bindings/soc/ti,sci_pm_domain.h> 40 * @pd: generic_pm_domain for use with the genpd framework 41 * @node: link for the genpd list 47 struct generic_pm_domain pd; member 48 struct list_head node; member 52 #define genpd_to_ti_sci_pd(gpd) container_of(gpd, struct ti_sci_pm_domain, pd) [all …]
|
/Linux-v5.15/drivers/soc/samsung/ |
D | pm_domains.c | 1 // SPDX-License-Identifier: GPL-2.0 9 // conjunction with runtime-pm. Support for both device-tree and non-device-tree 32 struct generic_pm_domain pd; member 38 struct exynos_pm_domain *pd; in exynos_pd_power() local 43 pd = container_of(domain, struct exynos_pm_domain, pd); in exynos_pd_power() 44 base = pd->base; in exynos_pd_power() 46 pwr = power_on ? pd->local_pwr_cfg : 0; in exynos_pd_power() 52 while ((readl_relaxed(base + 0x4) & pd->local_pwr_cfg) != pwr) { in exynos_pd_power() 55 pr_err("Power domain %s %s failed\n", domain->name, op); in exynos_pd_power() 56 return -ETIMEDOUT; in exynos_pd_power() [all …]
|
/Linux-v5.15/drivers/block/ |
D | pktcdvd.c | 3 * Copyright (C) 2001-2004 Peter Osterlund <petero2@telia.com> 9 * Packet writing layer for ATAPI and SCSI CD-RW, DVD+RW, DVD-RW and 10 * DVD-RAM devices. 15 * typically ide-cd.c or sr.c. This driver can handle read and write requests, 25 * randomly read and written using 2kB-sized blocks. 39 * At the top layer there is a custom ->submit_bio function that forwards 64 #include <linux/backing-dev.h> 75 #define pkt_err(pd, fmt, ...) \ argument 76 pr_err("%s: " fmt, pd->name, ##__VA_ARGS__) 77 #define pkt_notice(pd, fmt, ...) \ argument [all …]
|
/Linux-v5.15/arch/arm/mach-rockchip/ |
D | platsmp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 static int pmu_power_domain_is_on(int pd) in pmu_power_domain_is_on() argument 47 return !(val & BIT(pd)); in pmu_power_domain_is_on() 57 np = dev->of_node; in rockchip_get_core_reset() 64 static int pmu_set_power_domain(int pd, bool on) in pmu_set_power_domain() argument 66 u32 val = (on) ? 0 : BIT(pd); in pmu_set_power_domain() 67 struct reset_control *rstc = rockchip_get_core_reset(pd); in pmu_set_power_domain() 72 __func__, pd); in pmu_set_power_domain() 85 ret = regmap_update_bits(pmu, PMU_PWRDN_CON, BIT(pd), val); in pmu_set_power_domain() 92 ret = -1; in pmu_set_power_domain() [all …]
|
/Linux-v5.15/kernel/sched/ |
D | topology.c | 1 // SPDX-License-Identifier: GPL-2.0 37 struct sched_group *group = sd->groups; in sched_domain_debug_one() 38 unsigned long flags = sd->flags; in sched_domain_debug_one() 43 printk(KERN_DEBUG "%*s domain-%d: ", level, "", level); in sched_domain_debug_one() 45 cpumask_pr_args(sched_domain_span(sd)), sd->name); in sched_domain_debug_one() 48 printk(KERN_ERR "ERROR: domain->span does not contain CPU%d\n", cpu); in sched_domain_debug_one() 51 printk(KERN_ERR "ERROR: domain->groups does not contain CPU%d\n", cpu); in sched_domain_debug_one() 58 if ((meta_flags & SDF_SHARED_CHILD) && sd->child && in sched_domain_debug_one() 59 !(sd->child->flags & flag)) in sched_domain_debug_one() 63 if ((meta_flags & SDF_SHARED_PARENT) && sd->parent && in sched_domain_debug_one() [all …]
|
/Linux-v5.15/drivers/soc/qcom/ |
D | pdr_interface.c | 1 // SPDX-License-Identifier: GPL-2.0 31 struct list_head node; member 46 /* serialize pd status invocation */ 69 struct list_head node; member 80 pdr->locator_addr.sq_family = AF_QIPCRTR; in pdr_locator_new_server() 81 pdr->locator_addr.sq_node = svc->node; in pdr_locator_new_server() 82 pdr->locator_addr.sq_port = svc->port; in pdr_locator_new_server() 84 mutex_lock(&pdr->lock); in pdr_locator_new_server() 85 pdr->locator_init_complete = true; in pdr_locator_new_server() 86 mutex_unlock(&pdr->lock); in pdr_locator_new_server() [all …]
|
/Linux-v5.15/drivers/gpu/drm/i915/gt/ |
D | intel_ppgtt.c | 1 // SPDX-License-Identifier: MIT 21 return ERR_PTR(-ENOMEM); in alloc_pt() 23 pt->base = vm->alloc_pt_dma(vm, I915_GTT_PAGE_SIZE_4K); in alloc_pt() 24 if (IS_ERR(pt->base)) { in alloc_pt() 26 return ERR_PTR(-ENOMEM); in alloc_pt() 29 atomic_set(&pt->used, 0); in alloc_pt() 35 struct i915_page_directory *pd; in __alloc_pd() local 37 pd = kzalloc(sizeof(*pd), I915_GFP_ALLOW_FAIL); in __alloc_pd() 38 if (unlikely(!pd)) in __alloc_pd() 41 pd->entry = kcalloc(count, sizeof(*pd->entry), I915_GFP_ALLOW_FAIL); in __alloc_pd() [all …]
|
D | gen8_ppgtt.c | 1 // SPDX-License-Identifier: MIT 60 struct drm_i915_private *i915 = ppgtt->vm.i915; in gen8_ppgtt_notify_vgt() 61 struct intel_uncore *uncore = ppgtt->vm.gt->uncore; in gen8_ppgtt_notify_vgt() 66 atomic_inc(px_used(ppgtt->pd)); /* never remove */ in gen8_ppgtt_notify_vgt() 68 atomic_dec(px_used(ppgtt->pd)); in gen8_ppgtt_notify_vgt() 70 mutex_lock(&i915->vgpu.lock); in gen8_ppgtt_notify_vgt() 72 if (i915_vm_is_4lvl(&ppgtt->vm)) { in gen8_ppgtt_notify_vgt() 73 const u64 daddr = px_dma(ppgtt->pd); in gen8_ppgtt_notify_vgt() 103 mutex_unlock(&i915->vgpu.lock); in gen8_ppgtt_notify_vgt() 107 #define GEN8_PAGE_SIZE (SZ_4K) /* page and page-directory sizes are the same */ [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/power/ |
D | renesas,sysc-rmobile.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/renesas,sysc-rmobile.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas R-Mobile System Controller 10 - Geert Uytterhoeven <geert+renesas@glider.be> 11 - Magnus Damm <magnus.damm@gmail.com> 14 The R-Mobile System Controller provides the following functions: 15 - Boot mode management, 16 - Reset generation, [all …]
|
D | rockchip,power-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/rockchip,power-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Elaine Zhang <zhangqing@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 18 Power domains contained within power-controller node are 20 Documentation/devicetree/bindings/power/power-domain.yaml. 23 "power-domains" property that is a phandle for the 24 power domain node representing the domain. [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/arm/freescale/ |
D | fsl,scu.txt | 2 -------------------------------------------------------------------- 4 The System Controller Firmware (SCFW) is a low-level system function 5 which runs on a dedicated Cortex-M core to provide power, clock, and 9 The AP communicates with the SC using a multi-ported MU module found 16 System Controller Device Node: 19 The scu node with the following properties shall be under the /firmware/ node. 22 ------------------- 23 - compatible: should be "fsl,imx-scu". 24 - mbox-names: should include "tx0", "tx1", "tx2", "tx3", 27 - mboxes: List of phandle of 4 MU channels for tx, 4 MU channels for [all …]
|
/Linux-v5.15/drivers/clk/davinci/ |
D | psc.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Murali Karicheri <m-karicheri2@ti.com> 12 * And: arch/arm/mach-davinci/psc.c 16 #include <linux/clk-provider.h> 28 #include <linux/reset-controller.h> 66 * struct davinci_lpsc_clk - LPSC clock structure 73 * @pd: Power domain 83 u32 pd; member 91 * best_dev_name - get the "best" device name. 94 * Returns the device tree compatible name if the device has a DT node, [all …]
|
/Linux-v5.15/drivers/platform/surface/ |
D | surface3_button.c | 1 // SPDX-License-Identifier: GPL-2.0-only 45 * declared under the device node, while surfacepro3_button.c only needs 46 * the ACPI companion node. 93 struct platform_device *pd; in surface3_button_device_create() local 100 gpio_keys_pdata = devm_kzalloc(&client->dev, in surface3_button_device_create() 105 return ERR_PTR(-ENOMEM); in surface3_button_device_create() 109 for (info = button_info; info->name; info++) { in surface3_button_device_create() 110 if (info->autorepeat != autorepeat) in surface3_button_device_create() 113 gpio = surface3_button_lookup_gpio(&client->dev, in surface3_button_device_create() 114 info->acpi_index); in surface3_button_device_create() [all …]
|
/Linux-v5.15/drivers/memory/ |
D | emif.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 * struct emif_data - Per device static data for driver's use 37 * to this EMIF - read from MR4 register. If there 41 * @node: node in the device list 42 * @base: base address of memory-mapped IO registers. 46 * frequencies, to avoid re-calculating them on 53 * @np_ddr: Pointer to ddr device tree node 59 struct list_head node; member 79 u32 type = emif->plat_data->device_info->type; in do_emif_regdump_show() 80 u32 ip_rev = emif->plat_data->ip_rev; in do_emif_regdump_show() [all …]
|
/Linux-v5.15/kernel/ |
D | padata.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * padata.c - generic interface to process data streams in parallel 5 * See Documentation/core-api/padata.rst for more information. 47 static void padata_free_pd(struct parallel_data *pd); 50 static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index) in padata_index_to_cpu() argument 54 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu() 56 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu() 61 static int padata_cpu_hash(struct parallel_data *pd, unsigned int seq_nr) in padata_cpu_hash() argument 67 int cpu_index = seq_nr % cpumask_weight(pd->cpumask.pcpu); in padata_cpu_hash() 69 return padata_index_to_cpu(pd, cpu_index); in padata_cpu_hash() [all …]
|
/Linux-v5.15/arch/arm/mach-omap2/ |
D | powerdomain.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2007-2008, 2010 Texas Instruments, Inc. 6 * Copyright (C) 2007-2011 Nokia Corporation 10 * XXX This should be moved to the mach-omap2/ directory at the earliest 45 * PWRDM_HAS_HDWR_SAR - powerdomain has hardware save-and-restore support 47 * PWRDM_HAS_MPU_QUIRK - MPU pwr domain has MEM bank 0 bits in MEM 50 * PWRDM_HAS_LOWPOWERSTATECHANGE - can transition from a sleep state 58 * Number of memory banks that are power-controllable. On OMAP4430, the 77 * struct powerdomain - OMAP powerdomain 85 * @banks: Number of software-controllable memory banks in this powerdomain [all …]
|
/Linux-v5.15/drivers/video/backlight/ |
D | lp855x_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 39 #define DEFAULT_BL_NAME "lcd-backlight" 79 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte() 87 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit() 89 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit() 104 switch (lp->chip_id) { in lp855x_is_valid_rom_area() 171 struct lp855x_platform_data *pd = lp->pdata; in lp855x_configure() local 173 switch (lp->chip_id) { in lp855x_configure() 179 lp->cfg = &lp855x_dev_cfg; in lp855x_configure() 183 lp->cfg = &lp8557_dev_cfg; in lp855x_configure() [all …]
|
/Linux-v5.15/drivers/soc/fsl/dpio/ |
D | dpio-service.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright 2014-2016 Freescale Semiconductor Inc. 4 * Copyright 2016-2019 NXP 9 #include <soc/fsl/dpaa2-io.h> 14 #include <linux/dma-mapping.h> 18 #include "qbman-portal.h" 24 struct list_head node; member 38 unsigned int idx; /* position of the next-to-be-returned entry */ 58 * If cpu == -1, choose the current cpu, with no guarantees about in service_select_by_cpu() 73 d = service_select_by_cpu(d, -1); in service_select() [all …]
|
/Linux-v5.15/drivers/platform/chrome/ |
D | cros_ec_typec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <linux/usb/pd.h> 26 #define DRV_NAME "cros-ec-typec" 50 /* Port partner PD identity info. */ 52 /* Port cable PD identity info. */ 66 /* Flag indicating that PD partner discovery data parsing is completed. */ 74 /* Platform-specific data for the Chrome OS EC Type C controller. */ 96 ret = fwnode_property_read_string(fwnode, "power-role", &buf); in cros_typec_parse_port_props() 98 dev_err(dev, "power-role not found: %d\n", ret); in cros_typec_parse_port_props() 105 cap->type = ret; in cros_typec_parse_port_props() [all …]
|