Lines Matching +full:0 +full:x80

21 #define DEFAULT_CU_TYPE		0x3832 /* virtio-ccw */
34 report_pass("Schid of first I/O device: 0x%08x", test_device_sid); in test_enumerate()
51 report(cc == 0, "Enable subchannel %08x", test_device_sid); in test_enable()
77 lowcore.io_int_param = 0; in test_sense()
79 senseid = alloc_io_mem(sizeof(*senseid), 0); in test_sense()
97 if (wait_and_check_io_completion(test_device_sid) < 0) in test_sense()
105 if (ret < 0) { in test_sense()
107 } else if (ret != 0) { in test_sense()
116 if (senseid->reserved != 0xff) { in test_sense()
117 report_fail("transferred garbage: 0x%02x", senseid->reserved); in test_sense()
123 report_info("reserved 0x%02x cu_type 0x%04x cu_model 0x%02x dev_type 0x%04x dev_model 0x%02x", in test_sense()
127 report(senseid->cu_type == cu_type, "cu_type expected 0x%04x got 0x%04x", in test_sense()
140 assert(wait_and_check_io_completion(test_device_sid) >= 0); in sense_id()
145 assert(register_io_int_func(css_irq_io) == 0); in css_init()
146 lowcore.io_int_param = 0; in css_init()
156 /* bits 59-63 of MB address must be 0 if MBU is defined */ in test_schm()
159 schm((void *)0x01, SCHM_MBU); in test_schm()
163 /* bits 36-61 of register 1 (flags) must be 0 */ in test_schm()
166 schm(NULL, 0xfffffffc); in test_schm()
190 senseid = alloc_io_mem(sizeof(*senseid), 0); in start_measuring()
201 for (i = 0; i < SCHM_UPDATE_CNT; i++) in start_measuring()
212 * With measurement block format 0 a memory space is shared
227 mb0 = alloc_io_mem(shared_mb_size, 0); in test_schm_fmt0()
233 schm(NULL, 0); /* Stop any previous measurement */ in test_schm_fmt0()
237 report_prefix_push("Valid MB address and index 0"); in test_schm_fmt0()
238 report(start_measuring(0, 0, false) && in test_schm_fmt0()
244 memset(mb0, 0, shared_mb_size); in test_schm_fmt0()
248 if (start_measuring(0, 1, false)) in test_schm_fmt0()
255 schm(NULL, 0); in test_schm_fmt0()
303 mb1 = alloc_io_mem(sizeof(struct measurement_block_format1), 0); in test_schm_fmt1()
309 schm(NULL, 0); /* Stop any previous measurement */ in test_schm_fmt1()
310 schm(0, SCHM_MBU); in test_schm_fmt1()
318 memset(mb1, 0, sizeof(*mb1)); in test_schm_fmt1()
322 if (start_measuring((u64)mb1, 0, true)) in test_schm_fmt1()
329 schm(NULL, 0); in test_schm_fmt1()
336 int invalid_pmcw_flags[] = {0, 1, 6, 7}; in test_msch()
368 for (int i = 0; i < ARRAY_SIZE(invalid_pmcw_flags); i++) { in test_msch()
391 uint32_t crw = 0xfeedc0fe; in check_stcrw_no_crw_available()
403 const uint32_t magic = 0xfeedc0fe; in check_stcrw_crw_available()
494 memset(&orb, 0xff, sizeof(orb)); in test_ssch()
526 cc = stsch(0x0001ffff, &schib); in test_stsch()
536 stsch(0x0000ffff, &schib); in test_stsch()
561 report(!cc, "MSCH cc == 0"); in test_pmcw_bit5()
564 report(!cc, "STSCH cc == 0"); in test_pmcw_bit5()
573 report(!cc, "MSCH cc == 0"); in test_pmcw_bit5()
576 report(!cc, "STSCH cc == 0"); in test_pmcw_bit5()
606 cc = tsch(0x0001ffff, &irb); in test_tsch()
612 tsch(0x0000ffff, &irb); in test_tsch()
650 enable_io_isc(0x80 >> IO_SCH_ISC); in main()
651 for (i = 0; tests[i].name; i++) { in main()