Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/dma-buf/
Dreservation.c77 if (old->shared_count < old->shared_max) { in reservation_object_reserve_shared()
115 for (i = 0; i < fobj->shared_count; ++i) { in reservation_object_add_shared_inplace()
144 BUG_ON(fobj->shared_count >= fobj->shared_max); in reservation_object_add_shared_inplace()
145 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_inplace()
146 fobj->shared_count++; in reservation_object_add_shared_inplace()
167 fobj->shared_count = 1; in reservation_object_add_shared_replace()
177 for (i = 0, j = 0, k = fobj->shared_max; i < old->shared_count; ++i) { in reservation_object_add_shared_replace()
189 fobj->shared_count = j; in reservation_object_add_shared_replace()
190 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_replace()
191 fobj->shared_count++; in reservation_object_add_shared_replace()
[all …]
Ddma-buf.c167 unsigned shared_count, seq; in dma_buf_poll() local
187 shared_count = fobj->shared_count; in dma_buf_poll()
189 shared_count = 0; in dma_buf_poll()
196 if (fence_excl && (!(events & EPOLLOUT) || shared_count == 0)) { in dma_buf_poll()
200 if (shared_count == 0) in dma_buf_poll()
231 if ((events & EPOLLOUT) && shared_count > 0) { in dma_buf_poll()
246 for (i = 0; i < shared_count; ++i) { in dma_buf_poll()
270 if (i == shared_count) in dma_buf_poll()
1020 int count = 0, attach_count, shared_count, i; in dma_buf_debug_show() local
1052 shared_count = fobj ? fobj->shared_count : 0; in dma_buf_debug_show()
[all …]
/Linux-v4.19/drivers/md/
Ddm-bio-prison-v2.c164 (*cell)->shared_count++; in __get()
167 (*cell)->shared_count = 1; in __get()
193 BUG_ON(!cell->shared_count); in __put()
194 cell->shared_count--; in __put()
197 if (!cell->shared_count) { in __put()
244 return cell->shared_count > 0; in __lock()
248 cell->shared_count = 0; in __lock()
278 if (!cell->shared_count) in __quiesce()
304 return cell->shared_count > 0; in __promote()
331 if (cell->shared_count) { in __unlock()
Ddm-bio-prison-v2.h48 unsigned shared_count; member
/Linux-v4.19/include/linux/
Dreservation.h61 u32 shared_count, shared_max; member
122 for (i = 0; i < fobj->shared_count; ++i) in reservation_object_fini()
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_debugfs.c66 rel = fobj ? fobj->shared_count : 0; in qxl_debugfs_buffers_info()
/Linux-v4.19/drivers/gpu/drm/msm/
Dmsm_gem.c627 if (!fobj || (fobj->shared_count == 0)) { in msm_gem_sync_object()
640 for (i = 0; i < fobj->shared_count; i++) { in msm_gem_sync_object()
756 unsigned int i, shared_count = fobj->shared_count; in msm_gem_describe() local
758 for (i = 0; i < shared_count; i++) { in msm_gem_describe()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_sync.c112 for (i = 0; i < flist->shared_count; ++i) { in radeon_sync_resv()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_display.c86 for (i = 0; i < work->shared_count; ++i) in amdgpu_display_flip_work_func()
204 &work->shared_count, in amdgpu_display_crtc_page_flip_target()
254 for (i = 0; i < work->shared_count; ++i) in amdgpu_display_crtc_page_flip_target()
Damdgpu_sync.c214 for (i = 0; i < flist->shared_count; ++i) { in amdgpu_sync_resv()
Damdgpu_amdkfd_gpuvm.c233 for (i = 0, j = old->shared_count, k = 0; i < old->shared_count; ++i) { in amdgpu_amdkfd_remove_eviction_fence()
246 new->shared_count = k; in amdgpu_amdkfd_remove_eviction_fence()
249 unsigned int count = old->shared_count - j; in amdgpu_amdkfd_remove_eviction_fence()
271 for (i = j, k = 0; i < old->shared_count; ++i) { in amdgpu_amdkfd_remove_eviction_fence()
Damdgpu_vm.c1843 unsigned i, shared_count; in amdgpu_vm_prt_fini() local
1847 &shared_count, &shared); in amdgpu_vm_prt_fini()
1861 for (i = 0; i < shared_count; ++i) { in amdgpu_vm_prt_fini()
Damdgpu.h581 unsigned shared_count; member
Damdgpu_ttm.c1483 for (i = 0; i < flist->shared_count; ++i) { in amdgpu_ttm_bo_eviction_valuable()
/Linux-v4.19/drivers/gpu/drm/etnaviv/
Detnaviv_gem.c475 unsigned int i, shared_count = fobj->shared_count; in etnaviv_gem_describe() local
477 for (i = 0; i < shared_count; i++) { in etnaviv_gem_describe()
/Linux-v4.19/drivers/gpu/drm/nouveau/
Dnouveau_fence.c353 if (fence && (!exclusive || !fobj || !fobj->shared_count)) { in nouveau_fence_sync()
375 for (i = 0; i < fobj->shared_count && !ret; ++i) { in nouveau_fence_sync()
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_gem.c4590 unsigned int shared_count = list->shared_count, i; in i915_gem_busy_ioctl() local
4592 for (i = 0; i < shared_count; ++i) { in i915_gem_busy_ioctl()
/Linux-v4.19/drivers/gpu/drm/ttm/
Dttm_bo.c372 for (i = 0; fobj && i < fobj->shared_count; ++i) { in ttm_bo_flush_all_fences()