Lines Matching refs:tz

200 	struct thermal_zone_device *tz;  member
251 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) in imx_get_temp() argument
253 struct imx_thermal_data *data = tz->devdata; in imx_get_temp()
267 dev_dbg(&tz->device, "temp measurement never finished\n"); in imx_get_temp()
288 dev_dbg(&tz->device, "thermal alarm off: T < %d\n", in imx_get_temp()
294 dev_dbg(&tz->device, "millicelsius: %d\n", *temp); in imx_get_temp()
309 static int imx_change_mode(struct thermal_zone_device *tz, in imx_change_mode() argument
312 struct imx_thermal_data *data = tz->devdata; in imx_change_mode()
333 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type() argument
341 static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) in imx_get_crit_temp() argument
343 struct imx_thermal_data *data = tz->devdata; in imx_get_crit_temp()
349 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp() argument
352 struct imx_thermal_data *data = tz->devdata; in imx_get_trip_temp()
359 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp() argument
362 struct imx_thermal_data *data = tz->devdata; in imx_set_trip_temp()
386 static int imx_bind(struct thermal_zone_device *tz, in imx_bind() argument
391 ret = thermal_zone_bind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev, in imx_bind()
396 dev_err(&tz->device, in imx_bind()
398 tz->type, cdev->type, ret); in imx_bind()
405 static int imx_unbind(struct thermal_zone_device *tz, in imx_unbind() argument
410 ret = thermal_zone_unbind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev); in imx_unbind()
412 dev_err(&tz->device, in imx_unbind()
414 tz->type, cdev->type, ret); in imx_unbind()
582 dev_dbg(&data->tz->device, "THERMAL ALARM: T > %d\n", in imx_thermal_alarm_irq_thread()
585 thermal_zone_device_update(data->tz, THERMAL_EVENT_UNSPECIFIED); in imx_thermal_alarm_irq_thread()
746 data->tz = thermal_zone_device_register("imx_thermal_zone", in imx_thermal_probe()
752 if (IS_ERR(data->tz)) { in imx_thermal_probe()
753 ret = PTR_ERR(data->tz); in imx_thermal_probe()
791 ret = thermal_zone_device_enable(data->tz); in imx_thermal_probe()
808 thermal_zone_device_unregister(data->tz); in imx_thermal_probe()
827 thermal_zone_device_unregister(data->tz); in imx_thermal_remove()
845 ret = thermal_zone_device_disable(data->tz); in imx_thermal_suspend()
861 return thermal_zone_device_enable(data->tz); in imx_thermal_resume()