Lines Matching defs:sensor
139 * 2. Capacity limits are permitted only if the sensor has the
145 * Note that it permissible for a sensor to have value limits
181 * We found an existing event for this sensor. Make
186 DPRINTF(("%s: dev %s sensor %s: event type %d exists\n",
233 DPRINTF(("%s: dev %s sensor %s: new event\n",
240 /* Initialize sensor type and previously-sent state */
291 DPRINTF(("%s: (%s) event [sensor=%s type=%d] "
306 DPRINTF(("%s: (%s) event registered (sensor=%s snum=%d type=%d "
310 edata->sensor, see->see_type, edata->limits.sel_critmin,
398 sme_event_unregister(struct sysmon_envsys *sme, const char *sensor, int type)
404 KASSERT(sensor != NULL);
408 if (strcmp(see->see_pes.pes_sensname, sensor) == 0) {
428 DPRINTF(("%s: removed dev=%s sensor=%s type=%d\n",
429 __func__, see->see_pes.pes_dvname, sensor, type));
450 * + Unregisters any event associated with a specific sensor
476 DPRINTF(("%s: removed dev=%s sensor=%s\n",
545 "error=%d sensor=%s event=%s\n",
705 /* Find the dictionary for this sensor */
713 sdict = prop_array_get(array, edata->sensor);
791 * does its own setting of the sensor value.
795 /* refresh sensor in device */
803 DPRINTFOBJ(("%s: (%s) desc=%s sensor=%d type=%d state=%d units=%d "
805 edata->sensor, see->see_type, edata->state, edata->units,
808 /* skip the event if current sensor is in invalid state */
819 * If this is a CAPACITY monitor, but the sensor's max_value
858 * + Find the monitor event of a particular type for a given sensor
860 * no event type is specified, deliver all events for the sensor.
885 * + If new sensor state requires it, send an event to powerd
921 DPRINTFOBJ(("%s: (%s) desc=%s sensor=%d state=%d send_ev=%d\n",
923 edata->sensor, edata->state,
1012 * There's no need to continue if it's a drive sensor.
1067 bool dev = false, sensor = false;
1087 sensor = true;
1088 /* refresh current sensor */
1096 if (!sensor)