Lines Matching refs:BO_SIZE
50 #define BO_SIZE (16*1024) macro
82 handle = gem_create(fd, BO_SIZE); in test_correct()
83 fill_bo(handle, BO_SIZE); in test_correct()
89 ptr1 = gem_mmap__gtt(fd, handle, BO_SIZE, PROT_READ); in test_correct()
90 ptr2 = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_correct()
93 igt_assert(memcmp(ptr1, ptr2, BO_SIZE) == 0); in test_correct()
98 munmap(ptr1, BO_SIZE); in test_correct()
99 munmap(ptr2, BO_SIZE); in test_correct()
111 handle = gem_create(fd, BO_SIZE); in test_map_unmap()
112 fill_bo(handle, BO_SIZE); in test_map_unmap()
117 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_map_unmap()
122 munmap(ptr, BO_SIZE); in test_map_unmap()
123 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_map_unmap()
127 munmap(ptr, BO_SIZE); in test_map_unmap()
140 handle = gem_create(fd, BO_SIZE); in test_reprime()
141 fill_bo(handle, BO_SIZE); in test_reprime()
146 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_reprime()
152 munmap(ptr, BO_SIZE); in test_reprime()
155 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_reprime()
159 munmap(ptr, BO_SIZE); in test_reprime()
172 handle = gem_create(fd, BO_SIZE); in test_forked()
173 fill_bo(handle, BO_SIZE); in test_forked()
179 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_forked()
182 munmap(ptr, BO_SIZE); in test_forked()
198 handle = gem_create(fd, BO_SIZE); in test_correct_cpu_write()
206 ptr = mmap(NULL, BO_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); in test_correct_cpu_write()
215 munmap(ptr, BO_SIZE); in test_correct_cpu_write()
228 handle = gem_create(fd, BO_SIZE); in test_forked_cpu_write()
236 ptr = mmap(NULL, BO_SIZE, PROT_READ | PROT_WRITE , MAP_SHARED, dma_buf_fd, 0); in test_forked_cpu_write()
241 munmap(ptr, BO_SIZE); in test_forked_cpu_write()
256 handle = gem_create(fd, BO_SIZE); in test_refcounting()
257 fill_bo(handle, BO_SIZE); in test_refcounting()
264 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_refcounting()
267 munmap(ptr, BO_SIZE); in test_refcounting()
279 handle = gem_create(fd, BO_SIZE); in test_dup()
280 fill_bo(handle, BO_SIZE); in test_dup()
285 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_dup()
288 munmap(ptr, BO_SIZE); in test_dup()
335 ret = posix_memalign(&ptr, 4096, BO_SIZE); in test_userptr()
340 gem_userptr(fd, (uint32_t *)ptr, BO_SIZE, 0, 0, &handle); in test_userptr()
354 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_userptr()
371 handle = gem_create(fd, BO_SIZE); in test_errors()
379 handle = gem_create(fd, BO_SIZE); in test_errors()
380 fill_bo(handle, BO_SIZE); in test_errors()
387 handle = gem_create(fd, BO_SIZE); in test_errors()
388 fill_bo(handle, BO_SIZE); in test_errors()
392 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_errors()
398 handle = gem_create(fd, BO_SIZE); in test_errors()
399 fill_bo(handle, BO_SIZE); in test_errors()
402 ptr = mmap(NULL, BO_SIZE * 2, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_errors()
409 handle = gem_create(fd, BO_SIZE); in test_errors()
412 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, BO_SIZE / 2); in test_errors()
431 handle = gem_create(fd, BO_SIZE); in test_invalid_sync_flags()
454 fill_bo(handle1, BO_SIZE); in test_aperture_limit()
463 fill_bo(handle2, BO_SIZE); in test_aperture_limit()
470 igt_assert(memcmp(ptr1, ptr2, BO_SIZE) == 0); in test_aperture_limit()
488 handle = gem_create(fd, BO_SIZE); in check_for_dma_buf_mmap()
490 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in check_for_dma_buf_mmap()
493 munmap(ptr, BO_SIZE); in check_for_dma_buf_mmap()