Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
24 * Use is subject to license terms.
35 * It provides functionality to get/set temperatures and
38 * The environmental policy defaults to the auto mode
195 * the SCSI controller. This is used to identify a particular controller
202 * The implementation for SCSI disk drives to supply info. about
204 * temperature page is supported. To do this we need to scan the list
243 * Fan names associated with each ADM1031 hwms - used to
428 * We use this to figure out how many tuneables there are
472 * 'tbl' specifies the table to use, 'val' specifies the 'x', returns 'y'
567 * Allocate memory to hold the environmental segment data.
694 * Copy into the sensor control block array according to the
739 * Match Fan/ES ID and point to correct ES Data
767 * Lookup fan and return a pointer to env_fan_t data structure.
783 * Lookup sensor and return a pointer to env_sensor_t data structure.
800 * Lookup disk and return a pointer to env_disk_t data structure.
955 * from 0-100 and programs the HW monitor fans to the corresponding
1081 "Error in writing to COMMAND reg. of DIMM FAN controller\n");
1395 * Need to reinit ADM to manual mode for Tmin range to be
1408 * ADM 1031 Tmin/Trange register need to be reprogrammed.
1412 /* Need to pack tRange in ADM bits 2:0 */
1468 * Get PM state change events to check if the system
1473 * to get the power state change event here.
1509 * This function is used to reasonably predict the
1568 * set last read speed to current speed
1588 * to not update the tach register in case the fan stops. The
1596 * To fix this we need to figure out when the fans will be on/off
1598 * interrupts, we can use that loop to determine what the current
1642 timespec_t to;
1654 * Check whether the sensor belongs to the
1704 * threshold. If so we set sensor map to
1739 * are not logged then return to caller.
1753 * We use pthread_cond_reltimedwait_np to sleep for
1762 &env_monitor_mutex, &to);
1763 to.tv_sec = SENSORPOLL_INTERVAL;
1764 to.tv_nsec = 0;
1775 * warning threshold is exceeded. The job is to make sure it does
1777 * forced shutdown to avoid reaching hardware poweroff via THERM interrupt.
1788 timespec_t to;
1810 * We use pthread_cond_reltimedwait_np to sleep for
1819 &env_monitor_mutex, &to);
1820 to.tv_sec = INTERRUPTPOLL_INTERVAL;
1821 to.tv_nsec = 0;
1828 * Monitor the sensors to update fan status
1834 * Read ADM1031 two Status Registers to determine source
1884 timespec_t to;
1900 &env_monitor_mutex, &to);
1901 to.tv_sec = INTERRUPTPOLL_INTERVAL;
1902 to.tv_nsec = 0;
1909 * We write to the comand register periodically
1910 * to inform the PIC firmware that Solaris is
1919 "Error in writing to COMMAND reg. of DIMM FAN controller\n");
2045 timespec_t to;
2069 &env_monitor_mutex, &to);
2070 to.tv_sec = disk_scan_interval;
2071 to.tv_nsec = 0;
2088 * We do not want to read the disk temperature if the disk is
2145 * range and we need to log a warning message,
2204 * Setup envrionmental monitor state and start threads to monitor
2272 * Create a thread to monitor PM state
2324 * Invoke env_picl_destroy() to remove any PICL nodes/properties
2327 * to get current temperature or fan speed.
2778 * The dimm fan period is 16 bit value and we need to read
2779 * registers 2 and 3 to get the LSB and MSB values.
2820 * read register 1 to look at Fan fault bit.