/Linux-v6.1/fs/ocfs2/ |
D | reservations.c | 40 struct ocfs2_alloc_reservation *resv) in ocfs2_resv_window_bits() argument 45 if (!(resv->r_flags & OCFS2_RESV_FLAG_DIR)) { in ocfs2_resv_window_bits() 54 static inline unsigned int ocfs2_resv_end(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_end() argument 56 if (resv->r_len) in ocfs2_resv_end() 57 return resv->r_start + resv->r_len - 1; in ocfs2_resv_end() 58 return resv->r_start; in ocfs2_resv_end() 61 static inline int ocfs2_resv_empty(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_empty() argument 63 return !!(resv->r_len == 0); in ocfs2_resv_empty() 77 struct ocfs2_alloc_reservation *resv; in ocfs2_dump_resv() local 85 resv = rb_entry(node, struct ocfs2_alloc_reservation, r_node); in ocfs2_dump_resv() [all …]
|
D | reservations.h | 54 void ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv); 57 void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, 71 struct ocfs2_alloc_reservation *resv); 122 struct ocfs2_alloc_reservation *resv, 141 struct ocfs2_alloc_reservation *resv,
|
/Linux-v6.1/drivers/dma-buf/ |
D | st-dma-resv.c | 40 struct dma_resv resv; in sanitycheck() local 53 dma_resv_init(&resv); in sanitycheck() 54 r = dma_resv_lock(&resv, NULL); in sanitycheck() 58 dma_resv_unlock(&resv); in sanitycheck() 59 dma_resv_fini(&resv); in sanitycheck() 66 struct dma_resv resv; in test_signaling() local 76 dma_resv_init(&resv); in test_signaling() 77 r = dma_resv_lock(&resv, NULL); in test_signaling() 83 r = dma_resv_reserve_fences(&resv, 1); in test_signaling() 89 dma_resv_add_fence(&resv, f, usage); in test_signaling() [all …]
|
D | dma-buf.c | 81 if (dmabuf->resv == (struct dma_resv *)&dmabuf[1]) in dma_buf_release() 82 dma_resv_fini(dmabuf->resv); in dma_buf_release() 217 static bool dma_buf_poll_add_cb(struct dma_resv *resv, bool write, in dma_buf_poll_add_cb() argument 224 dma_resv_for_each_fence(&cursor, resv, dma_resv_usage_rw(write), in dma_buf_poll_add_cb() 239 struct dma_resv *resv; in dma_buf_poll() local 243 if (!dmabuf || !dmabuf->resv) in dma_buf_poll() 246 resv = dmabuf->resv; in dma_buf_poll() 254 dma_resv_lock(resv, NULL); in dma_buf_poll() 271 if (!dma_buf_poll_add_cb(resv, true, dcb)) in dma_buf_poll() 294 if (!dma_buf_poll_add_cb(resv, false, dcb)) in dma_buf_poll() [all …]
|
/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_log_rlimit.c | 47 struct xfs_trans_resv *resv) in xfs_log_calc_trans_resv_for_minlogblocks() argument 62 xfs_trans_resv_calc(mp, resv); in xfs_log_calc_trans_resv_for_minlogblocks() 69 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; in xfs_log_calc_trans_resv_for_minlogblocks() 70 resv->tr_itruncate.tr_logcount = in xfs_log_calc_trans_resv_for_minlogblocks() 72 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; in xfs_log_calc_trans_resv_for_minlogblocks() 78 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks() 79 resv->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks() 80 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks() 88 resv->tr_write.tr_logres = in xfs_log_calc_trans_resv_for_minlogblocks() 90 resv->tr_itruncate.tr_logres = in xfs_log_calc_trans_resv_for_minlogblocks() [all …]
|
D | xfs_ag_resv.c | 134 struct xfs_ag_resv *resv; in __xfs_ag_resv_free() local 140 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_free() 142 pag->pag_mount->m_ag_max_usable += resv->ar_asked; in __xfs_ag_resv_free() 149 oldresv = resv->ar_orig_reserved; in __xfs_ag_resv_free() 151 oldresv = resv->ar_reserved; in __xfs_ag_resv_free() 153 resv->ar_reserved = 0; in __xfs_ag_resv_free() 154 resv->ar_asked = 0; in __xfs_ag_resv_free() 155 resv->ar_orig_reserved = 0; in __xfs_ag_resv_free() 186 struct xfs_ag_resv *resv; in __xfs_ag_resv_init() local 238 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_init() [all …]
|
/Linux-v6.1/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 77 dma_resv_assert_held(bo->base.resv); in ttm_bo_move_to_lru_tail() 100 dma_resv_assert_held(bo->base.resv); in ttm_bo_set_bulk_move() 149 ret = dma_resv_reserve_fences(bo->base.resv, 1); in ttm_bo_handle_move_mem() 191 if (bo->base.resv == &bo->base._resv) in ttm_bo_individualize_resv() 196 r = dma_resv_copy_fences(&bo->base._resv, bo->base.resv); in ttm_bo_individualize_resv() 207 bo->base.resv = &bo->base._resv; in ttm_bo_individualize_resv() 216 struct dma_resv *resv = &bo->base._resv; in ttm_bo_flush_all_fences() local 220 dma_resv_iter_begin(&cursor, resv, DMA_RESV_USAGE_BOOKKEEP); in ttm_bo_flush_all_fences() 246 struct dma_resv *resv = &bo->base._resv; in ttm_bo_cleanup_refs() local 249 if (dma_resv_test_signaled(resv, DMA_RESV_USAGE_BOOKKEEP)) in ttm_bo_cleanup_refs() [all …]
|
D | ttm_execbuf_util.c | 42 dma_resv_unlock(bo->base.resv); in ttm_eu_backoff_reservation_reverse() 58 dma_resv_unlock(bo->base.resv); in ttm_eu_backoff_reservation() 106 ret = dma_resv_reserve_fences(bo->base.resv, in ttm_eu_reserve_buffers() 123 ret = dma_resv_reserve_fences(bo->base.resv, in ttm_eu_reserve_buffers() 157 dma_resv_add_fence(bo->base.resv, fence, entry->num_shared ? in ttm_eu_fence_buffer_objects() 160 dma_resv_unlock(bo->base.resv); in ttm_eu_fence_buffer_objects()
|
D | ttm_bo_vm.c | 54 if (dma_resv_test_signaled(bo->base.resv, DMA_RESV_USAGE_KERNEL)) in ttm_bo_vm_fault_idle() 68 (void)dma_resv_wait_timeout(bo->base.resv, in ttm_bo_vm_fault_idle() 71 dma_resv_unlock(bo->base.resv); in ttm_bo_vm_fault_idle() 79 err = dma_resv_wait_timeout(bo->base.resv, DMA_RESV_USAGE_KERNEL, true, in ttm_bo_vm_fault_idle() 130 if (unlikely(!dma_resv_trylock(bo->base.resv))) { in ttm_bo_vm_reserve() 140 if (!dma_resv_lock_interruptible(bo->base.resv, in ttm_bo_vm_reserve() 142 dma_resv_unlock(bo->base.resv); in ttm_bo_vm_reserve() 149 if (dma_resv_lock_interruptible(bo->base.resv, NULL)) in ttm_bo_vm_reserve() 159 dma_resv_unlock(bo->base.resv); in ttm_bo_vm_reserve() 342 dma_resv_unlock(bo->base.resv); in ttm_bo_vm_fault()
|
/Linux-v6.1/include/uapi/linux/ |
D | io_uring.h | 426 __u32 resv[3]; member 506 __u32 resv; member 526 __u32 resv; member 532 __u32 resv; member 541 __u64 resv[3]; member 546 __u32 resv; member 559 __u8 resv; member 567 __u16 resv; member 579 __u8 resv; member 587 __u16 resv; member [all …]
|
/Linux-v6.1/drivers/gpu/drm/vgem/ |
D | vgem_fence.c | 131 struct dma_resv *resv; in vgem_fence_attach_ioctl() local 154 resv = obj->resv; in vgem_fence_attach_ioctl() 156 if (!dma_resv_test_signaled(resv, usage)) { in vgem_fence_attach_ioctl() 162 dma_resv_lock(resv, NULL); in vgem_fence_attach_ioctl() 163 ret = dma_resv_reserve_fences(resv, 1); in vgem_fence_attach_ioctl() 165 dma_resv_add_fence(resv, fence, arg->flags & VGEM_FENCE_WRITE ? in vgem_fence_attach_ioctl() 167 dma_resv_unlock(resv); in vgem_fence_attach_ioctl()
|
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dma_buf.c | 319 struct dma_resv *resv = dma_buf->resv; in amdgpu_dma_buf_create_obj() local 326 dma_resv_lock(resv, NULL); in amdgpu_dma_buf_create_obj() 336 ttm_bo_type_sg, resv, &gobj); in amdgpu_dma_buf_create_obj() 344 dma_resv_unlock(resv); in amdgpu_dma_buf_create_obj() 348 dma_resv_unlock(resv); in amdgpu_dma_buf_create_obj() 364 struct ww_acquire_ctx *ticket = dma_resv_locking_ctx(obj->resv); in amdgpu_dma_buf_move_notify() 383 struct dma_resv *resv = vm->root.bo->tbo.base.resv; in amdgpu_dma_buf_move_notify() local 390 r = dma_resv_lock(resv, ticket); in amdgpu_dma_buf_move_notify() 399 if (!dma_resv_trylock(resv)) in amdgpu_dma_buf_move_notify() 411 dma_resv_unlock(resv); in amdgpu_dma_buf_move_notify()
|
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() 79 r = dma_resv_wait_timeout(vmbo->bo.tbo.base.resv, DMA_RESV_USAGE_KERNEL, in amdgpu_vm_cpu_update()
|
D | amdgpu_object.c | 250 bp.resv = NULL; in amdgpu_bo_create_reserved() 534 .resv = bp->resv in amdgpu_bo_create() 596 bp->resv, bp->destroy); in amdgpu_bo_create() 612 r = amdgpu_fill_buffer(bo, 0, bo->tbo.base.resv, &fence); in amdgpu_bo_create() 616 dma_resv_add_fence(bo->tbo.base.resv, fence, in amdgpu_bo_create() 620 if (!bp->resv) in amdgpu_bo_create() 633 if (!bp->resv) in amdgpu_bo_create() 634 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_create() 767 r = dma_resv_wait_timeout(bo->tbo.base.resv, DMA_RESV_USAGE_KERNEL, in amdgpu_bo_kmap() 1130 dma_resv_assert_held(bo->tbo.base.resv); in amdgpu_bo_get_tiling_flags() [all …]
|
D | amdgpu_vm.c | 270 if (bo->tbo.base.resv != vm->root.bo->tbo.base.resv) in amdgpu_vm_bo_base_init() 273 dma_resv_assert_held(vm->root.bo->tbo.base.resv); in amdgpu_vm_bo_base_init() 772 struct dma_resv *resv, uint64_t start, uint64_t last, in amdgpu_vm_update_range() argument 832 r = vm->update_funcs->prepare(¶ms, resv, sync_mode); in amdgpu_vm_update_range() 978 struct dma_resv *resv; in amdgpu_vm_bo_update() local 985 resv = vm->root.bo->tbo.base.resv; in amdgpu_vm_bo_update() 989 resv = bo->tbo.base.resv; in amdgpu_vm_bo_update() 1019 if (clear || (bo && bo->tbo.base.resv == in amdgpu_vm_bo_update() 1020 vm->root.bo->tbo.base.resv)) in amdgpu_vm_bo_update() 1050 resv, mapping->start, mapping->last, in amdgpu_vm_bo_update() [all …]
|
/Linux-v6.1/include/drm/ttm/ |
D | ttm_bo_driver.h | 116 success = dma_resv_trylock(bo->base.resv); in ttm_bo_reserve() 121 ret = dma_resv_lock_interruptible(bo->base.resv, ticket); in ttm_bo_reserve() 123 ret = dma_resv_lock(bo->base.resv, ticket); in ttm_bo_reserve() 144 int ret = dma_resv_lock_slow_interruptible(bo->base.resv, in ttm_bo_reserve_slowpath() 150 dma_resv_lock_slow(bo->base.resv, ticket); in ttm_bo_reserve_slowpath() 193 dma_resv_unlock(bo->base.resv); in ttm_bo_unreserve()
|
/Linux-v6.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_wait.c | 36 i915_gem_object_boost(struct dma_resv *resv, unsigned int flags) in i915_gem_object_boost() argument 57 dma_resv_iter_begin(&cursor, resv, in i915_gem_object_boost() 67 i915_gem_object_wait_reservation(struct dma_resv *resv, in i915_gem_object_wait_reservation() argument 75 i915_gem_object_boost(resv, flags); in i915_gem_object_wait_reservation() 77 dma_resv_iter_begin(&cursor, resv, in i915_gem_object_wait_reservation() 155 dma_resv_iter_begin(&cursor, obj->base.resv, in i915_gem_object_wait_priority() 177 timeout = i915_gem_object_wait_reservation(obj->base.resv, in i915_gem_object_wait()
|
/Linux-v6.1/net/sunrpc/ |
D | svc.c | 1229 svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) in svc_process_common() argument 1252 svc_putu32(resv, rqstp->rq_xid); in svc_process_common() 1257 svc_putnl(resv, 1); /* REPLY */ in svc_process_common() 1263 reply_statp = resv->iov_base + resv->iov_len; in svc_process_common() 1265 svc_putnl(resv, 0); /* ACCEPT */ in svc_process_common() 1329 statp = resv->iov_base +resv->iov_len; in svc_process_common() 1330 svc_putnl(resv, RPC_SUCCESS); in svc_process_common() 1349 resv->iov_len = ((void*)statp) - resv->iov_base + 4; in svc_process_common() 1379 svc_putnl(resv, 1); /* REJECT */ in svc_process_common() 1380 svc_putnl(resv, 0); /* RPC_MISMATCH */ in svc_process_common() [all …]
|
/Linux-v6.1/drivers/gpu/drm/radeon/ |
D | radeon_prime.c | 47 struct dma_resv *resv = attach->dmabuf->resv; in radeon_gem_prime_import_sg_table() local 52 dma_resv_lock(resv, NULL); in radeon_gem_prime_import_sg_table() 54 RADEON_GEM_DOMAIN_GTT, 0, sg, resv, &bo); in radeon_gem_prime_import_sg_table() 55 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()
|
/Linux-v6.1/drivers/infiniband/core/ |
D | umem_dmabuf.c | 24 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_map_pages() 71 ret = dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv, in ib_umem_dmabuf_map_pages() 84 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_unmap_pages() 199 dma_resv_lock(umem_dmabuf->attach->dmabuf->resv, NULL); in ib_umem_dmabuf_get_pinned() 208 dma_resv_unlock(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_get_pinned() 215 dma_resv_unlock(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_get_pinned() 225 dma_resv_lock(dmabuf->resv, NULL); in ib_umem_dmabuf_release() 229 dma_resv_unlock(dmabuf->resv); in ib_umem_dmabuf_release()
|
/Linux-v6.1/drivers/gpu/drm/ |
D | drm_gem_ttm_helper.c | 69 dma_resv_lock(gem->resv, NULL); in drm_gem_ttm_vmap() 71 dma_resv_unlock(gem->resv); in drm_gem_ttm_vmap() 90 dma_resv_lock(gem->resv, NULL); in drm_gem_ttm_vunmap() 92 dma_resv_unlock(gem->resv); in drm_gem_ttm_vunmap()
|
/Linux-v6.1/net/sunrpc/auth_gss/ |
D | svcauth_gss.c | 693 svc_safe_putnetobj(struct kvec *resv, struct xdr_netobj *o) in svc_safe_putnetobj() argument 697 if (resv->iov_len + 4 > PAGE_SIZE) in svc_safe_putnetobj() 699 svc_putnl(resv, o->len); in svc_safe_putnetobj() 700 p = resv->iov_base + resv->iov_len; in svc_safe_putnetobj() 701 resv->iov_len += round_up_to_quad(o->len); in svc_safe_putnetobj() 702 if (resv->iov_len > PAGE_SIZE) in svc_safe_putnetobj() 1209 gss_write_resv(struct kvec *resv, size_t size_limit, in gss_write_resv() argument 1213 if (resv->iov_len + 4 > size_limit) in gss_write_resv() 1215 svc_putnl(resv, RPC_SUCCESS); in gss_write_resv() 1216 if (svc_safe_putnetobj(resv, out_handle)) in gss_write_resv() [all …]
|
/Linux-v6.1/mm/ |
D | hugetlb.c | 262 get_file_region_entry_from_cache(struct resv_map *resv, long from, long to) in get_file_region_entry_from_cache() argument 266 VM_BUG_ON(resv->region_cache_count <= 0); in get_file_region_entry_from_cache() 268 resv->region_cache_count--; in get_file_region_entry_from_cache() 269 nrg = list_first_entry(&resv->region_cache, struct file_region, link); in get_file_region_entry_from_cache() 292 struct resv_map *resv, in record_hugetlb_cgroup_uncharge_info() argument 311 if (!resv->pages_per_hpage) in record_hugetlb_cgroup_uncharge_info() 312 resv->pages_per_hpage = pages_per_huge_page(h); in record_hugetlb_cgroup_uncharge_info() 316 VM_BUG_ON(resv->pages_per_hpage != pages_per_huge_page(h)); in record_hugetlb_cgroup_uncharge_info() 344 static void coalesce_file_region(struct resv_map *resv, struct file_region *rg) in coalesce_file_region() argument 349 if (&prg->link != &resv->regions && prg->to == rg->from && in coalesce_file_region() [all …]
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/crypto/ |
D | fw.h | 17 u8 resv[2]; member 37 u8 resv[3]; member 86 u8 resv[3]; member
|