Lines Matching refs:result
402 static void fas216_done(FAS216_Info *info, unsigned int result);
1989 unsigned int result)
2002 * @result: driver byte of result
2007 unsigned int result)
2010 "request sense complete, result=0x%04x%02x%02x",
2011 result, SCpnt->SCp.Message, SCpnt->SCp.Status);
2013 if (result != DID_OK || SCpnt->SCp.Status != GOOD)
2023 * Note that we don't set SCpnt->result, since that should
2036 * @result: driver byte of result
2041 fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result)
2045 SCpnt->result = result << 16 | info->scsi.SCp.Message << 8 |
2049 "command complete, result=0x%08x", SCpnt->result);
2054 if (host_byte(SCpnt->result) != DID_OK ||
2055 msg_byte(SCpnt->result) != COMMAND_COMPLETE)
2062 if (status_byte(SCpnt->result) == CHECK_CONDITION ||
2063 status_byte(SCpnt->result) == COMMAND_TERMINATED)
2070 if (status_byte(SCpnt->result) != GOOD)
2090 SCpnt->result, info->scsi.SCp.ptr,
2135 * @result: driver byte of result
2139 static void fas216_done(FAS216_Info *info, unsigned int result)
2156 result = DID_ABORT;
2182 fn(info, SCpnt, result);
2210 int result;
2219 SCpnt->result = 0;
2232 result = !queue_add_cmd_ordered(&info->queues.issue, SCpnt);
2238 if (result == 0 && info->scsi.phase == PHASE_IDLE)
2243 result ? "failure" : "success");
2245 return result;
2270 * Returns: scsi result code.
2427 int result = FAILED;
2446 result = SUCCESS;
2465 return result;