Lines Matching refs:nvbo
74 struct nouveau_bo *nvbo = NULL, *nvbo2 = NULL; in test_i915_nv_import_twice() local
80 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_import_twice()
85 nouveau_bo_ref(NULL, &nvbo); in test_i915_nv_import_twice()
93 struct nouveau_bo *nvbo = NULL, *nvbo2 = NULL; in test_i915_nv_import_twice_check_flink_name() local
100 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_import_twice_check_flink_name()
104 igt_assert(nouveau_bo_name_get(nvbo, &flink_name1) == 0); in test_i915_nv_import_twice_check_flink_name()
110 nouveau_bo_ref(NULL, &nvbo); in test_i915_nv_import_twice_check_flink_name()
118 struct nouveau_bo *nvbo = NULL, *nvbo2 = NULL; in test_i915_nv_reimport_twice_check_flink_name() local
125 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_reimport_twice_check_flink_name()
134 igt_assert(nouveau_bo_name_get(nvbo, &flink_name1) == 0); in test_i915_nv_reimport_twice_check_flink_name()
140 nouveau_bo_ref(NULL, &nvbo); in test_i915_nv_reimport_twice_check_flink_name()
148 struct nouveau_bo *nvbo = NULL; in test_nv_i915_import_twice_check_flink_name() local
152 0, BO_SIZE, NULL, &nvbo) == 0); in test_nv_i915_import_twice_check_flink_name()
154 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_nv_i915_import_twice_check_flink_name()
168 nouveau_bo_ref(NULL, &nvbo); in test_nv_i915_import_twice_check_flink_name()
177 struct nouveau_bo *nvbo = NULL; in test_nv_i915_reimport_twice_check_flink_name() local
181 0, BO_SIZE, NULL, &nvbo) == 0); in test_nv_i915_reimport_twice_check_flink_name()
183 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_nv_i915_reimport_twice_check_flink_name()
188 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_nv_i915_reimport_twice_check_flink_name()
199 nouveau_bo_ref(NULL, &nvbo); in test_nv_i915_reimport_twice_check_flink_name()
208 struct nouveau_bo *nvbo = NULL, *nvbo2 = NULL; in test_i915_nv_import_vs_close() local
215 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_import_vs_close()
220 nouveau_bo_ref(NULL, &nvbo); in test_i915_nv_import_vs_close()
229 struct nouveau_bo *nvbo = NULL, *nvbo2 = NULL; in test_i915_nv_double_import() local
236 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_double_import()
240 igt_assert(nvbo->handle == nvbo2->handle); in test_i915_nv_double_import()
243 nouveau_bo_ref(NULL, &nvbo); in test_i915_nv_double_import()
253 struct nouveau_bo *nvbo = NULL, *nvbo2 = NULL; in test_i915_nv_double_export() local
262 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_double_export()
267 igt_assert(nvbo->handle == nvbo2->handle); in test_i915_nv_double_export()
270 nouveau_bo_ref(NULL, &nvbo); in test_i915_nv_double_export()
298 struct nouveau_bo *nvbo, *nvbo2; in test_nv_self_import() local
301 0, BO_SIZE, NULL, &nvbo) == 0); in test_nv_self_import()
302 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_nv_self_import()
307 igt_assert(nvbo->handle == nvbo2->handle); in test_nv_self_import()
308 nouveau_bo_ref(NULL, &nvbo); in test_nv_self_import()
335 struct nouveau_bo *nvbo, *nvbo2; in test_nv_self_import_to_different_fd() local
338 0, BO_SIZE, NULL, &nvbo) == 0); in test_nv_self_import_to_different_fd()
339 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_nv_self_import_to_different_fd()
345 nouveau_bo_ref(NULL, &nvbo); in test_nv_self_import_to_different_fd()