Lines Matching refs:failures
61 struct scsi_failures failures = { in scsi_lib_test_multiple_sense() local
72 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
75 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
78 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
81 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
84 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
87 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
90 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
96 &failures)); in scsi_lib_test_multiple_sense()
97 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
100 failures.failure_definitions = multiple_sense_failure_defs; in scsi_lib_test_multiple_sense()
101 scsi_failures_reset_retries(&failures); in scsi_lib_test_multiple_sense()
105 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
117 struct scsi_failures failures = { in scsi_lib_test_any_sense() local
126 failures.failure_definitions = any_sense_failure_defs; in scsi_lib_test_any_sense()
128 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_any_sense()
144 struct scsi_failures failures = { in scsi_lib_test_host() local
153 failures.failure_definitions = retryable_host_failure_defs; in scsi_lib_test_host()
155 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_host()
158 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_host()
170 struct scsi_failures failures = { in scsi_lib_test_any_failure() local
179 failures.failure_definitions = any_failure_defs; in scsi_lib_test_any_failure()
181 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_any_failure()
193 struct scsi_failures failures = { in scsi_lib_test_any_status() local
202 failures.failure_definitions = any_status_failure_defs; in scsi_lib_test_any_status()
204 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_any_status()
227 struct scsi_failures failures = { in scsi_lib_test_total_allowed() local
237 failures.failure_definitions = total_allowed_defs; in scsi_lib_test_total_allowed()
238 scsi_failures_reset_retries(&failures); in scsi_lib_test_total_allowed()
239 failures.total_allowed = SCSI_LIB_TEST_TOTAL_MAX_ALLOWED; in scsi_lib_test_total_allowed()
245 &failures)); in scsi_lib_test_total_allowed()
248 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_total_allowed()
271 struct scsi_failures failures = { in scsi_lib_test_mixed_total() local
283 failures.failure_definitions = mixed_total_defs; in scsi_lib_test_mixed_total()
284 scsi_failures_reset_retries(&failures); in scsi_lib_test_mixed_total()
285 failures.total_allowed = SCSI_LIB_TEST_TOTAL_MAX_ALLOWED; in scsi_lib_test_mixed_total()
291 &failures)); in scsi_lib_test_mixed_total()
293 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_mixed_total()
295 scsi_failures_reset_retries(&failures); in scsi_lib_test_mixed_total()
300 &failures)); in scsi_lib_test_mixed_total()
303 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_mixed_total()
306 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_mixed_total()