Lines Matching defs:stat
207 static void dump_status(const char *msg, unsigned int stat)
214 printk("%s: %s: status=0x%02x { ", name, msg, stat & 0xff);
215 if (stat & BUSY_STAT) printk("Busy ");
216 if (stat & READY_STAT) printk("DriveReady ");
217 if (stat & WRERR_STAT) printk("WriteFault ");
218 if (stat & SEEK_STAT) printk("SeekComplete ");
219 if (stat & DRQ_STAT) printk("DataRequest ");
220 if (stat & ECC_STAT) printk("CorrectedError ");
221 if (stat & INDEX_STAT) printk("Index ");
222 if (stat & ERR_STAT) printk("Error ");
224 if ((stat & ERR_STAT) == 0) {
245 printk("%s: %s: status=0x%02x.\n", name, msg, stat & 0xff);
246 if ((stat & ERR_STAT) == 0) {
403 unsigned int stat = inb_p(HD_STATUS);
405 if (stat & (BUSY_STAT|DRQ_STAT|ECC_STAT|ERR_STAT)) {
406 dump_status("unexpected interrupt", stat);
436 int stat;
439 stat = inb_p(HD_STATUS);
440 if (stat & DRQ_STAT)
443 dump_status("wait_DRQ", stat);