Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/powercap/
Ddtpm.c38 static struct dtpm *root;
52 struct dtpm *dtpm = to_dtpm(pcz); in get_max_power_range_uw() local
54 *max_power_uw = dtpm->power_max - dtpm->power_min; in get_max_power_range_uw()
59 static int __get_power_uw(struct dtpm *dtpm, u64 *power_uw) in __get_power_uw() argument
61 struct dtpm *child; in __get_power_uw()
65 if (dtpm->ops) { in __get_power_uw()
66 *power_uw = dtpm->ops->get_power_uw(dtpm); in __get_power_uw()
72 list_for_each_entry(child, &dtpm->children, sibling) { in __get_power_uw()
87 static void __dtpm_rebalance_weight(struct dtpm *dtpm) in __dtpm_rebalance_weight() argument
89 struct dtpm *child; in __dtpm_rebalance_weight()
[all …]
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()
41 dtpm->power_min = pd->table[0].power; in update_pd_power_uw()
42 dtpm->power_min *= MICROWATT_PER_MILLIWATT; in update_pd_power_uw()
44 dtpm->power_max = pd->table[pd->nr_perf_states - 1].power; in update_pd_power_uw()
45 dtpm->power_max *= MICROWATT_PER_MILLIWATT; in update_pd_power_uw()
50 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument
[all …]
Ddtpm_cpu.c30 struct dtpm dtpm; member
37 static struct dtpm_cpu *to_dtpm_cpu(struct dtpm *dtpm) in to_dtpm_cpu() argument
39 return container_of(dtpm, struct dtpm_cpu, dtpm); in to_dtpm_cpu()
42 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument
44 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()
114 static int update_pd_power_uw(struct dtpm *dtpm) in update_pd_power_uw() argument
116 struct dtpm_cpu *dtpm_cpu = to_dtpm_cpu(dtpm); in update_pd_power_uw()
124 dtpm->power_min = em->table[0].power; in update_pd_power_uw()
[all …]
DMakefile2 obj-$(CONFIG_DTPM) += dtpm.o
/Linux-v6.6/include/linux/
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-v6.6/Documentation/power/powercap/
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-v6.6/drivers/soc/rockchip/
DMakefile7 obj-$(CONFIG_ROCKCHIP_DTPM) += dtpm.o
/Linux-v6.6/Documentation/power/
Dindex.rst33 powercap/dtpm
/Linux-v6.6/Documentation/translations/zh_CN/power/
Dindex.rst43 * powercap/dtpm
/Linux-v6.6/
DMAINTAINERS7339 F: drivers/powercap/dtpm*
7340 F: include/linux/dtpm.h