Lines Matching refs:aux_entry

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