Searched refs:dtpm (Results 1 – 10 of 10) sorted by relevance
/linux-6.3-rc2/drivers/powercap/ |
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 …]
|
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 41 dtpm->power_min = pd->table[0].power; in update_pd_power_uw() 50 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument 90 static u64 get_pd_power_uw(struct dtpm *dtpm) in get_pd_power_uw() argument 123 static void pd_release(struct dtpm *dtpm) in pd_release() argument 179 dtpm_update_power(&dtpm_devfreq->dtpm); in __dtpm_devfreq_setup() 184 dtpm_unregister(&dtpm_devfreq->dtpm); in __dtpm_devfreq_setup() [all …]
|
A D | dtpm_cpu.c | 30 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 88 static u64 get_pd_power_uw(struct dtpm *dtpm) in get_pd_power_uw() argument 114 static int update_pd_power_uw(struct dtpm *dtpm) in update_pd_power_uw() argument 126 dtpm->power_min *= nr_cpus; in update_pd_power_uw() 130 dtpm->power_max *= nr_cpus; in update_pd_power_uw() 135 static void pd_release(struct dtpm *dtpm) in pd_release() argument 226 dtpm_unregister(&dtpm_cpu->dtpm); in __dtpm_cpu_setup() [all …]
|
A D | Makefile | 2 obj-$(CONFIG_DTPM) += dtpm.o
|
/linux-6.3-rc2/include/linux/ |
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.3-rc2/Documentation/power/powercap/ |
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.3-rc2/drivers/soc/rockchip/ |
A D | Makefile | 8 obj-$(CONFIG_ROCKCHIP_DTPM) += dtpm.o
|
/linux-6.3-rc2/Documentation/power/ |
A D | index.rst | 33 powercap/dtpm
|
/linux-6.3-rc2/Documentation/translations/zh_CN/power/ |
A D | index.rst | 43 * powercap/dtpm
|
/linux-6.3-rc2/ |
A D | MAINTAINERS | 16727 F: drivers/powercap/dtpm* 16728 F: include/linux/dtpm.h
|
Completed in 28 milliseconds