• Home
  • Raw
  • Download

Lines Matching refs:int34x_thermal_zone

25 	struct int34x_thermal_zone *d = zone->devdata;  in int340x_thermal_get_zone_temp()
54 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_temp()
87 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_type()
119 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_set_trip_temp()
141 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_hyst()
185 struct int34x_thermal_zone *int340x_thermal_zone_add(struct acpi_device *adev, in int340x_thermal_zone_add()
188 struct int34x_thermal_zone *int34x_thermal_zone; in int340x_thermal_zone_add() local
194 int34x_thermal_zone = kzalloc(sizeof(*int34x_thermal_zone), in int340x_thermal_zone_add()
196 if (!int34x_thermal_zone) in int340x_thermal_zone_add()
199 int34x_thermal_zone->adev = adev; in int340x_thermal_zone_add()
200 int34x_thermal_zone->override_ops = override_ops; in int340x_thermal_zone_add()
206 int34x_thermal_zone->aux_trips = kzalloc( in int340x_thermal_zone_add()
207 sizeof(*int34x_thermal_zone->aux_trips) * in int340x_thermal_zone_add()
209 if (!int34x_thermal_zone->aux_trips) { in int340x_thermal_zone_add()
214 int34x_thermal_zone->aux_trip_nr = trip_cnt; in int340x_thermal_zone_add()
217 int34x_thermal_zone->crt_trip_id = -1; in int340x_thermal_zone_add()
219 &int34x_thermal_zone->crt_temp)) in int340x_thermal_zone_add()
220 int34x_thermal_zone->crt_trip_id = trip_cnt++; in int340x_thermal_zone_add()
221 int34x_thermal_zone->hot_trip_id = -1; in int340x_thermal_zone_add()
223 &int34x_thermal_zone->hot_temp)) in int340x_thermal_zone_add()
224 int34x_thermal_zone->hot_trip_id = trip_cnt++; in int340x_thermal_zone_add()
225 int34x_thermal_zone->psv_trip_id = -1; in int340x_thermal_zone_add()
227 &int34x_thermal_zone->psv_temp)) in int340x_thermal_zone_add()
228 int34x_thermal_zone->psv_trip_id = trip_cnt++; in int340x_thermal_zone_add()
233 &int34x_thermal_zone->act_trips[i].temp)) in int340x_thermal_zone_add()
236 int34x_thermal_zone->act_trips[i].id = trip_cnt++; in int340x_thermal_zone_add()
237 int34x_thermal_zone->act_trips[i].valid = true; in int340x_thermal_zone_add()
239 int34x_thermal_zone->lpat_table = acpi_lpat_get_conversion_table( in int340x_thermal_zone_add()
242 int34x_thermal_zone->zone = thermal_zone_device_register( in int340x_thermal_zone_add()
245 trip_mask, int34x_thermal_zone, in int340x_thermal_zone_add()
249 if (IS_ERR(int34x_thermal_zone->zone)) { in int340x_thermal_zone_add()
250 ret = PTR_ERR(int34x_thermal_zone->zone); in int340x_thermal_zone_add()
254 return int34x_thermal_zone; in int340x_thermal_zone_add()
257 acpi_lpat_free_conversion_table(int34x_thermal_zone->lpat_table); in int340x_thermal_zone_add()
258 kfree(int34x_thermal_zone->aux_trips); in int340x_thermal_zone_add()
260 kfree(int34x_thermal_zone); in int340x_thermal_zone_add()
265 void int340x_thermal_zone_remove(struct int34x_thermal_zone in int340x_thermal_zone_remove() argument
266 *int34x_thermal_zone) in int340x_thermal_zone_remove()
268 thermal_zone_device_unregister(int34x_thermal_zone->zone); in int340x_thermal_zone_remove()
269 acpi_lpat_free_conversion_table(int34x_thermal_zone->lpat_table); in int340x_thermal_zone_remove()
270 kfree(int34x_thermal_zone->aux_trips); in int340x_thermal_zone_remove()
271 kfree(int34x_thermal_zone); in int340x_thermal_zone_remove()