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