Home
last modified time | relevance | path

Searched refs:num_trips (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/thermal/intel/
Dintel_bxt_pmic_thermal.c41 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/
Dgov_fair_share.c28 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()
Dthermal_sysfs.c428 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 …]
Dthermal_of.c34 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()
Dthermal_core.c480 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()
Dthermal_helpers.c82 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()
Dgov_power_allocator.c522 for (i = 0; i < tz->num_trips; i++) { in get_governor_trips()
661 if (tz->num_trips > 0) { in power_allocator_bind()
Dthermal_netlink.c472 for (i = 0; i < tz->num_trips; i++) { in thermal_genl_cmd_tz_get_trip()
/linux-6.1.9/include/linux/
Dthermal.h167 int num_trips; member
/linux-6.1.9/drivers/thermal/tegra/
Dtegra30-tsensor.c319 for (i = 0; i < tzd->num_trips; i++) { in tegra_tsensor_get_hw_channel_trips()