Lines Matching full:dts
37 /* DTS encoding for TJ MAX temperature */
136 struct intel_soc_dts_sensor_entry *dts = thermal_zone_device_priv(tzd); in sys_set_trip_temp() local
137 struct intel_soc_dts_sensors *sensors = dts->sensors; in sys_set_trip_temp()
156 struct intel_soc_dts_sensor_entry *dts = thermal_zone_device_priv(tzd); in sys_get_curr_temp() local
160 sensors = dts->sensors; in sys_get_curr_temp()
167 out = bitmap_get_value8(&raw, dts->id * 8) - SOC_DTS_TJMAX_ENCODING; in sys_get_curr_temp()
199 static void remove_dts_thermal_zone(struct intel_soc_dts_sensor_entry *dts) in remove_dts_thermal_zone() argument
202 SOC_DTS_OFFSET_ENABLE, dts->store_status); in remove_dts_thermal_zone()
203 thermal_zone_device_unregister(dts->tzone); in remove_dts_thermal_zone()
206 static int add_dts_thermal_zone(int id, struct intel_soc_dts_sensor_entry *dts, in add_dts_thermal_zone() argument
215 SOC_DTS_OFFSET_ENABLE, &dts->store_status); in add_dts_thermal_zone()
219 dts->id = id; in add_dts_thermal_zone()
233 dts->tzone = thermal_zone_device_register_with_trips(name, trips, in add_dts_thermal_zone()
235 dts, &tzone_ops, in add_dts_thermal_zone()
237 if (IS_ERR(dts->tzone)) { in add_dts_thermal_zone()
238 ret = PTR_ERR(dts->tzone); in add_dts_thermal_zone()
241 ret = thermal_zone_device_enable(dts->tzone); in add_dts_thermal_zone()
251 thermal_zone_device_unregister(dts->tzone); in add_dts_thermal_zone()
393 MODULE_DESCRIPTION("SoC DTS driver using side band interface");