Searched refs:dtpm (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/powercap/ |
H A D | dtpm.c | 38 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 …]
|
H A D | dtpm_devfreq.c | 24 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 D | dtpm_cpu.c | 29 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() 119 static int update_pd_power_uw(struct dtpm *dtpm) in update_pd_power_uw() argument 121 struct dtpm_cpu *dtpm_cpu = to_dtpm_cpu(dtpm); in update_pd_power_uw() 131 dtpm->power_min = table[0].power; in update_pd_power_uw() [all …]
|
H A D | Makefile | 2 obj-$(CONFIG_DTPM) += dtpm.o
|
/linux/include/linux/ |
H A D | dtpm.h | 15 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/Documentation/power/powercap/ |
H A 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/drivers/soc/rockchip/ |
H A D | Makefile | 7 obj-$(CONFIG_ROCKCHIP_DTPM) += dtpm.o
|
/linux/Documentation/power/ |
H A D | index.rst | 33 powercap/dtpm
|
/linux/Documentation/translations/zh_CN/power/ |
H A D | index.rst | 43 * powercap/dtpm
|
/linux/ |
H A D | MAINTAINERS | 8154 F: drivers/powercap/dtpm* 8155 F: include/linux/dtpm.h
|