| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_devfreq.c | 9 #include <linux/devfreq.h> 19 static void lima_devfreq_update_utilization(struct lima_devfreq *devfreq) in lima_devfreq_update_utilization() argument 24 last = devfreq->time_last_update; in lima_devfreq_update_utilization() 26 if (devfreq->busy_count > 0) in lima_devfreq_update_utilization() 27 devfreq->busy_time += ktime_sub(now, last); in lima_devfreq_update_utilization() 29 devfreq->idle_time += ktime_sub(now, last); in lima_devfreq_update_utilization() 31 devfreq->time_last_update = now; in lima_devfreq_update_utilization() 47 static void lima_devfreq_reset(struct lima_devfreq *devfreq) in lima_devfreq_reset() argument 49 devfreq->busy_time = 0; in lima_devfreq_reset() 50 devfreq->idle_time = 0; in lima_devfreq_reset() [all …]
|
| H A D | lima_devfreq.h | 7 #include <linux/devfreq.h> 11 struct devfreq; 17 struct devfreq *devfreq; member 36 void lima_devfreq_record_busy(struct lima_devfreq *devfreq); 37 void lima_devfreq_record_idle(struct lima_devfreq *devfreq); 39 int lima_devfreq_resume(struct lima_devfreq *devfreq); 40 int lima_devfreq_suspend(struct lima_devfreq *devfreq);
|
| /linux/include/linux/ |
| H A D | devfreq.h | 3 * devfreq: Generic Dynamic Voltage and Frequency Scaling (DVFS) Framework 18 /* DEVFREQ governor name */ 25 /* DEVFREQ notifier interface */ 32 /* DEVFREQ work timers */ 39 struct devfreq; 45 * struct devfreq_dev_status - Data given from devfreq user device to 53 * @private_data: An entry not specified by the devfreq framework. 76 * struct devfreq_dev_profile - Devfreq's user device profile 89 * status to devfreq. Governors are recommended not to 92 * devfreq.last_status. [all …]
|
| H A D | devfreq-event.h | 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 39 * @load_count : load count of devfreq-event device for the given period. [all …]
|
| H A D | devfreq_cooling.h | 4 * devfreq 13 #include <linux/devfreq.h> 18 * struct devfreq_cooling_power - Devfreq cooling power ops 29 * devfreq 'last_status'). 38 int (*get_real_power)(struct devfreq *df, u32 *power, 45 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, 48 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df); 49 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df); 52 devfreq_cooling_em_register(struct devfreq *df, 58 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, in of_devfreq_cooling_register_power() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-devfreq | 1 What: /sys/class/devfreq/.../ 5 Provide a place in sysfs for the devfreq objects. 6 This allows accessing various devfreq specific variables. 7 The name of devfreq object denoted as ... is same as the 8 name of device using devfreq. 10 What: /sys/class/devfreq/.../name 14 The /sys/class/devfreq/.../name shows the name of device 15 of the corresponding devfreq object. 17 What: /sys/class/devfreq/.../governor 21 The /sys/class/devfreq/.../governor show or set the name of the [all …]
|
| H A D | sysfs-class-devfreq-event | 1 What: /sys/class/devfreq-event/event<x>/ 5 Provide a place in sysfs for the devfreq-event objects. 6 This allows accessing various devfreq-event specific variables. 7 The name of devfreq-event object denoted as 'event<x>' which 8 includes the unique number of 'x' for each devfreq-event object. 10 What: /sys/class/devfreq-event/event<x>/name 14 The /sys/class/devfreq-event/event<x>/name attribute contains 15 the name of the devfreq-event object. This attribute is 18 What: /sys/class/devfreq-event/event<x>/enable_count 22 The /sys/class/devfreq-event/event<x>/enable_count attribute [all …]
|
| /linux/drivers/devfreq/ |
| H A D | Kconfig | 7 devfreq, a generic DVFS framework can be registered for a device 8 in order to let the governor provided to devfreq choose an 11 Each device may have its own governor and policy. Devfreq can 13 notification to "nb", a notifier block, of devfreq. 17 determined by the single device's state, an instance of devfreq 20 to a device by 1-to-1. The device registering devfreq takes the 23 given to devfreq. 25 When OPP is used with the devfreq device, it is recommended to 26 register devfreq's nb to the OPP's notifier head. If OPP is 27 used with the devfreq device, you may use OPP helper [all …]
|
| H A D | Makefile | 2 obj-$(CONFIG_PM_DEVFREQ) += devfreq.o 3 obj-$(CONFIG_PM_DEVFREQ_EVENT) += devfreq-event.o 10 # DEVFREQ Drivers 15 obj-$(CONFIG_ARM_MEDIATEK_CCI_DEVFREQ) += mtk-cci-devfreq.o 18 obj-$(CONFIG_ARM_TEGRA_DEVFREQ) += tegra30-devfreq.o 20 # DEVFREQ Event Drivers
|
| H A D | rk3399_dmc.c | 11 #include <linux/devfreq.h> 12 #include <linux/devfreq-event.h> 42 struct devfreq *devfreq; member 253 dev_err(dev, "failed to disable the devfreq-event devices\n"); in rk3399_dmcfreq_suspend() 257 ret = devfreq_suspend_device(dmcfreq->devfreq); in rk3399_dmcfreq_suspend() 259 dev_err(dev, "failed to suspend the devfreq devices\n"); in rk3399_dmcfreq_suspend() 273 dev_err(dev, "failed to enable the devfreq-event devices\n"); in rk3399_dmcfreq_resume() 277 ret = devfreq_resume_device(dmcfreq->devfreq); in rk3399_dmcfreq_resume() 279 dev_err(dev, "failed to resume the devfreq devices\n"); in rk3399_dmcfreq_resume() 361 data->edev = devfreq_event_get_edev_by_phandle(dev, "devfreq-events", 0); in rk3399_dmcfreq_probe() [all …]
|
| H A D | imx-bus.c | 7 #include <linux/devfreq.h> 17 struct devfreq *devfreq; member 125 priv->devfreq = devm_devfreq_add_device(dev, &priv->profile, in imx_bus_probe() 127 if (IS_ERR(priv->devfreq)) { in imx_bus_probe() 128 ret = PTR_ERR(priv->devfreq); in imx_bus_probe() 129 dev_err(dev, "failed to add devfreq device: %d\n", ret); in imx_bus_probe() 158 .name = "imx-bus-devfreq",
|
| H A D | imx8m-ddrc.c | 10 #include <linux/devfreq.h> 67 struct devfreq *devfreq; member 425 priv->devfreq = devm_devfreq_add_device(dev, &priv->profile, in imx8m_ddrc_probe() 427 if (IS_ERR(priv->devfreq)) { in imx8m_ddrc_probe() 428 ret = PTR_ERR(priv->devfreq); in imx8m_ddrc_probe() 429 dev_err(dev, "failed to add devfreq device: %d\n", ret); in imx8m_ddrc_probe() 449 .name = "imx8m-ddrc-devfreq",
|
| /linux/Documentation/translations/zh_CN/doc-guide/ |
| H A D | contributing.rst | 47 ./drivers/devfreq/devfreq.c:1818: warning: bad line: 49 ./drivers/devfreq/devfreq.c:1854: warning: bad line: 59 * @dev: The devfreq user device. (parent of devfreq) 60 * @devfreq: The devfreq object. 70 [PATCH] PM / devfreq: Fix two malformed kerneldoc comments 72 Two kerneldoc comments in devfreq.c fail to adhere to the required format, 75 ./drivers/devfreq/devfreq.c:1818: warning: bad line: 77 ./drivers/devfreq/devfreq.c:1854: warning: bad line: 84 drivers/devfreq/devfreq.c | 4 ++-- 87 diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c [all …]
|
| /linux/drivers/powercap/ |
| H A D | dtpm_devfreq.c | 7 * The devfreq device combined with the energy model and the load can 15 #include <linux/devfreq.h> 26 struct devfreq *devfreq; member 37 struct devfreq *devfreq = dtpm_devfreq->devfreq; in update_pd_power_uw() local 38 struct device *dev = devfreq->dev.parent; in update_pd_power_uw() 56 struct devfreq *devfreq = dtpm_devfreq->devfreq; in set_pd_power_limit() local 57 struct device *dev = devfreq->dev.parent; in set_pd_power_limit() 96 struct devfreq *devfreq = dtpm_devfreq->devfreq; in get_pd_power_uw() local 97 struct device *dev = devfreq->dev.parent; in get_pd_power_uw() 105 mutex_lock(&devfreq->lock); in get_pd_power_uw() [all …]
|
| /linux/include/trace/events/ |
| H A D | devfreq.h | 3 #define TRACE_SYSTEM devfreq 8 #include <linux/devfreq.h> 12 TP_PROTO(struct devfreq *devfreq, unsigned long freq, 15 TP_ARGS(devfreq, freq, prev_freq), 18 __string(dev_name, dev_name(&devfreq->dev)) 29 __entry->busy_time = devfreq->last_status.busy_time; 30 __entry->total_time = devfreq->last_status.total_time; 40 TP_PROTO(struct devfreq *devfreq), [all...] |
| /linux/drivers/thermal/ |
| H A D | devfreq_cooling.c | 4 * devfreq 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> 28 * struct devfreq_cooling_device - Devfreq cooling device 31 * @cooling_ops: devfreq callbacks to thermal cooling device ops 32 * @devfreq: Pointer to associated devfreq device. 47 * of the devfreq device. 48 * @em_pd: Energy Model for the associated Devfreq device 53 struct devfreq *devfreq; member [all …]
|
| /linux/drivers/devfreq/event/ |
| H A D | Kconfig | 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 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 27 tristate "Exynos PPMU (Platform Performance Monitoring Unit) DEVFREQ event Driver" 31 This add the devfreq-event driver for Exynos SoC. It provides PPMU [all …]
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_devfreq.c | 5 #include <linux/devfreq.h> 20 /** @devfreq: devfreq device. */ member 21 struct devfreq *devfreq; 90 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_get_dev_status() 151 pdevfreq = drmm_kzalloc(&ptdev->base, sizeof(*ptdev->devfreq), GFP_KERNEL); in panthor_devfreq_init() 155 ptdev->devfreq = pdevfreq; in panthor_devfreq_init() 249 pdevfreq->devfreq = devm_devfreq_add_device(dev, &panthor_devfreq_profile, in panthor_devfreq_resume() 252 if (IS_ERR(pdevfreq->devfreq)) { in panthor_devfreq_resume() [all...] |
| /linux/Documentation/doc-guide/ |
| H A D | contributing.rst | 58 ./drivers/devfreq/devfreq.c:1818: warning: bad line: 60 ./drivers/devfreq/devfreq.c:1854: warning: bad line: 71 * @dev: The devfreq user device. (parent of devfreq) 72 * @devfreq: The devfreq object. 86 [PATCH] PM / devfreq: Fix two malformed kerneldoc comments 88 Two kerneldoc comments in devfreq.c fail to adhere to the required format, 91 ./drivers/devfreq/devfreq.c:1818: warning: bad line: 93 ./drivers/devfreq/devfreq.c:1854: warning: bad line: 100 drivers/devfreq/devfreq.c | 4 ++-- 103 diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c [all …]
|
| /linux/Documentation/driver-api/ |
| H A D | devfreq.rst | 23 :c:func:`devfreq_add_device` function to create a :c:type:`devfreq` instance. 25 .. kernel-doc:: include/linux/devfreq.h 26 .. kernel-doc:: include/linux/devfreq-event.h 27 .. kernel-doc:: drivers/devfreq/devfreq.c 29 .. kernel-doc:: drivers/devfreq/devfreq-event.c
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_devfreq.h | 7 #include <linux/devfreq.h> 11 struct devfreq; 17 struct devfreq *devfreq; member 42 void panfrost_devfreq_record_busy(struct panfrost_devfreq *devfreq); 43 void panfrost_devfreq_record_idle(struct panfrost_devfreq *devfreq);
|
| /linux/Documentation/devicetree/bindings/interconnect/ |
| H A D | samsung,exynos-bus.yaml | 172 devfreq: 177 devfreq-events: 182 Devfreq-event device to monitor the current utilization of buses. Valid 230 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>; 274 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>; 283 devfreq = <&bus_leftbus>; 294 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>; 305 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>; 316 devfreq = <&leftbus>;
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5422-odroid-core.dtsi | 396 devfreq-events = <&nocp_mem0_0>, <&nocp_mem0_1>, 405 devfreq = <&bus_wcore>; 411 devfreq = <&bus_wcore>; 417 devfreq = <&bus_wcore>; 423 devfreq = <&bus_wcore>; 429 devfreq = <&bus_wcore>; 435 devfreq = <&bus_wcore>; 441 devfreq = <&bus_wcore>; 447 devfreq = <&bus_wcore>; 453 devfreq = <&bus_wcore>; [all …]
|
| H A D | exynos4412-odroid-common.dtsi | 77 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>; 83 devfreq = <&bus_dmc>; 88 devfreq = <&bus_dmc>; 93 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>; 99 devfreq = <&bus_leftbus>; 104 devfreq = <&bus_leftbus>; 109 devfreq = <&bus_leftbus>; 114 devfreq = <&bus_leftbus>; 119 devfreq = <&bus_leftbus>;
|
| /linux/drivers/memory/samsung/ |
| H A D | exynos5422-dmc.c | 9 #include <linux/devfreq.h> 10 #include <linux/devfreq-event.h> 115 * @df: devfreq device structure returned by devfreq framework 116 * @gov_data: configuration of devfreq governor 142 * @counter: devfreq events 146 * @total: total time between devfreq events 155 struct devfreq *df; 336 * @profile: devfreq device's profile 338 * Populate the devfreq device's OPP table based on current frequency, voltage. 648 * @flags: devfreq flags provided for this frequency change request [all …]
|