Home
last modified time | relevance | path

Searched refs:devfreq (Results 1 - 25 of 70) sorted by relevance

123

/device/soc/rockchip/common/sdk_linux/drivers/devfreq/
H A 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_devfre
85 find_available_min_freq(struct devfreq *devfreq) find_available_min_freq() argument
100 find_available_max_freq(struct devfreq *devfreq) find_available_max_freq() argument
123 get_freq_range(struct devfreq *devfreq, unsigned long *min_freq, unsigned long *max_freq) get_freq_range() argument
165 devfreq_get_freq_level(struct devfreq *devfreq, unsigned long freq) devfreq_get_freq_level() argument
178 set_freq_table(struct devfreq *devfreq) set_freq_table() argument
218 devfreq_update_status(struct devfreq *devfreq, unsigned long freq) devfreq_update_status() argument
328 devfreq_notify_transition(struct devfreq *devfreq, struct devfreq_freqs *freqs, unsigned int state) devfreq_notify_transition() argument
349 devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq, u32 flags) devfreq_set_target() argument
397 update_devfreq(struct devfreq *devfreq) update_devfreq() argument
437 struct devfreq *devfreq = container_of(work, struct devfreq, work.work); devfreq_monitor() local
460 devfreq_monitor_start(struct devfreq *devfreq) devfreq_monitor_start() argument
491 devfreq_monitor_stop(struct devfreq *devfreq) devfreq_monitor_stop() argument
513 devfreq_monitor_suspend(struct devfreq *devfreq) devfreq_monitor_suspend() argument
541 devfreq_monitor_resume(struct devfreq *devfreq) devfreq_monitor_resume() argument
579 devfreq_update_interval(struct devfreq *devfreq, unsigned int *delay) devfreq_update_interval() argument
633 struct devfreq *devfreq = container_of(nb, struct devfreq, nb); devfreq_notifier_call() local
664 qos_notifier_call(struct devfreq *devfreq) qos_notifier_call() argument
704 struct devfreq *devfreq = to_devfreq(dev); devfreq_dev_release() local
747 devfreq_remove_device(struct devfreq *devfreq) devfreq_remove_device() argument
773 struct devfreq *devfreq; devfreq_add_device() local
961 struct devfreq **ptr, *devfreq; devm_devfreq_add_device() local
990 struct devfreq *devfreq; devfreq_get_devfreq_by_node() local
1020 struct devfreq *devfreq; devfreq_get_devfreq_by_phandle() local
1060 devm_devfreq_remove_device(struct device *dev, struct devfreq *devfreq) devm_devfreq_remove_device() argument
1074 devfreq_suspend_device(struct devfreq *devfreq) devfreq_suspend_device() argument
1114 devfreq_resume_device(struct devfreq *devfreq) devfreq_resume_device() argument
1156 struct devfreq *devfreq; devfreq_suspend() local
1178 struct devfreq *devfreq; devfreq_resume() local
1199 struct devfreq *devfreq; devfreq_add_governor() local
1254 struct devfreq *devfreq; devfreq_remove_governor() local
1748 struct devfreq *devfreq = to_devfreq(dev); load_show() local
1796 ATTRIBUTE_GROUPS(devfreq); global() variable
1810 struct devfreq *devfreq; devfreq_summary_show() local
1925 devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq) devfreq_register_opp_notifier() argument
1941 devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq) devfreq_unregister_opp_notifier() argument
1958 devm_devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq) devm_devfreq_register_opp_notifier() argument
1987 devm_devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq) devm_devfreq_unregister_opp_notifier() argument
1999 devfreq_register_notifier(struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) devfreq_register_notifier() argument
2025 devfreq_unregister_notifier(struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) devfreq_unregister_notifier() argument
2046 struct devfreq *devfreq; global() member
2066 devm_devfreq_register_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) devm_devfreq_register_notifier() argument
2100 devm_devfreq_unregister_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) devm_devfreq_unregister_notifier() argument
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A 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)
30 * @node: list node - contains registered devfreq governors
42 * @event_handler: Callback for devfreq core framework to notify events
44 * init and exit, opp changes out of devfreq, suspend
45 * and resume of per device devfreq during device idle.
47 * Note that the callbacks are called with devfreq
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/devfreq/
H A 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)
30 * @node: list node - contains registered devfreq governors
42 * @event_handler: Callback for devfreq core framework to notify events
44 * init and exit, opp changes out of devfreq, suspend
45 * and resume of per device devfreq during device idle.
47 * Note that the callbacks are called with devfreq
[all...]
H A Drockchip_dmc.c17 #include <linux/devfreq.h>
19 #include <linux/devfreq-event.h>
497 if (dmcfreq->info.devfreq) { in rockchip_dmcfreq_target()
498 struct devfreq *devfreq = dmcfreq->info.devfreq; in rockchip_dmcfreq_target() local
500 devfreq->last_status.current_frequency = *freq; in rockchip_dmcfreq_target()
561 static inline void reset_last_status(struct devfreq *devfreq) in reset_last_status() argument
563 devfreq in reset_last_status()
2312 struct devfreq *devfreq = dmcfreq->info.devfreq; rockchip_dmcfreq_update_target() local
2593 devfreq_dmc_ondemand_handler(struct devfreq *devfreq, unsigned int event, void *data) devfreq_dmc_ondemand_handler() argument
2865 struct devfreq *devfreq; rockchip_dmcfreq_add_devfreq() local
2924 struct devfreq *devfreq = dmcfreq->info.devfreq; rockchip_dmcfreq_add_interface() local
3046 model_static_power(struct devfreq *devfreq, unsigned long voltage) model_static_power() argument
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_devfreq.c16 #include <linux/devfreq.h>
109 if (mdev->devfreq) { in mali_devfreq_target()
110 mdev->devfreq->last_status.current_frequency = freq; in mali_devfreq_target()
151 memcpy(&mdev->devfreq->last_status, stat, sizeof(*stat)); in mali_devfreq_status()
186 MALI_DEBUG_PRINT(MALI_KERNEL_LEVEL_INFORMATOIN, ("mali devfreq table count %d\n", count)); in mali_devfreq_init_freq_table()
201 MALI_DEBUG_PRINT(MALI_KERNEL_LEVEL_INFORMATOIN, ("mali devfreq table array[%d] = %d\n", i, freq)); in mali_devfreq_init_freq_table()
215 struct devfreq_dev_profile *dp = mdev->devfreq->profile; in mali_devfreq_term_freq_table()
240 MALI_DEBUG_PRINT(MALI_KERNEL_LEVEL_INFORMATOIN, ("Init Mali devfreq\n")); in mali_devfreq_init()
264 mdev->devfreq = devfreq_add_device(mdev->dev, dp, "simple_ondemand", &ondemand_data); in mali_devfreq_init()
265 if (IS_ERR(mdev->devfreq)) { in mali_devfreq_init()
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_devfreq.c15 #include <linux/devfreq.h>
108 if (mdev->devfreq) in mali_devfreq_target()
109 mdev->devfreq->last_status.current_frequency = freq; in mali_devfreq_target()
153 memcpy(&mdev->devfreq->last_status, stat, sizeof(*stat)); in mali_devfreq_status()
188 MALI_DEBUG_PRINT(2, ("mali devfreq table count %d\n", count)); in mali_devfreq_init_freq_table()
202 MALI_DEBUG_PRINT(2, ("mali devfreq table array[%d] = %d\n", i, freq)); in mali_devfreq_init_freq_table()
216 struct devfreq_dev_profile *dp = mdev->devfreq->profile; in mali_devfreq_term_freq_table()
241 MALI_DEBUG_PRINT(2, ("Init Mali devfreq\n")); in mali_devfreq_init()
265 mdev->devfreq = devfreq_add_device(mdev->dev, dp, in mali_devfreq_init()
267 if (IS_ERR(mdev->devfreq)) { in mali_devfreq_init()
[all...]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/devfreq/
H A Dgovernor_utgard_ondemand.c21 #include <linux/devfreq.h>
52 static int devfreq_hisilicon_func(struct devfreq *df, unsigned long *freq) in devfreq_hisilicon_func()
148 static int devfreq_hisilicon_handler(struct devfreq *devfreq, unsigned int event, void *data) in devfreq_hisilicon_handler() argument
152 devfreq_monitor_start(devfreq); in devfreq_hisilicon_handler()
156 devfreq_monitor_stop(devfreq); in devfreq_hisilicon_handler()
160 devfreq_update_interval(devfreq, (unsigned int *)data); in devfreq_hisilicon_handler()
164 devfreq_monitor_suspend(devfreq); in devfreq_hisilicon_handler()
168 devfreq_monitor_resume(devfreq); in devfreq_hisilicon_handler()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_devfreq.c29 #include <linux/devfreq.h>
235 if (kbdev->devfreq) { in kbase_devfreq_target()
236 kbdev->devfreq->last_status.current_frequency = nominal_freq; in kbase_devfreq_target()
566 devfreq_resume_device(kbdev->devfreq); in kbase_devfreq_suspend_resume_worker()
568 devfreq_suspend_device(kbdev->devfreq); in kbase_devfreq_suspend_resume_worker()
592 dev_dbg(kbdev->dev, "Enqueuing devfreq req: %s\n", kbase_devfreq_req_type_name(work_type)); in kbase_devfreq_enqueue_work()
619 static unsigned long kbase_devfreq_get_static_power(struct devfreq *devfreq, unsigned long voltage) in kbase_devfreq_get_static_power() argument
621 struct device *dev = devfreq->dev.parent; in kbase_devfreq_get_static_power()
642 dev_err(kbdev->dev, "Clock not available for devfreq\ in kbase_devfreq_init()
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_devfreq.c28 #include <linux/devfreq.h>
151 if (kbdev->devfreq) in kbase_devfreq_target()
152 kbdev->devfreq->last_status.current_frequency = freq; in kbase_devfreq_target()
244 struct devfreq_dev_profile *dp = kbdev->devfreq->profile; in kbase_devfreq_term_freq_table()
339 dev_err(kbdev->dev, "Clock not available for devfreq\n"); in kbase_devfreq_init()
368 kbdev->devfreq = devfreq_add_device(kbdev->dev, dp, in kbase_devfreq_init()
370 if (IS_ERR(kbdev->devfreq)) { in kbase_devfreq_init()
372 return PTR_ERR(kbdev->devfreq); in kbase_devfreq_init()
377 dev_set_drvdata(&kbdev->devfreq->dev, kbdev); in kbase_devfreq_init()
379 err = devfreq_register_opp_notifier(kbdev->dev, kbdev->devfreq); in kbase_devfreq_init()
[all...]
H A Dmali_kbase_pm_ca_devfreq.c19 * A core availability policy implementing core mask selection from devfreq OPPs
31 &kbdev->pm.backend.ca_policy_data.devfreq; in kbase_devfreq_set_core_mask()
61 &kbdev->pm.backend.ca_policy_data.devfreq; in devfreq_init()
82 return kbdev->pm.backend.ca_policy_data.devfreq.cores_enabled; in devfreq_get_core_mask()
90 &kbdev->pm.backend.ca_policy_data.devfreq; in devfreq_update_core_status()
114 * The struct kbase_pm_ca_policy structure for the devfreq core availability
117 * This is the static structure that defines the devfreq core availability power
121 "devfreq", /* name */
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_devfreq.c26 #include <linux/devfreq.h>
146 if (kbdev->devfreq) { in kbase_devfreq_target()
147 kbdev->devfreq->last_status.current_frequency = freq; in kbase_devfreq_target()
236 struct devfreq_dev_profile *dp = kbdev->devfreq->profile; in kbase_devfreq_term_freq_table()
332 dev_err(kbdev->dev, "Clock not available for devfreq\n"); in kbase_devfreq_init()
361 kbdev->devfreq = devfreq_add_device(kbdev->dev, dp, "simple_ondemand", &ondemand_data); in kbase_devfreq_init()
362 if (IS_ERR(kbdev->devfreq)) { in kbase_devfreq_init()
364 return PTR_ERR(kbdev->devfreq); in kbase_devfreq_init()
369 dev_set_drvdata(&kbdev->devfreq->dev, kbdev); in kbase_devfreq_init()
371 err = devfreq_register_opp_notifier(kbdev->dev, kbdev->devfreq); in kbase_devfreq_init()
[all...]
H A Dmali_kbase_pm_ca_devfreq.c17 * A core availability policy implementing core mask selection from devfreq OPPs
28 struct kbasep_pm_ca_policy_devfreq *data = &kbdev->pm.backend.ca_policy_data.devfreq; in kbase_devfreq_set_core_mask()
56 struct kbasep_pm_ca_policy_devfreq *data = &kbdev->pm.backend.ca_policy_data.devfreq; in devfreq_init()
75 return kbdev->pm.backend.ca_policy_data.devfreq.cores_enabled; in devfreq_get_core_mask()
80 struct kbasep_pm_ca_policy_devfreq *data = &kbdev->pm.backend.ca_policy_data.devfreq; in devfreq_update_core_status()
104 * The struct kbase_pm_ca_policy structure for the devfreq core availability
107 * This is the static structure that defines the devfreq core availability power
111 "devfreq", /* name */
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_devfreq.c32 #include <linux/devfreq.h>
57 * used by devfreq.
59 * @freq: Nominal frequency in Hz passed by devfreq.
605 devfreq_resume_device(kbdev->devfreq); in kbase_devfreq_suspend_resume_worker()
607 devfreq_suspend_device(kbdev->devfreq); in kbase_devfreq_suspend_resume_worker()
633 dev_dbg(kbdev->dev, "Enqueuing devfreq req: %s\n", in kbase_devfreq_enqueue_work()
664 static unsigned long kbase_devfreq_get_static_power(struct devfreq *devfreq, in kbase_devfreq_get_static_power() argument
667 struct device *dev = devfreq->dev.parent; in kbase_devfreq_get_static_power()
687 dev_err(kbdev->dev, "Clock not available for devfreq\ in kbase_devfreq_init()
[all...]
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/
H A Dmpp_rkvenc.c14 #include <linux/devfreq.h>
192 struct devfreq *devfreq; member
799 struct devfreq *devfreq = enc->devfreq; in rkvenc_devfreq_target() local
800 struct devfreq_dev_status *stat = &devfreq->last_status; in rkvenc_devfreq_target()
871 static int devfreq_venc_ondemand_func(struct devfreq *df, unsigned long *freq) in devfreq_venc_ondemand_func()
884 static int devfreq_venc_ondemand_handler(struct devfreq *devfreq, unsigne argument
895 rkvenc_get_static_power(struct devfreq *devfreq, unsigned long voltage) rkvenc_get_static_power() argument
[all...]
H A Dmpp_rkvdec.c14 #include <linux/devfreq.h>
175 struct devfreq *devfreq; member
176 struct devfreq *parent_devfreq;
315 struct devfreq *devfreq = dec->devfreq; in devfreq_target() local
316 struct devfreq_dev_status *stat = &devfreq->last_status; in devfreq_target()
389 struct devfreq *devfreq in devfreq_get_dev_status() local
402 model_static_power(struct devfreq *devfreq, unsigned long voltage) model_static_power() argument
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/
H A Dmpp_rkvenc.c14 #include <linux/devfreq.h>
36 #include "../../../devfreq/governor.h"
196 struct devfreq *devfreq; member
843 struct devfreq *devfreq = enc->devfreq; in rkvenc_devfreq_target() local
844 struct devfreq_dev_status *stat = &devfreq->last_status; in rkvenc_devfreq_target()
917 static int devfreq_venc_ondemand_func(struct devfreq *df, unsigned long *freq) in devfreq_venc_ondemand_func()
929 static int devfreq_venc_ondemand_handler(struct devfreq *devfre argument
941 rkvenc_get_static_power(struct devfreq *devfreq, unsigned long voltage) rkvenc_get_static_power() argument
[all...]
H A Dmpp_rkvdec.c14 #include <linux/devfreq.h>
181 struct devfreq *devfreq; member
182 struct devfreq *parent_devfreq;
333 struct devfreq *devfreq = dec->devfreq; in devfreq_target() local
334 struct devfreq_dev_status *stat = &devfreq->last_status; in devfreq_target()
409 struct devfreq *devfreq in devfreq_get_dev_status() local
423 model_static_power(struct devfreq *devfreq, unsigned long voltage) model_static_power() argument
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/tl/
H A Dmali_kbase_timeline.c157 struct devfreq *devfreq = kbdev->devfreq; in kbase_tlstream_current_devfreq_target() local
159 /* Devfreq initialization failure isn't a fatal error, so devfreq might in kbase_tlstream_current_devfreq_target()
162 if (devfreq) { in kbase_tlstream_current_devfreq_target()
165 mutex_lock(&devfreq->lock); in kbase_tlstream_current_devfreq_target()
169 cur_freq = devfreq->last_status.current_frequency; in kbase_tlstream_current_devfreq_target()
172 mutex_unlock(&devfreq->lock); in kbase_tlstream_current_devfreq_target()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tl/
H A Dmali_kbase_timeline.c171 struct devfreq *devfreq = kbdev->devfreq; in kbase_tlstream_current_devfreq_target() local
173 /* Devfreq initialization failure isn't a fatal error, so devfreq might in kbase_tlstream_current_devfreq_target()
176 if (devfreq) { in kbase_tlstream_current_devfreq_target()
179 mutex_lock(&devfreq->lock); in kbase_tlstream_current_devfreq_target()
180 cur_freq = devfreq->last_status.current_frequency; in kbase_tlstream_current_devfreq_target()
182 mutex_unlock(&devfreq->lock); in kbase_tlstream_current_devfreq_target()
/device/soc/rockchip/common/sdk_linux/include/soc/rockchip/
H A Drockchip_dmc.h16 #include <linux/devfreq.h>
49 struct devfreq *devfreq; member
/device/soc/rockchip/rk3588/kernel/include/soc/rockchip/
H A Drockchip_dmc.h16 #include <linux/devfreq.h>
49 struct devfreq *devfreq; member
/device/soc/rockchip/common/vendor/drivers/devfreq/
H A Drockchip_dmc.c17 #include <linux/devfreq.h>
19 #include <linux/devfreq-event.h>
494 if (dmcfreq->info.devfreq) { in rockchip_dmcfreq_target()
495 struct devfreq *devfreq = dmcfreq->info.devfreq; in rockchip_dmcfreq_target() local
497 devfreq->last_status.current_frequency = *freq; in rockchip_dmcfreq_target()
555 static inline void reset_last_status(struct devfreq *devfreq) in reset_last_status() argument
557 devfreq in reset_last_status()
2157 struct devfreq *devfreq = dmcfreq->info.devfreq; rockchip_dmcfreq_update_target() local
2437 devfreq_dmc_ondemand_handler(struct devfreq *devfreq, unsigned int event, void *data) devfreq_dmc_ondemand_handler() argument
2707 struct devfreq *devfreq; rockchip_dmcfreq_add_devfreq() local
2765 struct devfreq *devfreq = dmcfreq->info.devfreq; rockchip_dmcfreq_add_interface() local
2884 model_static_power(struct devfreq *devfreq, unsigned long voltage) model_static_power() argument
[all...]
H A Drockchip_dmc_common.c139 mutex_lock(&common_info->devfreq->lock); in rockchip_dmcfreq_vop_bandwidth_update()
140 update_devfreq(common_info->devfreq); in rockchip_dmcfreq_vop_bandwidth_update()
141 mutex_unlock(&common_info->devfreq->lock); in rockchip_dmcfreq_vop_bandwidth_update()
171 MODULE_DESCRIPTION("rockchip dmcfreq driver with devfreq framework");
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_osk_mali.h37 struct devfreq *devfreq; member
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
H A Dmali_osk_mali.h38 struct devfreq *devfreq; member

Completed in 23 milliseconds

123