Lines Matching refs:error
106 u16 error;
122 { IBMVFC_FABRIC_MAPPED, IBMVFC_CONFIG_ERROR, DID_ERROR, 1, 1, "configuration error" },
125 { IBMVFC_FABRIC_MAPPED, IBMVFC_XPORT_GENERAL, DID_OK, 1, 0, "general transport error" },
140 { IBMVFC_FC_FAILURE, IBMVFC_LOGICAL_ERROR, DID_ERROR, 1, 1, "logical error" },
143 { IBMVFC_FC_FAILURE, IBMVFC_PROTOCOL_ERROR, DID_ERROR, 1, 1, "protocol error" },
150 { IBMVFC_FC_SCSI_ERROR, 0, DID_OK, 1, 0, "SCSI error" },
165 static const char *unknown_error = "unknown error";
271 entry->u.end.error = be16_to_cpu(vfc_cmd->error);
293 * @status: status / error class
294 * @error: error
299 static int ibmvfc_get_err_index(u16 status, u16 error)
305 cmd_status[i].error == error)
312 * ibmvfc_get_cmd_error - Find the error description for the fcp response
313 * @status: status / error class
314 * @error: error
317 * error description string
319 static const char *ibmvfc_get_cmd_error(u16 status, u16 error)
321 int rc = ibmvfc_get_err_index(status, error);
346 err = ibmvfc_get_err_index(be16_to_cpu(vfc_cmd->status), be16_to_cpu(vfc_cmd->error));
353 * ibmvfc_retry_cmd - Determine if error status is retryable
354 * @status: status / error class
355 * @error: error
358 * 1 if error should be retried / 0 if it should not
360 static int ibmvfc_retry_cmd(u16 status, u16 error)
362 int rc = ibmvfc_get_err_index(status, error);
376 { 0x01, "service parameter error - options" },
377 { 0x03, "service parameter error - initiator control" },
378 { 0x05, "service parameter error - recipient control" },
379 { 0x07, "service parameter error - received data field size" },
380 { 0x09, "service parameter error - concurrent seq" },
381 { 0x0B, "service parameter error - credit" },
422 * error string
440 * error string
469 * @status: FC Type error status
472 * error string
1044 * This function does not setup any error status, that must be done
1078 * ibmvfc_fail_request - Fail request with specified error code
1080 * @error_code: error code to fail request with
1105 * @error_code: error code to fail requests with
1741 dev_err(vhost->dev, "Send error (rc=%d)\n", rc);
1758 * ibmvfc_log_error - Log an error for the failed command if appropriate
1769 int index = ibmvfc_get_err_index(be16_to_cpu(vfc_cmd->status), be16_to_cpu(vfc_cmd->error));
1786 cmnd->cmnd[0], err, be16_to_cpu(vfc_cmd->status), be16_to_cpu(vfc_cmd->error),
1846 (be16_to_cpu(vfc_cmd->error) == IBMVFC_PLOGI_REQUIRED))
2366 ibmvfc_get_cmd_error(be16_to_cpu(rsp_iu.cmd.status), be16_to_cpu(rsp_iu.cmd.error)),
2367 be16_to_cpu(rsp_iu.cmd.status), be16_to_cpu(rsp_iu.cmd.error), fc_rsp->flags, rsp_code,
2718 * @type: type of error recovery being performed
2880 ibmvfc_get_cmd_error(be16_to_cpu(rsp_iu.cmd.status), be16_to_cpu(rsp_iu.cmd.error)),
2881 be16_to_cpu(rsp_iu.cmd.status), be16_to_cpu(rsp_iu.cmd.error), fc_rsp->flags, rsp_code,
3030 dev_err(vhost->dev, "Resetting connection due to error recovery\n");
3363 * Set the device's task set value so that error handling works as
3389 * Set the target's task set value so that error handling works as
3504 * ibmvfc_show_log_level - Show the adapter's error logging level
3527 * ibmvfc_store_log_level - Change the adapter's error logging level
4038 be16_to_cpu(rsp->error) == IBMVFC_PLOGI_REQUIRED)
4042 else if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)))
4048 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
4049 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error), status);
4152 if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)))
4158 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
4159 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error),
4524 ibmvfc_get_cmd_error(be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error)),
4525 be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error),
4745 be16_to_cpu(rsp->error) == IBMVFC_UNABLE_TO_PERFORM_REQ &&
4748 else if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)))
4754 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
4755 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error),
4937 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
4938 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error));
5161 if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)))
5166 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
5167 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error));