Lines Matching full:trips
56 struct thermal_trip *trips; member
273 struct thermal_trip *trips; in pkg_temp_thermal_trips_init() local
278 trips = kzalloc(sizeof(*trips) * num_trips, GFP_KERNEL); in pkg_temp_thermal_trips_init()
279 if (!trips) in pkg_temp_thermal_trips_init()
295 kfree(trips); in pkg_temp_thermal_trips_init()
301 trips[i].temperature = thres_reg_value ? in pkg_temp_thermal_trips_init()
304 trips[i].type = THERMAL_TRIP_PASSIVE; in pkg_temp_thermal_trips_init()
307 __func__, cpu, i, trips[i].temperature); in pkg_temp_thermal_trips_init()
310 return trips; in pkg_temp_thermal_trips_init()
339 zonedev->trips = pkg_temp_thermal_trips_init(cpu, tj_max, thres_count); in pkg_temp_thermal_device_add()
340 if (IS_ERR(zonedev->trips)) { in pkg_temp_thermal_device_add()
341 err = PTR_ERR(zonedev->trips); in pkg_temp_thermal_device_add()
348 zonedev->trips, thres_count, in pkg_temp_thermal_device_add()
373 kfree(zonedev->trips); in pkg_temp_thermal_device_add()
461 kfree(zonedev->trips); in pkg_thermal_cpu_offline()