taglinefilesource code
hosterr226drivers/scsi/aha1542.cstatic int makecode(unsigned hosterr, unsigned scsierr)
hosterr228drivers/scsi/aha1542.cswitch (hosterr) {
hosterr232drivers/scsi/aha1542.chosterr = 0;
hosterr237drivers/scsi/aha1542.chosterr = DID_TIME_OUT;
hosterr265drivers/scsi/aha1542.cDEB(printk("Aha1542: %x %x\n", hosterr, scsierr));
hosterr266drivers/scsi/aha1542.chosterr = DID_ERROR; /* Couldn't find any better */
hosterr273drivers/scsi/aha1542.chosterr = DID_RESET;
hosterr276drivers/scsi/aha1542.cprintk("makecode: unknown hoststatus %x\n", hosterr);
hosterr279drivers/scsi/aha1542.creturn scsierr|(hosterr << 16);
hosterr309drivers/scsi/buslogic.cunsigned int hosterr;
hosterr346drivers/scsi/buslogic.chosterr = DID_OK;
hosterr352drivers/scsi/buslogic.chosterr = DID_TIME_OUT;
hosterr364drivers/scsi/buslogic.chosterr = DID_RESET;
hosterr398drivers/scsi/buslogic.chosterr = DID_ERROR;  /* ??? Couldn't find any better. */
hosterr405drivers/scsi/buslogic.chosterr = DID_ERROR;
hosterr410drivers/scsi/buslogic.cif (hosterr != DID_OK) {
hosterr417drivers/scsi/buslogic.cif (hosterr == DID_ERROR)
hosterr423drivers/scsi/buslogic.creturn (hosterr << 16) | scsierr;
hosterr744drivers/scsi/wd7000.cint make_code(unsigned hosterr, unsigned scsierr)
hosterr747drivers/scsi/wd7000.cint in_error = hosterr;
hosterr750drivers/scsi/wd7000.cswitch ((hosterr>>8)&0xff){
hosterr752drivers/scsi/wd7000.chosterr = DID_ERROR;
hosterr755drivers/scsi/wd7000.chosterr = DID_OK;
hosterr758drivers/scsi/wd7000.chosterr = DID_OK;
hosterr761drivers/scsi/wd7000.chosterr = DID_TIME_OUT;
hosterr764drivers/scsi/wd7000.chosterr = DID_RESET;
hosterr767drivers/scsi/wd7000.chosterr = DID_BAD_TARGET;
hosterr771drivers/scsi/wd7000.chosterr = DID_BAD_INTR;
hosterr774drivers/scsi/wd7000.chosterr = DID_ABORT;
hosterr778drivers/scsi/wd7000.chosterr = DID_RESET;
hosterr781drivers/scsi/wd7000.chosterr = DID_ERROR;
hosterr785drivers/scsi/wd7000.cif (scsierr||hosterr)
hosterr787drivers/scsi/wd7000.cscsierr,in_error,hosterr);
hosterr789drivers/scsi/wd7000.creturn scsierr | (hosterr << 16);