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 289 static int get_energy_counter(struct powercap_zone *power_zone, u64 *energy_raw) get_energy_counter() argument 298 rd = power_zone_to_rapl_domain(power_zone); get_energy_counter() 319 static int release_zone(struct powercap_zone *power_zone) release_zone() argument 321 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); release_zone() 330 dev_warn(&power_zone->dev, "no package id %s\n", release_zone() 354 static int set_domain_enable(struct powercap_zone *power_zone, bool mode) set_domain_enable() argument 356 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); set_domain_enable() 370 static int get_domain_enable(struct powercap_zone *power_zone, bool *mode) get_domain_enable() argument 372 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); get_domain_enable() 426 static int set_power_limit(struct powercap_zone *power_zone, int id, set_power_limit() argument 434 rd = power_zone_to_rapl_domain(power_zone); set_power_limit() 442 dev_warn(&power_zone->dev, "%s locked by BIOS, monitoring only\n", set_power_limit() 465 static int get_current_power_limit(struct powercap_zone *power_zone, int id, get_current_power_limit() argument 474 rd = power_zone_to_rapl_domain(power_zone); get_current_power_limit() 496 static int set_time_window(struct powercap_zone *power_zone, int id, set_time_window() argument 503 rd = power_zone_to_rapl_domain(power_zone); set_time_window() 518 static int get_time_window(struct powercap_zone *power_zone, int id, u64 *data) get_time_window() argument 525 rd = power_zone_to_rapl_domain(power_zone); get_time_window() 544 static const char *get_constraint_name(struct powercap_zone *power_zone, int id) get_constraint_name() argument 549 rd = power_zone_to_rapl_domain(power_zone); get_constraint_name() 556 static int get_max_power(struct powercap_zone *power_zone, int id, get_max_power() argument 565 rd = power_zone_to_rapl_domain(power_zone); get_max_power() 818 dev_dbg(&rd->power_zone.dev, rapl_write_data_raw() 826 dev_dbg(&rd->power_zone.dev, rapl_write_data_raw() 1160 powercap_unregister_zone(control_type, &rd->power_zone); rapl_unregister_powercap() 1165 &rd_package->power_zone); rapl_unregister_powercap() 1177 struct powercap_zone *power_zone = NULL; rapl_package_register_powercap() local 1189 power_zone = powercap_register_zone(&rd->power_zone, rapl_package_register_powercap() 1195 if (IS_ERR(power_zone)) { rapl_package_register_powercap() 1198 ret = PTR_ERR(power_zone); rapl_package_register_powercap() 1202 rp->power_zone = power_zone; rapl_package_register_powercap() 1207 if (!power_zone) { rapl_package_register_powercap() 1218 power_zone = powercap_register_zone(&rd->power_zone, rapl_package_register_powercap() 1220 rp->power_zone, rapl_package_register_powercap() 1224 if (IS_ERR(power_zone)) { rapl_package_register_powercap() 1225 pr_debug("failed to register power_zone, %d:%s:%s\n", rapl_package_register_powercap() 1227 ret = PTR_ERR(power_zone); rapl_package_register_powercap() 1240 powercap_unregister_zone(control_type, &rd->power_zone); rapl_package_register_powercap() 1271 powercap_unregister_zone(control_type, &rd->power_zone); rapl_register_powercap() 1428 powercap_unregister_zone(control_type, &rd->power_zone); rapl_remove_package() 1431 powercap_unregister_zone(control_type, &rd_package->power_zone); rapl_remove_package()
|