Home
last modified time | relevance | path

Searched full:devfreq (Results 1 – 25 of 172) sorted by relevance

1234567

/kernel/linux/linux-6.6/drivers/devfreq/
Ddevfreq.c3 * devfreq: Generic Dynamic Voltage and Frequency Scaling (DVFS) Framework
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.
65 * devfreq info. devfreq_list_lock should be held by the caller.
67 static struct devfreq *find_device_devfreq(struct device *dev) in find_device_devfreq()
[all …]
Dgovernor_passive.c3 * linux/drivers/devfreq/governor_passive.c
16 #include <linux/devfreq.h>
77 static int get_target_freq_with_cpufreq(struct devfreq *devfreq, in get_target_freq_with_cpufreq() argument
81 (struct devfreq_passive_data *)devfreq->data; in get_target_freq_with_cpufreq()
106 devfreq->opp_table, &cpu_cur); in get_target_freq_with_cpufreq()
114 devfreq_get_freq_range(devfreq, &dev_min, &dev_max); in get_target_freq_with_cpufreq()
130 static int get_target_freq_with_devfreq(struct devfreq *devfreq, in get_target_freq_with_devfreq() argument
134 = (struct devfreq_passive_data *)devfreq->data; in get_target_freq_with_devfreq()
135 struct devfreq *parent_devfreq = (struct devfreq *)p_data->parent; in get_target_freq_with_devfreq()
142 devfreq->opp_table, freq); in get_target_freq_with_devfreq()
[all …]
Dgovernor.h3 * 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 */
35 * : The devfreq won't schedule the work for this governor.
76 * struct devfreq_governor - Devfreq policy governor
77 * @node: list node - contains registered devfreq governors
85 * @event_handler: Callback for devfreq core framework to notify events
87 * init and exit, opp changes out of devfreq, suspend
[all …]
DKconfig7 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 …]
Dgovernor_userspace.c3 * linux/drivers/devfreq/governor_userspace.c
11 #include <linux/devfreq.h>
22 static int devfreq_userspace_func(struct devfreq *df, unsigned long *freq) in devfreq_userspace_func()
37 struct devfreq *devfreq = to_devfreq(dev); in set_freq_store() local
42 mutex_lock(&devfreq->lock); in set_freq_store()
43 data = devfreq->governor_data; in set_freq_store()
48 err = update_devfreq(devfreq); in set_freq_store()
51 mutex_unlock(&devfreq->lock); in set_freq_store()
58 struct devfreq *devfreq = to_devfreq(dev); in set_freq_show() local
62 mutex_lock(&devfreq->lock); in set_freq_show()
[all …]
Ddevfreq-event.c3 * 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.
60 * devfreq_event_disable_edev() - Disable the devfreq-event dev and decrease
[all …]
/kernel/linux/linux-5.10/drivers/devfreq/
Ddevfreq.c3 * devfreq: Generic Dynamic Voltage and Frequency Scaling (DVFS) Framework
21 #include <linux/devfreq.h>
32 #include <trace/events/devfreq.h>
40 * devfreq core provides delayed work based load monitoring helper
46 /* The list of all device-devfreq governors */
48 /* The list of all device-devfreq */
58 * find_device_devfreq() - find devfreq struct using device pointer
59 * @dev: device pointer used to lookup device devfreq.
62 * devfreq info. devfreq_list_lock should be held by the caller.
64 static struct devfreq *find_device_devfreq(struct device *dev) in find_device_devfreq()
[all …]
Dgovernor_passive.c3 * linux/drivers/devfreq/governor_passive.c
12 #include <linux/devfreq.h>
15 static int devfreq_passive_get_target_freq(struct devfreq *devfreq, in devfreq_passive_get_target_freq() argument
19 = (struct devfreq_passive_data *)devfreq->data; in devfreq_passive_get_target_freq()
20 struct devfreq *parent_devfreq = (struct devfreq *)p_data->parent; in devfreq_passive_get_target_freq()
26 * If the devfreq device with passive governor has the specific method in devfreq_passive_get_target_freq()
31 ret = p_data->get_target_freq(devfreq, freq); in devfreq_passive_get_target_freq()
36 * If the parent and passive devfreq device uses the OPP table, in devfreq_passive_get_target_freq()
41 * - parent devfreq device uses the governors except for passive. in devfreq_passive_get_target_freq()
42 * - passive devfreq device uses the passive governor. in devfreq_passive_get_target_freq()
[all …]
Dgovernor.h3 * governor.h - internal header for devfreq governors.
8 * This header is for devfreq governors in drivers/devfreq/
14 #include <linux/devfreq.h>
16 #define to_devfreq(DEV) container_of((DEV), struct devfreq, dev)
18 /* Devfreq events */
29 * struct devfreq_governor - Devfreq policy governor
30 * @node: list node - contains registered devfreq governors
34 * @interrupt_driven: Devfreq core won't schedule polling work for this
42 * @event_handler: Callback for devfreq core framework to notify events
44 * init and exit, opp changes out of devfreq, suspend
[all …]
DKconfig8 devfreq, a generic DVFS framework can be registered for a device
9 in order to let the governor provided to devfreq choose an
12 Each device may have its own governor and policy. Devfreq can
14 notification to "nb", a notifier block, of devfreq.
18 determined by the single device's state, an instance of devfreq
21 to a device by 1-to-1. The device registering devfreq takes the
24 given to devfreq.
26 When OPP is used with the devfreq device, it is recommended to
27 register devfreq's nb to the OPP's notifier head. If OPP is
28 used with the devfreq device, you may use OPP helper
[all …]
Dgovernor_userspace.c3 * linux/drivers/devfreq/governor_userspace.c
11 #include <linux/devfreq.h>
22 static int devfreq_userspace_func(struct devfreq *df, unsigned long *freq) in devfreq_userspace_func()
37 struct devfreq *devfreq = to_devfreq(dev); in store_freq() local
42 mutex_lock(&devfreq->lock); in store_freq()
43 data = devfreq->governor_data; in store_freq()
48 err = update_devfreq(devfreq); in store_freq()
51 mutex_unlock(&devfreq->lock); in store_freq()
58 struct devfreq *devfreq = to_devfreq(dev); in show_freq() local
62 mutex_lock(&devfreq->lock); in show_freq()
[all …]
Ddevfreq-event.c3 * 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.
60 * devfreq_event_disable_edev() - Disable the devfreq-event dev and decrease
[all …]
Dexynos-bus.c3 * 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>
28 struct devfreq *devfreq; member
41 * Control the devfreq-event device to get the current state of bus
90 * devfreq function for both simple-ondemand and passive governor
129 dev_err(dev, "failed to get event from devfreq-event devices\n"); in exynos_bus_get_dev_status()
137 dev_dbg(dev, "Usage of devfreq-event : %lu/%lu\n", stat->busy_time, in exynos_bus_get_dev_status()
143 dev_err(dev, "failed to set event to devfreq-event devices\n"); in exynos_bus_get_dev_status()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/
Dlima_devfreq.c9 #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()
52 static void lima_devfreq_reset(struct lima_devfreq *devfreq) in lima_devfreq_reset() argument
54 devfreq->busy_time = 0; in lima_devfreq_reset()
55 devfreq->idle_time = 0; in lima_devfreq_reset()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/lima/
Dlima_devfreq.c9 #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 …]
/kernel/linux/linux-5.10/include/linux/
Ddevfreq.h3 * devfreq: Generic Dynamic Voltage and Frequency Scaling (DVFS) Framework
20 /* DEVFREQ governor name */
27 /* DEVFREQ notifier interface */
34 /* DEVFREQ work timers */
41 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 …]
Ddevfreq-event.h3 * 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 …]
/kernel/linux/linux-6.6/include/linux/
Ddevfreq.h3 * 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 …]
Ddevfreq-event.h3 * 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 …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-devfreq1 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 …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-class-devfreq1 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 …]
/kernel/linux/linux-6.6/Documentation/translations/zh_CN/doc-guide/
Dcontributing.rst47 ./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 …]
/kernel/linux/linux-6.6/drivers/powercap/
Ddtpm_devfreq.c7 * 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()
51 struct devfreq *devfreq = dtpm_devfreq->devfreq; in set_pd_power_limit() local
52 struct device *dev = devfreq->dev.parent; in set_pd_power_limit()
88 struct devfreq *devfreq = dtpm_devfreq->devfreq; in get_pd_power_uw() local
89 struct device *dev = devfreq->dev.parent; in get_pd_power_uw()
96 mutex_lock(&devfreq->lock); in get_pd_power_uw()
[all …]
/kernel/linux/linux-6.6/include/trace/events/
Ddevfreq.h3 #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))
26 __assign_str(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),
42 TP_ARGS(devfreq),
[all …]
/kernel/linux/linux-6.6/drivers/thermal/
Ddevfreq_cooling.c4 * 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 …]

1234567