Lines Matching refs:zone
61 struct thermal_zone_device *zone; member
73 #define rcar_zone_to_priv(zone) ((zone)->devdata) argument
203 static int rcar_thermal_get_temp(struct thermal_zone_device *zone, int *temp) in rcar_thermal_get_temp() argument
205 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_temp()
217 static int rcar_thermal_get_trip_type(struct thermal_zone_device *zone, in rcar_thermal_get_trip_type() argument
220 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_trip_type()
236 static int rcar_thermal_get_trip_temp(struct thermal_zone_device *zone, in rcar_thermal_get_trip_temp() argument
239 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_trip_temp()
255 static int rcar_thermal_notify(struct thermal_zone_device *zone, in rcar_thermal_notify() argument
258 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_notify()
305 rcar_thermal_get_temp(priv->zone, &cctemp); in rcar_thermal_work()
309 rcar_thermal_get_temp(priv->zone, &nctemp); in rcar_thermal_work()
311 thermal_zone_device_update(priv->zone); in rcar_thermal_work()
373 thermal_zone_device_unregister(priv->zone); in rcar_thermal_remove()
446 priv->zone = thermal_zone_device_register("rcar_thermal", in rcar_thermal_probe()
450 if (IS_ERR(priv->zone)) { in rcar_thermal_probe()
452 ret = PTR_ERR(priv->zone); in rcar_thermal_probe()