Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/thermal/intel/
A 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()
A Dx86_pkg_temp_thermal.c269 static struct thermal_trip *pkg_temp_thermal_trips_init(int cpu, int tj_max, int num_trips) in pkg_temp_thermal_trips_init() argument
276 trips = kzalloc(sizeof(*trips) * num_trips, GFP_KERNEL); in pkg_temp_thermal_trips_init()
280 for (i = 0; i < num_trips; i++) { in pkg_temp_thermal_trips_init()
/linux-6.3-rc2/drivers/thermal/
A Dthermal_trip.c21 for (i = 0; i < tz->num_trips; i++) { in __for_each_thermal_trip()
37 return tz->num_trips; in thermal_zone_get_num_trips()
67 for (i = 0; i < tz->num_trips; i++) { in __thermal_zone_set_trips()
108 if (!tz || trip_id < 0 || trip_id >= tz->num_trips || !trip) in __thermal_zone_get_trip()
A Dthermal_sysfs.c439 if (tz->num_trips <= 0) in create_trip_attrs()
442 tz->trip_type_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs()
447 tz->trip_temp_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs()
454 tz->trip_hyst_attrs = kcalloc(tz->num_trips, in create_trip_attrs()
463 attrs = kcalloc(tz->num_trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs()
471 for (indx = 0; indx < tz->num_trips; indx++) { in create_trip_attrs()
498 attrs[indx + tz->num_trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
513 attrs[indx + tz->num_trips * 2] = in create_trip_attrs()
516 attrs[tz->num_trips * 3] = NULL; in create_trip_attrs()
556 if (tz->num_trips) { in thermal_zone_create_device_groups()
[all …]
A Dgov_fair_share.c27 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()
A Dthermal_core.c426 for (count = 0; count < tz->num_trips; count++) in __thermal_zone_device_update()
618 if (trip >= tz->num_trips || trip < 0) in thermal_zone_bind_cooling_device()
796 for (i = 0; i < tz->num_trips; i++) { in __bind()
1053 for (i = 0; i < tz->num_trips; i++) in __unbind()
1170 for (i = 0; i < tz->num_trips; i++) { in thermal_zone_get_crit_temp()
1210 thermal_zone_device_register_with_trips(const char *type, struct thermal_trip *trips, int num_trips in thermal_zone_device_register_with_trips() argument
1245 if (num_trips > (BITS_PER_TYPE(int) - 1) || num_trips < 0 || mask >> num_trips) { in thermal_zone_device_register_with_trips()
1255 if (num_trips > 0 && (!ops->get_trip_type || !ops->get_trip_temp) && !trips) in thermal_zone_device_register_with_trips()
1285 tz->num_trips = num_trips; in thermal_zone_device_register_with_trips()
1308 for (count = 0; count < num_trips; count++) { in thermal_zone_device_register_with_trips()
A Dthermal_helpers.c93 for (count = 0; count < tz->num_trips; count++) { in __thermal_zone_get_temp()
A Dgov_power_allocator.c520 for (i = 0; i < tz->num_trips; i++) { in get_governor_trips()
659 if (tz->num_trips > 0) { in power_allocator_bind()
A Dthermal_netlink.c473 for (i = 0; i < tz->num_trips; i++) { in thermal_genl_cmd_tz_get_trip()
/linux-6.3-rc2/drivers/thermal/samsung/
A Dexynos_tmu.c262 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()
/linux-6.3-rc2/drivers/thermal/intel/int340x_thermal/
A Dint340x_thermal_zone.c219 int trip_cnt = int34x_zone->zone->num_trips; in int340x_thermal_update_trips()
/linux-6.3-rc2/include/linux/
A Dthermal.h167 int num_trips; member

Completed in 24 milliseconds