Displaying 7 results from an estimated 7 matches for "driver_invalid".
2013 Aug 16
0
RocketRAID cards (actually, solved)
...nted to make sure IRQ_HANDLED
was defined, presuming it's in use elsewhere, and I'm making minimal
changes to the code.
/* #ifndef IRQ_HANDLED */
#ifndef _LINUX_IRQRETURN_H
4. In osm_linux.c, I changed from the first line below to the second.
/* SCpnt->result = ((DRIVER_INVALID|SUGGEST_ABORT)<<24) |
(DID_ABORT<<16); */
SCpnt->result = ((DRIVER_INVALID|TASK_ABORTED)<<24) |
(DID_ABORT<<16); Again, some defines are long gone. I chose
TASK_ABORTED because it
had the same hex value as SUGGEST_ABORT, 0x20, and seemed appropriate.
T...
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...> +
> + case BTSTAT_SELTIMEO:
> + /* Our emulation returns this for non-connected devs */
> + cmd->result = (DID_BAD_TARGET << 16);
> + break;
> +
> + case BTSTAT_LUNMISMATCH:
> + case BTSTAT_TAGREJECT:
> + case BTSTAT_BADMSG:
> + cmd->result = (DRIVER_INVALID << 24);
> + /* fall through */
> +
> + case BTSTAT_HAHARDWARE:
> + case BTSTAT_INVPHASE:
> + case BTSTAT_HATIMEOUT:
> + case BTSTAT_NORESPONSE:
> + case BTSTAT_DISCONNECT:
> + case BTSTAT_HASOFTWARE:
> + case BTSTAT_BUSFREE:
> + case BTSTAT_SENSFAILED:...
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...> +
> + case BTSTAT_SELTIMEO:
> + /* Our emulation returns this for non-connected devs */
> + cmd->result = (DID_BAD_TARGET << 16);
> + break;
> +
> + case BTSTAT_LUNMISMATCH:
> + case BTSTAT_TAGREJECT:
> + case BTSTAT_BADMSG:
> + cmd->result = (DRIVER_INVALID << 24);
> + /* fall through */
> +
> + case BTSTAT_HAHARDWARE:
> + case BTSTAT_INVPHASE:
> + case BTSTAT_HATIMEOUT:
> + case BTSTAT_NORESPONSE:
> + case BTSTAT_DISCONNECT:
> + case BTSTAT_HASOFTWARE:
> + case BTSTAT_BUSFREE:
> + case BTSTAT_SENSFAILED:...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...->result = (DID_ERROR << 16);
+ break;
+
+ case BTSTAT_SELTIMEO:
+ /* Our emulation returns this for non-connected devs */
+ cmd->result = (DID_BAD_TARGET << 16);
+ break;
+
+ case BTSTAT_LUNMISMATCH:
+ case BTSTAT_TAGREJECT:
+ case BTSTAT_BADMSG:
+ cmd->result = (DRIVER_INVALID << 24);
+ /* fall through */
+
+ case BTSTAT_HAHARDWARE:
+ case BTSTAT_INVPHASE:
+ case BTSTAT_HATIMEOUT:
+ case BTSTAT_NORESPONSE:
+ case BTSTAT_DISCONNECT:
+ case BTSTAT_HASOFTWARE:
+ case BTSTAT_BUSFREE:
+ case BTSTAT_SENSFAILED:
+ cmd->result |= (DID_ERROR << 16);
+...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...->result = (DID_ERROR << 16);
+ break;
+
+ case BTSTAT_SELTIMEO:
+ /* Our emulation returns this for non-connected devs */
+ cmd->result = (DID_BAD_TARGET << 16);
+ break;
+
+ case BTSTAT_LUNMISMATCH:
+ case BTSTAT_TAGREJECT:
+ case BTSTAT_BADMSG:
+ cmd->result = (DRIVER_INVALID << 24);
+ /* fall through */
+
+ case BTSTAT_HAHARDWARE:
+ case BTSTAT_INVPHASE:
+ case BTSTAT_HATIMEOUT:
+ case BTSTAT_NORESPONSE:
+ case BTSTAT_DISCONNECT:
+ case BTSTAT_HASOFTWARE:
+ case BTSTAT_BUSFREE:
+ case BTSTAT_SENSFAILED:
+ cmd->result |= (DID_ERROR << 16);
+...
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...hptiop_hba *hba, u32 tag,
scsi_set_resid(scp,
scsi_bufflen(scp) - le32_to_cpu(req->dataxfer_length));
scp->result = SAM_STAT_CHECK_CONDITION;
memcpy(scp->sense_buffer, &req->sg_list, SCSI_SENSE_BUFFERSIZE);
goto skip_resid;
- break;
default:
scp->result = DRIVER_INVALID << 24 | DID_ABORT << 16;
break;
}
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index b0aa58d117cc..e451102b9a29 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -9485,11 +9485,10 @@ static pci_ers_result_t ipr_pci_error_detected(struct pci_dev *pdev,
ipr_pci_f...
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...hptiop_hba *hba, u32 tag,
scsi_set_resid(scp,
scsi_bufflen(scp) - le32_to_cpu(req->dataxfer_length));
scp->result = SAM_STAT_CHECK_CONDITION;
memcpy(scp->sense_buffer, &req->sg_list, SCSI_SENSE_BUFFERSIZE);
goto skip_resid;
- break;
default:
scp->result = DRIVER_INVALID << 24 | DID_ABORT << 16;
break;
}
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index b0aa58d117cc..e451102b9a29 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -9485,11 +9485,10 @@ static pci_ers_result_t ipr_pci_error_detected(struct pci_dev *pdev,
ipr_pci_f...