Lines Matching refs:hosterr
951 static int make_code(unsigned hosterr, unsigned scsierr) in make_code() argument
954 int in_error = hosterr; in make_code()
957 switch ((hosterr >> 8) & 0xff) { in make_code()
959 hosterr = DID_ERROR; in make_code()
962 hosterr = DID_OK; in make_code()
965 hosterr = DID_OK; in make_code()
968 hosterr = DID_TIME_OUT; in make_code()
971 hosterr = DID_RESET; in make_code()
974 hosterr = DID_BAD_TARGET; in make_code()
978 hosterr = DID_BAD_INTR; in make_code()
981 hosterr = DID_ABORT; in make_code()
985 hosterr = DID_RESET; in make_code()
988 hosterr = DID_ERROR; in make_code()
991 if (scsierr || hosterr) in make_code()
992 dprintk("\nSCSI command error: SCSI 0x%02x host 0x%04x return %d\n", scsierr, in_error, hosterr); in make_code()
994 return (scsierr | (hosterr << 16)); in make_code()