Lines Matching defs:sensor
39 * Each sensor is named by a unique Tag. The Tag identifies the geographical
40 * location of the sensor in the Serengeti, and what it is the sensor measures.
42 * Requestable sensor properties are broken into two types: Those which are
56 * (This sparse list of keys is then used as an index to obtain all the sensor
69 * environmental state changes (such as a sensor state change, Fan speed
72 * The SC-APP maintains a pseudo-sensor in each collection "measuring" changes
73 * to the quasi-constants in that collection. By monitoring these pseudo-sensor
195 * <env_cache> is a cache of all the sensor readings which is persistent
1144 * For each sensor collection, we check to see if there is
1162 * and the sensor readings have disappeared.
1502 * (assert size is OK, and 1st sensor is pseudo-sensor)
2150 * If the sensor readings for a particular collection of HPUs become invalid,
2214 int i; /* used to loop thru each sensor to set the status */
2284 * and generates sysevents for the sensor values that have changed.
2293 int i; /* loops through each sensor for each <key> */
2295 env_sensor_t sensor;
2308 sensor = env_cache[key][i];
2309 status = sensor.sd_status;
2317 * This sensor has changed in status since the last
2321 switch (sensor.sd_id.id.sensor_type) {
2336 (void) sgenv_process_threshold_event(sensor);
2340 SGENV_PRINT_POLL_INFO(sensor);
2401 sgenv_set_sensor_status(env_sensor_t *sensor)
2405 ASSERT(sensor != NULL);
2406 status = &sensor->sd_status;
2413 switch (sensor->sd_id.id.sensor_type) {
2416 * We want the status of this sensor to always be OK
2428 if (sensor->sd_value == SGENV_FAN_SPEED_HIGH) {
2432 } else if (sensor->sd_value == SGENV_FAN_SPEED_LOW) {
2435 } else if (sensor->sd_value == SGENV_FAN_SPEED_OFF) {
2460 if (sensor->sd_value > sensor->sd_hi) {
2464 } else if (sensor->sd_value > sensor->sd_hi_warn) {
2467 } else if (sensor->sd_value < sensor->sd_lo) {
2471 } else if (sensor->sd_value < sensor->sd_lo_warn) {
2504 * This function, when given an integer arg describing a sensor part,
2505 * returns the descriptive string associated with this sensor part.
2523 * This function, when given an integer arg describing a sensor type,
2524 * returns the descriptive string associated with this sensor type.
2542 * This function takes a sensor TagID and generates a string describing
2543 * where in the system the sensor is.
2666 * telling it that an environmental sensor has exceeded a threshold/limit level
2705 * for env readings and discover which sensor caused the SC to send
2904 * for env readings and discover which sensor caused the SC to send
2915 * or current reading for a sensor has exceeded its threshold/limit value or
2920 sgenv_process_threshold_event(env_sensor_t sensor)
2930 char sensor_str[MAX_TAG_ID_STR_LEN]; /* holds the sensor TagID */
2943 switch (sensor.sd_id.id.sensor_type) {
3019 switch (SG_GET_SENSOR_STATUS(sensor.sd_status)) {
3053 * Save the sensor TagID as a string so that a meaningful message
3056 sgenv_tagid_to_string(sensor.sd_id, sensor_str);
3061 switch (SG_GET_SENSOR_STATUS(sensor.sd_status)) {
3083 DCMN_ERR_EVENT(CE_NOTE, "%s: Unknown sensor status", f);