Lines Matching +full:event +full:- +full:prox
1 /*-
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
33 * http://www.intersil.com/en/products/optoelectronics/ambient-light-and-proximity-sensors/light-to-digital-sensors/ISL29018.html
40 #include <sys/event.h>
152 if (device_find_child(parent, "asl", -1)) {
188 sc->dev = dev;
193 sx_init(&sc->isl_sx, "ISL read lock");
207 "Current ALS sensor read-out");
215 "Current IR sensor read-out");
220 SYSCTL_CHILDREN(sysctl_tree), OID_AUTO, "prox",
223 "Current proximity sensor read-out");
247 sx_destroy(&sc->isl_sx);
264 sc = (struct isl_softc *)oidp->oid_arg1;
265 arg = -1;
267 sx_xlock(&sc->isl_sx);
268 if (isl_read_byte(sc->dev, REG_CMD2, &rbyte) != 0) {
269 sx_xunlock(&sc->isl_sx);
270 return (-1);
276 switch (oidp->oid_arg2) {
278 arg = (isl_read_sensor(sc->dev,
282 arg = isl_read_sensor(sc->dev, CMD1_MASK_IR_ONCE);
285 arg = isl_read_sensor(sc->dev, CMD1_MASK_PROX_ONCE);
294 sx_xunlock(&sc->isl_sx);
311 return (-1);
317 return (-1);
325 return (-1);
331 return (-1);