/openbmc/linux/drivers/pmdomain/mediatek/ |
H A D | mtk-pm-domains.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 19 #include "mt6795-pm-domains.h" 20 #include "mt8167-pm-domains.h" 21 #include "mt8173-pm-domains.h" 22 #include "mt8183-pm-domains.h" 23 #include "mt8186-pm-domains.h" 24 #include "mt8188-pm-domains.h" 25 #include "mt8192-pm-domains.h" 26 #include "mt8195-pm-domains.h" [all …]
|
/openbmc/linux/drivers/cpuidle/ |
H A D | dt_idle_genpd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #define pr_fmt(fmt) "dt-idle-genpd: " fmt 38 ret = -ENOMEM; in pd_parse_state_nodes() 48 i--; in pd_parse_state_nodes() 49 for (; i >= 0; i--) in pd_parse_state_nodes() 84 void dt_idle_pd_free(struct generic_pm_domain *pd) in dt_idle_pd_free() argument 86 pd_free_states(pd->states, pd->state_count); in dt_idle_pd_free() 87 kfree(pd->name); in dt_idle_pd_free() 88 kfree(pd); in dt_idle_pd_free() 94 struct generic_pm_domain *pd; in dt_idle_pd_alloc() local [all …]
|
H A 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() 52 struct generic_pm_domain *pd; in psci_pd_init() local [all …]
|
H A D | cpuidle-riscv-sbi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RISC-V SBI CPU idle driver. 9 #define pr_fmt(fmt) "cpuidle-riscv-sbi: " fmt 52 data->available = true; in sbi_set_domain_state() 53 data->state = state; in sbi_set_domain_state() 60 return data->state; in sbi_get_domain_state() 67 data->available = false; in sbi_clear_domain_state() 74 return data->available; in sbi_is_domain_state_available() 115 u32 *states = data->states; in __sbi_enter_domain_idle_state() 116 struct device *pd_dev = data->dev; in __sbi_enter_domain_idle_state() [all …]
|
/openbmc/linux/drivers/pmdomain/xilinx/ |
H A 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> 27 * struct zynqmp_pm_domain - Wrapper around struct generic_pm_domain 29 * @node_id: PM node ID corresponding to device inside PM domain 30 * @requested: The PM node mapped to the PM domain has been requested 42 * zynqmp_gpd_is_active_wakeup_path() - Check if device is in wakeup source 65 * zynqmp_gpd_power_on() - Power on PM domain 75 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_power_on() local 78 ret = zynqmp_pm_set_requirement(pd->node_id, in zynqmp_gpd_power_on() [all …]
|
/openbmc/linux/drivers/gpu/drm/lima/ |
H A 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 …]
|
/openbmc/linux/drivers/pmdomain/ti/ |
H A 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 …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_device_path_utilities.c | 1 // SPDX-License-Identifier: GPL-2.0+ 32 EFI_ENTRY("%pD", device_path); in get_device_path_size() 33 /* size includes the END node: */ in get_device_path_size() 58 EFI_ENTRY("%pD", device_path); in duplicate_device_path() 79 EFI_ENTRY("%pD, %pD", src1, src2); in append_device_path() 84 * Append device path node. 93 * @device_node device node 100 EFI_ENTRY("%pD, %p", device_path, device_node); in append_device_node() 121 EFI_ENTRY("%pD, %pD", device_path, device_path_instance); in append_device_path_instance() 143 EFI_ENTRY("%pD, %p", device_path_instance, device_path_instance_size); in get_next_device_path_instance() [all …]
|
/openbmc/linux/drivers/pmdomain/rockchip/ |
H A D | pm-domains.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <dt-bindings/power/px30-power.h> 22 #include <dt-bindings/power/rockchip,rv1126-power.h> 23 #include <dt-bindings/power/rk3036-power.h> 24 #include <dt-bindings/power/rk3066-power.h> 25 #include <dt-bindings/power/rk3128-power.h> 26 #include <dt-bindings/power/rk3188-power.h> 27 #include <dt-bindings/power/rk3228-power.h> 28 #include <dt-bindings/power/rk3288-power.h> 29 #include <dt-bindings/power/rk3328-power.h> [all …]
|
/openbmc/linux/drivers/pmdomain/samsung/ |
H A D | exynos-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 …]
|
/openbmc/linux/drivers/block/ |
H A 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. 25 * randomly read and written using 2kB-sized blocks. 39 * At the top layer there is a custom ->submit_bio function that forwards 49 #include <linux/backing-dev.h> 98 static sector_t get_zone(sector_t sector, struct pktcdvd_device *pd) in get_zone() argument 100 return (sector + pd->offset) & ~(sector_t)(pd->settings.size - 1); in get_zone() 107 /sys/class/pktcdvd/pktcdvd[0-7]/ 122 struct pktcdvd_device *pd = dev_get_drvdata(dev); in packets_started_show() local [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/ |
H A D | fsl,scu-pd.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/fsl,scu-pd.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: i.MX SCU Client Device Node - Power Domain Based on SCU Message Protocol 10 - Dong Aisheng <aisheng.dong@nxp.com> 12 description: i.MX SCU Client Device Node 13 Client nodes are maintained as children of the relevant IMX-SCU device node. 17 - $ref: power-domain.yaml# 22 - enum: [all …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/arch/arm/mach-rockchip/ |
H A 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 …]
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | mr.c | 2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved. 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 40 #include <linux/dma-buf.h> 41 #include <linux/dma-resv.h> 56 static struct mlx5_ib_mr *reg_create(struct ib_pd *pd, struct ib_umem *umem, 61 struct ib_pd *pd) in set_mkc_access_pd_addr_fields() argument 63 struct mlx5_ib_dev *dev = to_mdev(pd->device); in set_mkc_access_pd_addr_fields() 72 if (MLX5_CAP_GEN(dev->mdev, relaxed_ordering_write)) in set_mkc_access_pd_addr_fields() 75 if (MLX5_CAP_GEN(dev->mdev, relaxed_ordering_read) || in set_mkc_access_pd_addr_fields() [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | topology.c | 1 // SPDX-License-Identifier: GPL-2.0 38 struct sched_group *group = sd->groups; in sched_domain_debug_one() 39 unsigned long flags = sd->flags; in sched_domain_debug_one() 44 printk(KERN_DEBUG "%*s domain-%d: ", level, "", level); in sched_domain_debug_one() 46 cpumask_pr_args(sched_domain_span(sd)), sd->name); in sched_domain_debug_one() 49 printk(KERN_ERR "ERROR: domain->span does not contain CPU%d\n", cpu); in sched_domain_debug_one() 52 printk(KERN_ERR "ERROR: domain->groups does not contain CPU%d\n", cpu); in sched_domain_debug_one() 59 if ((meta_flags & SDF_SHARED_CHILD) && sd->child && in sched_domain_debug_one() 60 !(sd->child->flags & flag)) in sched_domain_debug_one() 64 if ((meta_flags & SDF_SHARED_PARENT) && sd->parent && in sched_domain_debug_one() [all …]
|
/openbmc/linux/drivers/soc/qcom/ |
H A 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 79 mutex_lock(&pdr->lock); in pdr_locator_new_server() 81 pdr->locator_addr.sq_family = AF_QIPCRTR; in pdr_locator_new_server() 82 pdr->locator_addr.sq_node = svc->node; in pdr_locator_new_server() 83 pdr->locator_addr.sq_port = svc->port; 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 …]
|
/openbmc/linux/drivers/clk/davinci/ |
H A 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 …]
|
/openbmc/linux/arch/arm64/boot/dts/apple/ |
H A D | t6002-j375d.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 5 * target-type: J375d 10 /dts-v1/; 13 #include "t600x-j375.dtsi" 16 compatible = "apple,j375d", "apple,t6002", "apple,arm-platform"; 22 /* front-right */ 23 hpm4: usb-pd@39 { 26 interrupt-parent = <&pinctrl_ap>; 28 interrupt-names = "irq"; 31 /* front-left */ [all …]
|
/openbmc/linux/drivers/memory/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vm_pt.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 31 * amdgpu_vm_pt_cursor - state for for_each_amdgpu_vm_pt 41 * amdgpu_vm_pt_level_shift - return the addr shift for each level 56 return 9 * (AMDGPU_VM_PDB0 - level) + in amdgpu_vm_pt_level_shift() 57 adev->vm_manager.block_size; in amdgpu_vm_pt_level_shift() 66 * amdgpu_vm_pt_num_entries - return the number of entries in a PD/PT 79 shift = amdgpu_vm_pt_level_shift(adev, adev->vm_manager.root_level); in amdgpu_vm_pt_num_entries() 80 if (level == adev->vm_manager.root_level) in amdgpu_vm_pt_num_entries() 82 return round_up(adev->vm_manager.max_pfn, 1ULL << shift) in amdgpu_vm_pt_num_entries() 93 * amdgpu_vm_pt_num_ats_entries - return the number of ATS entries in the root PD [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A 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 …]
|
/openbmc/linux/kernel/ |
H A 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 …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8dxl-ss-conn.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /delete-node/ &enet1_lpcg; 7 /delete-node/ &fec2; 10 conn_enet0_root_clk: clock-conn-enet0-root { 11 compatible = "fixed-clock"; 12 #clock-cells = <0>; 13 clock-frequency = <250000000>; 14 clock-output-names = "conn_enet0_root_clk"; 18 compatible = "nxp,imx8dxl-dwmac-eqos", "snps,dwmac-5.10a"; 20 interrupt-parent = <&gic>; [all …]
|