Home
last modified time | relevance | path

Searched refs:power_zone (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/drivers/powercap/
Dpowercap_sys.c25 struct powercap_zone *power_zone = to_powercap_zone(dev); \
27 if (power_zone->ops->get_##_attr) { \
28 if (!power_zone->ops->get_##_attr(power_zone, &value)) \
42 struct powercap_zone *power_zone = to_powercap_zone(dev); \
50 if (power_zone->ops->reset_##_attr) { \
51 if (!power_zone->ops->reset_##_attr(power_zone)) \
66 struct powercap_zone *power_zone = to_powercap_zone(dev); \
72 if (id >= power_zone->const_id_cnt) \
74 pconst = &power_zone->constraints[id]; \
76 if (!pconst->ops->get_##_attr(power_zone, id, &value)) \
[all …]
Dintel_rapl_common.c104 container_of(_zone, struct rapl_domain, power_zone)
167 static int get_energy_counter(struct powercap_zone *power_zone, in get_energy_counter() argument
177 rd = power_zone_to_rapl_domain(power_zone); in get_energy_counter()
198 static int release_zone(struct powercap_zone *power_zone) in release_zone() argument
200 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); in release_zone()
227 static int set_domain_enable(struct powercap_zone *power_zone, bool mode) in set_domain_enable() argument
229 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); in set_domain_enable()
243 static int get_domain_enable(struct powercap_zone *power_zone, bool *mode) in get_domain_enable() argument
245 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); in get_domain_enable()
327 static int set_power_limit(struct powercap_zone *power_zone, int cid, in set_power_limit() argument
[all …]
/Linux-v6.1/include/linux/
Dpowercap.h197 struct powercap_zone *power_zone; member
203 #define POWERCAP_GET_DEV(power_zone) (&power_zone->dev) argument
212 static inline void powercap_set_zone_data(struct powercap_zone *power_zone, in powercap_set_zone_data() argument
215 if (power_zone) in powercap_set_zone_data()
216 power_zone->private_data = pdata; in powercap_set_zone_data()
226 static inline void *powercap_get_zone_data(struct powercap_zone *power_zone) in powercap_get_zone_data() argument
228 if (power_zone) in powercap_get_zone_data()
229 return power_zone->private_data; in powercap_get_zone_data()
293 struct powercap_zone *power_zone,
310 struct powercap_zone *power_zone);
Dintel_rapl.h94 struct powercap_zone power_zone; member
147 struct powercap_zone *power_zone; /* keep track of parent zone */ member