/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gem_submit.c | 10 #include <linux/dma-resv.h> 116 dma_resv_unlock(obj->resv); in submit_unlock_object() 136 ret = dma_resv_lock_interruptible(obj->resv, ticket); in submit_lock_objects() 163 ret = dma_resv_lock_slow_interruptible(obj->resv, ticket); in submit_lock_objects() 180 struct dma_resv *robj = bo->obj->base.resv; in submit_fence_sync() 214 dma_resv_add_excl_fence(obj->resv, in submit_attach_object_fences() 217 dma_resv_add_shared_fence(obj->resv, in submit_attach_object_fences()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_mode_config.c | 32 #include <linux/dma-resv.h> 443 struct dma_resv resv; in drmm_mode_config_init() local 446 dma_resv_init(&resv); in drmm_mode_config_init() 455 ret = dma_resv_lock(&resv, &resv_ctx); in drmm_mode_config_init() 457 dma_resv_lock_slow(&resv, &resv_ctx); in drmm_mode_config_init() 459 dma_resv_unlock(&resv); in drmm_mode_config_init() 464 dma_resv_fini(&resv); in drmm_mode_config_init()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm_move.c | 642 ret = i915_deps_add_resv(&deps, bo->base.resv, ctx); in i915_ttm_move() 726 ret = dma_resv_reserve_fences(src_bo->base.resv, 1); in i915_gem_obj_copy_ttm() 730 ret = dma_resv_reserve_fences(dst_bo->base.resv, 1); in i915_gem_obj_copy_ttm() 734 ret = i915_deps_add_resv(&deps, dst_bo->base.resv, &ctx); in i915_gem_obj_copy_ttm() 738 ret = i915_deps_add_resv(&deps, src_bo->base.resv, &ctx); in i915_gem_obj_copy_ttm() 752 dma_resv_add_fence(dst_bo->base.resv, copy_fence, DMA_RESV_USAGE_WRITE); in i915_gem_obj_copy_ttm() 753 dma_resv_add_fence(src_bo->base.resv, copy_fence, DMA_RESV_USAGE_READ); in i915_gem_obj_copy_ttm()
|
H A D | i915_gem_object.h | 148 #define assert_object_held(obj) dma_resv_assert_held((obj)->base.resv) 171 ret = dma_resv_lock_interruptible(obj->base.resv, ww ? &ww->ctx : NULL); in __i915_gem_object_lock() 173 ret = dma_resv_lock(obj->base.resv, ww ? &ww->ctx : NULL); in __i915_gem_object_lock() 207 return dma_resv_trylock(obj->base.resv); in i915_gem_object_trylock() 209 return ww_mutex_trylock(&obj->base.resv->lock, &ww->ctx); in i915_gem_object_trylock() 217 dma_resv_unlock(obj->base.resv); in i915_gem_object_unlock()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_object.c | 186 struct dma_resv *resv, in radeon_bo_create() 264 sg, resv, &radeon_ttm_bo_destroy); in radeon_bo_create() 613 dma_resv_assert_held(bo->tbo.base.resv); in radeon_bo_get_surface_reg() 739 dma_resv_assert_held(bo->tbo.base.resv); in radeon_bo_get_tiling_flags() 751 dma_resv_assert_held(bo->tbo.base.resv); in radeon_bo_check_tiling() 873 struct dma_resv *resv = bo->tbo.base.resv; in radeon_bo_fence() local 876 dma_resv_add_shared_fence(resv, &fence->base); in radeon_bo_fence() 878 dma_resv_add_excl_fence(resv, &fence->base); in radeon_bo_fence() 183 radeon_bo_create(struct radeon_device *rdev, unsigned long size, int byte_align, bool kernel, u32 domain, u32 flags, struct sg_table *sg, struct dma_resv *resv, struct radeon_bo **bo_ptr) radeon_bo_create() argument
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_trans.c | 331 struct xfs_trans_res resv = {0}; in xfs_trans_alloc_empty() local 333 return xfs_trans_alloc(mp, &resv, 0, 0, XFS_TRANS_NO_WRITECOUNT, tpp); in xfs_trans_alloc_empty() 1186 struct xfs_trans_res *resv, in xfs_trans_alloc_inode() 1198 error = xfs_trans_alloc(mp, resv, dblocks, in xfs_trans_alloc_inode() 1241 struct xfs_trans_res *resv, in xfs_trans_alloc_icreate() 1253 error = xfs_trans_alloc(mp, resv, dblocks, 0, 0, &tp); in xfs_trans_alloc_icreate() 1370 struct xfs_trans_res *resv, in xfs_trans_alloc_dir() 1385 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp); in xfs_trans_alloc_dir() 1389 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp); in xfs_trans_alloc_dir() 1184 xfs_trans_alloc_inode( struct xfs_inode *ip, struct xfs_trans_res *resv, unsigned int dblocks, unsigned int rblocks, bool force, struct xfs_trans **tpp) xfs_trans_alloc_inode() argument 1239 xfs_trans_alloc_icreate( struct xfs_mount *mp, struct xfs_trans_res *resv, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, unsigned int dblocks, struct xfs_trans **tpp) xfs_trans_alloc_icreate() argument 1368 xfs_trans_alloc_dir( struct xfs_inode *dp, struct xfs_trans_res *resv, struct xfs_inode *ip, unsigned int *dblocks, struct xfs_trans **tpp, int *nospace_error) xfs_trans_alloc_dir() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/virtio/ |
H A D | virtgpu_gem.c | 221 ret = dma_resv_lock_interruptible(objs->objs[0]->resv, NULL); in virtio_gpu_array_lock_resv() 230 ret = dma_resv_reserve_fences(objs->objs[i]->resv, 1); in virtio_gpu_array_lock_resv() 242 dma_resv_unlock(objs->objs[0]->resv); in virtio_gpu_array_unlock_resv() 255 dma_resv_add_fence(objs->objs[i]->resv, fence, in virtio_gpu_array_add_fence()
|
H A D | virtgpu_prime.c | 133 exp_info.resv = obj->resv; in virtgpu_gem_prime_export()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vm_sdma.c | 61 struct dma_resv *resv, in amdgpu_vm_sdma_prepare() 75 if (!resv) in amdgpu_vm_sdma_prepare() 78 return amdgpu_sync_resv(p->adev, &p->job->sync, resv, sync_mode, p->vm); in amdgpu_vm_sdma_prepare() 60 amdgpu_vm_sdma_prepare(struct amdgpu_vm_update_params *p, struct dma_resv *resv, enum amdgpu_sync_mode sync_mode) amdgpu_vm_sdma_prepare() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
H A D | virtgpu_gem.c | 212 ret = dma_resv_lock_interruptible(objs->objs[0]->resv, NULL); in virtio_gpu_array_lock_resv() 223 dma_resv_unlock(objs->objs[0]->resv); in virtio_gpu_array_unlock_resv() 236 dma_resv_add_excl_fence(objs->objs[i]->resv, fence); in virtio_gpu_array_add_fence()
|
H A D | virtgpu_prime.c | 91 exp_info.resv = obj->resv; in virtgpu_gem_prime_export()
|
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_gem.h | 38 #include <linux/dma-resv.h> 367 * @resv: 371 * Normally (@resv == &@_resv) except for imported GEM objects. 373 struct dma_resv *resv; member 390 * (&drm_gem_object.resv) or a custom lock if one is provided. 555 * dma-resv lock, but with a custom lock. 564 dma_resv_held((obj)->resv))
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_sync.c | 229 * @resv: reservation object with embedded fence 236 struct dma_resv *resv, enum amdgpu_sync_mode mode, in amdgpu_sync_resv() 243 if (resv == NULL) in amdgpu_sync_resv() 247 dma_resv_for_each_fence(&cursor, resv, DMA_RESV_USAGE_BOOKKEEP, f) { in amdgpu_sync_resv() 235 amdgpu_sync_resv(struct amdgpu_device *adev, struct amdgpu_sync *sync, struct dma_resv *resv, enum amdgpu_sync_mode mode, void *owner) amdgpu_sync_resv() argument
|
H A D | amdgpu_ttm.h | 149 struct dma_resv *resv, 156 struct dma_resv *resv, 160 struct dma_resv *resv,
|
/kernel/linux/linux-6.6/drivers/gpu/drm/gma500/ |
H A D | gem.c | 38 ret = dma_resv_lock(obj->resv, NULL); in psb_gem_pin() 64 dma_resv_unlock(obj->resv); in psb_gem_pin() 69 dma_resv_unlock(obj->resv); in psb_gem_pin() 82 ret = dma_resv_lock(obj->resv, NULL); in psb_gem_unpin() 106 dma_resv_unlock(obj->resv); in psb_gem_unpin()
|
/kernel/linux/linux-6.6/io_uring/ |
H A D | kbuf.c | 657 if (reg.resv[0] || reg.resv[1] || reg.resv[2]) in io_register_pbuf_ring() 721 if (reg.resv[0] || reg.resv[1] || reg.resv[2]) in io_unregister_pbuf_ring()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gem_submit.c | 10 #include <linux/dma-resv.h> 116 dma_resv_unlock(obj->resv); in submit_unlock_object() 136 ret = dma_resv_lock_interruptible(obj->resv, ticket); in submit_lock_objects() 163 ret = dma_resv_lock_slow_interruptible(obj->resv, ticket); in submit_lock_objects() 180 struct dma_resv *robj = bo->obj->base.resv; in submit_fence_sync() 207 dma_resv_add_fence(obj->resv, submit->out_fence, write ? in submit_attach_object_fences()
|
/kernel/linux/linux-5.10/include/rdma/ |
H A D | ib_smi.h | 28 __be16 resv; member 91 u8 resv; member
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | dma-buf.h | 90 * This is called with the dmabuf->resv object locked and is mutual 108 * This is called with the dmabuf->resv object locked and is mutual 141 * This is always called with the dmabuf->resv object locked when 285 * protected by @resv. 291 * @resv: reservation object linked to this dma-buf 324 struct dma_resv *resv; member 424 * @resv: reservation-object, NULL to allocate default one 436 struct dma_resv *resv; member
|
/kernel/linux/linux-6.6/include/rdma/ |
H A D | ib_smi.h | 28 __be16 resv; member 91 u8 resv; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gem_shrinker.c | 51 if (!dma_resv_trylock(shmem->base.resv)) in panfrost_gem_purge() 58 dma_resv_unlock(shmem->base.resv); in panfrost_gem_purge()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_sync.c | 84 * @resv: reservation object with embedded fence 91 struct dma_resv *resv, in radeon_sync_resv() 99 dma_resv_for_each_fence(&cursor, resv, dma_resv_usage_rw(!shared), f) { in radeon_sync_resv() 89 radeon_sync_resv(struct radeon_device *rdev, struct radeon_sync *sync, struct dma_resv *resv, bool shared) radeon_sync_resv() argument
|
H A D | evergreen_dma.c | 100 * @resv: reservation object with embedded fence 110 struct dma_resv *resv) in evergreen_copy_dma() 131 radeon_sync_resv(rdev, &sync, resv, false); in evergreen_copy_dma() 106 evergreen_copy_dma(struct radeon_device *rdev, uint64_t src_offset, uint64_t dst_offset, unsigned num_gpu_pages, struct dma_resv *resv) evergreen_copy_dma() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/ |
H A D | omap_gem_dmabuf.c | 88 exp_info.resv = obj->resv; in omap_gem_prime_export()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/selftests/ |
H A D | i915_gem_mman.c | 676 struct drm_mm_node *resv; in igt_mmap_offset_exhaustion() local 678 resv = kzalloc(sizeof(*resv), GFP_NOWAIT); in igt_mmap_offset_exhaustion() 679 if (!resv) { in igt_mmap_offset_exhaustion() 684 resv->start = drm_mm_hole_node_start(hole) + loop; in igt_mmap_offset_exhaustion() 685 resv->size = hole->hole_size - loop; in igt_mmap_offset_exhaustion() 686 resv->color = -1ul; in igt_mmap_offset_exhaustion() 689 if (!resv->size) { in igt_mmap_offset_exhaustion() 690 kfree(resv); in igt_mmap_offset_exhaustion() 695 resv in igt_mmap_offset_exhaustion() [all...] |