Lines Matching defs:error
1415 * of error.
1438 * If the device is in error recovery, wait until it is done.
1493 * Note: may block (uninterruptible) if error recovery is underway
1547 * success as well). Returns a negated errno value in case of error.
1558 int error;
1563 error = scsi_verify_blk_ioctl(bdev, cmd);
1564 if (error < 0)
1565 return error;
1568 * If we are in the middle of error recovery, don't let anyone
1569 * else try and use this device. Also, if error recovery fails, it
1573 error = scsi_ioctl_block_when_processing_errors(sdp, cmd,
1575 if (error)
1589 error = scsi_ioctl(sdp, cmd, p);
1592 error = scsi_cmd_blk_ioctl(bdev, mode, cmd, p);
1596 return error;
1741 /* we need to evaluate the error return */
1746 /* this is no error here */
1914 * sd_eh_reset - reset error handling callback
1934 * sd_eh_action - error handling callback
1939 * error test command (currently TEST UNIT READY). The result of sending
1958 * However, the TEST UNIT READY command sent during error
2008 * the error is.
2105 * error.
2200 * with a status error */
2349 #error RC16_LEN must not be more than SD_BUF_SIZE
3375 * (e.g. scanner)); 1 when there is an error.
3392 int error;
3395 error = -ENODEV;
3409 error = -ENOMEM;
3424 error = sd_format_disk_name("sd", index, gd->disk_name, DISK_NAME_LEN);
3425 if (error) {
3451 error = device_add(&sdkp->dev);
3452 if (error) {
3519 return error;
3625 /* SCSI error codes must not go to the generic layer */
3691 /* an error is not worth aborting a system sleep */