Lines Matching refs:tz

91 	struct thermal_zone_device *tz;  member
133 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) in imx_get_temp() argument
135 struct imx_thermal_data *data = tz->devdata; in imx_get_temp()
172 dev_dbg(&tz->device, "temp measurement never finished\n"); in imx_get_temp()
189 dev_dbg(&tz->device, "thermal alarm off: T < %d\n", in imx_get_temp()
195 dev_dbg(&tz->device, "millicelsius: %d\n", *temp); in imx_get_temp()
208 static int imx_get_mode(struct thermal_zone_device *tz, in imx_get_mode() argument
211 struct imx_thermal_data *data = tz->devdata; in imx_get_mode()
218 static int imx_set_mode(struct thermal_zone_device *tz, in imx_set_mode() argument
221 struct imx_thermal_data *data = tz->devdata; in imx_set_mode()
225 tz->polling_delay = IMX_POLLING_DELAY; in imx_set_mode()
226 tz->passive_delay = IMX_PASSIVE_DELAY; in imx_set_mode()
239 tz->polling_delay = 0; in imx_set_mode()
240 tz->passive_delay = 0; in imx_set_mode()
249 thermal_zone_device_update(tz); in imx_set_mode()
254 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type() argument
262 static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) in imx_get_crit_temp() argument
264 struct imx_thermal_data *data = tz->devdata; in imx_get_crit_temp()
270 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp() argument
273 struct imx_thermal_data *data = tz->devdata; in imx_get_trip_temp()
280 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp() argument
283 struct imx_thermal_data *data = tz->devdata; in imx_set_trip_temp()
300 static int imx_bind(struct thermal_zone_device *tz, in imx_bind() argument
305 ret = thermal_zone_bind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev, in imx_bind()
310 dev_err(&tz->device, in imx_bind()
312 tz->type, cdev->type, ret); in imx_bind()
319 static int imx_unbind(struct thermal_zone_device *tz, in imx_unbind() argument
324 ret = thermal_zone_unbind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev); in imx_unbind()
326 dev_err(&tz->device, in imx_unbind()
328 tz->type, cdev->type, ret); in imx_unbind()
457 dev_dbg(&data->tz->device, "THERMAL ALARM: T > %d\n", in imx_thermal_alarm_irq_thread()
460 thermal_zone_device_update(data->tz); in imx_thermal_alarm_irq_thread()
560 data->tz = thermal_zone_device_register("imx_thermal_zone", in imx_thermal_probe()
566 if (IS_ERR(data->tz)) { in imx_thermal_probe()
567 ret = PTR_ERR(data->tz); in imx_thermal_probe()
598 thermal_zone_device_unregister(data->tz); in imx_thermal_probe()
619 thermal_zone_device_unregister(data->tz); in imx_thermal_remove()