Lines Matching refs:errsts

998 	int power_cond, errsts, start;
1000 if ((errsts = check_readiness(scp, 1, devip)))
1001 return errsts;
1029 int errsts;
1031 if ((errsts = check_readiness(scp, 1, devip)))
1032 return errsts;
1060 int errsts, k, alloc_len;
1062 if ((errsts = check_readiness(scp, 1, devip)))
1063 return errsts;
1338 int k, alloc_len, msense_6, offset, len, errsts, target_dev_id;
1343 if ((errsts = check_readiness(scp, 1, devip)))
1344 return errsts;
1501 int param_len, res, errsts, mpage;
1505 if ((errsts = check_readiness(scp, 1, devip)))
1506 return errsts;
1598 int ppc, sp, pcontrol, pcode, subpcode, alloc_len, errsts, len, n;
1602 if ((errsts = check_readiness(scp, 1, devip)))
1603 return errsts;
3591 int errsts = 0;
3658 errsts = check_condition_result;
3659 return schedule_resp(SCpnt, devip, done, errsts,
3667 errsts = resp_inquiry(SCpnt, target, devip);
3671 errsts = resp_requests(SCpnt, devip);
3675 errsts = resp_start_stop(SCpnt, devip);
3678 errsts = check_readiness(SCpnt, 1, devip);
3679 if (errsts)
3686 errsts = check_readiness(SCpnt, 1, devip);
3690 errsts = check_readiness(SCpnt, 0, devip);
3693 errsts = check_readiness(SCpnt, 1, devip);
3696 errsts = check_readiness(SCpnt, 1, devip);
3699 errsts = check_readiness(SCpnt, 1, devip);
3702 errsts = check_readiness(SCpnt, 1, devip);
3705 errsts = resp_readcap(SCpnt, devip);
3709 errsts = resp_readcap16(SCpnt, devip);
3715 errsts = check_condition_result;
3717 errsts = resp_get_lba_status(SCpnt, devip);
3721 errsts = check_condition_result;
3728 errsts = check_condition_result;
3731 errsts = resp_report_tgtpgs(SCpnt, devip);
3741 errsts = check_condition_result;
3753 errsts = check_readiness(SCpnt, 0, devip);
3754 if (errsts)
3759 errsts = resp_read(SCpnt, lba, num, devip, ei_lba);
3760 if (inj_recovered && (0 == errsts)) {
3763 errsts = check_condition_result;
3764 } else if (inj_transport && (0 == errsts)) {
3767 errsts = check_condition_result;
3768 } else if (inj_dif && (0 == errsts)) {
3770 errsts = illegal_condition_result;
3771 } else if (inj_dix && (0 == errsts)) {
3773 errsts = illegal_condition_result;
3778 errsts = resp_report_luns(SCpnt, devip);
3781 errsts = check_readiness(SCpnt, 0, devip);
3791 errsts = check_condition_result;
3803 errsts = check_readiness(SCpnt, 0, devip);
3804 if (errsts)
3809 errsts = resp_write(SCpnt, lba, num, devip, ei_lba);
3810 if (inj_recovered && (0 == errsts)) {
3813 errsts = check_condition_result;
3814 } else if (inj_dif && (0 == errsts)) {
3816 errsts = illegal_condition_result;
3817 } else if (inj_dix && (0 == errsts)) {
3819 errsts = illegal_condition_result;
3829 errsts = check_condition_result;
3833 if (errsts)
3835 errsts = check_readiness(SCpnt, 0, devip);
3836 if (errsts)
3839 errsts = resp_write_same(SCpnt, lba, num, devip, ei_lba, unmap);
3842 errsts = check_readiness(SCpnt, 0, devip);
3843 if (errsts)
3849 errsts = check_condition_result;
3851 errsts = resp_unmap(SCpnt, devip);
3855 errsts = resp_mode_sense(SCpnt, target, devip);
3858 errsts = resp_mode_select(SCpnt, 1, devip);
3861 errsts = resp_mode_select(SCpnt, 0, devip);
3864 errsts = resp_log_sense(SCpnt, devip);
3868 errsts = check_readiness(SCpnt, 0, devip);
3871 errsts = check_readiness(SCpnt, 1, devip);
3877 errsts = check_condition_result;
3881 errsts = check_readiness(SCpnt, 0, devip);
3882 if (errsts)
3887 errsts = resp_read(SCpnt, lba, num, devip, ei_lba);
3888 if (errsts)
3890 errsts = resp_write(SCpnt, lba, num, devip, ei_lba);
3891 if (errsts)
3893 errsts = resp_xdwriteread(SCpnt, lba, num, devip);
3915 errsts = check_condition_result;
3922 errsts = check_readiness(SCpnt, 1, devip);
3923 if (errsts)
3926 errsts = check_condition_result;
3929 return schedule_resp(SCpnt, devip, done, errsts,