Home
last modified time | relevance | path

Searched refs:devfreq (Results 1 – 25 of 79) sorted by relevance

1234

/linux/drivers/devfreq/
A Ddevfreq.c786 struct devfreq *devfreq; in devfreq_add_device() local
1046 struct devfreq *devfreq; in devfreq_get_devfreq_by_node() local
1076 struct devfreq *devfreq; in devfreq_get_devfreq_by_phandle() local
1205 struct devfreq *devfreq; in devfreq_suspend() local
1226 struct devfreq *devfreq; in devfreq_resume() local
1246 struct devfreq *devfreq; in devfreq_add_governor() local
1337 struct devfreq *devfreq; in devfreq_remove_governor() local
1916 struct devfreq *devfreq; in devfreq_summary_show() local
2185 struct devfreq *devfreq; member
2206 struct devfreq *devfreq, in devm_devfreq_register_notifier() argument
[all …]
A Dgovernor_passive.c15 static int devfreq_passive_get_target_freq(struct devfreq *devfreq, in devfreq_passive_get_target_freq() argument
20 struct devfreq *parent_devfreq = (struct devfreq *)p_data->parent; in devfreq_passive_get_target_freq()
48 if (!devfreq->profile || !devfreq->profile->freq_table in devfreq_passive_get_target_freq()
64 devfreq->opp_table, p_opp); in devfreq_passive_get_target_freq()
107 struct devfreq *devfreq = (struct devfreq *)data->this; in devfreq_passive_notifier_call() local
108 struct devfreq *parent = (struct devfreq *)data->parent; in devfreq_passive_notifier_call()
125 mutex_unlock(&devfreq->lock); in devfreq_passive_notifier_call()
128 dev_warn(&devfreq->dev, in devfreq_passive_notifier_call()
134 static int devfreq_passive_event_handler(struct devfreq *devfreq, in devfreq_passive_event_handler() argument
139 struct devfreq *parent = (struct devfreq *)p_data->parent; in devfreq_passive_event_handler()
[all …]
A Dgovernor_userspace.c37 struct devfreq *devfreq = to_devfreq(dev); in set_freq_store() local
42 mutex_lock(&devfreq->lock); in set_freq_store()
43 data = devfreq->data; in set_freq_store()
58 struct devfreq *devfreq = to_devfreq(dev); in set_freq_show() local
63 data = devfreq->data; in set_freq_show()
83 static int userspace_init(struct devfreq *devfreq) in userspace_init() argument
94 devfreq->data = data; in userspace_init()
101 static void userspace_exit(struct devfreq *devfreq) in userspace_exit() argument
110 kfree(devfreq->data); in userspace_exit()
111 devfreq->data = NULL; in userspace_exit()
[all …]
A Dgovernor.h18 #define to_devfreq(DEV) container_of((DEV), struct devfreq, dev)
73 int (*get_target_freq)(struct devfreq *this, unsigned long *freq);
74 int (*event_handler)(struct devfreq *devfreq,
78 void devfreq_monitor_start(struct devfreq *devfreq);
79 void devfreq_monitor_stop(struct devfreq *devfreq);
80 void devfreq_monitor_suspend(struct devfreq *devfreq);
81 void devfreq_monitor_resume(struct devfreq *devfreq);
82 void devfreq_update_interval(struct devfreq *devfreq, unsigned int *delay);
90 int devfreq_update_status(struct devfreq *devfreq, unsigned long freq);
91 int devfreq_update_target(struct devfreq *devfreq, unsigned long freq);
[all …]
A Dtegra30-devfreq.c180 struct devfreq *devfreq; member
392 update_devfreq(tegra->devfreq); in actmon_thread_isr()
429 update_devfreq(tegra->devfreq); in tegra_actmon_delayed_update()
693 static int tegra_governor_get_target(struct devfreq *devfreq, in tegra_governor_get_target() argument
707 stat = &devfreq->last_status; in tegra_governor_get_target()
729 static int tegra_governor_event_handler(struct devfreq *devfreq, in tegra_governor_event_handler() argument
740 tegra->devfreq = devfreq; in tegra_governor_event_handler()
750 devfreq_monitor_stop(devfreq); in tegra_governor_event_handler()
829 struct devfreq *devfreq; in tegra_devfreq_probe() local
925 if (IS_ERR(devfreq)) in tegra_devfreq_probe()
[all …]
A Dgovernor_simpleondemand.c18 static int devfreq_simple_ondemand_func(struct devfreq *df, in devfreq_simple_ondemand_func()
87 static int devfreq_simple_ondemand_handler(struct devfreq *devfreq, in devfreq_simple_ondemand_handler() argument
92 devfreq_monitor_start(devfreq); in devfreq_simple_ondemand_handler()
96 devfreq_monitor_stop(devfreq); in devfreq_simple_ondemand_handler()
100 devfreq_update_interval(devfreq, (unsigned int *)data); in devfreq_simple_ondemand_handler()
104 devfreq_monitor_suspend(devfreq); in devfreq_simple_ondemand_handler()
108 devfreq_monitor_resume(devfreq); in devfreq_simple_ondemand_handler()
A D.built-in.a.cmd1devfreq/built-in.a := echo >/dev/null; rm -f drivers/devfreq/built-in.a; /usr/bin/ccache /home/tes…
A Dgovernor_performance.c13 static int devfreq_performance_func(struct devfreq *df, in devfreq_performance_func()
24 static int devfreq_performance_handler(struct devfreq *devfreq, in devfreq_performance_handler() argument
30 mutex_lock(&devfreq->lock); in devfreq_performance_handler()
31 ret = update_devfreq(devfreq); in devfreq_performance_handler()
32 mutex_unlock(&devfreq->lock); in devfreq_performance_handler()
A Dgovernor_powersave.c13 static int devfreq_powersave_func(struct devfreq *df, in devfreq_powersave_func()
24 static int devfreq_powersave_handler(struct devfreq *devfreq, in devfreq_powersave_handler() argument
30 mutex_lock(&devfreq->lock); in devfreq_powersave_handler()
31 ret = update_devfreq(devfreq); in devfreq_powersave_handler()
32 mutex_unlock(&devfreq->lock); in devfreq_powersave_handler()
A Dexynos-bus.c29 struct devfreq *devfreq; member
315 bus->devfreq = devm_devfreq_add_device(dev, profile, in exynos_bus_profile_init()
318 if (IS_ERR(bus->devfreq)) { in exynos_bus_profile_init()
320 return PTR_ERR(bus->devfreq); in exynos_bus_profile_init()
324 ret = devm_devfreq_register_opp_notifier(dev, bus->devfreq); in exynos_bus_profile_init()
360 struct devfreq *parent_devfreq; in exynos_bus_profile_init_passive()
380 if (IS_ERR(bus->devfreq)) { in exynos_bus_profile_init_passive()
383 return PTR_ERR(bus->devfreq); in exynos_bus_profile_init_passive()
450 max_state = bus->devfreq->profile->max_state; in exynos_bus_probe()
451 min_freq = (bus->devfreq->profile->freq_table[0] / 1000); in exynos_bus_probe()
[all …]
/linux/drivers/gpu/drm/lima/
A Dlima_devfreq.c58 struct lima_devfreq *devfreq = &ldev->devfreq; in lima_devfreq_get_dev_status() local
92 struct lima_devfreq *devfreq = &ldev->devfreq; in lima_devfreq_fini() local
99 if (devfreq->devfreq) { in lima_devfreq_fini()
101 devfreq->devfreq = NULL; in lima_devfreq_fini()
109 struct devfreq *devfreq; in lima_devfreq_init() local
162 ldevfreq->devfreq = devfreq; in lima_devfreq_init()
177 if (!devfreq->devfreq) in lima_devfreq_record_busy()
193 if (!devfreq->devfreq) in lima_devfreq_record_idle()
209 if (!devfreq->devfreq) in lima_devfreq_resume()
218 return devfreq_resume_device(devfreq->devfreq); in lima_devfreq_resume()
[all …]
A Dlima_devfreq.h11 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/
A Ddevfreq.h245 struct devfreq *devfreq);
247 struct devfreq *devfreq);
249 struct devfreq *devfreq);
251 struct devfreq *devfreq);
259 struct devfreq *devfreq,
263 struct devfreq *devfreq,
346 struct devfreq *devfreq) in devm_devfreq_remove_device() argument
370 struct devfreq *devfreq) in devfreq_register_opp_notifier() argument
376 struct devfreq *devfreq) in devfreq_unregister_opp_notifier() argument
382 struct devfreq *devfreq) in devm_devfreq_register_opp_notifier() argument
[all …]
A Ddevfreq_cooling.h38 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/
A 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.
75 ./drivers/devfreq/devfreq.c:1818: warning: bad line:
84 drivers/devfreq/devfreq.c | 4 ++--
87 diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
89 --- a/drivers/devfreq/devfreq.c
90 +++ b/drivers/devfreq/devfreq.c
98 * @devfreq: The devfreq object.
[all …]
/linux/Documentation/ABI/testing/
A Dsysfs-class-devfreq1 What: /sys/class/devfreq/.../
8 name of device using devfreq.
10 What: /sys/class/devfreq/.../name
15 of the corresponding devfreq object.
17 What: /sys/class/devfreq/.../governor
24 What: /sys/class/devfreq/.../cur_freq
31 devfreq driver.
40 What: /sys/class/devfreq/.../trans_stat
71 What: /sys/class/devfreq/.../min_freq
80 What: /sys/class/devfreq/.../max_freq
[all …]
A Dsysfs-class-devfreq-event1 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/gpu/drm/msm/
A Dmsm_gpu_devfreq.c33 if (gpu->devfreq.idle_freq) { in msm_devfreq_target()
34 gpu->devfreq.idle_freq = *freq; in msm_devfreq_target()
56 if (gpu->devfreq.idle_freq) in get_freq()
57 return gpu->devfreq.idle_freq; in get_freq()
76 gpu->devfreq.time = time; in msm_devfreq_get_dev_status()
121 if (IS_ERR(df->devfreq)) { in msm_devfreq_init()
123 df->devfreq = NULL; in msm_devfreq_init()
150 devfreq_resume_device(gpu->devfreq.devfreq); in msm_devfreq_resume()
155 devfreq_suspend_device(gpu->devfreq.devfreq); in msm_devfreq_suspend()
165 if (!df->devfreq) in msm_devfreq_active()
[all …]
/linux/include/trace/events/
A Ddevfreq.h3 #define TRACE_SYSTEM devfreq
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;
40 TP_PROTO(struct devfreq *devfreq),
42 TP_ARGS(devfreq),
49 __string(dev_name, dev_name(&devfreq->dev))
53 __entry->freq = devfreq->previous_freq;
[all …]
/linux/drivers/gpu/drm/panfrost/
A Dpanfrost_devfreq.c91 struct devfreq *devfreq; in panfrost_devfreq_init() local
147 if (IS_ERR(devfreq)) { in panfrost_devfreq_init()
149 return PTR_ERR(devfreq); in panfrost_devfreq_init()
151 pfdevfreq->devfreq = devfreq; in panfrost_devfreq_init()
153 cooling = devfreq_cooling_em_register(devfreq, NULL); in panfrost_devfreq_init()
176 if (!pfdevfreq->devfreq) in panfrost_devfreq_resume()
181 devfreq_resume_device(pfdevfreq->devfreq); in panfrost_devfreq_resume()
188 if (!pfdevfreq->devfreq) in panfrost_devfreq_suspend()
191 devfreq_suspend_device(pfdevfreq->devfreq); in panfrost_devfreq_suspend()
198 if (!pfdevfreq->devfreq) in panfrost_devfreq_record_busy()
[all …]
A Dpanfrost_devfreq.h11 struct devfreq;
17 struct devfreq *devfreq; member
39 void panfrost_devfreq_record_busy(struct panfrost_devfreq *devfreq);
40 void panfrost_devfreq_record_idle(struct panfrost_devfreq *devfreq);
/linux/drivers/thermal/
A Ddevfreq_cooling.c51 struct devfreq *devfreq; member
86 struct devfreq *df = dfc->devfreq; in devfreq_cooling_set_cur_state()
134 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage()
180 struct devfreq *df = dfc->devfreq; in devfreq_cooling_get_requested_power()
255 struct devfreq *df = dfc->devfreq; in devfreq_cooling_power2state()
313 struct devfreq *df = dfc->devfreq; in devfreq_cooling_gen_tables()
368 dfc->devfreq = df; in of_devfreq_cooling_register_power()
444 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df) in of_devfreq_cooling_register()
454 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df) in devfreq_cooling_register()
477 devfreq_cooling_em_register(struct devfreq *df, in devfreq_cooling_em_register()
[all …]
/linux/Documentation/driver-api/
A Ddevfreq.rst23 :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/devfreq/event/
A DKconfig5 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/Documentation/doc-guide/
A Dcontributing.rst58 ./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.
90 ./drivers/devfreq/devfreq.c:1818: warning: bad line:
99 drivers/devfreq/devfreq.c | 4 ++--
102 diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
104 --- a/drivers/devfreq/devfreq.c
105 +++ b/drivers/devfreq/devfreq.c
113 * @devfreq: The devfreq object.
[all …]

Completed in 40 milliseconds

1234