Home
last modified time | relevance | path

Searched refs:num_trips (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/thermal/intel/
H 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()
/kernel/linux/linux-6.6/drivers/thermal/intel/
H 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()
H A Dx86_pkg_temp_thermal.c271 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()
/kernel/linux/linux-6.6/drivers/thermal/
H A Dthermal_trip.c20 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 Dthermal_sysfs.c440 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 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()
H A Dthermal_core.c427 for (count = 0; count < tz->num_trips; count++) in __thermal_zone_device_update()
640 if (trip_index >= tz->num_trips || trip_index < 0) in thermal_zone_bind_cooling_device()
1191 for (i = 0; i < tz->num_trips; i++) { in thermal_zone_get_crit_temp()
1209 * @num_trips: the number of trip points the thermal zone support
1231 thermal_zone_device_register_with_trips(const char *type, struct thermal_trip *trips, int num_trips, int mask, in thermal_zone_device_register_with_trips() argument
1254 * Max trip count can't exceed 31 as the "mask >> num_trips" condition. in thermal_zone_device_register_with_trips()
1258 * Also "mask >> num_trips" will always be true with 32 bit shift. in thermal_zone_device_register_with_trips()
1266 if (num_trips > (BITS_PER_TYPE(int) - 1) || num_trips < 0 || mask >> num_trips) { in thermal_zone_device_register_with_trips()
[all...]
H A Dthermal_helpers.c96 for (count = 0; count < tz->num_trips; count++) { in __thermal_zone_get_temp()
H A Dgov_power_allocator.c523 for (i = 0; i < tz->num_trips; i++) { in get_governor_trips()
664 if (tz->num_trips > 0) { in power_allocator_bind()
H A Dthermal_netlink.c473 for (i = 0; i < tz->num_trips; i++) { in thermal_genl_cmd_tz_get_trip()
/kernel/linux/linux-6.6/include/linux/
H A Dthermal.h124 * @num_trips: number of trip points the thermal zone supports
166 int num_trips; member
308 int num_trips, int mask,
364 int num_trips, int mask, in thermal_zone_device_register_with_trips()
361 thermal_zone_device_register_with_trips( const char *type, struct thermal_trip *trips, int num_trips, int mask, void *devdata, struct thermal_zone_device_ops *ops, const struct thermal_zone_params *tzp, int passive_delay, int polling_delay) thermal_zone_device_register_with_trips() argument
/kernel/linux/linux-6.6/drivers/thermal/intel/int340x_thermal/
H A Dint340x_thermal_zone.c219 int trip_cnt = int34x_zone->zone->num_trips; in int340x_thermal_update_trips()
/kernel/linux/linux-6.6/drivers/thermal/samsung/
H 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()

Completed in 11 milliseconds