Home
last modified time | relevance | path

Searched refs:sc_sensor (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/dev/iicbus/sensor/
H A Dds1775.c60 struct pmac_therm sc_sensor; member
188 if (OF_getprop(child, "hwsensor-zone", &sc->sc_sensor.zone, in ds1775_start()
190 sc->sc_sensor.zone = 0; in ds1775_start()
192 plen = OF_getprop(child, "hwsensor-location", sc->sc_sensor.name, in ds1775_start()
193 sizeof(sc->sc_sensor.name)); in ds1775_start()
198 for (i = 0; i < strlen(sc->sc_sensor.name); i++) { in ds1775_start()
199 sysctl_name[i] = tolower(sc->sc_sensor.name[i]); in ds1775_start()
207 if (sc->sc_sensor.zone == 0) { in ds1775_start()
208 sc->sc_sensor.target_temp = 500 + ZERO_C_TO_K; in ds1775_start()
209 sc->sc_sensor.max_temp = 600 + ZERO_C_TO_K; in ds1775_start()
[all …]
H A Dds1631.c72 struct pmac_therm sc_sensor; member
313 if (OF_getprop(child, "hwsensor-zone", &sc->sc_sensor.zone, in ds1631_start()
315 sc->sc_sensor.zone = 0; in ds1631_start()
317 plen = OF_getprop(child, "hwsensor-location", sc->sc_sensor.name, in ds1631_start()
318 sizeof(sc->sc_sensor.name)); in ds1631_start()
325 plen = OF_getprop(node, "location", sc->sc_sensor.name, in ds1631_start()
326 sizeof(sc->sc_sensor.name)); in ds1631_start()
332 for (i = 0; i < strlen(sc->sc_sensor.name); i++) { in ds1631_start()
333 sysctl_name[i] = tolower(sc->sc_sensor.name[i]); in ds1631_start()
341 if (sc->sc_sensor.zone == 0) { in ds1631_start()
[all …]
/freebsd/sys/dev/usb/misc/
H A Dugold.c105 int sc_sensor[UGOLD_MAX_SENSORS]; member
247 OID_AUTO, "inner", CTLFLAG_RD, &sc->sc_sensor[UGOLD_INNER], 0, in ugold_attach()
262 OID_AUTO, "outer", CTLFLAG_RD, &sc->sc_sensor[UGOLD_OUTER], 0, in ugold_attach()
348 sc->sc_sensor[UGOLD_OUTER] = temp + sc->sc_calib[UGOLD_OUTER]; in ugold_intr_callback()
353 sc->sc_sensor[UGOLD_INNER] = temp + sc->sc_calib[UGOLD_INNER]; in ugold_intr_callback()