Searched refs:resv (Results 1 - 25 of 267) sorted by relevance

1234567891011

/linux-master/fs/ocfs2/
H A Dreservations.c40 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 Dreservations.h54 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 Dst-dma-resv.c10 #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 Ddma-buf.c26 #include <linux/dma-resv.h>
81 if (dmabuf->resv == (struct dma_resv *)&dmabuf[1])
82 dma_resv_fini(dmabuf->resv);
218 static bool dma_buf_poll_add_cb(struct dma_resv *resv, bool write, argument
225 dma_resv_for_each_fence(&cursor, resv, dma_resv_usage_rw(write),
240 struct dma_resv *resv; local
244 if (!dmabuf || !dmabuf->resv)
247 resv = dmabuf->resv;
255 dma_resv_lock(resv, NUL
611 struct dma_resv *resv = exp_info->resv; local
1360 struct dma_resv *resv = dmabuf->resv; local
[all...]
H A DMakefile3 dma-fence-unwrap.o dma-resv.o
16 st-dma-resv.o
/linux-master/fs/xfs/libxfs/
H A Dxfs_log_rlimit.c47 struct xfs_trans_resv *resv)
62 xfs_trans_resv_calc(mp, resv);
69 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK;
70 resv->tr_itruncate.tr_logcount =
72 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK;
78 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT;
79 resv->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT;
80 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT;
88 resv->tr_write.tr_logres =
90 resv
45 xfs_log_calc_trans_resv_for_minlogblocks( struct xfs_mount *mp, struct xfs_trans_resv *resv) argument
109 struct xfs_trans_resv resv = {}; local
[all...]
H A Dxfs_ag_resv.c134 struct xfs_ag_resv *resv; local
140 resv = xfs_perag_resv(pag, type);
142 pag->pag_mount->m_ag_max_usable += resv->ar_asked;
149 oldresv = resv->ar_orig_reserved;
151 oldresv = resv->ar_reserved;
153 resv->ar_reserved = 0;
154 resv->ar_asked = 0;
155 resv->ar_orig_reserved = 0;
186 struct xfs_ag_resv *resv; local
238 resv
354 struct xfs_ag_resv *resv; local
398 struct xfs_ag_resv *resv; local
[all...]
/linux-master/fs/xfs/scrub/
H A Dnewbt.c89 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 Damdgpu_vm_cpu.c42 * @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 Damdgpu_dma_buf.c324 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 Dradeon_prime.c49 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 Dttm_bo.c45 #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
975 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
1068 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 Dttm_execbuf_util.c38 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 Dvgem_fence.c24 #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 Dttm_bo_test.c5 #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 Dfw.h17 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 Di915_gem_ww.c5 #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 Di915_deps.h40 int i915_deps_add_resv(struct i915_deps *deps, struct dma_resv *resv,
/linux-master/kernel/irq/
H A Daffinity.c113 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 Di915_gem_wait.c36 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 Di915_gem_clflush.c112 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 Ddrm_exec.c5 #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 Ddrm_gem_shmem_helper.c145 dma_resv_lock(shmem->base.resv, NULL);
160 dma_resv_unlock(shmem->base.resv);
173 dma_resv_assert_held(shmem->base.resv);
211 dma_resv_assert_held(shmem->base.resv);
235 dma_resv_assert_held(shmem->base.resv);
244 dma_resv_assert_held(shmem->base.resv);
266 ret = dma_resv_lock_interruptible(shmem->base.resv, NULL);
270 dma_resv_unlock(shmem->base.resv);
289 dma_resv_lock(shmem->base.resv, NULL);
291 dma_resv_unlock(shmem->base.resv);
[all...]
/linux-master/include/uapi/linux/
H A Dio_uring.h503 __u32 resv[3]; member in struct:io_uring_params
594 __u32 resv; member in struct:io_uring_files_update
614 __u32 resv; member in struct:io_uring_rsrc_update
620 __u32 resv; member in struct:io_uring_rsrc_update2
634 __u8 resv; member in struct:io_uring_probe_op
642 __u16 resv; member in struct:io_uring_probe
654 __u8 resv; member in struct:io_uring_restriction
662 __u16 resv; member in struct:io_uring_buf
669 * ring tail is overlaid with the io_uring_buf->resv field.
701 __u64 resv[ member in struct:io_uring_buf_reg
708 __u32 resv[8]; member in struct:io_uring_buf_status
716 __u64 resv; member in struct:io_uring_napi
765 __u64 resv; member in struct:io_uring_file_index_range
[all...]
/linux-master/drivers/infiniband/core/
H A Dumem_dmabuf.c7 #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);

Completed in 261 milliseconds

1234567891011