H A D | intel_rapl.c | 156 struct powercap_zone power_zone; member in struct:rapl_domain 165 container_of(_zone, struct rapl_domain, power_zone) 179 struct powercap_zone *power_zone; /* keep track of parent zone */ member in struct:rapl_package 287 static int get_energy_counter(struct powercap_zone *power_zone, u64 *energy_raw) get_energy_counter() argument 296 rd = power_zone_to_rapl_domain(power_zone); get_energy_counter() 317 static int release_zone(struct powercap_zone *power_zone) release_zone() argument 319 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); release_zone() 328 dev_warn(&power_zone->dev, "no package id %s\n", release_zone() 352 static int set_domain_enable(struct powercap_zone *power_zone, bool mode) set_domain_enable() argument 354 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); set_domain_enable() 367 static int get_domain_enable(struct powercap_zone *power_zone, bool *mode) get_domain_enable() argument 369 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); get_domain_enable() 423 static int set_power_limit(struct powercap_zone *power_zone, int id, set_power_limit() argument 431 rd = power_zone_to_rapl_domain(power_zone); set_power_limit() 439 dev_warn(&power_zone->dev, "%s locked by BIOS, monitoring only\n", set_power_limit() 462 static int get_current_power_limit(struct powercap_zone *power_zone, int id, get_current_power_limit() argument 471 rd = power_zone_to_rapl_domain(power_zone); get_current_power_limit() 493 static int set_time_window(struct powercap_zone *power_zone, int id, set_time_window() argument 500 rd = power_zone_to_rapl_domain(power_zone); set_time_window() 515 static int get_time_window(struct powercap_zone *power_zone, int id, u64 *data) get_time_window() argument 522 rd = power_zone_to_rapl_domain(power_zone); get_time_window() 541 static const char *get_constraint_name(struct powercap_zone *power_zone, int id) get_constraint_name() argument 546 rd = power_zone_to_rapl_domain(power_zone); get_constraint_name() 553 static int get_max_power(struct powercap_zone *power_zone, int id, get_max_power() argument 562 rd = power_zone_to_rapl_domain(power_zone); get_max_power() 815 dev_dbg(&rd->power_zone.dev, rapl_write_data_raw() 823 dev_dbg(&rd->power_zone.dev, rapl_write_data_raw() 1122 powercap_unregister_zone(control_type, &rd->power_zone); rapl_unregister_powercap() 1127 &rd_package->power_zone); rapl_unregister_powercap() 1139 struct powercap_zone *power_zone = NULL; rapl_package_register_powercap() local 1151 power_zone = powercap_register_zone(&rd->power_zone, rapl_package_register_powercap() 1157 if (IS_ERR(power_zone)) { rapl_package_register_powercap() 1160 ret = PTR_ERR(power_zone); rapl_package_register_powercap() 1164 rp->power_zone = power_zone; rapl_package_register_powercap() 1169 if (!power_zone) { rapl_package_register_powercap() 1180 power_zone = powercap_register_zone(&rd->power_zone, rapl_package_register_powercap() 1182 rp->power_zone, rapl_package_register_powercap() 1186 if (IS_ERR(power_zone)) { rapl_package_register_powercap() 1187 pr_debug("failed to register power_zone, %d:%s:%s\n", rapl_package_register_powercap() 1189 ret = PTR_ERR(power_zone); rapl_package_register_powercap() 1202 powercap_unregister_zone(control_type, &rd->power_zone); rapl_package_register_powercap() 1233 powercap_unregister_zone(control_type, &rd->power_zone); rapl_register_powercap() 1387 powercap_unregister_zone(control_type, &rd->power_zone); rapl_remove_package() 1390 powercap_unregister_zone(control_type, &rd_package->power_zone); rapl_remove_package()
|