Lines Matching refs:sensor
160 mv_thermal_select_sensor(struct mv_thermal_softc *sc, int sensor)
164 if (sc->cur_sensor == sensor)
172 /* Switch to the selected sensor */
178 /* This reset automatically to the sensor 0 */
180 if (sensor) {
181 /* Select external sensor */
184 reg |= (sensor - 1) << CONTROL0_CHANNEL_SHIFT;
187 sc->cur_sensor = sensor;
198 mv_thermal_read_sensor(struct mv_thermal_softc *sc, int sensor, int *temp)
203 rv = mv_thermal_select_sensor(sc, sensor);
235 /* Since we just started the module wait for the sensor to be ready */
264 int sensor = arg2;
270 if (mv_thermal_read_sensor(sc, sensor, &val) == 0) {
274 device_printf(dev, "Timeout waiting for sensor\n");
333 /* There is always at least one sensor */