Searched refs:shared_count (Results 1 - 11 of 11) sorted by relevance

/linux-4.4.14/drivers/dma-buf/
H A Dreservation.c58 if (old->shared_count < old->shared_max) { reservation_object_reserve_shared()
95 for (i = 0; i < fobj->shared_count; ++i) { reservation_object_add_shared_inplace()
114 * fobj->shared_count is protected by this lock too reservation_object_add_shared_inplace()
116 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); reservation_object_add_shared_inplace()
117 fobj->shared_count++; reservation_object_add_shared_inplace()
136 fobj->shared_count = 1; reservation_object_add_shared_replace()
146 fobj->shared_count = old->shared_count; reservation_object_add_shared_replace()
148 for (i = 0; i < old->shared_count; ++i) { reservation_object_add_shared_replace()
161 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); reservation_object_add_shared_replace()
162 fobj->shared_count++; reservation_object_add_shared_replace()
196 BUG_ON(old->shared_count >= old->shared_max); reservation_object_add_shared_fence()
212 i = old->shared_count; reservation_object_add_excl_fence()
222 old->shared_count = 0; reservation_object_add_excl_fence()
241 unsigned shared_count = 0; reservation_object_get_fences_rcu() local
270 shared_count = 0; reservation_object_get_fences_rcu()
275 shared_count = fobj->shared_count; reservation_object_get_fences_rcu()
277 shared_count = 0; reservation_object_get_fences_rcu()
287 for (i = 0; i < shared_count; ++i) { reservation_object_get_fences_rcu()
309 *pshared_count = shared_count; reservation_object_get_fences_rcu()
310 if (shared_count) reservation_object_get_fences_rcu()
327 unsigned seq, shared_count, i = 0; reservation_object_wait_timeout_rcu() local
335 shared_count = 0; reservation_object_wait_timeout_rcu()
344 shared_count = fobj->shared_count; reservation_object_wait_timeout_rcu()
349 for (i = 0; i < shared_count; ++i) { reservation_object_wait_timeout_rcu()
368 if (!shared_count) { reservation_object_wait_timeout_rcu()
390 if (ret > 0 && wait_all && (i + 1 < shared_count)) reservation_object_wait_timeout_rcu()
422 unsigned seq, shared_count; reservation_object_test_signaled_rcu() local
426 shared_count = 0; reservation_object_test_signaled_rcu()
437 shared_count = fobj->shared_count; reservation_object_test_signaled_rcu()
442 for (i = 0; i < shared_count; ++i) { reservation_object_test_signaled_rcu()
460 if (!shared_count) { reservation_object_test_signaled_rcu()
H A Ddma-buf.c142 unsigned shared_count, seq; dma_buf_poll() local
162 shared_count = fobj->shared_count; dma_buf_poll()
164 shared_count = 0; dma_buf_poll()
171 if (fence_excl && (!(events & POLLOUT) || shared_count == 0)) { dma_buf_poll()
175 if (shared_count == 0) dma_buf_poll()
206 if ((events & POLLOUT) && shared_count > 0) { dma_buf_poll()
221 for (i = 0; i < shared_count; ++i) { dma_buf_poll()
245 if (i == shared_count) dma_buf_poll()
/linux-4.4.14/include/linux/
H A Dreservation.h54 u32 shared_count, shared_max; member in struct:reservation_object_list
99 for (i = 0; i < fobj->shared_count; ++i) reservation_object_fini()
/linux-4.4.14/drivers/gpu/drm/qxl/
H A Dqxl_debugfs.c66 rel = fobj ? fobj->shared_count : 0; qxl_debugfs_buffers_info()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_sync.c112 for (i = 0; i < flist->shared_count; ++i) { radeon_sync_resv()
/linux-4.4.14/drivers/gpu/drm/nouveau/
H A Dnouveau_fence.c409 if (fence && (!exclusive || !fobj || !fobj->shared_count)) { nouveau_fence_sync()
431 for (i = 0; i < fobj->shared_count && !ret; ++i) { nouveau_fence_sync()
H A Dnouveau_gem.c128 if (fobj && fobj->shared_count > 1) nouveau_gem_object_unmap()
130 else if (fobj && fobj->shared_count == 1) nouveau_gem_object_unmap()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_sync.c186 for (i = 0; i < flist->shared_count; ++i) { amdgpu_sync_resv()
H A Damdgpu_display.c80 for (i = 0; i < work->shared_count; ++i) amdgpu_flip_work_func()
223 &work->shared_count, amdgpu_crtc_page_flip()
276 for (i = 0; i < work->shared_count; ++i) amdgpu_crtc_page_flip()
H A Damdgpu.h796 unsigned shared_count; member in struct:amdgpu_flip_work
/linux-4.4.14/drivers/gpu/drm/ttm/
H A Dttm_bo.c417 for (i = 0; fobj && i < fobj->shared_count; ++i) { ttm_bo_flush_all_fences()
1560 for (i = 0; fobj && timeout > 0 && i < fobj->shared_count; ++i) { ttm_bo_wait()

Completed in 1685 milliseconds