tag | line | file | source code |
hosterr | 231 | drivers/scsi/aha1542.c | static int makecode(unsigned hosterr, unsigned scsierr) |
hosterr | 233 | drivers/scsi/aha1542.c | switch (hosterr) { |
hosterr | 237 | drivers/scsi/aha1542.c | hosterr = 0; |
hosterr | 242 | drivers/scsi/aha1542.c | hosterr = DID_TIME_OUT; |
hosterr | 270 | drivers/scsi/aha1542.c | DEB(printk("Aha1542: %x %x\n", hosterr, scsierr)); |
hosterr | 271 | drivers/scsi/aha1542.c | hosterr = DID_ERROR; /* Couldn't find any better */ |
hosterr | 278 | drivers/scsi/aha1542.c | hosterr = DID_RESET; |
hosterr | 281 | drivers/scsi/aha1542.c | printk("makecode: unknown hoststatus %x\n", hosterr); |
hosterr | 284 | drivers/scsi/aha1542.c | return scsierr|(hosterr << 16); |
hosterr | 751 | drivers/scsi/wd7000.c | int make_code(unsigned hosterr, unsigned scsierr) |
hosterr | 754 | drivers/scsi/wd7000.c | int in_error = hosterr; |
hosterr | 757 | drivers/scsi/wd7000.c | switch ((hosterr>>8)&0xff){ |
hosterr | 759 | drivers/scsi/wd7000.c | hosterr = DID_ERROR; |
hosterr | 762 | drivers/scsi/wd7000.c | hosterr = DID_OK; |
hosterr | 765 | drivers/scsi/wd7000.c | hosterr = DID_OK; |
hosterr | 768 | drivers/scsi/wd7000.c | hosterr = DID_TIME_OUT; |
hosterr | 771 | drivers/scsi/wd7000.c | hosterr = DID_RESET; |
hosterr | 774 | drivers/scsi/wd7000.c | hosterr = DID_BAD_TARGET; |
hosterr | 778 | drivers/scsi/wd7000.c | hosterr = DID_BAD_INTR; |
hosterr | 781 | drivers/scsi/wd7000.c | hosterr = DID_ABORT; |
hosterr | 785 | drivers/scsi/wd7000.c | hosterr = DID_RESET; |
hosterr | 788 | drivers/scsi/wd7000.c | hosterr = DID_ERROR; |
hosterr | 792 | drivers/scsi/wd7000.c | if (scsierr||hosterr) |
hosterr | 794 | drivers/scsi/wd7000.c | scsierr,in_error,hosterr); |
hosterr | 796 | drivers/scsi/wd7000.c | return scsierr | (hosterr << 16); |