Lines Matching refs:int34x_zone

120 	struct int34x_thermal_zone *int34x_zone;  in int340x_thermal_zone_add()  local
127 int34x_zone = kzalloc(sizeof(*int34x_zone), GFP_KERNEL); in int340x_thermal_zone_add()
128 if (!int34x_zone) in int340x_thermal_zone_add()
131 int34x_zone->adev = adev; in int340x_thermal_zone_add()
135 int34x_zone->aux_trip_nr = trip_cnt; in int340x_thermal_zone_add()
162 int34x_zone->lpat_table = acpi_lpat_get_conversion_table(adev->handle); in int340x_thermal_zone_add()
164 int34x_zone->zone = thermal_zone_device_register_with_trips( in int340x_thermal_zone_add()
167 int34x_zone, in int340x_thermal_zone_add()
173 if (IS_ERR(int34x_zone->zone)) { in int340x_thermal_zone_add()
174 ret = PTR_ERR(int34x_zone->zone); in int340x_thermal_zone_add()
177 ret = thermal_zone_device_enable(int34x_zone->zone); in int340x_thermal_zone_add()
181 return int34x_zone; in int340x_thermal_zone_add()
184 thermal_zone_device_unregister(int34x_zone->zone); in int340x_thermal_zone_add()
186 acpi_lpat_free_conversion_table(int34x_zone->lpat_table); in int340x_thermal_zone_add()
188 kfree(int34x_zone); in int340x_thermal_zone_add()
193 void int340x_thermal_zone_remove(struct int34x_thermal_zone *int34x_zone) in int340x_thermal_zone_remove() argument
195 thermal_zone_device_unregister(int34x_zone->zone); in int340x_thermal_zone_remove()
196 acpi_lpat_free_conversion_table(int34x_zone->lpat_table); in int340x_thermal_zone_remove()
197 kfree(int34x_zone); in int340x_thermal_zone_remove()
203 struct int34x_thermal_zone *int34x_zone = arg; in int340x_update_one_trip() local
204 struct acpi_device *zone_adev = int34x_zone->adev; in int340x_update_one_trip()
228 thermal_zone_set_trip_temp(int34x_zone->zone, trip, temp); in int340x_update_one_trip()
233 void int340x_thermal_update_trips(struct int34x_thermal_zone *int34x_zone) in int340x_thermal_update_trips() argument
235 thermal_zone_for_each_trip(int34x_zone->zone, int340x_update_one_trip, in int340x_thermal_update_trips()
236 int34x_zone); in int340x_thermal_update_trips()