/Linux-v5.10/drivers/dma-buf/ |
D | dma-resv.c | 89 for (i = 0; i < list->shared_count; ++i) in dma_resv_list_free() 197 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared() 200 max = max(old->shared_count + num_fences, in dma_resv_reserve_shared() 216 for (i = 0, j = 0, k = max; i < (old ? old->shared_count : 0); ++i) { in dma_resv_reserve_shared() 226 new->shared_count = j; in dma_resv_reserve_shared() 274 count = fobj->shared_count; in dma_resv_add_shared_fence() 287 BUG_ON(fobj->shared_count >= fobj->shared_max); in dma_resv_add_shared_fence() 294 smp_store_mb(fobj->shared_count, count); in dma_resv_add_shared_fence() 318 i = old->shared_count; in dma_resv_add_excl_fence() 327 old->shared_count = 0; in dma_resv_add_excl_fence() [all …]
|
D | dma-buf.c | 202 unsigned shared_count, seq; in dma_buf_poll() local 222 shared_count = fobj->shared_count; in dma_buf_poll() 224 shared_count = 0; in dma_buf_poll() 231 if (fence_excl && (!(events & EPOLLOUT) || shared_count == 0)) { in dma_buf_poll() 235 if (shared_count == 0) in dma_buf_poll() 266 if ((events & EPOLLOUT) && shared_count > 0) { in dma_buf_poll() 281 for (i = 0; i < shared_count; ++i) { in dma_buf_poll() 305 if (i == shared_count) in dma_buf_poll() 1268 int count = 0, attach_count, shared_count, i; in dma_buf_debug_show() local 1299 shared_count = fobj ? fobj->shared_count : 0; in dma_buf_debug_show() [all …]
|
/Linux-v5.10/drivers/md/ |
D | dm-bio-prison-v2.c | 164 (*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()
|
D | dm-bio-prison-v2.h | 48 unsigned shared_count; member
|
/Linux-v5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_busy.c | 122 unsigned int shared_count = list->shared_count, i; in i915_gem_busy_ioctl() local 124 for (i = 0; i < shared_count; ++i) { in i915_gem_busy_ioctl()
|
/Linux-v5.10/include/linux/ |
D | dma-resv.h | 59 u32 shared_count, shared_max; member 223 fence->shared_max = fence->shared_count; in dma_resv_unlock()
|
/Linux-v5.10/drivers/gpu/drm/qxl/ |
D | qxl_debugfs.c | 65 rel = fobj ? fobj->shared_count : 0; in qxl_debugfs_buffers_info()
|
/Linux-v5.10/drivers/gpu/drm/radeon/ |
D | radeon_sync.c | 111 for (i = 0; i < flist->shared_count; ++i) { in radeon_sync_resv()
|
/Linux-v5.10/drivers/gpu/drm/msm/ |
D | msm_gem.c | 719 if (!fobj || (fobj->shared_count == 0)) { in msm_gem_sync_object() 732 for (i = 0; i < fobj->shared_count; i++) { in msm_gem_sync_object() 873 unsigned int i, shared_count = fobj->shared_count; in msm_gem_describe() local 875 for (i = 0; i < shared_count; i++) { in msm_gem_describe()
|
/Linux-v5.10/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gem.c | 468 unsigned int i, shared_count = fobj->shared_count; in etnaviv_gem_describe() local 470 for (i = 0; i < shared_count; i++) { in etnaviv_gem_describe()
|
/Linux-v5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_fence.c | 361 if (fence && (!exclusive || !fobj || !fobj->shared_count)) { in nouveau_fence_sync() 383 for (i = 0; i < fobj->shared_count && !ret; ++i) { in nouveau_fence_sync()
|
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_display.c | 88 for (i = 0; i < work->shared_count; ++i) in amdgpu_display_flip_work_func() 209 &work->shared_count, in amdgpu_display_crtc_page_flip_target() 261 for (i = 0; i < work->shared_count; ++i) in amdgpu_display_crtc_page_flip_target()
|
D | amdgpu_sync.c | 220 for (i = 0; i < flist->shared_count; ++i) { in amdgpu_sync_resv()
|
D | amdgpu_amdkfd_gpuvm.c | 250 for (i = 0, j = old->shared_count, k = 0; i < old->shared_count; ++i) { in amdgpu_amdkfd_remove_eviction_fence() 262 new->shared_count = k; in amdgpu_amdkfd_remove_eviction_fence() 270 for (i = j, k = 0; i < old->shared_count; ++i) { in amdgpu_amdkfd_remove_eviction_fence()
|
D | amdgpu_vm.c | 1988 unsigned i, shared_count; in amdgpu_vm_prt_fini() local 1992 &shared_count, &shared); in amdgpu_vm_prt_fini() 2006 for (i = 0; i < shared_count; ++i) { in amdgpu_vm_prt_fini()
|
D | amdgpu.h | 431 unsigned shared_count; member
|
D | amdgpu_ttm.c | 1589 for (i = 0; i < flist->shared_count; ++i) { in amdgpu_ttm_bo_eviction_valuable()
|
/Linux-v5.10/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 369 for (i = 0; fobj && i < fobj->shared_count; ++i) { in ttm_bo_flush_all_fences()
|