Lines Matching refs:hd_error
117 static int hd_error; variable
225 hd_error = 0; in dump_status()
227 hd_error = inb(HD_ERROR); in dump_status()
228 printk("%s: %s: error=0x%02x { ", name, msg, hd_error & 0xff); in dump_status()
229 if (hd_error & BBD_ERR) printk("BadSector "); in dump_status()
230 if (hd_error & ECC_ERR) printk("UncorrectableError "); in dump_status()
231 if (hd_error & ID_ERR) printk("SectorIdNotFound "); in dump_status()
232 if (hd_error & ABRT_ERR) printk("DriveStatusError "); in dump_status()
233 if (hd_error & TRK0_ERR) printk("TrackZeroNotFound "); in dump_status()
234 if (hd_error & MARK_ERR) printk("AddrMarkNotFound "); in dump_status()
236 if (hd_error & (BBD_ERR|ECC_ERR|ID_ERR|MARK_ERR)) { in dump_status()
247 hd_error = 0; in dump_status()
249 hd_error = inb(HD_ERROR); in dump_status()
250 printk("%s: %s: error=0x%02x.\n", name, msg, hd_error & 0xff); in dump_status()
363 else if ((hd_error = inb(HD_ERROR)) != 1) in reset_controller()
364 printk("hd: controller reset failed: %02x\n", hd_error); in reset_controller()
422 if (++req->errors >= MAX_ERRORS || (hd_error & BBD_ERR)) { in bad_rw_intr()
427 else if ((hd_error & TRK0_ERR) || req->errors % RECAL_FREQ == 0) in bad_rw_intr()