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, in rcar_thermal_get_temp() argument
206 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_temp()
218 static int rcar_thermal_get_trip_type(struct thermal_zone_device *zone, in rcar_thermal_get_trip_type() argument
221 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_trip_type()
237 static int rcar_thermal_get_trip_temp(struct thermal_zone_device *zone, in rcar_thermal_get_trip_temp() argument
240 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_trip_temp()
256 static int rcar_thermal_notify(struct thermal_zone_device *zone, in rcar_thermal_notify() argument
259 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_notify()
306 rcar_thermal_get_temp(priv->zone, &cctemp); in rcar_thermal_work()
310 rcar_thermal_get_temp(priv->zone, &nctemp); in rcar_thermal_work()
312 thermal_zone_device_update(priv->zone); in rcar_thermal_work()
427 priv->zone = thermal_zone_device_register("rcar_thermal", in rcar_thermal_probe()
431 if (IS_ERR(priv->zone)) { in rcar_thermal_probe()
433 ret = PTR_ERR(priv->zone); in rcar_thermal_probe()
468 thermal_zone_device_unregister(priv->zone); in rcar_thermal_probe()
486 thermal_zone_device_unregister(priv->zone); in rcar_thermal_remove()