Searched refs:num_trips (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/drivers/thermal/intel/ |
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()
|
/linux-6.1.9/drivers/thermal/ |
D | gov_fair_share.c | 28 if (tz->num_trips == 0 || !tz->ops->get_trip_temp) in get_trip_level() 31 for (count = 0; count < tz->num_trips; count++) { in get_trip_level() 52 return (long)(percentage * level * cdev->max_state) / (100 * tz->num_trips); in get_target_state()
|
D | thermal_sysfs.c | 428 if (tz->num_trips <= 0) in create_trip_attrs() 431 tz->trip_type_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs() 436 tz->trip_temp_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs() 444 tz->trip_hyst_attrs = kcalloc(tz->num_trips, in create_trip_attrs() 454 attrs = kcalloc(tz->num_trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs() 463 for (indx = 0; indx < tz->num_trips; indx++) { in create_trip_attrs() 490 attrs[indx + tz->num_trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs() 508 attrs[indx + tz->num_trips * 2] = in create_trip_attrs() 511 attrs[tz->num_trips * 3] = NULL; in create_trip_attrs() 552 if (tz->num_trips) { in thermal_zone_create_device_groups() [all …]
|
D | thermal_of.c | 34 return tz->num_trips; in of_thermal_get_ntrips() 50 if (trip >= tz->num_trips || trip < 0) in of_thermal_is_trip_valid() 77 if (trip >= tz->num_trips || trip < 0) in of_thermal_get_trip_type() 88 if (trip >= tz->num_trips || trip < 0) in of_thermal_get_trip_temp() 99 if (trip >= tz->num_trips || trip < 0) in of_thermal_get_trip_hyst() 110 if (trip >= tz->num_trips || trip < 0) in of_thermal_set_trip_hyst() 124 for (i = 0; i < tz->num_trips; i++) in of_thermal_get_crit_temp()
|
D | thermal_core.c | 480 for (count = 0; count < tz->num_trips; count++) in thermal_zone_device_update() 608 if (trip >= tz->num_trips || trip < 0) in thermal_zone_bind_cooling_device() 785 for (i = 0; i < tz->num_trips; i++) { in __bind() 1044 for (i = 0; i < tz->num_trips; i++) in __unbind() 1179 thermal_zone_device_register_with_trips(const char *type, struct thermal_trip *trips, int num_trips… in thermal_zone_device_register_with_trips() argument 1216 if (num_trips > (BITS_PER_TYPE(int) - 1) || num_trips < 0 || mask >> num_trips) { in thermal_zone_device_register_with_trips() 1226 if (num_trips > 0 && (!ops->get_trip_type || !ops->get_trip_temp)) in thermal_zone_device_register_with_trips() 1253 tz->num_trips = num_trips; in thermal_zone_device_register_with_trips() 1276 for (count = 0; count < num_trips; count++) { in thermal_zone_device_register_with_trips()
|
D | thermal_helpers.c | 82 for (count = 0; count < tz->num_trips; count++) { in __thermal_zone_get_temp() 142 for (i = 0; i < tz->num_trips; i++) { in __thermal_zone_set_trips()
|
D | gov_power_allocator.c | 522 for (i = 0; i < tz->num_trips; i++) { in get_governor_trips() 661 if (tz->num_trips > 0) { in power_allocator_bind()
|
D | thermal_netlink.c | 472 for (i = 0; i < tz->num_trips; i++) { in thermal_genl_cmd_tz_get_trip()
|
/linux-6.1.9/include/linux/ |
D | thermal.h | 167 int num_trips; member
|
/linux-6.1.9/drivers/thermal/tegra/ |
D | tegra30-tsensor.c | 319 for (i = 0; i < tzd->num_trips; i++) { in tegra_tsensor_get_hw_channel_trips()
|