Lines Matching defs:sensors
58 #define ENVSYS_LFLAG 0x00000004 /* list sensors */
60 #define ENVSYS_IFLAG 0x00000010 /* skip invalid sensors */
68 /* Sensors */
104 /* A simple queue to manage all sensors */
108 /* A simple queue to manage statistics for all sensors */
113 static char *mydevname, *sensors;
149 case 'd': /* show sensors of a specific device */
155 case 'I': /* Skips invalid sensors */
169 case 'l': /* list sensors */
184 case 's': /* only show specified sensors */
185 sensors = optarg;
225 if (mydevname && sensors)
240 if (mydevname || sensors) {
251 if (sensors) {
256 s = strdup(sensors);
340 /* Show sensors with interval */
351 /* Show sensors without interval */
538 /* -d flag specified, print sensors only for this device */
551 /* print sensors for all devices registered */
562 warnx("no sensors found");
595 /* print sensors now */
596 if (sensors)
597 rval = check_sensors(sensors);
606 if (interval && ((flags & ENVSYS_NFLAG) == 0 || sensors == NULL)) {
698 /* mark sensors with invalid/unknown state */
794 /* ignore sensors not relevant for statistics */
878 /* check if all sensors were ok, and error out if not */
885 warnx("no sensors selected to display");
947 if (!sensors || (!header_passes && sensors) ||
948 (header_passes == 10 && sensors)) {
957 if (sensors && header_passes == 10)
960 if (sensors)
970 /* print the sensors */
972 /* skip sensors that were not marked as visible */
973 if (sensors && !sensor->visible)
976 /* skip invalid sensors if -I is set */
1011 * Indicator and Battery charge sensors.
1386 /* print the sensors */
1388 /* completely skip sensors that were not marked as visible */
1389 if (sensors && !sensor->visible)
1392 /* completely skip invalid sensors if -I is set */
1439 * Indicator and Battery charge sensors.