taglinefilesource code
hosterr115kernel/blk_drv/scsi/aha1542.cint makecode(unsigned hosterr, unsigned scsierr)
hosterr117kernel/blk_drv/scsi/aha1542.cswitch (hosterr) {
hosterr121kernel/blk_drv/scsi/aha1542.chosterr = 0;
hosterr126kernel/blk_drv/scsi/aha1542.chosterr = DID_TIME_OUT;
hosterr154kernel/blk_drv/scsi/aha1542.chosterr = DID_ERROR; /* Couldn't find any better */
hosterr161kernel/blk_drv/scsi/aha1542.chosterr = DID_RESET;
hosterr164kernel/blk_drv/scsi/aha1542.cprintk("makecode: unknown hoststatus %x\n", hosterr);
hosterr167kernel/blk_drv/scsi/aha1542.creturn scsierr|(hosterr << 16);
hosterr234kernel/blk_drv/scsi/wd7000.cint make_code(unsigned hosterr, unsigned scsierr)
hosterr237kernel/blk_drv/scsi/wd7000.cint in_error = hosterr;
hosterr240kernel/blk_drv/scsi/wd7000.cswitch ((hosterr>>8)&0xff){
hosterr242kernel/blk_drv/scsi/wd7000.chosterr = DID_ERROR;
hosterr245kernel/blk_drv/scsi/wd7000.chosterr = DID_OK;
hosterr248kernel/blk_drv/scsi/wd7000.chosterr = DID_OK;
hosterr251kernel/blk_drv/scsi/wd7000.chosterr = DID_TIME_OUT;
hosterr254kernel/blk_drv/scsi/wd7000.chosterr = DID_RESET;
hosterr257kernel/blk_drv/scsi/wd7000.chosterr = DID_BAD_TARGET;
hosterr261kernel/blk_drv/scsi/wd7000.chosterr = DID_BAD_INTR;
hosterr264kernel/blk_drv/scsi/wd7000.chosterr = DID_ABORT;
hosterr268kernel/blk_drv/scsi/wd7000.chosterr = DID_RESET;
hosterr271kernel/blk_drv/scsi/wd7000.chosterr = DID_ERROR;
hosterr275kernel/blk_drv/scsi/wd7000.cif (scsierr||hosterr)
hosterr277kernel/blk_drv/scsi/wd7000.cscsierr,in_error,hosterr);
hosterr279kernel/blk_drv/scsi/wd7000.creturn scsierr | (hosterr << 16);