Lines Matching refs:tz
96 struct thermal_zone_device *tz; member
136 static int imx_get_temp(struct thermal_zone_device *tz, unsigned long *temp) in imx_get_temp() argument
138 struct imx_thermal_data *data = tz->devdata; in imx_get_temp()
175 dev_dbg(&tz->device, "temp measurement never finished\n"); in imx_get_temp()
192 dev_dbg(&tz->device, "thermal alarm off: T < %lu\n", in imx_get_temp()
198 dev_dbg(&tz->device, "millicelsius: %ld\n", *temp); in imx_get_temp()
211 static int imx_get_mode(struct thermal_zone_device *tz, in imx_get_mode() argument
214 struct imx_thermal_data *data = tz->devdata; in imx_get_mode()
221 static int imx_set_mode(struct thermal_zone_device *tz, in imx_set_mode() argument
224 struct imx_thermal_data *data = tz->devdata; in imx_set_mode()
228 tz->polling_delay = IMX_POLLING_DELAY; in imx_set_mode()
229 tz->passive_delay = IMX_PASSIVE_DELAY; in imx_set_mode()
242 tz->polling_delay = 0; in imx_set_mode()
243 tz->passive_delay = 0; in imx_set_mode()
252 thermal_zone_device_update(tz); in imx_set_mode()
257 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type() argument
265 static int imx_get_crit_temp(struct thermal_zone_device *tz, in imx_get_crit_temp() argument
268 struct imx_thermal_data *data = tz->devdata; in imx_get_crit_temp()
274 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp() argument
277 struct imx_thermal_data *data = tz->devdata; in imx_get_trip_temp()
284 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp() argument
287 struct imx_thermal_data *data = tz->devdata; in imx_set_trip_temp()
302 static int imx_bind(struct thermal_zone_device *tz, in imx_bind() argument
307 ret = thermal_zone_bind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev, in imx_bind()
311 dev_err(&tz->device, in imx_bind()
313 tz->type, cdev->type, ret); in imx_bind()
320 static int imx_unbind(struct thermal_zone_device *tz, in imx_unbind() argument
325 ret = thermal_zone_unbind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev); in imx_unbind()
327 dev_err(&tz->device, in imx_unbind()
329 tz->type, cdev->type, ret); in imx_unbind()
436 dev_dbg(&data->tz->device, "THERMAL ALARM: T > %lu\n", in imx_thermal_alarm_irq_thread()
439 thermal_zone_device_update(data->tz); in imx_thermal_alarm_irq_thread()
547 data->tz = thermal_zone_device_register("imx_thermal_zone", in imx_thermal_probe()
553 if (IS_ERR(data->tz)) { in imx_thermal_probe()
554 ret = PTR_ERR(data->tz); in imx_thermal_probe()
590 thermal_zone_device_unregister(data->tz); in imx_thermal_remove()