Lines Matching refs:hosterr
947 static int make_code(unsigned hosterr, unsigned scsierr)
950 int in_error = hosterr;
953 switch ((hosterr >> 8) & 0xff) {
955 hosterr = DID_ERROR;
958 hosterr = DID_OK;
961 hosterr = DID_OK;
964 hosterr = DID_TIME_OUT;
967 hosterr = DID_RESET;
970 hosterr = DID_BAD_TARGET;
974 hosterr = DID_BAD_INTR;
977 hosterr = DID_ABORT;
981 hosterr = DID_RESET;
984 hosterr = DID_ERROR;
987 if (scsierr || hosterr)
988 dprintk("\nSCSI command error: SCSI 0x%02x host 0x%04x return %d\n", scsierr, in_error, hosterr);
990 return (scsierr | (hosterr << 16));