Lines Matching defs:sensor
30 * Routines in this file are used to manage CPU temperature sensor
177 * Sets the threshold temperature specified in given sensor number
212 * returns the sensor reading of the SMC sensor specified in sensor_no
271 * volatile function that returns the state of sensor
321 * volatile property to read sensor thresholds
469 env_init_temp_sensor_values(int sensor_no, env_temp_sensor_t *sensor)
471 if (env_get_sensor_reading(sensor_no, &sensor->curr_temp) !=
477 &sensor->lo_warning) != PICL_SUCCESS) {
483 &sensor->lo_shutdown) != PICL_SUCCESS) {
489 &sensor->lo_poweroff) != PICL_SUCCESS) {
495 &sensor->hi_warning) != PICL_SUCCESS) {
501 &sensor->hi_shutdown) != PICL_SUCCESS) {
507 &sensor->hi_poweroff) != PICL_SUCCESS) {
512 if (sensor->curr_temp > sensor->hi_shutdown ||
513 sensor->curr_temp < sensor->lo_shutdown) {
514 (void) strncpy(sensor->state,
516 sizeof (sensor->state));
517 } else if (sensor->curr_temp > sensor->hi_warning ||
518 sensor->curr_temp < sensor->lo_warning) {
519 (void) strncpy(sensor->state,
521 sizeof (sensor->state));
523 (void) strncpy(sensor->state, PICLEVENTARGVAL_OK,
524 sizeof (sensor->state));
531 * from a sensor specified by sensor_no
561 * creates temperature sensor node and all of its properties
575 "opening SMC(failed to create sensor nodes)"));
593 /* create temperature sensor node */
687 /* enable sensor-event */
693 * handles the sensor events (post corresponding Condition picl event)