Lines Matching defs:sc_sensor
54 envsys_data_t *sc_sensor;
253 sc->sc_sensor = kmem_zalloc(sizeof(envsys_data_t), KM_NOSLEEP);
254 if (!sc->sc_sensor) {
255 aprint_error_dev(self, "unable to allocate sc_sensor\n");
260 sc->sc_sensor->units = ENVSYS_STEMP;
261 sc->sc_sensor->state = ENVSYS_SINVALID;
262 sc->sc_sensor->flags |= ENVSYS_FMONLIMITS;
263 (void)strlcpy(sc->sc_sensor->desc, device_xname(self),
264 sizeof(sc->sc_sensor->desc));
267 if (sysmon_envsys_sensor_attach(sc->sc_sme, sc->sc_sensor)) {
284 sdtemp_get_limits(sc->sc_sme, sc->sc_sensor, &sc->sc_deflims,
308 kmem_free(sc->sc_sensor, sizeof(envsys_data_t));
322 if (sc->sc_sensor)
323 kmem_free(sc->sc_sensor, sizeof(envsys_data_t));