Lines Matching refs:error

83 	u16 error;
99 { IBMVFC_FABRIC_MAPPED, IBMVFC_CONFIG_ERROR, DID_ERROR, 1, 1, "configuration error" },
102 { IBMVFC_FABRIC_MAPPED, IBMVFC_XPORT_GENERAL, DID_OK, 1, 0, "general transport error" },
117 { IBMVFC_FC_FAILURE, IBMVFC_LOGICAL_ERROR, DID_ERROR, 1, 1, "logical error" },
120 { IBMVFC_FC_FAILURE, IBMVFC_PROTOCOL_ERROR, DID_ERROR, 1, 1, "protocol error" },
127 { IBMVFC_FC_SCSI_ERROR, 0, DID_OK, 1, 0, "SCSI error" },
139 static const char *unknown_error = "unknown error";
200 entry->u.end.error = be16_to_cpu(vfc_cmd->error);
222 * @status: status / error class
223 * @error: error
228 static int ibmvfc_get_err_index(u16 status, u16 error)
234 cmd_status[i].error == error)
241 * ibmvfc_get_cmd_error - Find the error description for the fcp response
242 * @status: status / error class
243 * @error: error
246 * error description string
248 static const char *ibmvfc_get_cmd_error(u16 status, u16 error)
250 int rc = ibmvfc_get_err_index(status, error);
274 err = ibmvfc_get_err_index(be16_to_cpu(vfc_cmd->status), be16_to_cpu(vfc_cmd->error));
281 * ibmvfc_retry_cmd - Determine if error status is retryable
282 * @status: status / error class
283 * @error: error
286 * 1 if error should be retried / 0 if it should not
288 static int ibmvfc_retry_cmd(u16 status, u16 error)
290 int rc = ibmvfc_get_err_index(status, error);
304 { 0x01, "service parameter error - options" },
305 { 0x03, "service parameter error - initiator control" },
306 { 0x05, "service parameter error - recipient control" },
307 { 0x07, "service parameter error - received data field size" },
308 { 0x09, "service parameter error - concurrent seq" },
309 { 0x0B, "service parameter error - credit" },
350 * error string
368 * error string
397 * @status: FC Type error status
400 * error string
827 * This function does not setup any error status, that must be done
846 * ibmvfc_fail_request - Fail request with specified error code
848 * @error_code: error code to fail request with
870 * @error_code: error code to fail requests with
1501 dev_err(vhost->dev, "Send error (rc=%d)\n", rc);
1516 * ibmvfc_log_error - Log an error for the failed command if appropriate
1527 int index = ibmvfc_get_err_index(be16_to_cpu(vfc_cmd->status), be16_to_cpu(vfc_cmd->error));
1544 cmnd->cmnd[0], err, be16_to_cpu(vfc_cmd->status), be16_to_cpu(vfc_cmd->error),
1601 (be16_to_cpu(vfc_cmd->error) == IBMVFC_PLOGI_REQUIRED))
2071 ibmvfc_get_cmd_error(be16_to_cpu(rsp_iu.cmd.status), be16_to_cpu(rsp_iu.cmd.error)),
2072 be16_to_cpu(rsp_iu.cmd.status), be16_to_cpu(rsp_iu.cmd.error), fc_rsp->flags, rsp_code,
2192 * @type: type of error recovery being performed
2430 ibmvfc_get_cmd_error(be16_to_cpu(rsp_iu.cmd.status), be16_to_cpu(rsp_iu.cmd.error)),
2431 be16_to_cpu(rsp_iu.cmd.status), be16_to_cpu(rsp_iu.cmd.error), fc_rsp->flags, rsp_code,
2580 dev_err(vhost->dev, "Resetting connection due to error recovery\n");
2908 * Set the device's task set value so that error handling works as
2934 * Set the target's task set value so that error handling works as
3050 * ibmvfc_show_log_level - Show the adapter's error logging level
3072 * ibmvfc_store_log_level - Change the adapter's error logging level
3417 be16_to_cpu(rsp->error) == IBMVFC_PLOGI_REQUIRED)
3421 else if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)))
3427 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
3428 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error), status);
3520 if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)))
3526 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
3527 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error),
3864 ibmvfc_get_cmd_error(be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error)),
3865 be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error),
4066 be16_to_cpu(rsp->error) == IBMVFC_UNABLE_TO_PERFORM_REQ &&
4069 else if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)))
4075 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
4076 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error),
4247 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
4248 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error));
4308 if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)))
4313 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)),
4314 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error));