Lines Matching refs:igt_assert_eq
55 igt_assert_eq(__i915_query_items(fd, items, n_items), 0); \
59 igt_assert_eq(__i915_query_items(fd, items, n_items), -err); \
75 igt_assert_eq(__i915_query(fd, NULL), -EFAULT); in test_query_garbage()
76 igt_assert_eq(__i915_query(fd, (void *) -1), -EFAULT); in test_query_garbage()
84 igt_assert_eq(__i915_query(fd, &query), -EINVAL); in test_query_garbage()
109 igt_assert_eq(items[0].length, -EINVAL); in test_query_garbage_items()
120 igt_assert_eq(items[1].length, -EINVAL); in test_query_garbage_items()
131 igt_assert_eq(items[0].length, -EINVAL); in test_query_garbage_items()
142 igt_assert_eq(items[0].length, -EFAULT); in test_query_garbage_items()
146 igt_assert_eq(items[0].length, -EFAULT); in test_query_garbage_items()
156 igt_assert_eq(items[1].length, -EINVAL); in test_query_garbage_items()
177 igt_assert_eq(0, mprotect(items_ptr, 4096, PROT_READ)); in test_query_garbage_items()
221 igt_assert_eq(_topo_info[b], 0xff); in test_query_topology_kernel_writes()
222 igt_assert_eq(_topo_info[sizeof(*_topo_info) + item.length + b], 0xff); in test_query_topology_kernel_writes()
242 igt_assert_eq(item.length, -ENODEV); in test_query_topology_unsupported()
305 igt_assert_eq(first_query_length, item.length); in test_query_topology_coherent_slice_mask()
319 igt_assert_eq(slice_mask, topology_slices); in test_query_topology_coherent_slice_mask()
334 igt_assert_eq(subslice_mask, topology_subslices_slice0); in test_query_topology_coherent_slice_mask()
458 igt_assert_eq(n_slices, 1); in test_query_topology_known_pci_ids()
462 igt_assert_eq(n_slices, 1); in test_query_topology_known_pci_ids()
464 igt_assert_eq(n_subslices, 2); in test_query_topology_known_pci_ids()
466 igt_assert_eq(n_subslices, 3); in test_query_topology_known_pci_ids()
469 igt_assert_eq(n_slices, 2); in test_query_topology_known_pci_ids()
471 igt_assert_eq(n_subslices, 2 * 2); in test_query_topology_known_pci_ids()
473 igt_assert_eq(n_subslices, 2 * 3); in test_query_topology_known_pci_ids()
476 igt_assert_eq(n_slices, 3); in test_query_topology_known_pci_ids()
477 igt_assert_eq(n_subslices, 3 * 3); in test_query_topology_known_pci_ids()
506 igt_assert_eq(item.length, -EINVAL); in engines_invalid()
513 igt_assert_eq(item.length, -EINVAL); in engines_invalid()
530 igt_assert_eq(item.length, -EFAULT); in engines_invalid()
541 igt_assert_eq(item.length, -EINVAL); in engines_invalid()
550 igt_assert_eq(item.length, -EINVAL); in engines_invalid()
559 igt_assert_eq(item.length, -EINVAL); in engines_invalid()
568 igt_assert_eq(item.length, -EINVAL); in engines_invalid()
579 igt_assert_eq(mprotect(engines, len, PROT_NONE), 0); in engines_invalid()
585 igt_assert_eq(item.length, -EFAULT); in engines_invalid()
586 igt_assert_eq(mprotect(engines, len, PROT_WRITE), 0); in engines_invalid()
590 igt_assert_eq(mprotect(engines, len, PROT_READ), 0); in engines_invalid()
596 igt_assert_eq(item.length, -EFAULT); in engines_invalid()
645 igt_assert_eq(item.length, len); in engines()
654 igt_assert_eq(item.length, len); in engines()
660 igt_assert_eq(engines->rsvd[0], 0); in engines()
661 igt_assert_eq(engines->rsvd[1], 0); in engines()
662 igt_assert_eq(engines->rsvd[2], 0); in engines()
677 igt_assert_eq(engine->rsvd0, 0); in engines()
678 igt_assert_eq(engine->rsvd1[0], 0); in engines()
679 igt_assert_eq(engine->rsvd1[1], 0); in engines()