tag | line | file | source code |
hosterr | 118 | drivers/scsi/aha1542.c | static int makecode(unsigned hosterr, unsigned scsierr) |
hosterr | 120 | drivers/scsi/aha1542.c | switch (hosterr) { |
hosterr | 124 | drivers/scsi/aha1542.c | hosterr = 0; |
hosterr | 129 | drivers/scsi/aha1542.c | hosterr = DID_TIME_OUT; |
hosterr | 157 | drivers/scsi/aha1542.c | DEB(printk("Aha1542: %x %x\n", hosterr, scsierr)); |
hosterr | 158 | drivers/scsi/aha1542.c | hosterr = DID_ERROR; /* Couldn't find any better */ |
hosterr | 165 | drivers/scsi/aha1542.c | hosterr = DID_RESET; |
hosterr | 168 | drivers/scsi/aha1542.c | printk("makecode: unknown hoststatus %x\n", hosterr); |
hosterr | 171 | drivers/scsi/aha1542.c | return scsierr|(hosterr << 16); |
hosterr | 236 | drivers/scsi/wd7000.c | int make_code(unsigned hosterr, unsigned scsierr) |
hosterr | 239 | drivers/scsi/wd7000.c | int in_error = hosterr; |
hosterr | 242 | drivers/scsi/wd7000.c | switch ((hosterr>>8)&0xff){ |
hosterr | 244 | drivers/scsi/wd7000.c | hosterr = DID_ERROR; |
hosterr | 247 | drivers/scsi/wd7000.c | hosterr = DID_OK; |
hosterr | 250 | drivers/scsi/wd7000.c | hosterr = DID_OK; |
hosterr | 253 | drivers/scsi/wd7000.c | hosterr = DID_TIME_OUT; |
hosterr | 256 | drivers/scsi/wd7000.c | hosterr = DID_RESET; |
hosterr | 259 | drivers/scsi/wd7000.c | hosterr = DID_BAD_TARGET; |
hosterr | 263 | drivers/scsi/wd7000.c | hosterr = DID_BAD_INTR; |
hosterr | 266 | drivers/scsi/wd7000.c | hosterr = DID_ABORT; |
hosterr | 270 | drivers/scsi/wd7000.c | hosterr = DID_RESET; |
hosterr | 273 | drivers/scsi/wd7000.c | hosterr = DID_ERROR; |
hosterr | 277 | drivers/scsi/wd7000.c | if (scsierr||hosterr) |
hosterr | 279 | drivers/scsi/wd7000.c | scsierr,in_error,hosterr); |
hosterr | 281 | drivers/scsi/wd7000.c | return scsierr | (hosterr << 16); |