/linux-master/fs/ocfs2/ |
H A D | reservations.c | 40 struct ocfs2_alloc_reservation *resv) 45 if (!(resv->r_flags & OCFS2_RESV_FLAG_DIR)) { 54 static inline unsigned int ocfs2_resv_end(struct ocfs2_alloc_reservation *resv) argument 56 if (resv->r_len) 57 return resv->r_start + resv->r_len - 1; 58 return resv->r_start; 61 static inline int ocfs2_resv_empty(struct ocfs2_alloc_reservation *resv) argument 63 return !!(resv->r_len == 0); 77 struct ocfs2_alloc_reservation *resv; local 39 ocfs2_resv_window_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) argument 110 ocfs2_validate_resmap_bits(struct ocfs2_reservation_map *resmap, int i, struct ocfs2_alloc_reservation *resv) argument 136 struct ocfs2_alloc_reservation *resv; local 187 ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv) argument 193 ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, unsigned int flags) argument 212 ocfs2_resv_mark_lru(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) argument 223 __ocfs2_resv_trunc(struct ocfs2_alloc_reservation *resv) argument 229 ocfs2_resv_remove(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) argument 239 __ocfs2_resv_discard(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) argument 255 ocfs2_resv_discard(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) argument 268 struct ocfs2_alloc_reservation *resv; local 354 struct ocfs2_alloc_reservation *resv = NULL; local 455 __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int goal, unsigned int wanted) argument 615 ocfs2_cannibalize_resv(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int wanted) argument 676 ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int wanted) argument 712 ocfs2_resmap_resv_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, int *cstart, int *clen) argument 753 ocfs2_adjust_resv_from_alloc(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int start, unsigned int end) argument 781 ocfs2_resmap_claimed_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, u32 cstart, u32 clen) argument [all...] |
H A 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, 65 * @resv: the reservation to truncate. 71 struct ocfs2_alloc_reservation *resv); 107 * @resv: reservation to base search from 111 * Using the reservation data from resv, this function will compare 113 * the reservation window is still clear to use. If resv is empty, 122 struct ocfs2_alloc_reservation *resv, 128 * @resv: optional reservation to recalulate based on new bitmap 136 * reservations bitmap. If resv i [all...] |
/linux-master/drivers/dma-buf/ |
H A D | st-dma-resv.c | 10 #include <linux/dma-resv.h> 40 struct dma_resv resv; local 53 dma_resv_init(&resv); 54 r = dma_resv_lock(&resv, NULL); 58 dma_resv_unlock(&resv); 59 dma_resv_fini(&resv); 66 struct dma_resv resv; local 76 dma_resv_init(&resv); 77 r = dma_resv_lock(&resv, NULL); 83 r = dma_resv_reserve_fences(&resv, 114 struct dma_resv resv; local 175 struct dma_resv resv; local 248 struct dma_resv resv; local [all...] |
H A D | dma-buf.c | 26 #include <linux/dma-resv.h> 104 if (dmabuf->resv == (struct dma_resv *)&dmabuf[1]) 105 dma_resv_fini(dmabuf->resv); 234 static bool dma_buf_poll_add_cb(struct dma_resv *resv, bool write, argument 241 dma_resv_for_each_fence(&cursor, resv, dma_resv_usage_rw(write), 256 struct dma_resv *resv; local 260 if (!dmabuf || !dmabuf->resv) 263 resv = dmabuf->resv; 271 dma_resv_lock(resv, NUL 627 struct dma_resv *resv = exp_info->resv; local 1374 struct dma_resv *resv = dmabuf->resv; local [all...] |
H A D | Makefile | 3 dma-fence-unwrap.o dma-resv.o 16 st-dma-resv.o
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_log_rlimit.c | 84 struct xfs_trans_resv *resv) 93 xfs_trans_resv_calc(mp, resv); 108 xfs_trans_resv_calc(mp, resv); 115 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; 116 resv->tr_itruncate.tr_logcount = 118 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; 124 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT; 125 resv->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT; 126 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT; 134 resv 82 xfs_log_calc_trans_resv_for_minlogblocks( struct xfs_mount *mp, struct xfs_trans_resv *resv) argument 155 struct xfs_trans_resv resv = {}; local [all...] |
H A D | xfs_ag_resv.c | 134 struct xfs_ag_resv *resv; local 139 resv = xfs_perag_resv(pag, type); 141 pag->pag_mount->m_ag_max_usable += resv->ar_asked; 148 oldresv = resv->ar_orig_reserved; 150 oldresv = resv->ar_reserved; 152 resv->ar_reserved = 0; 153 resv->ar_asked = 0; 154 resv->ar_orig_reserved = 0; 174 struct xfs_ag_resv *resv; local 226 resv 342 struct xfs_ag_resv *resv; local 386 struct xfs_ag_resv *resv; local [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | newbt.c | 89 enum xfs_ag_resv_type resv) 95 xnr->resv = resv; 147 struct xrep_newbt_resv *resv; local 150 resv = kmalloc(sizeof(struct xrep_newbt_resv), XCHK_GFP_FLAGS); 151 if (!resv) 154 INIT_LIST_HEAD(&resv->list); 155 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); 156 resv->len = args->len; 157 resv 84 xrep_newbt_init_ag( struct xrep_newbt *xnr, struct xfs_scrub *sc, const struct xfs_owner_info *oinfo, xfs_fsblock_t alloc_hint, enum xfs_ag_resv_type resv) argument 370 xrep_newbt_free_extent( struct xrep_newbt *xnr, struct xrep_newbt_resv *resv, bool btree_committed) argument 431 struct xrep_newbt_resv *resv, *n; local 517 struct xrep_newbt_resv *resv; local 561 struct xrep_newbt_resv *resv; local [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vm_cpu.c | 42 * @resv: reservation object with embedded fence 49 struct dma_resv *resv, 52 if (!resv) 55 return amdgpu_bo_sync_wait_resv(p->adev, resv, sync_mode, p->vm, true); 80 r = dma_resv_wait_timeout(vmbo->bo.tbo.base.resv, DMA_RESV_USAGE_KERNEL, 48 amdgpu_vm_cpu_prepare(struct amdgpu_vm_update_params *p, struct dma_resv *resv, enum amdgpu_sync_mode sync_mode) argument
|
H A D | amdgpu_dma_buf.c | 324 struct dma_resv *resv = dma_buf->resv; local 331 dma_resv_lock(resv, NULL); 344 ttm_bo_type_sg, resv, &gobj, 0); 352 dma_resv_unlock(resv); 356 dma_resv_unlock(resv); 372 struct ww_acquire_ctx *ticket = dma_resv_locking_ctx(obj->resv); 395 struct dma_resv *resv = vm->root.bo->tbo.base.resv; local 402 r = dma_resv_lock(resv, ticke [all...] |
/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_prime.c | 49 struct dma_resv *resv = attach->dmabuf->resv; local 54 dma_resv_lock(resv, NULL); 56 RADEON_GEM_DOMAIN_GTT, 0, sg, resv, &bo); 57 dma_resv_unlock(resv);
|
/linux-master/drivers/gpu/drm/ttm/ |
H A D | ttm_bo.c | 45 #include <linux/dma-resv.h> 76 dma_resv_assert_held(bo->base.resv); 100 dma_resv_assert_held(bo->base.resv); 148 ret = dma_resv_reserve_fences(bo->base.resv, 1); 190 if (bo->base.resv == &bo->base._resv) 195 r = dma_resv_copy_fences(&bo->base._resv, bo->base.resv); 203 * the resv object while holding the lru_lock. 206 bo->base.resv = &bo->base._resv; 215 struct dma_resv *resv = &bo->base._resv; local 219 dma_resv_iter_begin(&cursor, resv, DMA_RESV_USAGE_BOOKKEE 245 struct dma_resv *resv = &bo->base._resv; local 956 ttm_bo_init_reserved(struct ttm_device *bdev, struct ttm_buffer_object *bo, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t alignment, struct ttm_operation_ctx *ctx, struct sg_table *sg, struct dma_resv *resv, void (*destroy) (struct ttm_buffer_object *)) argument 1049 ttm_bo_init_validate(struct ttm_device *bdev, struct ttm_buffer_object *bo, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t alignment, bool interruptible, struct sg_table *sg, struct dma_resv *resv, void (*destroy) (struct ttm_buffer_object *)) argument [all...] |
H A D | ttm_execbuf_util.c | 38 dma_resv_unlock(bo->base.resv); 54 dma_resv_unlock(bo->base.resv); 102 ret = dma_resv_reserve_fences(bo->base.resv, 119 ret = dma_resv_reserve_fences(bo->base.resv, 153 dma_resv_add_fence(bo->base.resv, fence, entry->num_shared ? 156 dma_resv_unlock(bo->base.resv);
|
/linux-master/drivers/gpu/drm/vgem/ |
H A D | vgem_fence.c | 24 #include <linux/dma-resv.h> 131 struct dma_resv *resv; local 154 resv = obj->resv; 156 if (!dma_resv_test_signaled(resv, usage)) { 162 dma_resv_lock(resv, NULL); 163 ret = dma_resv_reserve_fences(resv, 1); 165 dma_resv_add_fence(resv, fence, arg->flags & VGEM_FENCE_WRITE ? 167 dma_resv_unlock(resv);
|
/linux-master/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_bo_test.c | 5 #include <linux/dma-resv.h> 64 dma_resv_unlock(bo->base.resv); 77 dma_resv_lock(bo->base.resv, NULL); 80 dma_resv_unlock(bo->base.resv); 120 dma_resv_unlock(bo->base.resv); 145 mutex_lock(&bo2->base.resv->lock.base); 148 lock_release(&bo2->base.resv->lock.base.dep_map, 1); 150 bo2->base.resv->lock.ctx = &ctx2; 160 dma_resv_unlock(bo1->base.resv); 219 mutex_lock(&bo->base.resv [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/crypto/ |
H A D | fw.h | 17 u8 resv[2]; member in struct:nfp_net_tls_resync_req 37 u8 resv[3]; member in struct:nfp_crypto_req_add_front 86 u8 resv[3]; member in struct:nfp_crypto_req_update
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_gem_ww.c | 5 #include <linux/dma-resv.h> 51 ret = dma_resv_lock_slow_interruptible(ww->contended->base.resv, &ww->ctx); 53 dma_resv_lock_slow(ww->contended->base.resv, &ww->ctx);
|
H A D | i915_deps.h | 40 int i915_deps_add_resv(struct i915_deps *deps, struct dma_resv *resv,
|
/linux-master/kernel/irq/ |
H A D | affinity.c | 113 unsigned int resv = affd->pre_vectors + affd->post_vectors; local 116 if (resv > minvec) 120 set_vecs = maxvec - resv; 127 return resv + min(set_vecs, maxvec - resv);
|
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_wait.c | 36 i915_gem_object_boost(struct dma_resv *resv, unsigned int flags) argument 45 * dma-resv contains a sequence such as 1:1, 1:2 instead of a reduced 57 dma_resv_iter_begin(&cursor, resv, 67 i915_gem_object_wait_reservation(struct dma_resv *resv, argument 75 i915_gem_object_boost(resv, flags); 77 dma_resv_iter_begin(&cursor, resv, 155 dma_resv_iter_begin(&cursor, obj->base.resv, 177 timeout = i915_gem_object_wait_reservation(obj->base.resv,
|
H A D | i915_gem_clflush.c | 112 dma_resv_reserve_fences(obj->base.resv, 1) == 0) 116 obj->base.resv, true, 119 dma_resv_add_fence(obj->base.resv, &clflush->base.dma,
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_exec.c | 5 #include <linux/dma-resv.h> 42 * dma_resv_add_fence(obj->resv, fence, DMA_RESV_USAGE_READ); 60 dma_resv_unlock(obj->resv); 174 ret = dma_resv_lock_slow_interruptible(obj->resv, 179 dma_resv_lock_slow(obj->resv, &exec->ticket); 190 dma_resv_unlock(obj->resv); 223 ret = dma_resv_lock_interruptible(obj->resv, &exec->ticket); 225 ret = dma_resv_lock(obj->resv, &exec->ticket); 247 dma_resv_unlock(obj->resv); 267 dma_resv_unlock(obj->resv); [all...] |
H A D | drm_gem_shmem_helper.c | 144 dma_resv_lock(shmem->base.resv, NULL); 159 dma_resv_unlock(shmem->base.resv); 172 dma_resv_assert_held(shmem->base.resv); 210 dma_resv_assert_held(shmem->base.resv); 234 dma_resv_assert_held(shmem->base.resv); 246 dma_resv_assert_held(shmem->base.resv); 269 ret = dma_resv_lock_interruptible(shmem->base.resv, NULL); 273 dma_resv_unlock(shmem->base.resv); 292 dma_resv_lock(shmem->base.resv, NULL); 294 dma_resv_unlock(shmem->base.resv); [all...] |
/linux-master/include/uapi/linux/ |
H A D | io_uring.h | 520 __u32 resv[3]; member in struct:io_uring_params 612 __u32 resv; member in struct:io_uring_files_update 632 __u32 resv; member in struct:io_uring_rsrc_update 638 __u32 resv; member in struct:io_uring_rsrc_update2 652 __u8 resv; member in struct:io_uring_probe_op 660 __u16 resv; member in struct:io_uring_probe 672 __u8 resv; member in struct:io_uring_restriction 680 __u16 resv; member in struct:io_uring_buf 687 * ring tail is overlaid with the io_uring_buf->resv field. 719 __u64 resv[ member in struct:io_uring_buf_reg 726 __u32 resv[8]; member in struct:io_uring_buf_status 734 __u64 resv; member in struct:io_uring_napi 783 __u64 resv; member in struct:io_uring_file_index_range [all...] |
/linux-master/drivers/infiniband/core/ |
H A D | umem_dmabuf.c | 7 #include <linux/dma-resv.h> 24 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); 72 ret = dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv, 85 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); 200 dma_resv_lock(umem_dmabuf->attach->dmabuf->resv, NULL); 209 dma_resv_unlock(umem_dmabuf->attach->dmabuf->resv); 216 dma_resv_unlock(umem_dmabuf->attach->dmabuf->resv); 226 dma_resv_lock(dmabuf->resv, NULL); 230 dma_resv_unlock(dmabuf->resv);
|