Searched refs:dtpm (Results 1 – 10 of 10) sorted by relevance
| /linux-6.15/drivers/powercap/ |
| H A D | dtpm.c | 52 struct dtpm *dtpm = to_dtpm(pcz); in get_max_power_range_uw() local 105 struct dtpm *parent = dtpm->parent; in __dtpm_sub_power() 117 struct dtpm *parent = dtpm->parent; in __dtpm_add_power() 171 struct dtpm *dtpm = to_dtpm(pcz); in dtpm_release_zone() local 183 dtpm->ops->release(dtpm); in dtpm_release_zone() 227 dtpm->power_limit = dtpm->ops->set_power_uw(dtpm, power_limit); in __set_power_limit_uw() 282 dtpm->zone.name, dtpm->power_limit, dtpm->power_max); in set_power_limit_uw() 404 if (dtpm->ops && !dtpm->ops->update_power_uw(dtpm)) { in dtpm_register() 410 dtpm->zone.name, dtpm->power_min, dtpm->power_max); in dtpm_register() 418 struct dtpm *dtpm; in dtpm_setup_virtual() local [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 45 dtpm->power_min = table[0].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 93 static u64 get_pd_power_uw(struct dtpm *dtpm) in get_pd_power_uw() argument 130 static void pd_release(struct dtpm *dtpm) in pd_release() argument 186 dtpm_update_power(&dtpm_devfreq->dtpm); in __dtpm_devfreq_setup() 191 dtpm_unregister(&dtpm_devfreq->dtpm); in __dtpm_devfreq_setup() [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 88 static u64 get_pd_power_uw(struct dtpm *dtpm) in get_pd_power_uw() argument 119 static int update_pd_power_uw(struct dtpm *dtpm) in update_pd_power_uw() argument 131 dtpm->power_min = table[0].power; in update_pd_power_uw() 132 dtpm->power_min *= nr_cpus; in update_pd_power_uw() 135 dtpm->power_max *= nr_cpus; in update_pd_power_uw() 142 static void pd_release(struct dtpm *dtpm) in pd_release() argument [all …]
|
| H A D | Makefile | 2 obj-$(CONFIG_DTPM) += dtpm.o
|
| /linux-6.15/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 *); 57 return container_of(zone, struct dtpm, zone); in to_dtpm() 60 int dtpm_update_power(struct dtpm *dtpm); 64 void dtpm_init(struct dtpm *dtpm, struct dtpm_ops *ops); 66 void dtpm_unregister(struct dtpm *dtpm); [all …]
|
| /linux-6.15/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-6.15/drivers/soc/rockchip/ |
| H A D | Makefile | 7 obj-$(CONFIG_ROCKCHIP_DTPM) += dtpm.o
|
| /linux-6.15/Documentation/power/ |
| H A D | index.rst | 33 powercap/dtpm
|
| /linux-6.15/Documentation/translations/zh_CN/power/ |
| H A D | index.rst | 43 * powercap/dtpm
|
| /linux-6.15/ |
| H A D | MAINTAINERS | 8323 F: drivers/powercap/dtpm* 8324 F: include/linux/dtpm.h
|