Lines Matching refs:aux_entry

113 	struct soc_sensor_entry *aux_entry;  in sys_get_trip_temp()  local
115 aux_entry = tzd->devdata; in sys_get_trip_temp()
119 *temp = aux_entry->tj_max - crit_offset; in sys_get_trip_temp()
135 *temp = aux_entry->tj_max - out * 1000; in sys_get_trip_temp()
140 static int update_trip_temp(struct soc_sensor_entry *aux_entry, in update_trip_temp() argument
154 temp_out = (aux_entry->tj_max - temp) / 1000; in update_trip_temp()
229 struct soc_sensor_entry *aux_entry = tzd->devdata; in sys_set_trip_temp() local
232 if (temp > (aux_entry->tj_max - crit_offset)) in sys_set_trip_temp()
258 struct soc_sensor_entry *aux_entry; in sys_get_curr_temp() local
260 aux_entry = tzd->devdata; in sys_get_curr_temp()
267 out = (out & aux_entry->temp_mask) >> aux_entry->temp_shift; in sys_get_curr_temp()
269 *temp = aux_entry->tj_max - out * 1000; in sys_get_curr_temp()
281 static void free_soc_dts(struct soc_sensor_entry *aux_entry) in free_soc_dts() argument
283 if (aux_entry) { in free_soc_dts()
285 SOC_DTS_OFFSET_ENABLE, aux_entry->store_status); in free_soc_dts()
286 thermal_zone_device_unregister(aux_entry->tzone); in free_soc_dts()
287 kfree(aux_entry); in free_soc_dts()
315 struct soc_sensor_entry *aux_entry; in alloc_soc_dts() local
321 aux_entry = kzalloc(sizeof(*aux_entry), GFP_KERNEL); in alloc_soc_dts()
322 if (!aux_entry) { in alloc_soc_dts()
330 &aux_entry->store_status); in alloc_soc_dts()
334 aux_entry->id = id; in alloc_soc_dts()
335 aux_entry->tj_max = tj_max; in alloc_soc_dts()
336 aux_entry->temp_mask = 0x00FF << (id * 8); in alloc_soc_dts()
337 aux_entry->temp_shift = id * 8; in alloc_soc_dts()
343 aux_entry->tzone = thermal_zone_device_register(name, in alloc_soc_dts()
346 aux_entry, &tzone_ops, in alloc_soc_dts()
348 if (IS_ERR(aux_entry->tzone)) { in alloc_soc_dts()
349 err = PTR_ERR(aux_entry->tzone); in alloc_soc_dts()
357 return aux_entry; in alloc_soc_dts()
360 thermal_zone_device_unregister(aux_entry->tzone); in alloc_soc_dts()
362 kfree(aux_entry); in alloc_soc_dts()