Searched refs:aux_entry (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/thermal/
H A Dintel_quark_dts_thermal.c125 struct soc_sensor_entry *aux_entry = tzd->devdata; soc_dts_enable() local
134 aux_entry->mode = THERMAL_DEVICE_ENABLED; soc_dts_enable()
138 if (!aux_entry->locked) { soc_dts_enable()
145 aux_entry->mode = THERMAL_DEVICE_ENABLED; soc_dts_enable()
147 aux_entry->mode = THERMAL_DEVICE_DISABLED; soc_dts_enable()
158 struct soc_sensor_entry *aux_entry = tzd->devdata; soc_dts_disable() local
167 aux_entry->mode = THERMAL_DEVICE_DISABLED; soc_dts_disable()
171 if (!aux_entry->locked) { soc_dts_disable()
179 aux_entry->mode = THERMAL_DEVICE_DISABLED; soc_dts_disable()
181 aux_entry->mode = THERMAL_DEVICE_ENABLED; soc_dts_disable()
225 static int update_trip_temp(struct soc_sensor_entry *aux_entry, update_trip_temp() argument
234 if (aux_entry->locked) { update_trip_temp()
318 struct soc_sensor_entry *aux_entry = tzd->devdata; sys_get_mode() local
319 *mode = aux_entry->mode; sys_get_mode()
348 static void free_soc_dts(struct soc_sensor_entry *aux_entry) free_soc_dts() argument
350 if (aux_entry) { free_soc_dts()
351 if (!aux_entry->locked) { free_soc_dts()
355 aux_entry->store_dts_enable); free_soc_dts()
359 aux_entry->store_ptps); free_soc_dts()
362 thermal_zone_device_unregister(aux_entry->tzone); free_soc_dts()
363 kfree(aux_entry); free_soc_dts()
369 struct soc_sensor_entry *aux_entry; alloc_soc_dts() local
374 aux_entry = kzalloc(sizeof(*aux_entry), GFP_KERNEL); alloc_soc_dts()
375 if (!aux_entry) { alloc_soc_dts()
388 aux_entry->locked = true; alloc_soc_dts()
391 aux_entry->locked = false; alloc_soc_dts()
396 if (!aux_entry->locked) { alloc_soc_dts()
400 &aux_entry->store_dts_enable); alloc_soc_dts()
407 &aux_entry->store_ptps); alloc_soc_dts()
412 aux_entry->tzone = thermal_zone_device_register("quark_dts", alloc_soc_dts()
415 aux_entry, &tzone_ops, NULL, 0, polling_delay); alloc_soc_dts()
416 if (IS_ERR(aux_entry->tzone)) { alloc_soc_dts()
417 err = PTR_ERR(aux_entry->tzone); alloc_soc_dts()
422 err = soc_dts_enable(aux_entry->tzone); alloc_soc_dts()
427 return aux_entry; alloc_soc_dts()
430 thermal_zone_device_unregister(aux_entry->tzone); alloc_soc_dts()
432 kfree(aux_entry); alloc_soc_dts()

Completed in 84 milliseconds