Lines Matching full:dts

36 /* DTS encoding for TJ MAX temperature */
45 /* DTS0 and DTS 1 */
79 struct intel_soc_dts_sensor_entry *dts; in sys_get_trip_temp() local
82 dts = tzd->devdata; in sys_get_trip_temp()
83 sensors = dts->sensors; in sys_get_trip_temp()
100 static int update_trip_temp(struct intel_soc_dts_sensor_entry *dts, in update_trip_temp() argument
113 struct intel_soc_dts_sensors *sensors = dts->sensors; in update_trip_temp()
176 dts->trip_types[thres_index] = trip_type; in update_trip_temp()
196 struct intel_soc_dts_sensor_entry *dts = tzd->devdata; in sys_set_trip_temp() local
197 struct intel_soc_dts_sensors *sensors = dts->sensors; in sys_set_trip_temp()
205 dts->trip_types[trip]); in sys_set_trip_temp()
214 struct intel_soc_dts_sensor_entry *dts; in sys_get_trip_type() local
216 dts = tzd->devdata; in sys_get_trip_type()
218 *type = dts->trip_types[trip]; in sys_get_trip_type()
228 struct intel_soc_dts_sensor_entry *dts; in sys_get_curr_temp() local
232 dts = tzd->devdata; in sys_get_curr_temp()
233 sensors = dts->sensors; in sys_get_curr_temp()
240 out = bitmap_get_value8(&raw, dts->id * 8) - SOC_DTS_TJMAX_ENCODING; in sys_get_curr_temp()
274 static void remove_dts_thermal_zone(struct intel_soc_dts_sensor_entry *dts) in remove_dts_thermal_zone() argument
276 if (dts) { in remove_dts_thermal_zone()
278 SOC_DTS_OFFSET_ENABLE, dts->store_status); in remove_dts_thermal_zone()
279 thermal_zone_device_unregister(dts->tzone); in remove_dts_thermal_zone()
283 static int add_dts_thermal_zone(int id, struct intel_soc_dts_sensor_entry *dts, in add_dts_thermal_zone() argument
299 SOC_DTS_OFFSET_ENABLE, &dts->store_status); in add_dts_thermal_zone()
303 dts->id = id; in add_dts_thermal_zone()
320 dts->trip_mask = trip_mask; in add_dts_thermal_zone()
321 dts->trip_count = trip_count; in add_dts_thermal_zone()
323 dts->tzone = thermal_zone_device_register(name, in add_dts_thermal_zone()
326 dts, &tzone_ops, in add_dts_thermal_zone()
328 if (IS_ERR(dts->tzone)) { in add_dts_thermal_zone()
329 ret = PTR_ERR(dts->tzone); in add_dts_thermal_zone()
332 ret = thermal_zone_device_enable(dts->tzone); in add_dts_thermal_zone()
342 thermal_zone_device_unregister(dts->tzone); in add_dts_thermal_zone()