/kernel/linux/linux-5.10/fs/ocfs2/ |
D | reservations.c | 42 struct ocfs2_alloc_reservation *resv) in ocfs2_resv_window_bits() argument 47 if (!(resv->r_flags & OCFS2_RESV_FLAG_DIR)) { in ocfs2_resv_window_bits() 56 static inline unsigned int ocfs2_resv_end(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_end() argument 58 if (resv->r_len) in ocfs2_resv_end() 59 return resv->r_start + resv->r_len - 1; in ocfs2_resv_end() 60 return resv->r_start; in ocfs2_resv_end() 63 static inline int ocfs2_resv_empty(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_empty() argument 65 return !!(resv->r_len == 0); in ocfs2_resv_empty() 79 struct ocfs2_alloc_reservation *resv; in ocfs2_dump_resv() local 87 resv = rb_entry(node, struct ocfs2_alloc_reservation, r_node); in ocfs2_dump_resv() [all …]
|
D | reservations.h | 56 void ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv); 59 void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, 73 struct ocfs2_alloc_reservation *resv); 129 struct ocfs2_alloc_reservation *resv, 148 struct ocfs2_alloc_reservation *resv,
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_ag_resv.c | 133 struct xfs_ag_resv *resv; in __xfs_ag_resv_free() local 139 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_free() 141 pag->pag_mount->m_ag_max_usable += resv->ar_asked; in __xfs_ag_resv_free() 148 oldresv = resv->ar_orig_reserved; in __xfs_ag_resv_free() 150 oldresv = resv->ar_reserved; in __xfs_ag_resv_free() 152 resv->ar_reserved = 0; in __xfs_ag_resv_free() 153 resv->ar_asked = 0; in __xfs_ag_resv_free() 154 resv->ar_orig_reserved = 0; in __xfs_ag_resv_free() 185 struct xfs_ag_resv *resv; in __xfs_ag_resv_init() local 233 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_init() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 163 dma_resv_assert_held(bo->base.resv); in ttm_bo_move_to_lru_tail() 196 dma_resv_assert_held(pos->first->base.resv); in ttm_bo_bulk_move_lru_tail() 197 dma_resv_assert_held(pos->last->base.resv); in ttm_bo_bulk_move_lru_tail() 211 dma_resv_assert_held(pos->first->base.resv); in ttm_bo_bulk_move_lru_tail() 212 dma_resv_assert_held(pos->last->base.resv); in ttm_bo_bulk_move_lru_tail() 226 dma_resv_assert_held(pos->first->base.resv); in ttm_bo_bulk_move_lru_tail() 227 dma_resv_assert_held(pos->last->base.resv); in ttm_bo_bulk_move_lru_tail() 333 if (bo->base.resv == &bo->base._resv) in ttm_bo_individualize_resv() 338 r = dma_resv_copy_fences(&bo->base._resv, bo->base.resv); in ttm_bo_individualize_resv() 349 bo->base.resv = &bo->base._resv; in ttm_bo_individualize_resv() [all …]
|
D | ttm_execbuf_util.c | 42 dma_resv_unlock(bo->base.resv); in ttm_eu_backoff_reservation_reverse() 59 dma_resv_unlock(bo->base.resv); in ttm_eu_backoff_reservation() 109 ret = dma_resv_reserve_shared(bo->base.resv, in ttm_eu_reserve_buffers() 126 ret = dma_resv_reserve_shared(bo->base.resv, in ttm_eu_reserve_buffers() 162 dma_resv_add_shared_fence(bo->base.resv, fence); in ttm_eu_fence_buffer_objects() 164 dma_resv_add_excl_fence(bo->base.resv, fence); in ttm_eu_fence_buffer_objects() 166 dma_resv_unlock(bo->base.resv); in ttm_eu_fence_buffer_objects()
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | dma-buf.c | 82 if (dmabuf->resv == (struct dma_resv *)&dmabuf[1]) in dma_buf_release() 83 dma_resv_fini(dmabuf->resv); in dma_buf_release() 215 struct dma_resv *resv; in dma_buf_poll() local 222 if (!dmabuf || !dmabuf->resv) in dma_buf_poll() 225 resv = dmabuf->resv; in dma_buf_poll() 234 seq = read_seqcount_begin(&resv->seq); in dma_buf_poll() 237 fobj = rcu_dereference(resv->fence); in dma_buf_poll() 242 fence_excl = rcu_dereference(resv->fence_excl); in dma_buf_poll() 243 if (read_seqcount_retry(&resv->seq, seq)) { in dma_buf_poll() 354 dma_resv_lock(dmabuf->resv, NULL); in dma_buf_set_name() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_wait.c | 34 i915_gem_object_wait_reservation(struct dma_resv *resv, in i915_gem_object_wait_reservation() argument 46 ret = dma_resv_get_fences_rcu(resv, in i915_gem_object_wait_reservation() 75 excl = dma_resv_get_excl_rcu(resv); in i915_gem_object_wait_reservation() 87 if (prune_fences && dma_resv_trylock(resv)) { in i915_gem_object_wait_reservation() 88 if (dma_resv_test_signaled_rcu(resv, true)) in i915_gem_object_wait_reservation() 89 dma_resv_add_excl_fence(resv, NULL); in i915_gem_object_wait_reservation() 90 dma_resv_unlock(resv); in i915_gem_object_wait_reservation() 143 ret = dma_resv_get_fences_rcu(obj->base.resv, in i915_gem_object_wait_priority() 155 excl = dma_resv_get_excl_rcu(obj->base.resv); in i915_gem_object_wait_priority() 179 timeout = i915_gem_object_wait_reservation(obj->base.resv, in i915_gem_object_wait()
|
D | i915_gem_busy.c | 113 seq = raw_read_seqcount(&obj->base.resv->seq); in i915_gem_busy_ioctl() 117 busy_check_writer(rcu_dereference(obj->base.resv->fence_excl)); in i915_gem_busy_ioctl() 120 list = rcu_dereference(obj->base.resv->fence); in i915_gem_busy_ioctl() 132 if (args->busy && read_seqcount_retry(&obj->base.resv->seq, seq)) in i915_gem_busy_ioctl()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vgem/ |
D | vgem_fence.c | 131 struct dma_resv *resv; in vgem_fence_attach_ioctl() local 153 resv = obj->resv; in vgem_fence_attach_ioctl() 154 if (!dma_resv_test_signaled_rcu(resv, in vgem_fence_attach_ioctl() 162 dma_resv_lock(resv, NULL); in vgem_fence_attach_ioctl() 164 dma_resv_add_excl_fence(resv, fence); in vgem_fence_attach_ioctl() 165 else if ((ret = dma_resv_reserve_shared(resv, 1)) == 0) in vgem_fence_attach_ioctl() 166 dma_resv_add_shared_fence(resv, fence); in vgem_fence_attach_ioctl() 167 dma_resv_unlock(resv); in vgem_fence_attach_ioctl()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dma_buf.c | 202 r = __dma_resv_make_exclusive(bo->tbo.base.resv); in amdgpu_dma_buf_attach() 470 struct dma_resv *resv = dma_buf->resv; in amdgpu_dma_buf_create_obj() local 483 bp.resv = resv; in amdgpu_dma_buf_create_obj() 484 dma_resv_lock(resv, NULL); in amdgpu_dma_buf_create_obj() 487 0, ttm_bo_type_sg, resv, &gobj); in amdgpu_dma_buf_create_obj() 497 dma_resv_unlock(resv); in amdgpu_dma_buf_create_obj() 501 dma_resv_unlock(resv); in amdgpu_dma_buf_create_obj() 517 struct ww_acquire_ctx *ticket = dma_resv_locking_ctx(obj->resv); in amdgpu_dma_buf_move_notify() 536 struct dma_resv *resv = vm->root.base.bo->tbo.base.resv; in amdgpu_dma_buf_move_notify() local 543 r = dma_resv_lock(resv, ticket); in amdgpu_dma_buf_move_notify() [all …]
|
D | amdgpu_object.c | 260 bp.resv = NULL; in amdgpu_bo_create_reserved() 529 .resv = bp->resv, in amdgpu_bo_do_create() 590 NULL, bp->resv, &amdgpu_bo_destroy); in amdgpu_bo_do_create() 606 r = amdgpu_fill_buffer(bo, 0, bo->tbo.base.resv, &fence); in amdgpu_bo_do_create() 615 if (!bp->resv) in amdgpu_bo_do_create() 628 if (!bp->resv) in amdgpu_bo_do_create() 629 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_do_create() 650 bp.resv = bo->tbo.base.resv; in amdgpu_bo_create_shadow() 690 if (!bp->resv) in amdgpu_bo_create() 691 WARN_ON(dma_resv_lock((*bo_ptr)->tbo.base.resv, in amdgpu_bo_create() [all …]
|
D | amdgpu_vm.c | 331 if (bo->tbo.base.resv != vm->root.base.bo->tbo.base.resv) in amdgpu_vm_bo_base_init() 621 if (abo->tbo.base.resv == vm->root.base.bo->tbo.base.resv) in amdgpu_vm_del_from_lru_notify() 877 bp->resv = vm->root.base.bo->tbo.base.resv; in amdgpu_vm_bo_param() 1592 bool unlocked, struct dma_resv *resv, in amdgpu_vm_bo_update_mapping() argument 1631 r = vm->update_funcs->prepare(¶ms, resv, sync_mode); in amdgpu_vm_bo_update_mapping() 1666 struct dma_resv *resv, in amdgpu_vm_bo_split_mapping() argument 1742 r = amdgpu_vm_bo_update_mapping(adev, vm, false, false, resv, in amdgpu_vm_bo_split_mapping() 1782 struct dma_resv *resv; in amdgpu_vm_bo_update() local 1790 resv = vm->root.base.bo->tbo.base.resv; in amdgpu_vm_bo_update() 1795 resv = bo->tbo.base.resv; in amdgpu_vm_bo_update() [all …]
|
D | amdgpu_vm_cpu.c | 48 struct dma_resv *resv, in amdgpu_vm_cpu_prepare() argument 51 if (!resv) in amdgpu_vm_cpu_prepare() 54 return amdgpu_bo_sync_wait_resv(p->adev, resv, sync_mode, p->vm, true); in amdgpu_vm_cpu_prepare()
|
/kernel/linux/linux-5.10/net/sunrpc/ |
D | svc.c | 1180 struct kvec *resv = &rqstp->rq_res.head[0]; in svc_generic_dispatch() local 1207 !procp->pc_encode(rqstp, resv->iov_base + resv->iov_len)) { in svc_generic_dispatch() 1272 svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) in svc_process_common() argument 1295 svc_putu32(resv, rqstp->rq_xid); in svc_process_common() 1300 svc_putnl(resv, 1); /* REPLY */ in svc_process_common() 1306 reply_statp = resv->iov_base + resv->iov_len; in svc_process_common() 1308 svc_putnl(resv, 0); /* ACCEPT */ in svc_process_common() 1374 statp = resv->iov_base +resv->iov_len; in svc_process_common() 1375 svc_putnl(resv, RPC_SUCCESS); in svc_process_common() 1400 resv->iov_len = ((void*)statp) - resv->iov_base + 4; in svc_process_common() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_prime.c | 66 struct dma_resv *resv = attach->dmabuf->resv; in radeon_gem_prime_import_sg_table() local 71 dma_resv_lock(resv, NULL); in radeon_gem_prime_import_sg_table() 73 RADEON_GEM_DOMAIN_GTT, 0, sg, resv, &bo); in radeon_gem_prime_import_sg_table() 74 dma_resv_unlock(resv); in radeon_gem_prime_import_sg_table()
|
D | radeon_benchmark.c | 38 struct dma_resv *resv) in radeon_benchmark_do_move() argument 51 resv); in radeon_benchmark_do_move() 56 resv); in radeon_benchmark_do_move() 125 dobj->tbo.base.resv); in radeon_benchmark_move() 136 dobj->tbo.base.resv); in radeon_benchmark_move()
|
D | radeon_sync.c | 90 struct dma_resv *resv, in radeon_sync_resv() argument 100 f = dma_resv_get_excl(resv); in radeon_sync_resv() 107 flist = dma_resv_get_list(resv); in radeon_sync_resv() 113 dma_resv_held(resv)); in radeon_sync_resv()
|
/kernel/linux/linux-5.10/mm/ |
D | hugetlb.c | 250 get_file_region_entry_from_cache(struct resv_map *resv, long from, long to) in get_file_region_entry_from_cache() argument 254 VM_BUG_ON(resv->region_cache_count <= 0); in get_file_region_entry_from_cache() 256 resv->region_cache_count--; in get_file_region_entry_from_cache() 257 nrg = list_first_entry(&resv->region_cache, struct file_region, link); in get_file_region_entry_from_cache() 280 struct resv_map *resv, in record_hugetlb_cgroup_uncharge_info() argument 299 if (!resv->pages_per_hpage) in record_hugetlb_cgroup_uncharge_info() 300 resv->pages_per_hpage = pages_per_huge_page(h); in record_hugetlb_cgroup_uncharge_info() 304 VM_BUG_ON(resv->pages_per_hpage != pages_per_huge_page(h)); in record_hugetlb_cgroup_uncharge_info() 333 static void coalesce_file_region(struct resv_map *resv, struct file_region *rg) in coalesce_file_region() argument 338 if (&prg->link != &resv->regions && prg->to == rg->from && in coalesce_file_region() [all …]
|
/kernel/linux/linux-5.10/include/drm/ttm/ |
D | ttm_bo_driver.h | 497 success = dma_resv_trylock(bo->base.resv); in ttm_bo_reserve() 502 ret = dma_resv_lock_interruptible(bo->base.resv, ticket); in ttm_bo_reserve() 504 ret = dma_resv_lock(bo->base.resv, ticket); in ttm_bo_reserve() 525 int ret = dma_resv_lock_slow_interruptible(bo->base.resv, in ttm_bo_reserve_slowpath() 531 dma_resv_lock_slow(bo->base.resv, ticket); in ttm_bo_reserve_slowpath() 575 dma_resv_unlock(bo->base.resv); in ttm_bo_unreserve()
|
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
D | svcauth_gss.c | 691 svc_safe_putnetobj(struct kvec *resv, struct xdr_netobj *o) in svc_safe_putnetobj() argument 695 if (resv->iov_len + 4 > PAGE_SIZE) in svc_safe_putnetobj() 697 svc_putnl(resv, o->len); in svc_safe_putnetobj() 698 p = resv->iov_base + resv->iov_len; in svc_safe_putnetobj() 699 resv->iov_len += round_up_to_quad(o->len); in svc_safe_putnetobj() 700 if (resv->iov_len > PAGE_SIZE) in svc_safe_putnetobj() 1203 gss_write_resv(struct kvec *resv, size_t size_limit, in gss_write_resv() argument 1207 if (resv->iov_len + 4 > size_limit) in gss_write_resv() 1209 svc_putnl(resv, RPC_SUCCESS); in gss_write_resv() 1210 if (svc_safe_putnetobj(resv, out_handle)) in gss_write_resv() [all …]
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | io_uring.h | 174 __u32 resv[3]; member 203 __u32 resv; member 209 __u8 resv; member 216 __u16 resv; member 227 __u8 resv; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | io_uring.h | 241 __u32 resv[3]; member 281 __u32 resv; member 289 __u8 resv; member 297 __u16 resv; member 309 __u8 resv; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/crypto/ |
D | fw.h | 17 u8 resv[2]; member 37 u8 resv[3]; member 86 u8 resv[3]; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | intel_gt_buffer_pool.c | 105 struct dma_resv *resv = node->obj->base.resv; in pool_active() local 108 if (dma_resv_trylock(resv)) { in pool_active() 109 dma_resv_add_excl_fence(resv, NULL); in pool_active() 110 dma_resv_unlock(resv); in pool_active()
|
/kernel/linux/linux-5.10/include/linux/ |
D | hugetlb_cgroup.h | 147 extern void hugetlb_cgroup_uncharge_counter(struct resv_map *resv, 151 extern void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv, 161 static inline void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv, in hugetlb_cgroup_uncharge_file_region() argument 259 static inline void hugetlb_cgroup_uncharge_counter(struct resv_map *resv, in hugetlb_cgroup_uncharge_counter() argument
|