Lines Matching refs:nvbo
88 struct nouveau_bo *nvbo; in test_i915_nv_sharing() local
95 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_sharing()
98 nouveau_bo_ref(NULL, &nvbo); in test_i915_nv_sharing()
114 struct nouveau_bo *nvbo; in test_nv_i915_sharing() local
117 0, BO_SIZE, NULL, &nvbo) == 0); in test_nv_i915_sharing()
118 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_nv_i915_sharing()
124 nouveau_bo_ref(NULL, &nvbo); in test_nv_i915_sharing()
136 struct nouveau_bo *nvbo = NULL; in test_nv_write_i915_cpu_mmap_read() local
143 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_nv_write_i915_cpu_mmap_read()
146 igt_assert(nouveau_bo_map(nvbo, NOUVEAU_BO_RDWR, nclient) == 0); in test_nv_write_i915_cpu_mmap_read()
147 ptr = nvbo->map; in test_nv_write_i915_cpu_mmap_read()
155 nouveau_bo_ref(NULL, &nvbo); in test_nv_write_i915_cpu_mmap_read()
167 struct nouveau_bo *nvbo = NULL; in test_nv_write_i915_gtt_mmap_read() local
174 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_nv_write_i915_gtt_mmap_read()
176 igt_assert(nouveau_bo_map(nvbo, NOUVEAU_BO_RDWR, nclient) == 0); in test_nv_write_i915_gtt_mmap_read()
177 ptr = nvbo->map; in test_nv_write_i915_gtt_mmap_read()
186 nouveau_bo_ref(NULL, &nvbo); in test_nv_write_i915_gtt_mmap_read()
197 struct nouveau_bo *nvbo; in test_i915_import_cpu_mmap() local
203 0, BO_SIZE, NULL, &nvbo) == 0); in test_i915_import_cpu_mmap()
204 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_i915_import_cpu_mmap()
209 igt_assert(nouveau_bo_map(nvbo, NOUVEAU_BO_RDWR, nclient) == 0); in test_i915_import_cpu_mmap()
211 ptr = nvbo->map; in test_i915_import_cpu_mmap()
219 nouveau_bo_ref(NULL, &nvbo); in test_i915_import_cpu_mmap()
230 struct nouveau_bo *nvbo; in test_i915_import_gtt_mmap() local
234 0, BO_SIZE, NULL, &nvbo) == 0); in test_i915_import_gtt_mmap()
235 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_i915_import_gtt_mmap()
241 igt_assert(nouveau_bo_map(nvbo, NOUVEAU_BO_RDWR, nclient) == 0); in test_i915_import_gtt_mmap()
243 ptr = nvbo->map; in test_i915_import_gtt_mmap()
252 nouveau_bo_ref(NULL, &nvbo); in test_i915_import_gtt_mmap()
261 struct nouveau_bo *nvbo; in test_i915_import_pread_pwrite() local
266 0, BO_SIZE, NULL, &nvbo) == 0); in test_i915_import_pread_pwrite()
267 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_i915_import_pread_pwrite()
273 igt_assert(nouveau_bo_map(nvbo, NOUVEAU_BO_RDWR, nclient) == 0); in test_i915_import_pread_pwrite()
275 ptr = nvbo->map; in test_i915_import_pread_pwrite()
286 nouveau_bo_ref(NULL, &nvbo); in test_i915_import_pread_pwrite()
326 struct nouveau_bo *nvbo = NULL; in test_i915_blt_fill_nv_read() local
335 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_blt_fill_nv_read()
340 igt_assert(nouveau_bo_map(nvbo, NOUVEAU_BO_RDWR, nclient) == 0); in test_i915_blt_fill_nv_read()
344 ptr = nvbo->map; in test_i915_blt_fill_nv_read()
346 nouveau_bo_ref(NULL, &nvbo); in test_i915_blt_fill_nv_read()