Home
last modified time | relevance | path

Searched refs:num_fences (Results 1 – 8 of 8) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/sync/
Dsync.c88 int err, num_fences; in sync_file_info() local
100 num_fences = info->num_fences; in sync_file_info()
102 if (num_fences) { in sync_file_info()
104 info->num_fences = num_fences; in sync_file_info()
106 fence_info = calloc(num_fences, sizeof(*fence_info)); in sync_file_info()
139 count = info->num_fences; in sync_fence_size()
156 for (i = 0 ; i < info->num_fences ; i++) { in sync_fence_count_with_status()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.c88 for (idle_fences = 0; idle_fences < bo->num_fences; ++idle_fences) { in amdgpu_bo_wait()
98 (bo->num_fences - idle_fences) * sizeof(*bo->fences)); in amdgpu_bo_wait()
99 bo->num_fences -= idle_fences; in amdgpu_bo_wait()
101 buffer_idle = !bo->num_fences; in amdgpu_bo_wait()
109 while (bo->num_fences && buffer_idle) { in amdgpu_bo_wait()
126 if (fence_idle && bo->num_fences && bo->fences[0] == fence) { in amdgpu_bo_wait()
129 (bo->num_fences - 1) * sizeof(*bo->fences)); in amdgpu_bo_wait()
130 bo->num_fences--; in amdgpu_bo_wait()
149 for (unsigned i = 0; i < bo->num_fences; ++i) in amdgpu_bo_remove_fences()
153 bo->num_fences = 0; in amdgpu_bo_remove_fences()
Damdgpu_cs.c894 for (unsigned j = 0; j < bo->num_fences; ++j) { in amdgpu_add_fence_dependency()
930 for (unsigned j = new_num_fences; j < bo->num_fences; ++j) in amdgpu_add_fence_dependency()
933 bo->num_fences = new_num_fences; in amdgpu_add_fence_dependency()
955 if (bo->num_fences >= bo->max_fences) { in amdgpu_add_fence()
959 bo->num_fences * sizeof(*new_fences), in amdgpu_add_fence()
966 if (!bo->num_fences) in amdgpu_add_fence()
969 bo->num_fences--; /* prefer to keep a more recent fence if possible */ in amdgpu_add_fence()
970 amdgpu_fence_reference(&bo->fences[bo->num_fences], NULL); in amdgpu_add_fence()
974 bo->fences[bo->num_fences] = NULL; in amdgpu_add_fence()
975 amdgpu_fence_reference(&bo->fences[bo->num_fences], fence); in amdgpu_add_fence()
[all …]
Damdgpu_bo.h79 unsigned num_fences; member
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_cs.c511 for (unsigned src = 0; src < bo->u.slab.num_fences; ++src) { in radeon_bo_slab_fence()
519 bo->u.slab.num_fences = dst; in radeon_bo_slab_fence()
522 if (bo->u.slab.num_fences >= bo->u.slab.max_fences) { in radeon_bo_slab_fence()
537 bo->u.slab.fences[bo->u.slab.num_fences] = NULL; in radeon_bo_slab_fence()
538 radeon_bo_reference(&bo->u.slab.fences[bo->u.slab.num_fences], fence); in radeon_bo_slab_fence()
539 bo->u.slab.num_fences++; in radeon_bo_slab_fence()
Dradeon_drm_bo.h54 unsigned num_fences; member
Dradeon_drm_bo.c81 for (num_idle = 0; num_idle < bo->u.slab.num_fences; ++num_idle) { in radeon_bo_is_busy()
89 (bo->u.slab.num_fences - num_idle) * sizeof(bo->u.slab.fences[0])); in radeon_bo_is_busy()
90 bo->u.slab.num_fences -= num_idle; in radeon_bo_is_busy()
111 while (bo->u.slab.num_fences) { in radeon_bo_wait_idle()
120 if (bo->u.slab.num_fences && fence == bo->u.slab.fences[0]) { in radeon_bo_wait_idle()
123 (bo->u.slab.num_fences - 1) * sizeof(bo->u.slab.fences[0])); in radeon_bo_wait_idle()
124 bo->u.slab.num_fences--; in radeon_bo_wait_idle()
819 for (unsigned j = 0; j < bo->u.slab.num_fences; ++j) in radeon_bo_slab_free()
/external/kernel-headers/original/uapi/linux/
Dsync_file.h63 __u32 num_fences; member