Lines Matching refs:test_writer

56 	struct arm_smmu_test_writer *test_writer =  in arm_smmu_test_writer_record_syncs()  local
61 test_writer->test, sizeof(*entry_used_bits) * NUM_ENTRY_QWORDS, in arm_smmu_test_writer_record_syncs()
63 KUNIT_ASSERT_NOT_NULL(test_writer->test, entry_used_bits); in arm_smmu_test_writer_record_syncs()
67 test_writer->entry, in arm_smmu_test_writer_record_syncs()
68 NUM_ENTRY_QWORDS * sizeof(*test_writer->entry), in arm_smmu_test_writer_record_syncs()
71 test_writer->num_syncs += 1; in arm_smmu_test_writer_record_syncs()
72 if (!test_writer->entry[0]) { in arm_smmu_test_writer_record_syncs()
73 test_writer->invalid_entry_written = true; in arm_smmu_test_writer_record_syncs()
81 writer->ops->get_used(test_writer->entry, entry_used_bits); in arm_smmu_test_writer_record_syncs()
83 test_writer->test, in arm_smmu_test_writer_record_syncs()
85 test_writer->entry, entry_used_bits, in arm_smmu_test_writer_record_syncs()
86 test_writer->init_entry, NUM_ENTRY_QWORDS) && in arm_smmu_test_writer_record_syncs()
88 test_writer->entry, entry_used_bits, in arm_smmu_test_writer_record_syncs()
89 test_writer->target_entry, in arm_smmu_test_writer_record_syncs()
122 struct arm_smmu_test_writer test_writer = { in arm_smmu_v3_test_ste_expect_transition() local
138 arm_smmu_v3_test_debug_print_used_bits(&test_writer.writer, cur->data); in arm_smmu_v3_test_ste_expect_transition()
142 arm_smmu_v3_test_debug_print_used_bits(&test_writer.writer, in arm_smmu_v3_test_ste_expect_transition()
145 arm_smmu_write_entry(&test_writer.writer, cur_copy.data, target->data); in arm_smmu_v3_test_ste_expect_transition()
147 KUNIT_EXPECT_EQ(test, test_writer.invalid_entry_written, !hitless); in arm_smmu_v3_test_ste_expect_transition()
148 KUNIT_EXPECT_EQ(test, test_writer.num_syncs, num_syncs_expected); in arm_smmu_v3_test_ste_expect_transition()
406 struct arm_smmu_test_writer test_writer = { in arm_smmu_v3_test_cd_expect_transition() local
422 arm_smmu_v3_test_debug_print_used_bits(&test_writer.writer, cur->data); in arm_smmu_v3_test_cd_expect_transition()
426 arm_smmu_v3_test_debug_print_used_bits(&test_writer.writer, in arm_smmu_v3_test_cd_expect_transition()
429 arm_smmu_write_entry(&test_writer.writer, cur_copy.data, target->data); in arm_smmu_v3_test_cd_expect_transition()
431 KUNIT_EXPECT_EQ(test, test_writer.invalid_entry_written, !hitless); in arm_smmu_v3_test_cd_expect_transition()
432 KUNIT_EXPECT_EQ(test, test_writer.num_syncs, num_syncs_expected); in arm_smmu_v3_test_cd_expect_transition()