/external/linux-kselftest/tools/testing/selftests/sync/ |
sync_merge.c | 2 * sync fence merge tests 34 int fence, valid, merged; local 40 fence = sw_sync_fence_create(timeline, "allocFence", 5); 41 valid = sw_sync_fence_is_valid(fence); 42 ASSERT(valid, "Failure allocating fence\n"); 44 merged = sync_merge("mergeFence", fence, fence); 45 valid = sw_sync_fence_is_valid(fence); 46 ASSERT(valid, "Failure merging fence\n"); 49 "fence signaled too early!\n") [all...] |
sync_alloc.c | 46 int timeline, fence, valid; local 52 fence = sw_sync_fence_create(timeline, "allocFence", 1); 53 valid = sw_sync_fence_is_valid(fence); 54 ASSERT(valid, "Failure allocating fence\n"); 56 sw_sync_fence_destroy(fence); 63 int fence, timeline; local 68 fence = sw_sync_fence_create(-1, "fence", 1); 69 ASSERT(fence < 0, "Success allocating negative fence\n") [all...] |
sync_fence.c | 2 * sync fence tests with one timeline 34 int fence, valid, ret; local 40 fence = sw_sync_fence_create(timeline, "allocFence", 5); 41 valid = sw_sync_fence_is_valid(fence); 42 ASSERT(valid, "Failure allocating fence\n"); 44 /* Wait on fence until timeout */ 45 ret = sync_wait(fence, 0); 46 ASSERT(ret == 0, "Failure waiting on fence until timeout\n"); 52 /* Wait on fence until timeout */ 53 ret = sync_wait(fence, 0) [all...] |
sync_stress_merge.c | 43 int fence, tmpfence, merged, valid; local 51 fence = sw_sync_fence_create(timelines[0], "fence", 0); 52 valid = sw_sync_fence_is_valid(fence); 53 ASSERT(valid, "Failure creating fence\n"); 75 tmpfence = sw_sync_fence_create(timeline, "fence", sync_point); 76 merged = sync_merge("merge", tmpfence, fence); 78 sw_sync_fence_destroy(fence); 79 fence = merged; 82 ASSERT(valid, "Failure creating fence i\n") [all...] |
sync_stress_parallelism.c | 45 int fence, valid, ret, i; local 48 fence = sw_sync_fence_create(timeline, "fence", 50 valid = sw_sync_fence_is_valid(fence); 51 ASSERT(valid, "Failure allocating fence\n"); 54 ret = sync_wait(fence, -1); 69 sw_sync_fence_destroy(fence);
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_fence.c | 36 * Create a new fence object. 39 * thread hits a fence command, it'll increment the fence counter. When 40 * the counter == the rank, the fence is finished. 42 * \param rank the expected finished value of the fence counter. 48 struct lp_fence *fence = CALLOC_STRUCT(lp_fence); local 50 if (!fence) 53 pipe_reference_init(&fence->reference, 1); 55 (void) mtx_init(&fence->mutex, mtx_plain); 56 cnd_init(&fence->signalled) [all...] |
lp_flush.c | 44 * \param fence if non-null, returns pointer to a fence which can be waited on 48 struct pipe_fence_handle **fence, 56 lp_setup_flush(llvmpipe->setup, fence, reason); 82 struct pipe_fence_handle *fence = NULL; local 83 llvmpipe_flush(pipe, &fence, reason); 84 if (fence) { 85 pipe->screen->fence_finish(pipe->screen, NULL, fence, 87 pipe->screen->fence_reference(pipe->screen, &fence, NULL);
|
lp_query.h | 47 struct lp_fence *fence; /* fence from last scene this was binned in */ member in struct:llvmpipe_query
|
/cts/tests/sensor/jni/ |
android_hardware_cts_SensorDirectReportTest.cpp | 44 int32_t fence = -1; local 47 fence, nullptr, &address) == 0) { 55 AHardwareBuffer_unlock(hardwareBuffer, &fence);
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_flush.c | 49 struct pipe_fence_handle **fence ) 93 if (fence) 94 *fence = (void*)(intptr_t)1; 99 struct pipe_fence_handle **fence, 102 softpipe_flush(pipe, SP_FLUSH_TEXTURE_CACHE, fence); 144 struct pipe_fence_handle *fence = NULL; local 149 softpipe_flush(pipe, flush_flags, &fence); 151 if (fence) { 156 pipe->screen->fence_finish(pipe->screen, NULL, fence, 158 pipe->screen->fence_reference(pipe->screen, &fence, NULL) [all...] |
/external/mesa3d/src/gallium/drivers/swr/ |
swr_query.h | 42 struct pipe_fence_handle *fence; variable in typeref:struct:pipe_fence_handle
|
swr_fence.cpp | 37 * Fence callback, called by back-end thread on completion of all rendering up 43 struct swr_fence *fence = (struct swr_fence *)userData; local 45 /* Complete all work attached to the fence */ 46 swr_fence_do_work(fence); 48 /* Correct value is in SwrSync data, and not the fence write field. */ 49 fence->read = userData2; 53 * Submit an existing fence. 58 struct swr_fence *fence = swr_fence(fh); local 60 fence->write++; 61 fence->pending = TRUE 72 struct swr_fence *fence = CALLOC_STRUCT(swr_fence); local 100 struct swr_fence *fence = swr_fence(f); local [all...] |
swr_fence.h | 51 swr_fence(struct pipe_fence_handle *fence) 53 return (struct swr_fence *)fence; 60 struct swr_fence *fence = swr_fence(fence_handle); local 61 return (fence->read == fence->write); 85 swr_fence_submit(struct swr_context *ctx, struct pipe_fence_handle *fence);
|
swr_fence_work.cpp | 34 swr_fence_do_work(struct swr_fence *fence) 38 if (fence->work.head.next) { 39 work = fence->work.head.next; 42 p_atomic_set(&fence->work.head.next, 0); 43 p_atomic_set(&fence->work.tail, &fence->work.head); 44 p_atomic_set(&fence->work.count, 0); 63 /* If no fence, just do the work now */ 70 struct swr_fence *fence = swr_fence(fh); local 71 p_atomic_set(&fence->work.tail->next, work) [all...] |
/bionic/libc/kernel/uapi/drm/ |
vgem_drm.h | 37 __u32 fence; member in struct:drm_vgem_fence_signal
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0415/ |
poc.cpp | 22 #include <ui/Fence.h> 42 sp<Fence> fence; local 43 bufferProducer->dequeueBuffer(&buffer, &fence, 800, 600, 1, 0, nullptr,
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
VectorDrawableTests.java | 84 final CountDownLatch fence = new CountDownLatch(1); local 117 root.post(fence::countDown); 124 }, true, fence)
|
/external/kernel-headers/original/uapi/drm/ |
vgem_drm.h | 54 __u32 fence; member in struct:drm_vgem_fence_signal
|
/external/libdrm/ |
libsync.h | 52 int32_t fence; member in struct:sync_merge_data 101 return data.fence;
|
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/ |
radv_amdgpu_cs.h | 46 struct amdgpu_cs_fence fence; member in struct:radv_amdgpu_fence
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
etnaviv_fence.c | 46 etna_fence_destroy(struct pipe_fence_handle *fence) 48 if (fence->fence_fd != -1) 49 close(fence->fence_fd); 50 FREE(fence); 56 struct pipe_fence_handle *fence) 58 if (pipe_reference(&(*ptr)->reference, &fence->reference)) 61 *ptr = fence; 66 struct pipe_fence_handle *fence, uint64_t timeout) 68 if (fence->fence_fd != -1) 69 return !sync_wait(fence->fence_fd, timeout / 1000000) 103 struct pipe_fence_handle *fence; local [all...] |
/external/mesa3d/src/gallium/state_trackers/clover/core/ |
queue.cpp | 69 pipe_fence_handle *fence = NULL; local 73 pipe->flush(pipe, &fence, 0); 77 queued_events.front()().fence(fence); 81 screen->fence_reference(screen, &fence, NULL);
|
/external/mesa3d/src/gallium/winsys/i915/drm/ |
i915_drm_fence.c | 8 * Because gem does not have fence's we have to create our own fences. 11 * been idled. If bo is NULL fence has expired. 23 struct i915_drm_fence *fence = CALLOC_STRUCT(i915_drm_fence); local 25 pipe_reference_init(&fence->reference, 1); 26 /* bo is null if fence already expired */ 29 fence->bo = bo; 32 return (struct pipe_fence_handle *)fence; 38 struct pipe_fence_handle *fence) 41 struct i915_drm_fence *f = (struct i915_drm_fence *)fence; 48 *ptr = fence; [all...] |
/external/mesa3d/src/mesa/main/ |
glthread.c | 91 util_queue_fence_init(&glthread->batches[i].fence); 99 struct util_queue_fence fence; local 100 util_queue_fence_init(&fence); 101 util_queue_add_job(&glthread->queue, ctx, &fence, 103 util_queue_fence_wait(&fence); 104 util_queue_fence_destroy(&fence); 119 util_queue_fence_destroy(&glthread->batches[i].fence); 166 util_queue_add_job(&glthread->queue, next, &next->fence, 197 if (!util_queue_fence_is_signalled(&last->fence)) { 198 util_queue_fence_wait(&last->fence); [all...] |
glthread.h | 57 /** Batch fence for waiting for the execution to finish. */ 58 struct util_queue_fence fence; member in struct:glthread_batch
|