Searched refs:dtpm (Results 1 – 7 of 7) sorted by relevance
| /Linux-v5.15/drivers/powercap/ |
| D | dtpm.c | 35 static struct dtpm *root; 49 struct dtpm *dtpm = to_dtpm(pcz); in get_max_power_range_uw() local 52 *max_power_uw = dtpm->power_max - dtpm->power_min; in get_max_power_range_uw() 58 static int __get_power_uw(struct dtpm *dtpm, u64 *power_uw) in __get_power_uw() argument 60 struct dtpm *child; in __get_power_uw() 64 if (dtpm->ops) { in __get_power_uw() 65 *power_uw = dtpm->ops->get_power_uw(dtpm); in __get_power_uw() 71 list_for_each_entry(child, &dtpm->children, sibling) { in __get_power_uw() 83 struct dtpm *dtpm = to_dtpm(pcz); in get_power_uw() local 87 ret = __get_power_uw(dtpm, power_uw); in get_power_uw() [all …]
|
| D | dtpm_cpu.c | 26 static struct dtpm *__parent; 28 static DEFINE_PER_CPU(struct dtpm *, dtpm_per_cpu); 39 static int power_add(struct dtpm *dtpm, struct em_perf_domain *em) in power_add() argument 45 power_min += dtpm->power_min; in power_add() 49 power_max += dtpm->power_max; in power_add() 51 return dtpm_update_power(dtpm, power_min, power_max); in power_add() 58 static int power_sub(struct dtpm *dtpm, struct em_perf_domain *em) in power_sub() argument 64 power_min = dtpm->power_min - power_min; in power_sub() 68 power_max = dtpm->power_max - power_max; in power_sub() 70 return dtpm_update_power(dtpm, power_min, power_max); in power_sub() [all …]
|
| D | Makefile | 2 obj-$(CONFIG_DTPM) += dtpm.o
|
| /Linux-v5.15/include/linux/ |
| D | dtpm.h | 15 struct dtpm { struct 17 struct dtpm *parent; argument 30 u64 (*set_power_uw)(struct dtpm *, u64); argument 31 u64 (*get_power_uw)(struct dtpm *); 32 void (*release)(struct dtpm *); 40 struct dtpm *parent; 60 static inline struct dtpm *to_dtpm(struct powercap_zone *zone) in to_dtpm() 62 return container_of(zone, struct dtpm, zone); in to_dtpm() 65 int dtpm_update_power(struct dtpm *dtpm, u64 power_min, u64 power_max); 69 struct dtpm *dtpm_alloc(struct dtpm_ops *ops); [all …]
|
| /Linux-v5.15/Documentation/power/powercap/ |
| D | dtpm.rst | 186 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-v5.15/Documentation/power/ |
| D | index.rst | 33 powercap/dtpm
|
| /Linux-v5.15/ |
| D | MAINTAINERS | 15008 F: drivers/powercap/dtpm* 15009 F: include/linux/dtpm.h
|