Lines Matching refs:igt_assert_eq
298 igt_assert_eq(make_lease(data, &lease), 0); in simple_lease()
303 igt_assert_eq(0, prepare_crtc(&lease, data->connector_id, data->crtc_id)); in simple_lease()
346 igt_assert_eq(0, prepare_crtc(&data->master, data->connector_id, data->crtc_id)); in page_flip_implicit_plane()
366 igt_assert_eq(drmModePageFlip(mcl.fd, data->crtc_id, in page_flip_implicit_plane()
411 igt_assert_eq(0, prepare_crtc(&data->master, data->connector_id, data->crtc_id)); in setcrtc_implicit_plane()
423 igt_assert_eq(drmModeSetCrtc(mcl.fd, data->crtc_id, -1, in setcrtc_implicit_plane()
452 igt_assert_eq(0, prepare_crtc(&data->master, data->connector_id, data->crtc_id)); in cursor_implicit_plane()
463 igt_assert_eq(drmModeSetCursor(mcl.fd, data->crtc_id, 0, 0, 0), in cursor_implicit_plane()
569 igt_assert_eq(make_lease(data, &lease), 0); in lessee_list()
574 igt_assert_eq(list_lessees(lease.fd, &mll), 0); in lessee_list()
575 igt_assert_eq(mll.count_lessees, 0); in lessee_list()
580 igt_assert_eq(list_lessees(data->master.fd, &mll), 0); in lessee_list()
583 igt_assert_eq(mll.count_lessees, 1); in lessee_list()
586 igt_assert_eq(list_lessees(data->master.fd, &mll), -EFAULT); in lessee_list()
590 igt_assert_eq(list_lessees(data->master.fd, &mll), 0); in lessee_list()
593 igt_assert_eq(mll.count_lessees, 1); in lessee_list()
596 igt_assert_eq(lessees[0], lease.lessee_id); in lessee_list()
600 igt_assert_eq(list_lessees(data->master.fd, &mll), -EINVAL); in lessee_list()
606 igt_assert_eq(list_lessees(data->master.fd, &mll), 0); in lessee_list()
607 igt_assert_eq(mll.count_lessees, 0); in lessee_list()
622 igt_assert_eq(make_lease(data, &lease), 0); in lease_get()
627 igt_assert_eq(get_lease(lease.fd, &mgl), 0); in lease_get()
630 igt_assert_eq(mgl.count_objects, num_leased_obj); in lease_get()
635 igt_assert_eq(get_lease(lease.fd, &mgl), 0); in lease_get()
638 igt_assert_eq(mgl.count_objects, num_leased_obj); in lease_get()
661 igt_assert_eq(get_lease(lease.fd, &mgl), -EINVAL); in lease_get()
666 igt_assert_eq(get_lease(lease.fd, &mgl), -EFAULT); in lease_get()
680 igt_assert_eq(make_lease(data, &lease), 0); in lease_unleased_crtc()
696 igt_assert_eq(ret, 0); in lease_unleased_crtc()
705 igt_assert_eq(ret, -ENOENT); in lease_unleased_crtc()
708 igt_assert_eq(errno, ENOENT); in lease_unleased_crtc()
722 igt_assert_eq(make_lease(data, &lease), 0); in lease_unleased_connector()
744 igt_assert_eq(errno, ENOENT); in lease_unleased_connector()
757 igt_assert_eq(make_lease(data, &lease), 0); in lease_revoke()
763 igt_assert_eq(revoke_lease(data->master.fd, &mrl), -ENOENT); in lease_revoke()
767 igt_assert_eq(revoke_lease(lease.fd, &mrl), -EACCES); in lease_revoke()
771 igt_assert_eq(revoke_lease(data->master.fd, &mrl), 0); in lease_revoke()
777 igt_assert_eq(ret, -ENOENT); in lease_revoke()
783 igt_assert_eq(revoke_lease(data->master.fd, &mrl), -ENOENT); in lease_revoke()
792 igt_assert_eq(make_lease(data, &lease_a), 0); in lease_again()
795 igt_assert_eq(make_lease(data, &lease_b), -EBUSY); in lease_again()
800 igt_assert_eq(make_lease(data, &lease_b), 0); in lease_again()
904 igt_assert_eq(create_lease(data->master.fd, &mcl), -EINVAL); in invalid_create_leases()
908 igt_assert_eq(create_lease(data->master.fd, &mcl), -EFAULT); in invalid_create_leases()
914 igt_assert_eq(create_lease(data->master.fd, &mcl), -ENOENT); in invalid_create_leases()
919 igt_assert_eq(create_lease(data->master.fd, &mcl), -EINVAL); in invalid_create_leases()
923 igt_assert_eq(create_lease(data->master.fd, &mcl), -EINVAL); in invalid_create_leases()
929 igt_assert_eq(create_lease(data->master.fd, &mcl), 0); in invalid_create_leases()
934 igt_assert_eq(create_lease(data->master.fd, &mcl), -EINVAL); in invalid_create_leases()
940 igt_assert_eq(create_lease(data->master.fd, &mcl), 0); in invalid_create_leases()
946 igt_assert_eq(create_lease(data->master.fd, &mcl), -ENOMEM); in invalid_create_leases()
952 igt_assert_eq(create_lease(data->master.fd, &mcl), 0); in invalid_create_leases()
957 igt_assert_eq(create_lease(data->master.fd, &mcl), -EINVAL); in invalid_create_leases()
962 igt_assert_eq(create_lease(data->master.fd, &mcl), 0); in invalid_create_leases()
964 igt_assert_eq(create_lease(tmp_fd, &mcl), -EINVAL); in invalid_create_leases()
968 igt_assert_eq(create_lease(data->master.fd, &mcl), 0); in invalid_create_leases()
970 igt_assert_eq(create_lease(data->master.fd, &mcl), -EBUSY); in invalid_create_leases()
985 igt_assert_eq(create_lease(data->master.fd, &mcl), -EINVAL); in invalid_create_leases()
1011 igt_assert_eq(lease_e->possible_crtcs, in check_crtc_masks()
1013 igt_assert_eq(master_e->possible_crtcs & crtc_mask, in check_crtc_masks()
1030 igt_assert_eq(lease_p->possible_crtcs, in check_crtc_masks()
1032 igt_assert_eq(master_p->possible_crtcs & crtc_mask, in check_crtc_masks()
1076 igt_assert_eq(create_lease(master_fd, &mcl), 0); in possible_crtcs_filtering()
1110 igt_assert_eq(create_lease(master_fd, &mcl), expected_ret); in _create_simple_lease()
1128 igt_assert_eq(drmDropMaster(lease_fd), -1); in master_vs_lease()
1129 igt_assert_eq(errno, EINVAL); in master_vs_lease()
1139 igt_assert_eq(drmSetMaster(lease_fd), -1); in master_vs_lease()
1140 igt_assert_eq(errno, EINVAL); in master_vs_lease()
1204 igt_assert_eq(create_lease(data->master.fd, &mcl), 0); in implicit_plane_lease()
1210 igt_assert_eq(create_lease(data->master.fd, &mcl), 0); in implicit_plane_lease()
1215 igt_assert_eq(get_lease(mcl.fd, &mgl), 0); in implicit_plane_lease()
1217 igt_assert_eq(mgl.count_objects, 3 + (cursor_id ? 1 : 0)); in implicit_plane_lease()
1252 igt_assert_eq(list_lessees(data->master.fd, &mll), 0); in lease_uevent()
1253 igt_assert_eq(mll.count_lessees, 1); in lease_uevent()
1260 igt_assert_eq(list_lessees(data->master.fd, &mll), 0); in lease_uevent()
1261 igt_assert_eq(mll.count_lessees, 0); in lease_uevent()