Home
last modified time | relevance | path

Searched refs:chan_sensor (Results 1 – 2 of 2) sorted by relevance

/openbsd/sys/arch/sparc64/dev/
H A Dpcf8591_envctrl.c39 struct ksensor chan_sensor; member
175 &sc->sc_channels[i].chan_sensor); in ecadc_attach()
215 chp->chan_sensor.value = 273150000 + 1000000 * in ecadc_refresh()
218 chp->chan_sensor.value = 273150000 + in ecadc_refresh()
221 chp->chan_sensor.status = SENSOR_S_OK; in ecadc_refresh()
222 if (chp->chan_sensor.value < chp->chan_min) in ecadc_refresh()
223 chp->chan_sensor.status = SENSOR_S_UNKNOWN; in ecadc_refresh()
224 if (chp->chan_sensor.value > chp->chan_warn) in ecadc_refresh()
225 chp->chan_sensor.status = SENSOR_S_WARN; in ecadc_refresh()
226 if (chp->chan_sensor.value > chp->chan_crit) in ecadc_refresh()
[all …]
H A Dpcf8591_ofw.c31 struct ksensor chan_sensor; member
128 chp->chan_sensor.type = SENSOR_TEMP; in pcfadc_attach()
134 strlcpy(chp->chan_sensor.desc, cp, in pcfadc_attach()
135 sizeof(chp->chan_sensor.desc)); in pcfadc_attach()
178 &sc->sc_channels[i].chan_sensor); in pcfadc_attach()
210 chp->chan_sensor.value = 273150000 + 1000000 * in pcfadc_refresh()