Lines Matching refs:powercap_zone
124 static int sysfs_powercap_get64_val(struct powercap_zone *zone, in sysfs_powercap_get64_val()
146 int powercap_get_max_energy_range_uj(struct powercap_zone *zone, uint64_t *val) in powercap_get_max_energy_range_uj()
151 int powercap_get_energy_uj(struct powercap_zone *zone, uint64_t *val) in powercap_get_energy_uj()
156 int powercap_get_max_power_range_uw(struct powercap_zone *zone, uint64_t *val) in powercap_get_max_power_range_uw()
161 int powercap_get_power_uw(struct powercap_zone *zone, uint64_t *val) in powercap_get_power_uw()
166 int powercap_zone_get_enabled(struct powercap_zone *zone, int *mode) in powercap_zone_get_enabled()
181 int powercap_zone_set_enabled(struct powercap_zone *zone, int mode) in powercap_zone_set_enabled()
188 int powercap_read_zone(struct powercap_zone *zone) in powercap_read_zone()
193 struct powercap_zone *child_zone; in powercap_read_zone()
231 child_zone = calloc(1, sizeof(struct powercap_zone)); in powercap_read_zone()
262 struct powercap_zone *powercap_init_zones(void) in powercap_init_zones()
265 struct powercap_zone *root_zone; in powercap_init_zones()
277 root_zone = calloc(1, sizeof(struct powercap_zone)); in powercap_init_zones()
290 int powercap_walk_zones(struct powercap_zone *zone, in powercap_walk_zones()
291 int (*f)(struct powercap_zone *zone)) in powercap_walk_zones()