Lines Matching refs:hd_error
87 static int hd_error; variable
185 hd_error = 0; in dump_status()
187 hd_error = inb(HD_ERROR); in dump_status()
188 printk("hd%c: %s: error=0x%02x { ", devc, msg, hd_error & 0xff); in dump_status()
189 if (hd_error & BBD_ERR) printk("BadSector "); in dump_status()
190 if (hd_error & ECC_ERR) printk("UncorrectableError "); in dump_status()
191 if (hd_error & ID_ERR) printk("SectorIdNotFound "); in dump_status()
192 if (hd_error & ABRT_ERR) printk("DriveStatusError "); in dump_status()
193 if (hd_error & TRK0_ERR) printk("TrackZeroNotFound "); in dump_status()
194 if (hd_error & MARK_ERR) printk("AddrMarkNotFound "); in dump_status()
196 if (hd_error & (BBD_ERR|ECC_ERR|ID_ERR|MARK_ERR)) { in dump_status()
208 hd_error = 0; in dump_status()
210 hd_error = inb(HD_ERROR); in dump_status()
211 printk("hd%c: %s: error=0x%02x.\n", devc, msg, hd_error & 0xff); in dump_status()
321 else if ((hd_error = inb(HD_ERROR)) != 1) in reset_controller()
322 printk("hd: controller reset failed: %02x\n",hd_error); in reset_controller()
387 if (++CURRENT->errors >= MAX_ERRORS || (hd_error & BBD_ERR)) { in bad_rw_intr()
392 else if ((hd_error & TRK0_ERR) || CURRENT->errors % RECAL_FREQ == 0) in bad_rw_intr()