Home
last modified time | relevance | path

Searched refs:shared_count (Results 1 – 17 of 17) sorted by relevance

/drivers/dma-buf/
Ddma-resv.c90 for (i = 0; i < list->shared_count; ++i) in dma_resv_list_free()
154 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared()
156 max = max(old->shared_count + num_fences, old->shared_max * 2); in dma_resv_reserve_shared()
171 for (i = 0, j = 0, k = max; i < (old ? old->shared_count : 0); ++i) { in dma_resv_reserve_shared()
181 new->shared_count = j; in dma_resv_reserve_shared()
227 fences->shared_max = fences->shared_count; in dma_resv_reset_shared_max()
251 count = fobj->shared_count; in dma_resv_add_shared_fence()
264 BUG_ON(fobj->shared_count >= fobj->shared_max); in dma_resv_add_shared_fence()
271 smp_store_mb(fobj->shared_count, count); in dma_resv_add_shared_fence()
295 i = old->shared_count; in dma_resv_add_excl_fence()
[all …]
Ddma-buf.c247 for (i = 0; i < fobj->shared_count; ++i) { in dma_buf_poll_shared()
1526 int count = 0, attach_count, shared_count, i; in dma_buf_debug_show() local
1565 shared_count = fobj ? fobj->shared_count : 0; in dma_buf_debug_show()
1566 for (i = 0; i < shared_count; i++) { in dma_buf_debug_show()
/drivers/md/
Ddm-bio-prison-v2.c164 (*cell)->shared_count++; in __get()
167 (*cell)->shared_count = 1; in __get()
192 BUG_ON(!cell->shared_count); in __put()
193 cell->shared_count--; in __put()
196 if (!cell->shared_count) { in __put()
243 return cell->shared_count > 0; in __lock()
247 cell->shared_count = 0; in __lock()
276 if (!cell->shared_count) in __quiesce()
300 return cell->shared_count > 0; in __promote()
326 if (cell->shared_count) { in __unlock()
Ddm-bio-prison-v2.h48 unsigned shared_count; member
/drivers/gpu/drm/i915/gem/
Di915_gem_busy.c121 unsigned int shared_count = list->shared_count, i; in i915_gem_busy_ioctl() local
123 for (i = 0; i < shared_count; ++i) { in i915_gem_busy_ioctl()
/drivers/gpu/drm/qxl/
Dqxl_debugfs.c65 rel = fobj ? fobj->shared_count : 0; in qxl_debugfs_buffers_info()
/drivers/gpu/drm/etnaviv/
Detnaviv_gem.c454 unsigned int i, shared_count = fobj->shared_count; in etnaviv_gem_describe() local
456 for (i = 0; i < shared_count; i++) { in etnaviv_gem_describe()
/drivers/gpu/drm/radeon/
Dradeon_sync.c112 for (i = 0; i < flist->shared_count; ++i) { in radeon_sync_resv()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sync.c283 for (i = 0; i < flist->shared_count; ++i) { in amdgpu_sync_resv()
Damdgpu_display.c89 for (i = 0; i < work->shared_count; ++i) in amdgpu_display_flip_work_func()
207 &work->shared_count, &work->shared); in amdgpu_display_crtc_page_flip_target()
257 for (i = 0; i < work->shared_count; ++i) in amdgpu_display_crtc_page_flip_target()
Damdgpu_amdkfd_gpuvm.c255 for (i = 0, j = old->shared_count, k = 0; i < old->shared_count; ++i) { in amdgpu_amdkfd_remove_eviction_fence()
267 new->shared_count = k; in amdgpu_amdkfd_remove_eviction_fence()
275 for (i = j; i < old->shared_count; ++i) { in amdgpu_amdkfd_remove_eviction_fence()
Damdgpu_vm.c2099 unsigned i, shared_count; in amdgpu_vm_prt_fini() local
2102 r = dma_resv_get_fences(resv, &excl, &shared_count, &shared); in amdgpu_vm_prt_fini()
2116 for (i = 0; i < shared_count; ++i) { in amdgpu_vm_prt_fini()
Damdgpu.h461 unsigned shared_count; member
Damdgpu_ttm.c1355 for (i = 0; i < flist->shared_count; ++i) { in amdgpu_ttm_bo_eviction_valuable()
/drivers/gpu/drm/msm/
Dmsm_gem.c962 unsigned int i, shared_count = fobj->shared_count; in msm_gem_describe() local
964 for (i = 0; i < shared_count; i++) { in msm_gem_describe()
/drivers/gpu/drm/nouveau/
Dnouveau_fence.c365 for (i = 0; i < (fobj ? fobj->shared_count : 0) && !ret; ++i) { in nouveau_fence_sync()
/drivers/gpu/drm/ttm/
Dttm_bo.c272 for (i = 0; fobj && i < fobj->shared_count; ++i) { in ttm_bo_flush_all_fences()