Home
last modified time | relevance | path

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

/linux-4.4.14/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.c139 struct reservation_object_list *fobj; in dma_buf_poll() local
160 fobj = rcu_dereference(resv->fence); in dma_buf_poll()
161 if (fobj) in dma_buf_poll()
162 shared_count = fobj->shared_count; in dma_buf_poll()
222 struct fence *fence = rcu_dereference(fobj->shared[i]); in dma_buf_poll()
/linux-4.4.14/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.4.14/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.4.14/drivers/gpu/drm/nouveau/
Dnouveau_fence.c395 struct reservation_object_list *fobj; in nouveau_fence_sync() local
406 fobj = reservation_object_get_list(resv); in nouveau_fence_sync()
409 if (fence && (!exclusive || !fobj || !fobj->shared_count)) { in nouveau_fence_sync()
428 if (!exclusive || !fobj) in nouveau_fence_sync()
431 for (i = 0; i < fobj->shared_count && !ret; ++i) { in nouveau_fence_sync()
435 fence = rcu_dereference_protected(fobj->shared[i], in nouveau_fence_sync()
Dnouveau_gem.c121 struct reservation_object_list *fobj; in nouveau_gem_object_unmap() local
124 fobj = reservation_object_get_list(resv); in nouveau_gem_object_unmap()
128 if (fobj && fobj->shared_count > 1) in nouveau_gem_object_unmap()
130 else if (fobj && fobj->shared_count == 1) in nouveau_gem_object_unmap()
131 fence = rcu_dereference_protected(fobj->shared[0], in nouveau_gem_object_unmap()
/linux-4.4.14/tools/perf/scripts/python/
Dcompaction-times.py111 fobj = None variable in chead
115 cls.fobj = filter
124 if cls.fobj != None:
125 filtered = cls.fobj.filter(pid, comm)
/linux-4.4.14/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()
1541 struct reservation_object_list *fobj; in ttm_bo_wait() local
1548 fobj = reservation_object_get_list(resv); in ttm_bo_wait()
1560 for (i = 0; fobj && timeout > 0 && i < fobj->shared_count; ++i) { in ttm_bo_wait()
1562 fence = rcu_dereference_protected(fobj->shared[i], in ttm_bo_wait()