Searched refs:num_trips (Results 1 – 12 of 12) sorted by relevance
/openbmc/linux/drivers/thermal/intel/ |
H A D | intel_bxt_pmic_thermal.c | 41 int num_trips; member 129 .num_trips = ARRAY_SIZE(bxtwc_str0_trip_config), 134 .num_trips = ARRAY_SIZE(bxtwc_str1_trip_config), 139 .num_trips = ARRAY_SIZE(bxtwc_str2_trip_config), 144 .num_trips = ARRAY_SIZE(bxtwc_str3_trip_config), 171 for (j = 0; j < td->maps[i].num_trips; j++) { in pmic_thermal_irq_handler() 257 for (j = 0; j < thermal_data->maps[i].num_trips; j++) { in pmic_thermal_probe()
|
H A D | x86_pkg_temp_thermal.c | 271 static struct thermal_trip *pkg_temp_thermal_trips_init(int cpu, int tj_max, int num_trips) in pkg_temp_thermal_trips_init() argument 278 trips = kzalloc(sizeof(*trips) * num_trips, GFP_KERNEL); in pkg_temp_thermal_trips_init() 282 for (i = 0; i < num_trips; i++) { in pkg_temp_thermal_trips_init()
|
/openbmc/linux/drivers/thermal/ |
H A D | thermal_trip.c | 20 for (i = 0; i < tz->num_trips; i++) { in for_each_thermal_trip() 32 return tz->num_trips; in thermal_zone_get_num_trips() 63 for (i = 0; i < tz->num_trips; i++) { in __thermal_zone_set_trips() 116 if (!tz || !tz->trips || trip_id < 0 || trip_id >= tz->num_trips || !trip) in __thermal_zone_get_trip() 181 for (i = 0; i < tz->num_trips; i++) { in thermal_zone_trip_id()
|
H A D | thermal_sysfs.c | 440 if (tz->num_trips <= 0) in create_trip_attrs() 443 tz->trip_type_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs() 448 tz->trip_temp_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs() 455 tz->trip_hyst_attrs = kcalloc(tz->num_trips, in create_trip_attrs() 464 attrs = kcalloc(tz->num_trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs() 472 for (indx = 0; indx < tz->num_trips; indx++) { in create_trip_attrs() 499 attrs[indx + tz->num_trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs() 514 attrs[indx + tz->num_trips * 2] = in create_trip_attrs() 517 attrs[tz->num_trips * 3] = NULL; in create_trip_attrs() 557 if (tz->num_trips) { in thermal_zone_create_device_groups() [all …]
|
H A D | gov_fair_share.c | 27 for (count = 0; count < tz->num_trips; count++) { in get_trip_level() 46 return (long)(percentage * level * cdev->max_state) / (100 * tz->num_trips); in get_target_state()
|
H A D | thermal_core.c | 427 for (count = 0; count < tz->num_trips; count++) in __thermal_zone_device_update() 645 if (trip_index >= tz->num_trips || trip_index < 0) in thermal_zone_bind_cooling_device() 1196 for (i = 0; i < tz->num_trips; i++) { in thermal_zone_get_crit_temp() 1236 thermal_zone_device_register_with_trips(const char *type, struct thermal_trip *trips, int num_trips… in thermal_zone_device_register_with_trips() argument 1271 if (num_trips > (BITS_PER_TYPE(int) - 1) || num_trips < 0 || mask >> num_trips) { in thermal_zone_device_register_with_trips() 1281 if (num_trips > 0 && !trips) in thermal_zone_device_register_with_trips() 1320 tz->num_trips = num_trips; in thermal_zone_device_register_with_trips() 1344 for (count = 0; count < num_trips; count++) { in thermal_zone_device_register_with_trips()
|
H A D | thermal_helpers.c | 96 for (count = 0; count < tz->num_trips; count++) { in __thermal_zone_get_temp()
|
H A D | gov_power_allocator.c | 523 for (i = 0; i < tz->num_trips; i++) { in get_governor_trips() 664 if (tz->num_trips > 0) { in power_allocator_bind()
|
H A D | thermal_netlink.c | 473 for (i = 0; i < tz->num_trips; i++) { in thermal_genl_cmd_tz_get_trip()
|
/openbmc/linux/include/linux/ |
H A D | thermal.h | 168 int num_trips; member 310 int num_trips, int mask, 366 int num_trips, int mask, in thermal_zone_device_register_with_trips() argument
|
/openbmc/linux/drivers/thermal/samsung/ |
H A D | exynos_tmu.c | 262 int num_trips = thermal_zone_get_num_trips(tzd); in exynos_tmu_initialize() local 273 if (num_trips > data->ntrip) { in exynos_tmu_initialize() 278 num_trips - data->ntrip); in exynos_tmu_initialize() 291 min_t(int, num_trips, data->ntrip); in exynos_tmu_initialize()
|
/openbmc/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | int340x_thermal_zone.c | 219 int trip_cnt = int34x_zone->zone->num_trips; in int340x_thermal_update_trips()
|