Home | History | Annotate | Download | only in ic

Lines Matching defs:sensor

160 		/* Release the keys and free the memory for sensor records.  */
181 /* Sanity-check the sensor number out of paranoia. */
182 if (edata->sensor >= sc->sc_nsensors) {
183 aprint_error_dev(sc->sc_dev, "unknown sensor %"PRIu32"\n",
184 edata->sensor);
188 /* Read the raw temperature sensor value. */
189 key = sc->sc_sensors[edata->sensor].sensor_key;
194 "failed to read temperature sensor %"PRIu32" (%s): %d\n",
195 edata->sensor, apple_smc_key_name(key), error);
325 const uint32_t sensor = fss->fss_sensor;
327 &fss->fss_sc->sc_sensors[sensor].sensor_data;
330 /* Initialize the envsys_data record for this temperature sensor. */
336 * Use the SMC key name as the temperature sensor's name.
344 /* Attach this temperature sensor to sysmon_envsys. */
348 "failed to attach temperature sensor %s: %d\n",
354 fss->fss_sc->sc_sensors[sensor].sensor_key = key;
361 uint32_t sensor;
363 for (sensor = 0; sensor < sc->sc_nsensors; sensor++) {
364 KASSERT(sc->sc_sensors[sensor].sensor_key != NULL);
366 sc->sc_sensors[sensor].sensor_key);
379 /* Find [start, end) bounds on the temperature sensor key indices. */
398 /* Skip it if it's not a temperature sensor. */
416 /* It's a temperature sensor iff its type is sp78. */