Home
last modified time | relevance | path

Searched refs:fobj (Results 1 – 7 of 7) sorted by relevance

/linux-4.1.27/drivers/dma-buf/
Dreservation.c52 struct reservation_object_list *fobj, *old; in reservation_object_reserve_shared() local
72 fobj = krealloc(obj->staged, offsetof(typeof(*fobj), shared[max]), in reservation_object_reserve_shared()
74 if (!fobj) in reservation_object_reserve_shared()
77 obj->staged = fobj; in reservation_object_reserve_shared()
78 fobj->shared_max = max; in reservation_object_reserve_shared()
85 struct reservation_object_list *fobj, in reservation_object_add_shared_inplace() argument
95 for (i = 0; i < fobj->shared_count; ++i) { in reservation_object_add_shared_inplace()
98 old_fence = rcu_dereference_protected(fobj->shared[i], in reservation_object_add_shared_inplace()
103 RCU_INIT_POINTER(fobj->shared[i], fence); in reservation_object_add_shared_inplace()
116 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_inplace()
[all …]
Ddma-buf.c137 struct reservation_object_list *fobj; in dma_buf_poll() local
158 fobj = rcu_dereference(resv->fence); in dma_buf_poll()
159 if (fobj) in dma_buf_poll()
160 shared_count = fobj->shared_count; in dma_buf_poll()
220 struct fence *fence = rcu_dereference(fobj->shared[i]); in dma_buf_poll()
/linux-4.1.27/include/linux/
Dreservation.h86 struct reservation_object_list *fobj; in reservation_object_fini() local
97 fobj = rcu_dereference_protected(obj->fence, 1); in reservation_object_fini()
98 if (fobj) { in reservation_object_fini()
99 for (i = 0; i < fobj->shared_count; ++i) in reservation_object_fini()
100 fence_put(rcu_dereference_protected(fobj->shared[i], 1)); in reservation_object_fini()
102 kfree(fobj); in reservation_object_fini()
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_debugfs.c61 struct reservation_object_list *fobj; in qxl_debugfs_buffers_info() local
65 fobj = rcu_dereference(bo->tbo.resv->fence); in qxl_debugfs_buffers_info()
66 rel = fobj ? fobj->shared_count : 0; in qxl_debugfs_buffers_info()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_fence.c396 struct reservation_object_list *fobj; in nouveau_fence_sync() local
407 fobj = reservation_object_get_list(resv); in nouveau_fence_sync()
410 if (fence && (!exclusive || !fobj || !fobj->shared_count)) { in nouveau_fence_sync()
429 if (!exclusive || !fobj) in nouveau_fence_sync()
432 for (i = 0; i < fobj->shared_count && !ret; ++i) { in nouveau_fence_sync()
436 fence = rcu_dereference_protected(fobj->shared[i], in nouveau_fence_sync()
Dnouveau_gem.c119 struct reservation_object_list *fobj; in nouveau_gem_object_unmap() local
122 fobj = reservation_object_get_list(resv); in nouveau_gem_object_unmap()
126 if (fobj && fobj->shared_count > 1) in nouveau_gem_object_unmap()
128 else if (fobj && fobj->shared_count == 1) in nouveau_gem_object_unmap()
129 fence = rcu_dereference_protected(fobj->shared[0], in nouveau_gem_object_unmap()
/linux-4.1.27/drivers/gpu/drm/ttm/
Dttm_bo.c408 struct reservation_object_list *fobj; in ttm_bo_flush_all_fences() local
412 fobj = reservation_object_get_list(bo->resv); in ttm_bo_flush_all_fences()
417 for (i = 0; fobj && i < fobj->shared_count; ++i) { in ttm_bo_flush_all_fences()
418 fence = rcu_dereference_protected(fobj->shared[i], in ttm_bo_flush_all_fences()
1537 struct reservation_object_list *fobj; in ttm_bo_wait() local
1544 fobj = reservation_object_get_list(resv); in ttm_bo_wait()
1556 for (i = 0; fobj && timeout > 0 && i < fobj->shared_count; ++i) { in ttm_bo_wait()
1558 fence = rcu_dereference_protected(fobj->shared[i], in ttm_bo_wait()