Home
last modified time | relevance | path

Searched refs:dtpm (Results 1 – 8 of 8) sorted by relevance

/linux/include/linux/
H A Ddtpm.h15 struct dtpm { struct
17 struct dtpm *parent; argument
29 u64 (*set_power_uw)(struct dtpm *, u64); argument
30 u64 (*get_power_uw)(struct dtpm *);
31 int (*update_power_uw)(struct dtpm *);
32 void (*release)(struct dtpm *);
41 int (*setup)(struct dtpm *, struct device_node *);
55 static inline struct dtpm *to_dtpm(struct powercap_zone *zone) in to_dtpm()
57 return container_of(zone, struct dtpm, zone); in to_dtpm()
60 int dtpm_update_power(struct dtpm *dtpm);
[all …]
/linux/drivers/powercap/
H A Ddtpm_devfreq.c24 struct dtpm dtpm; member
29 static struct dtpm_devfreq *to_dtpm_devfreq(struct dtpm *dtpm) in to_dtpm_devfreq() argument
31 return container_of(dtpm, struct dtpm_devfreq, dtpm); in to_dtpm_devfreq()
34 static int update_pd_power_uw(struct dtpm *dtpm) in update_pd_power_uw() argument
36 struct dtpm_devfreq *dtpm_devfreq = to_dtpm_devfreq(dtpm); in update_pd_power_uw()
45 dtpm->power_min = table[0].power; in update_pd_power_uw()
47 dtpm->power_max = table[pd->nr_perf_states - 1].power; in update_pd_power_uw()
53 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument
55 struct dtpm_devfreq *dtpm_devfreq = to_dtpm_devfreq(dtpm); in set_pd_power_limit()
93 static u64 get_pd_power_uw(struct dtpm *dtpm) in get_pd_power_uw() argument
[all …]
H A Ddtpm_cpu.c29 struct dtpm dtpm; member
36 static struct dtpm_cpu *to_dtpm_cpu(struct dtpm *dtpm) in to_dtpm_cpu() argument
38 return container_of(dtpm, struct dtpm_cpu, dtpm); in to_dtpm_cpu()
41 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument
43 struct dtpm_cpu *dtpm_cpu = to_dtpm_cpu(dtpm); in set_pd_power_limit()
88 static u64 get_pd_power_uw(struct dtpm *dtpm) in get_pd_power_uw() argument
90 struct dtpm_cpu *dtpm_cpu = to_dtpm_cpu(dtpm); in get_pd_power_uw()
121 static int update_pd_power_uw(struct dtpm *dtpm) in update_pd_power_uw() argument
123 struct dtpm_cpu *dtpm_cpu = to_dtpm_cpu(dtpm); in update_pd_power_uw()
133 dtpm->power_min = table[0].power; in update_pd_power_uw()
[all …]
H A DMakefile2 obj-$(CONFIG_DTPM) += dtpm.o
/linux/Documentation/power/powercap/
H A Ddtpm.rst186 The nodes of the DTPM tree are described with dtpm structure. The
189 * Allocate the dtpm node
190 * Set the power number of the dtpm node
191 * Register the dtpm node
193 The registration of the dtpm node is done with the powercap
206 * dtpm_alloc() : Allocate and initialize a dtpm structure
208 * dtpm_register() : Add the dtpm node to the tree
210 * dtpm_unregister() : Remove the dtpm node from the tree
212 * dtpm_update_power() : Update the power characteristics of the dtpm node
/linux/drivers/soc/rockchip/
H A DMakefile7 obj-$(CONFIG_ROCKCHIP_DTPM) += dtpm.o
/linux/Documentation/translations/zh_CN/power/
H A Dindex.rst43 * powercap/dtpm
/linux/
H A DMAINTAINERS8911 F: drivers/powercap/dtpm*
8912 F: include/linux/dtpm.h