Lines Matching refs:scsi_status
117 uint8_t scsi_status;
155 scsi_status = sts_entry->scsiStatus;
166 if (!scsi_status && ((scsi_bufflen(cmd) - residual) <
183 cmd->result = DID_OK << 16 | scsi_status;
185 if (scsi_status != SAM_STAT_CHECK_CONDITION)
256 * Fall thru to check scsi_status
258 if (!scsi_status && (scsi_bufflen(cmd) - residual) <
273 } else if (scsi_status != SAM_STAT_TASK_SET_FULL &&
274 scsi_status != SAM_STAT_BUSY) {
280 * scsi_status | host_byte device_byte
283 * TASK_SET_FULL | DID_OK scsi_status
284 * BUSY | DID_OK scsi_status
285 * ALL OTHERS | DID_ERROR scsi_status
287 * Note: If scsi_status is task set full or busy,
289 * scsi_status and return DID_OK.
301 cmd->result = DID_ERROR << 16 | scsi_status;
305 cmd->result = DID_OK << 16 | scsi_status;
308 if (scsi_status == SAM_STAT_CHECK_CONDITION)