Lines Matching refs:status
229 * @status: the new status.
231 * Extract the status information from a WDT watchdog device. There are
235 * we then map the bits onto the status ioctl flags.
238 static int wdtpci_get_status(int *status)
247 *status = 0;
249 *status |= WDIOF_EXTERN1;
251 *status |= WDIOF_EXTERN2;
254 *status |= WDIOF_OVERHEAT;
256 *status |= WDIOF_POWEROVER;
258 *status |= WDIOF_POWERUNDER;
261 *status |= WDIOF_FANFAULT;
291 * Handle an interrupt from the board. These are raised when the status
299 * Read the status register see what is up and
302 unsigned char status;
306 status = inb(WDT_SR);
309 pr_crit("status %d\n", status);
312 if (!(status & WDC_SR_TGOOD)) {
316 if (!(status & WDC_SR_PSUOVER))
318 if (!(status & WDC_SR_PSUUNDR))
321 if (!(status & WDC_SR_FANGOOD))
325 if (!(status & WDC_SR_WCCR)) {
384 * querying capabilities and current status.
393 int status;
416 wdtpci_get_status(&status);
417 return put_user(status, p);