Lines Matching refs:test_device_sid
24 static int test_device_sid; variable
32 test_device_sid = css_enumerate(); in test_enumerate()
33 if (test_device_sid & SCHID_ONE) { in test_enumerate()
34 report_pass("Schid of first I/O device: 0x%08x", test_device_sid); in test_enumerate()
44 if (!test_device_sid) { in test_enable()
49 cc = css_enable(test_device_sid, IO_SCH_ISC); in test_enable()
51 report(cc == 0, "Enable subchannel %08x", test_device_sid); in test_enable()
65 if (!test_device_sid) { in test_sense()
70 ret = css_enable(test_device_sid, IO_SCH_ISC); in test_sense()
73 test_device_sid); in test_sense()
91 ret = start_ccw1_chain(test_device_sid, ccw); in test_sense()
97 if (wait_and_check_io_completion(test_device_sid) < 0) in test_sense()
103 ret = css_residual_count(test_device_sid); in test_sense()
138 assert(!start_ccw1_chain(test_device_sid, ccw)); in sense_id()
140 assert(wait_and_check_io_completion(test_device_sid) >= 0); in sense_id()
196 if (!css_enable_mb(test_device_sid, mbo, mbi, PMCW_MBUE, fmt1)) { in start_measuring()
221 if (!test_device_sid) { in test_schm_fmt0()
254 css_disable_mb(test_device_sid); in test_schm_fmt0()
292 if (!test_device_sid) { in test_schm_fmt1()
314 msch_with_wrong_fmt1_mbo(test_device_sid, (uint64_t)mb1 + 1); in test_schm_fmt1()
328 css_disable_mb(test_device_sid); in test_schm_fmt1()
343 if (!test_device_sid) { in test_msch()
348 cc = stsch(test_device_sid, &schib); in test_msch()
350 report_fail("stsch: sch %08x failed with cc=%d", test_device_sid, cc); in test_msch()
359 msch(test_device_sid, (struct schib *)(alignment_test_page + i)); in test_msch()
375 msch(test_device_sid, &schib); in test_msch()
378 cc = stsch(test_device_sid, &test_schib); in test_msch()
431 if (!test_device_sid) { in test_stcrw()
452 res = css_generate_crw(test_device_sid); in test_stcrw()
475 if (!test_device_sid) { in test_ssch()
485 ssch(test_device_sid, (struct orb *)(alignment_test_page + i)); in test_ssch()
496 ssch(test_device_sid, &orb); in test_ssch()
508 if (!test_device_sid) { in test_stsch()
518 stsch(test_device_sid, (struct schib *)(alignment_test_page + i)); in test_stsch()
550 cc = stsch(test_device_sid, &schib); in test_pmcw_bit5()
552 report_fail("stsch: sch %08x failed with cc=%d", test_device_sid, cc); in test_pmcw_bit5()
560 cc = msch(test_device_sid, &schib); in test_pmcw_bit5()
563 cc = stsch(test_device_sid, &schib); in test_pmcw_bit5()
572 cc = msch(test_device_sid, &schib); in test_pmcw_bit5()
575 cc = stsch(test_device_sid, &schib); in test_pmcw_bit5()
588 if (!test_device_sid) { in test_tsch()
598 tsch(test_device_sid, (struct irb *)(alignment_test_page + i)); in test_tsch()