Searched refs:fobj (Results 1 – 9 of 9) sorted by relevance
/drivers/dma-buf/ |
D | reservation.c | 71 struct reservation_object_list *fobj, *old; in reservation_object_reserve_shared() local 91 fobj = krealloc(obj->staged, offsetof(typeof(*fobj), shared[max]), in reservation_object_reserve_shared() 93 if (!fobj) in reservation_object_reserve_shared() 96 obj->staged = fobj; in reservation_object_reserve_shared() 97 fobj->shared_max = max; in reservation_object_reserve_shared() 104 struct reservation_object_list *fobj, in reservation_object_add_shared_inplace() argument 114 for (i = 0; i < fobj->shared_count; ++i) { in reservation_object_add_shared_inplace() 117 old_fence = rcu_dereference_protected(fobj->shared[i], in reservation_object_add_shared_inplace() 122 RCU_INIT_POINTER(fobj->shared[i], fence); in reservation_object_add_shared_inplace() 135 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_inplace() [all …]
|
D | dma-buf.c | 164 struct reservation_object_list *fobj; in dma_buf_poll() local 185 fobj = rcu_dereference(resv->fence); in dma_buf_poll() 186 if (fobj) in dma_buf_poll() 187 shared_count = fobj->shared_count; in dma_buf_poll() 247 struct dma_fence *fence = rcu_dereference(fobj->shared[i]); in dma_buf_poll() 1063 struct reservation_object_list *fobj; in dma_buf_debug_show() local 1097 fobj = rcu_dereference(robj->fence); in dma_buf_debug_show() 1098 shared_count = fobj ? fobj->shared_count : 0; in dma_buf_debug_show() 1111 fence = rcu_dereference(fobj->shared[i]); in dma_buf_debug_show()
|
/drivers/gpu/drm/qxl/ |
D | qxl_debugfs.c | 61 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()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_fence.c | 396 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()
|
D | nouveau_gem.c | 121 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()
|
/drivers/gpu/drm/msm/ |
D | msm_gem.c | 617 struct reservation_object_list *fobj; in msm_gem_sync_object() local 621 fobj = reservation_object_get_list(msm_obj->resv); in msm_gem_sync_object() 622 if (!fobj || (fobj->shared_count == 0)) { in msm_gem_sync_object() 632 if (!exclusive || !fobj) in msm_gem_sync_object() 635 for (i = 0; i < fobj->shared_count; i++) { in msm_gem_sync_object() 636 fence = rcu_dereference_protected(fobj->shared[i], in msm_gem_sync_object() 716 struct reservation_object_list *fobj; in msm_gem_describe() local 749 fobj = rcu_dereference(robj->fence); in msm_gem_describe() 750 if (fobj) { in msm_gem_describe() 751 unsigned int i, shared_count = fobj->shared_count; in msm_gem_describe() [all …]
|
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gem.c | 490 struct reservation_object_list *fobj; in etnaviv_gem_describe() local 500 fobj = rcu_dereference(robj->fence); in etnaviv_gem_describe() 501 if (fobj) { in etnaviv_gem_describe() 502 unsigned int i, shared_count = fobj->shared_count; in etnaviv_gem_describe() 505 fence = rcu_dereference(fobj->shared[i]); in etnaviv_gem_describe()
|
D | etnaviv_gpu.c | 1095 struct reservation_object_list *fobj; in etnaviv_gpu_fence_sync_obj() local 1112 fobj = reservation_object_get_list(robj); in etnaviv_gpu_fence_sync_obj() 1113 if (!fobj || fobj->shared_count == 0) { in etnaviv_gpu_fence_sync_obj() 1123 if (!exclusive || !fobj) in etnaviv_gpu_fence_sync_obj() 1126 for (i = 0; i < fobj->shared_count; i++) { in etnaviv_gpu_fence_sync_obj() 1127 fence = rcu_dereference_protected(fobj->shared[i], in etnaviv_gpu_fence_sync_obj()
|
/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 416 struct reservation_object_list *fobj; in ttm_bo_flush_all_fences() local 420 fobj = reservation_object_get_list(&bo->ttm_resv); in ttm_bo_flush_all_fences() 425 for (i = 0; fobj && i < fobj->shared_count; ++i) { in ttm_bo_flush_all_fences() 426 fence = rcu_dereference_protected(fobj->shared[i], in ttm_bo_flush_all_fences()
|