Lines Matching refs:tz
198 struct thermal_zone_device *tz; member
249 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) in imx_get_temp() argument
251 struct imx_thermal_data *data = tz->devdata; in imx_get_temp()
294 dev_dbg(&tz->device, "temp measurement never finished\n"); in imx_get_temp()
315 dev_dbg(&tz->device, "thermal alarm off: T < %d\n", in imx_get_temp()
321 dev_dbg(&tz->device, "millicelsius: %d\n", *temp); in imx_get_temp()
334 static int imx_change_mode(struct thermal_zone_device *tz, in imx_change_mode() argument
337 struct imx_thermal_data *data = tz->devdata; in imx_change_mode()
366 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type() argument
374 static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) in imx_get_crit_temp() argument
376 struct imx_thermal_data *data = tz->devdata; in imx_get_crit_temp()
382 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp() argument
385 struct imx_thermal_data *data = tz->devdata; in imx_get_trip_temp()
392 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp() argument
395 struct imx_thermal_data *data = tz->devdata; in imx_set_trip_temp()
412 static int imx_bind(struct thermal_zone_device *tz, in imx_bind() argument
417 ret = thermal_zone_bind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev, in imx_bind()
422 dev_err(&tz->device, in imx_bind()
424 tz->type, cdev->type, ret); in imx_bind()
431 static int imx_unbind(struct thermal_zone_device *tz, in imx_unbind() argument
436 ret = thermal_zone_unbind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev); in imx_unbind()
438 dev_err(&tz->device, in imx_unbind()
440 tz->type, cdev->type, ret); in imx_unbind()
608 dev_dbg(&data->tz->device, "THERMAL ALARM: T > %d\n", in imx_thermal_alarm_irq_thread()
611 thermal_zone_device_update(data->tz, THERMAL_EVENT_UNSPECIFIED); in imx_thermal_alarm_irq_thread()
770 data->tz = thermal_zone_device_register("imx_thermal_zone", in imx_thermal_probe()
776 if (IS_ERR(data->tz)) { in imx_thermal_probe()
777 ret = PTR_ERR(data->tz); in imx_thermal_probe()
805 ret = thermal_zone_device_enable(data->tz); in imx_thermal_probe()
820 thermal_zone_device_unregister(data->tz); in imx_thermal_probe()
840 thermal_zone_device_unregister(data->tz); in imx_thermal_remove()
858 ret = thermal_zone_device_disable(data->tz); in imx_thermal_suspend()
875 ret = thermal_zone_device_enable(data->tz); in imx_thermal_resume()