| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_devfreq.c | 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() 51 devfreq->time_last_update = ktime_get(); in lima_devfreq_reset() [all …]
|
| H A D | lima_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 | 39 struct devfreq; 184 struct devfreq { struct 232 struct devfreq *devfreq_add_device(struct device *dev, argument 236 int devfreq_remove_device(struct devfreq *devfreq); 237 struct devfreq *devm_devfreq_add_device(struct device *dev, 241 void devm_devfreq_remove_device(struct device *dev, struct devfreq *devfreq); 244 int devfreq_suspend_device(struct devfreq *devfreq); 245 int devfreq_resume_device(struct devfreq *devfreq); 251 int update_devfreq(struct devfreq *devfreq); 257 struct devfreq *devfreq); [all …]
|
| H A D | devfreq_cooling.h | 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() 65 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df) in of_devfreq_cooling_register() 71 devfreq_cooling_register(struct devfreq *df) in devfreq_cooling_register() 77 devfreq_cooling_em_register(struct devfreq *df, in devfreq_cooling_em_register()
|
| /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/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/powercap/ |
| H A D | dtpm_devfreq.c | 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() 106 status = devfreq->last_status; in get_pd_power_uw() 107 mutex_unlock(&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/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/thermal/ |
| H A D | devfreq_cooling.c | 53 struct devfreq *devfreq; member 88 struct devfreq *df = dfc->devfreq; in devfreq_cooling_set_cur_state() 148 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() 194 struct devfreq *df = dfc->devfreq; in devfreq_cooling_get_requested_power() 291 struct devfreq *df = dfc->devfreq; in devfreq_cooling_power2state() 351 struct devfreq *df = dfc->devfreq; in devfreq_cooling_gen_tables() 393 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, in of_devfreq_cooling_register_power() 409 dfc->devfreq = df; in of_devfreq_cooling_register_power() 490 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df) in of_devfreq_cooling_register() 500 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df) in devfreq_cooling_register() [all …]
|
| /linux/drivers/devfreq/event/ |
| H A D | Kconfig | 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. 23 This add the devfreq-event driver for Exynos SoC. It provides NoC 31 This add the devfreq-event driver for Exynos SoC. It provides PPMU 39 This add the devfreq-event driver for Rockchip SoC. It provides DFI
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_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/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/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 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 28 functions defined in devfreq.h. [all …]
|
| H A D | Makefile | 2 obj-$(CONFIG_PM_DEVFREQ) += devfreq.o 3 obj-$(CONFIG_PM_DEVFREQ_EVENT) += devfreq-event.o 15 obj-$(CONFIG_ARM_MEDIATEK_CCI_DEVFREQ) += mtk-cci-devfreq.o 18 obj-$(CONFIG_ARM_TEGRA_DEVFREQ) += tegra30-devfreq.o
|
| H A D | imx-bus.c | 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()
|
| H A D | rk3399_dmc.c | 42 struct devfreq *devfreq; member 257 ret = devfreq_suspend_device(dmcfreq->devfreq); in rk3399_dmcfreq_suspend() 277 ret = devfreq_resume_device(dmcfreq->devfreq); in rk3399_dmcfreq_resume() 440 data->devfreq = devm_devfreq_add_device(dev, in rk3399_dmcfreq_probe() 444 if (IS_ERR(data->devfreq)) { in rk3399_dmcfreq_probe() 445 ret = PTR_ERR(data->devfreq); in rk3399_dmcfreq_probe() 449 devm_devfreq_register_opp_notifier(dev, data->devfreq); in rk3399_dmcfreq_probe()
|
| H A D | imx8m-ddrc.c | 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()
|
| H A D | sun8i-a33-mbus.c | 85 struct devfreq *devfreq_dram; 219 struct devfreq *devfreq = priv->devfreq_dram; in sun8i_a33_mbus_set_dram_target() local 229 if (*freq == devfreq->previous_freq) in sun8i_a33_mbus_set_dram_target() 235 *freq = devfreq->previous_freq; in sun8i_a33_mbus_set_dram_target()
|
| /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>;
|
| H A D | exynos4412-itop-scp-core.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>;
|
| H A D | exynos3250-rinato.dts | 165 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>; 171 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>; 177 devfreq = <&bus_leftbus>; 182 devfreq = <&bus_leftbus>; 187 devfreq = <&bus_leftbus>; 192 devfreq = <&bus_leftbus>; 197 devfreq = <&bus_leftbus>; 202 devfreq = <&bus_leftbus>; 207 devfreq = <&bus_leftbus>;
|
| /linux/arch/arm64/boot/dts/exynos/ |
| H A D | exynos5433-tm2-common.dtsi | 173 devfreq-events = <&ppmu_event0_d0_general>, <&ppmu_event0_d1_general>; 180 devfreq = <&bus_g2d_400>; 185 devfreq = <&bus_g2d_400>; 190 devfreq = <&bus_g2d_400>; 195 devfreq = <&bus_g2d_400>; 200 devfreq = <&bus_g2d_400>; 205 devfreq = <&bus_g2d_400>; 210 devfreq = <&bus_g2d_400>; 215 devfreq = <&bus_g2d_400>; 220 devfreq = <&bus_g2d_400>;
|