Lines Matching refs:dts

132 static int configure_trip(struct intel_soc_dts_sensor_entry *dts,  in configure_trip()  argument
138 ret = update_trip_temp(dts->sensors, thres_index, temp); in configure_trip()
142 dts->trips[thres_index].temperature = temp; in configure_trip()
143 dts->trips[thres_index].type = trip_type; in configure_trip()
151 struct intel_soc_dts_sensor_entry *dts = thermal_zone_device_priv(tzd); in sys_set_trip_temp() local
152 struct intel_soc_dts_sensors *sensors = dts->sensors; in sys_set_trip_temp()
170 struct intel_soc_dts_sensor_entry *dts = thermal_zone_device_priv(tzd); in sys_get_curr_temp() local
174 sensors = dts->sensors; in sys_get_curr_temp()
181 out = bitmap_get_value8(&raw, dts->id * 8) - SOC_DTS_TJMAX_ENCODING; in sys_get_curr_temp()
213 static void remove_dts_thermal_zone(struct intel_soc_dts_sensor_entry *dts) in remove_dts_thermal_zone() argument
216 SOC_DTS_OFFSET_ENABLE, dts->store_status); in remove_dts_thermal_zone()
217 thermal_zone_device_unregister(dts->tzone); in remove_dts_thermal_zone()
220 static int add_dts_thermal_zone(int id, struct intel_soc_dts_sensor_entry *dts, in add_dts_thermal_zone() argument
234 SOC_DTS_OFFSET_ENABLE, &dts->store_status); in add_dts_thermal_zone()
238 dts->id = id; in add_dts_thermal_zone()
255 dts->trip_mask = trip_mask; in add_dts_thermal_zone()
257 dts->tzone = thermal_zone_device_register_with_trips(name, dts->trips, in add_dts_thermal_zone()
260 dts, &tzone_ops, in add_dts_thermal_zone()
262 if (IS_ERR(dts->tzone)) { in add_dts_thermal_zone()
263 ret = PTR_ERR(dts->tzone); in add_dts_thermal_zone()
266 ret = thermal_zone_device_enable(dts->tzone); in add_dts_thermal_zone()
276 thermal_zone_device_unregister(dts->tzone); in add_dts_thermal_zone()