Home
last modified time | relevance | path

Searched refs:resv (Results 101 - 125 of 463) sorted by relevance

12345678910>>...19

/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem_submit.c10 #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 Ddrm_mode_config.c32 #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 Di915_gem_ttm_move.c642 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 Di915_gem_object.h148 #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 Dradeon_object.c186 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 Dxfs_trans.c331 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 Dvirtgpu_gem.c221 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 Dvirtgpu_prime.c133 exp_info.resv = obj->resv; in virtgpu_gem_prime_export()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vm_sdma.c61 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 Dvirtgpu_gem.c212 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 Dvirtgpu_prime.c91 exp_info.resv = obj->resv; in virtgpu_gem_prime_export()
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_gem.h38 #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 Damdgpu_sync.c229 * @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 Damdgpu_ttm.h149 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 Dgem.c38 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 Dkbuf.c657 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 Detnaviv_gem_submit.c10 #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 Dib_smi.h28 __be16 resv; member
91 u8 resv; member
/kernel/linux/linux-5.10/include/linux/
H A Ddma-buf.h90 * 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 Dib_smi.h28 __be16 resv; member
91 u8 resv; member
/kernel/linux/linux-6.6/drivers/gpu/drm/panfrost/
H A Dpanfrost_gem_shrinker.c51 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 Dradeon_sync.c84 * @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 Devergreen_dma.c100 * @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 Domap_gem_dmabuf.c88 exp_info.resv = obj->resv; in omap_gem_prime_export()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_mman.c676 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...]

Completed in 20 milliseconds

12345678910>>...19