Searched refs:num_fences (Results 1 – 9 of 9) sorted by relevance
88 int err, num_fences; in sync_file_info() local100 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()
1079 for (unsigned j = 0; j < bo->num_fences; ++j) { in amdgpu_add_bo_fence_dependencies()1096 for (unsigned j = new_num_fences; j < bo->num_fences; ++j) in amdgpu_add_bo_fence_dependencies()1099 bo->num_fences = new_num_fences; in amdgpu_add_bo_fence_dependencies()1107 unsigned num_fences, in amdgpu_add_fences() argument1110 if (bo->num_fences + num_fences > bo->max_fences) { in amdgpu_add_fences()1111 unsigned new_max_fences = MAX2(bo->num_fences + num_fences, bo->max_fences * 2); in amdgpu_add_fences()1114 bo->num_fences * sizeof(*new_fences), in amdgpu_add_fences()1123 if (!bo->num_fences) in amdgpu_add_fences()1126 bo->num_fences--; /* prefer to keep the most recent fence if possible */ in amdgpu_add_fences()1127 amdgpu_fence_reference(&bo->fences[bo->num_fences], NULL); in amdgpu_add_fences()[all …]
95 for (idle_fences = 0; idle_fences < bo->num_fences; ++idle_fences) { in amdgpu_bo_wait()105 (bo->num_fences - idle_fences) * sizeof(*bo->fences)); in amdgpu_bo_wait()106 bo->num_fences -= idle_fences; in amdgpu_bo_wait()108 buffer_idle = !bo->num_fences; in amdgpu_bo_wait()116 while (bo->num_fences && buffer_idle) { in amdgpu_bo_wait()133 if (fence_idle && bo->num_fences && bo->fences[0] == fence) { in amdgpu_bo_wait()136 (bo->num_fences - 1) * sizeof(*bo->fences)); in amdgpu_bo_wait()137 bo->num_fences--; in amdgpu_bo_wait()156 for (unsigned i = 0; i < bo->num_fences; ++i) in amdgpu_bo_remove_fences()160 bo->num_fences = 0; in amdgpu_bo_remove_fences()[all …]
111 unsigned num_fences; member
258 unsigned num_fences,
510 for (unsigned src = 0; src < bo->u.slab.num_fences; ++src) { in radeon_bo_slab_fence()518 bo->u.slab.num_fences = dst; in radeon_bo_slab_fence()521 if (bo->u.slab.num_fences >= bo->u.slab.max_fences) { in radeon_bo_slab_fence()536 bo->u.slab.fences[bo->u.slab.num_fences] = NULL; in radeon_bo_slab_fence()537 radeon_bo_reference(&bo->u.slab.fences[bo->u.slab.num_fences], fence); in radeon_bo_slab_fence()538 bo->u.slab.num_fences++; in radeon_bo_slab_fence()
81 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()797 for (unsigned j = 0; j < bo->u.slab.num_fences; ++j) in radeon_bo_slab_free()
50 unsigned num_fences; member
64 __u32 num_fences; member