Home
last modified time | relevance | path

Searched +full:devfreq +full:- +full:events (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.15/drivers/devfreq/
Dgovernor.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * governor.h - internal header for devfreq governors.
8 * This header is for devfreq governors in drivers/devfreq/
14 #include <linux/devfreq.h>
18 #define to_devfreq(DEV) container_of((DEV), struct devfreq, dev)
20 /* Devfreq events */
32 * - DEVFREQ_GOV_FLAG_IMMUTABLE
34 * - DEVFREQ_GOV_FLAG_IRQ_DRIVEN
35 * : The devfreq won't schedule the work for this governor.
42 * - DEVFREQ_GOV_ATTR_POLLING_INTERVAL
[all …]
Dexynos-bus.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic Exynos Bus frequency driver with DEVFREQ Framework
9 * DEVFREQ framework and is based on drivers/devfreq/exynos/exynos4_bus.c.
13 #include <linux/devfreq.h>
14 #include <linux/devfreq-event.h>
29 struct devfreq *devfreq; member
42 * Control the devfreq-event device to get the current state of bus
49 for (i = 0; i < bus->edev_count; i++) { \
50 if (!bus->edev[i]) \
52 ret = devfreq_event_##ops(bus->edev[i]); \
[all …]
Ddevfreq-event.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * devfreq-event: a framework to provide raw data and events of devfreq devices
8 * This driver is based on drivers/devfreq/devfreq.c.
11 #include <linux/devfreq-event.h>
22 /* The list of all devfreq event list */
29 * devfreq_event_enable_edev() - Enable the devfreq-event dev and increase
30 * the enable_count of devfreq-event dev.
31 * @edev : the devfreq-event device
34 * devfreq-event device. The devfreq-event device should be enabled before
35 * using it by devfreq device.
[all …]
Drk3399_dmc.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Lin Huang <hl@rock-chips.com>
7 #include <linux/arm-smccc.h>
10 #include <linux/devfreq.h>
11 #include <linux/devfreq-event.h>
60 struct devfreq *devfreq; member
79 unsigned long old_clk_rate = dmcfreq->rate; in rk3399_dmcfreq_target()
93 if (dmcfreq->rate == target_rate) in rk3399_dmcfreq_target()
96 mutex_lock(&dmcfreq->lock); in rk3399_dmcfreq_target()
98 if (dmcfreq->regmap_pmu) { in rk3399_dmcfreq_target()
[all …]
Dtegra30-devfreq.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * A devfreq driver for NVIDIA Tegra SoCs
11 #include <linux/devfreq.h>
76 * struct tegra_devfreq_device_config - configuration specific to an ACTMON
152 * struct tegra_devfreq_device - state specific to an ACTMON device
180 struct devfreq *devfreq; member
221 return readl_relaxed(tegra->regs + offset); in actmon_readl()
226 writel_relaxed(val, tegra->regs + offset); in actmon_writel()
231 return readl_relaxed(dev->regs + offset); in device_readl()
237 writel_relaxed(val, dev->regs + offset); in device_writel()
[all …]
Ddevfreq.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * devfreq: Generic Dynamic Voltage and Frequency Scaling (DVFS) Framework
4 * for Non-CPU Devices.
22 #include <linux/devfreq.h>
34 #include <trace/events/devfreq.h>
43 * devfreq core provides delayed work based load monitoring helper
49 /* The list of all device-devfreq governors */
51 /* The list of all device-devfreq */
61 * find_device_devfreq() - find devfreq struct using device pointer
62 * @dev: device pointer used to lookup device devfreq.
[all …]
/Linux-v5.15/drivers/devfreq/event/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "DEVFREQ-Event device Support"
5 The devfreq-event device provide the raw data and events which
6 indicate the current state of devfreq-event device. The provided
7 data from devfreq-event device is used to monitor the state of
11 The devfreq-event device can support the various type of events
12 (e.g., raw data, utilization, latency, bandwidth). The events
13 may be used by devfreq governor and other subsystem.
18 tristate "Exynos NoC (Network On Chip) Probe DEVFREQ event Driver"
23 This add the devfreq-event driver for Exynos SoC. It provides NoC
[all …]
Dexynos-ppmu.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * exynos_ppmu.c - Exynos PPMU (Platform Performance Monitoring Unit) support
5 * Copyright (c) 2014-2015 Samsung Electronics Co., Ltd.
8 * This driver is based on drivers/devfreq/exynos/exynos_ppmu.c
20 #include <linux/devfreq-event.h>
22 #include "exynos-ppmu.h"
46 { "ppmu-event0-"#name, PPMU_PMNCNT0 }, \
47 { "ppmu-event1-"#name, PPMU_PMNCNT1 }, \
48 { "ppmu-event2-"#name, PPMU_PMNCNT2 }, \
49 { "ppmu-event3-"#name, PPMU_PMNCNT3 }
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/devfreq/event/
Dsamsung,exynos-ppmu.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/devfreq/event/samsung,exynos-ppmu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chanwoo Choi <cw00.choi@samsung.com>
11 - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
16 PPMU events provide information of the SoC's behaviors so that you may use to
19 Exynos PPMU driver uses the devfreq-event class to provide event data to
20 various devfreq devices. The devfreq devices would use the event data when
26 - samsung,exynos-ppmu
[all …]
/Linux-v5.15/include/linux/
Ddevfreq-event.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * devfreq-event: a framework to provide raw data and events of devfreq devices
15 * struct devfreq_event_dev - the devfreq-event device
17 * @node : Contain the devfreq-event device that have been registered.
18 * @dev : the device registered by devfreq-event class. dev.parent is
19 * the device using devfreq-event.
20 * @lock : a mutex to protect accessing devfreq-event.
22 * @desc : the description for devfreq-event device.
24 * This structure contains devfreq-event device information.
37 * struct devfreq_event_data - the devfreq-event data
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/memory-controllers/
Dsamsung,exynos5422-dmc.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/memory-controllers/samsung,exynos5422-dmc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
12 - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
13 - Lukasz Luba <lukasz.luba@arm.com>
27 - const: samsung,exynos5422-dmc
29 clock-names:
31 - const: fout_spll
32 - const: mout_sclk_spll
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/devfreq/
Dexynos-bus.txt4 and sub-blocks in SoC. Most Exynos SoCs share the common architecture
9 is able to measure the current load of sub-blocks.
11 The Exynos SoC includes the various sub-blocks which have the each AXI bus.
13 power line. The power line might be shared among one more sub-blocks.
14 So, we can divide into two type of device as the role of each sub-block.
16 - parent bus device
17 - passive bus device
26 VDD_xxx |--- A block (parent)
27 |--- B block (passive)
28 |--- C block (passive)
[all …]
Drk3399_dmc.txt4 - compatible: Must be "rockchip,rk3399-dmc".
5 - devfreq-events: Node to get DDR loading, Refer to
6 Documentation/devicetree/bindings/devfreq/event/
7 rockchip-dfi.txt
8 - clocks: Phandles for clock specified in "clock-names" property
9 - clock-names : The name of clock used by the DFI, must be
11 - operating-points-v2: Refer to Documentation/devicetree/bindings/opp/opp-v2.yaml
13 - center-supply: DMC supply node.
14 - status: Marks the node enabled/disabled.
15 - rockchip,pmu: Phandle to the syscon managing the "PMU general register
[all …]
/Linux-v5.15/drivers/thermal/
Ddevfreq_cooling.c1 // SPDX-License-Identifier: GPL-2.0
4 * devfreq
6 * Copyright (C) 2014-2015 ARM Limited
9 * - If OPPs are added or removed after devfreq cooling has
10 * registered, the devfreq cooling won't react to it.
13 #include <linux/devfreq.h>
23 #include <trace/events/thermal.h>
28 * struct devfreq_cooling_device - Devfreq cooling device
31 * @devfreq: Pointer to associated devfreq device.
46 * of the devfreq device.
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
25 zones discovery, temperature readings and events such as
37 int "Emergency poweroff delay in milli-seconds"
130 bool "Fair-share thermal governor"
132 Enable this to manage platform thermals using fair-share governor.
197 This implements the generic devfreq cooling mechanism through
198 frequency reduction for devices using devfreq.
204 devfreq should use the simple_ondemand governor.
226 memory-mapped reads to get the temperature. Any HW/System that
227 allows temperature reading by a single memory-mapped reading, be it
[all …]
/Linux-v5.15/drivers/memory/samsung/
Dexynos5422-dmc.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/devfreq.h>
9 #include <linux/devfreq-event.h>
73 /* A value for register DREX_PPCCLKCON which enables performance events clock.
100 * struct dmc_opp_table - Operating level desciption
112 * struct exynos5_dmc - main structure describing DMC device
114 * @df: devfreq device structure returned by devfreq framework
115 * @gov_data: configuration of devfreq governor
141 * @counter: devfreq events
145 * @total: total time between devfreq events
[all …]
/Linux-v5.15/arch/arm/boot/dts/
Dexynos4412-odroid-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Common definition for Hardkernel's Exynos4412 based ODROID-X/X2/U2/U3 boards
7 #include <dt-bindings/sound/samsung-i2s.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/clock/maxim,max77686.h>
11 #include "exynos4412-ppmu-common.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include "exynos-mfc-reserved-memory.dtsi"
17 stdout-path = &serial_1;
21 compatible = "samsung,secure-firmware";
[all …]
Dexynos4412-itop-scp-core.dtsi1 // SPDX-License-Identifier: GPL-2.0
13 #include <dt-bindings/clock/samsung,s2mps11.h>
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/input/input.h>
17 #include "exynos4412-ppmu-common.dtsi"
18 #include "exynos-mfc-reserved-memory.dtsi"
27 compatible = "samsung,secure-firmware";
31 fixed-rate-clocks {
33 compatible = "samsung,clock-xxti";
34 clock-frequency = <0>;
[all …]
Dexynos5422-odroid-core.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Hardkernel Odroid XU3/XU3-Lite/XU4/HC1 boards core device tree source
6 * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd.
10 #include <dt-bindings/clock/samsung,s2mps11.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/gpio/gpio.h>
14 #include "exynos5422-cpus.dtsi"
23 stdout-path = "serial2:115200n8";
27 compatible = "samsung,secure-firmware";
31 fixed-rate-clocks {
[all …]
Dexynos3250-rinato.dts1 // SPDX-License-Identifier: GPL-2.0
12 /dts-v1/;
14 #include "exynos4412-ppmu-common.dtsi"
15 #include <dt-bindings/input/input.h>
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/clock/samsung,s2mps11.h>
28 stdout-path = &serial_1;
37 compatible = "samsung,secure-firmware";
41 gpio-keys {
42 compatible = "gpio-keys";
[all …]
Dexynos4412-p4note.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 * Based on exynos4412-midas.dtsi.
10 /dts-v1/;
12 #include "exynos4412-ppmu-common.dtsi"
14 #include <dt-bindings/clock/maxim,max77686.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/linux-event-codes.h>
17 #include <dt-bindings/interrupt-controller/irq.h>
18 #include <dt-bindings/pinctrl/samsung.h>
29 stdout-path = &serial_2;
[all …]
Dexynos4412-midas.dtsi1 // SPDX-License-Identifier: GPL-2.0
12 /dts-v1/;
14 #include "exynos4412-ppmu-common.dtsi"
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
17 #include <dt-bindings/interrupt-controller/irq.h>
18 #include <dt-bindings/clock/maxim,max77686.h>
19 #include <dt-bindings/pinctrl/samsung.h>
30 stdout-path = &serial_2;
34 compatible = "samsung,secure-firmware";
[all …]
Dexynos3250-monk.dts1 // SPDX-License-Identifier: GPL-2.0
12 /dts-v1/;
14 #include "exynos4412-ppmu-common.dtsi"
15 #include <dt-bindings/input/input.h>
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/clock/samsung,s2mps11.h>
33 compatible = "samsung,secure-firmware";
37 gpio-keys {
38 compatible = "gpio-keys";
40 power-key {
[all …]
/Linux-v5.15/arch/arm64/boot/dts/exynos/
Dexynos5433-tm2-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
11 /dts-v1/;
13 #include <dt-bindings/clock/samsung,s2mps11.h>
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/input/input.h>
16 #include <dt-bindings/interrupt-controller/irq.h>
17 #include <dt-bindings/sound/samsung-i2s.h>
48 stdout-path = &serial_1;
56 gpio-keys {
57 compatible = "gpio-keys";
[all …]
/Linux-v5.15/drivers/scsi/ufs/
Dufshcd.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (C) 2011-2013 Samsung India Software Operations
5 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
34 #include <linux/devfreq.h>
35 #include <linux/keyslot-manager.h>
78 /* abnormal events */
87 * struct uic_command - UIC command structure
111 /* Host <-> Device UniPro Link state */
119 #define ufshcd_is_link_off(hba) ((hba)->uic_link_state == UIC_LINK_OFF_STATE)
120 #define ufshcd_is_link_active(hba) ((hba)->uic_link_state == \
[all …]

12