Home
last modified time | relevance | path

Searched refs:num_fences (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.15/drivers/dma-buf/
H A Ddma-fence-array.c76 for (i = 0; i < array->num_fences; ++i) { in dma_fence_array_enable_signaling()
129 for (i = 0; i < array->num_fences; ++i) { in dma_fence_array_signaled()
145 for (i = 0; i < array->num_fences; ++i) in dma_fence_array_release()
158 for (i = 0; i < array->num_fences; ++i) in dma_fence_array_set_deadline()
203 WARN_ON(!num_fences || !fences); in dma_fence_array_init()
205 array->num_fences = num_fences; in dma_fence_array_init()
228 while (num_fences--) in dma_fence_array_init()
259 array = dma_fence_array_alloc(num_fences); in dma_fence_array_create()
287 for (i = 0; i < array->num_fences; i++) { in dma_fence_match_context()
307 if (!array->num_fences) in dma_fence_array_first()
[all …]
H A Ddma-resv.c65 u32 num_fences, max_fences; member
193 if (WARN_ON(!num_fences)) in dma_resv_reserve_fences()
198 if ((old->num_fences + num_fences) <= old->max_fences) in dma_resv_reserve_fences()
200 max = max(old->num_fences + num_fences, old->max_fences * 2); in dma_resv_reserve_fences()
225 new->num_fences = j; in dma_resv_reserve_fences()
370 cursor->num_fences = 0; in dma_resv_iter_restart_unlocked()
373 cursor->num_fences = cursor->fences->num_fences; in dma_resv_iter_restart_unlocked()
542 list->num_fences = 0; in dma_resv_copy_fences()
575 *num_fences = 0; in dma_resv_get_fences()
585 while (*num_fences) in dma_resv_get_fences()
[all …]
H A Dsync_file.c285 unsigned int num_fences; in sync_file_ioctl_fence_info() local
296 num_fences = 0; in sync_file_ioctl_fence_info()
298 ++num_fences; in sync_file_ioctl_fence_info()
306 if (!info.num_fences) { in sync_file_ioctl_fence_info()
313 if (info.num_fences < num_fences) in sync_file_ioctl_fence_info()
316 size = num_fences * sizeof(*fence_info); in sync_file_ioctl_fence_info()
321 num_fences = 0; in sync_file_ioctl_fence_info()
325 status = sync_fill_fence_info(fence, &fence_info[num_fences++]); in sync_file_ioctl_fence_info()
337 info.num_fences = num_fences; in sync_file_ioctl_fence_info()
H A Dst-dma-fence-unwrap.c50 static struct dma_fence *mock_array(unsigned int num_fences, ...) in mock_array() argument
57 fences = kcalloc(num_fences, sizeof(*fences), GFP_KERNEL); in mock_array()
61 va_start(valist, num_fences); in mock_array()
62 for (i = 0; i < num_fences; ++i) in mock_array()
66 array = dma_fence_array_create(num_fences, fences, in mock_array()
77 va_start(valist, num_fences); in mock_array()
78 for (i = 0; i < num_fences; ++i) in mock_array()
H A Ddma-fence-unwrap.c83 struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences, in __dma_fence_unwrap_merge() argument
94 for (i = 0; i < num_fences; ++i) { in __dma_fence_unwrap_merge()
128 for (i = 0; i < num_fences; ++i) { in __dma_fence_unwrap_merge()
H A Ddma-buf.c416 unsigned int num_fences; in dma_buf_import_sync_file() local
435 num_fences = 0; in dma_buf_import_sync_file()
437 ++num_fences; in dma_buf_import_sync_file()
439 if (num_fences > 0) { in dma_buf_import_sync_file()
442 ret = dma_resv_reserve_fences(dmabuf->resv, num_fences); in dma_buf_import_sync_file()
H A Dsync_debug.c134 for (i = 0; i < array->num_fences; ++i) in sync_print_sync_file()
/linux-6.15/tools/testing/selftests/sync/
H A Dsync.c88 int err, num_fences; in sync_file_info() local
100 num_fences = info->num_fences; in sync_file_info()
102 if (num_fences) { in sync_file_info()
104 info->num_fences = num_fences; in sync_file_info()
106 fence_info = calloc(num_fences, sizeof(*fence_info)); in sync_file_info()
139 count = info->num_fences; in sync_fence_size()
156 for (i = 0 ; i < info->num_fences ; i++) { in sync_fence_count_with_status()
/linux-6.15/include/linux/
H A Ddma-fence-array.h42 unsigned num_fences; member
48 struct dma_fence_array_cb callbacks[] __counted_by(num_fences);
82 struct dma_fence_array *dma_fence_array_alloc(int num_fences);
84 int num_fences, struct dma_fence **fences,
88 struct dma_fence_array *dma_fence_array_create(int num_fences,
H A Ddma-resv.h213 unsigned int num_fences; member
469 int dma_resv_reserve_fences(struct dma_resv *obj, unsigned int num_fences);
476 unsigned int *num_fences, struct dma_fence ***fences);
H A Ddma-fence-unwrap.h51 struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences,
/linux-6.15/drivers/gpu/drm/i915/gt/
H A Dintel_ggtt_fencing.c513 for (i = 0; i < ggtt->num_fences; i++) in intel_ggtt_restore_fences()
843 int num_fences; in intel_ggtt_init_fences() local
852 num_fences = 0; in intel_ggtt_init_fences()
855 num_fences = 32; in intel_ggtt_init_fences()
859 num_fences = 16; in intel_ggtt_init_fences()
861 num_fences = 8; in intel_ggtt_init_fences()
864 num_fences = intel_uncore_read(uncore, in intel_ggtt_init_fences()
866 ggtt->fence_regs = kcalloc(num_fences, in intel_ggtt_init_fences()
870 num_fences = 0; in intel_ggtt_init_fences()
873 for (i = 0; i < num_fences; i++) { in intel_ggtt_init_fences()
[all …]
H A Dintel_gt_types.h322 #define intel_gt_support_legacy_fencing(gt) ((gt)->ggtt->num_fences > 0)
/linux-6.15/drivers/gpu/drm/ttm/
H A Dttm_execbuf_util.c89 unsigned int num_fences; in ttm_eu_reserve_buffers() local
100 num_fences = max(entry->num_shared, 1u); in ttm_eu_reserve_buffers()
103 num_fences); in ttm_eu_reserve_buffers()
120 num_fences); in ttm_eu_reserve_buffers()
/linux-6.15/drivers/gpu/drm/
H A Ddrm_gpuvm.c1090 unsigned int num_fences) in exec_prepare_obj() argument
1092 return num_fences ? drm_exec_prepare_obj(exec, obj, num_fences) : in exec_prepare_obj()
1113 unsigned int num_fences) in drm_gpuvm_prepare_vm() argument
1122 unsigned int num_fences) in __drm_gpuvm_prepare_objects() argument
1143 unsigned int num_fences) in drm_gpuvm_prepare_objects_locked() argument
1187 unsigned int num_fences) in drm_gpuvm_prepare_objects() argument
1191 num_fences); in drm_gpuvm_prepare_objects()
1213 u64 addr, u64 range, unsigned int num_fences) in drm_gpuvm_prepare_range() argument
1250 unsigned int num_fences = vm_exec->num_fences; in drm_gpuvm_exec_lock() local
1291 args->num_objs, vm_exec->num_fences); in fn_lock_array()
[all …]
H A Ddrm_exec.c290 unsigned int num_fences) in drm_exec_prepare_obj() argument
298 ret = dma_resv_reserve_fences(obj->resv, num_fences); in drm_exec_prepare_obj()
324 unsigned int num_fences) in drm_exec_prepare_array() argument
329 ret = drm_exec_prepare_obj(exec, objects[i], num_fences); in drm_exec_prepare_array()
H A Ddrm_atomic_uapi.c1200 unsigned int *num_fences) in prepare_signaling() argument
1246 (*num_fences + 1), GFP_KERNEL); in prepare_signaling()
1250 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling()
1285 (*num_fences + 1), GFP_KERNEL); in prepare_signaling()
1289 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling()
1323 unsigned int num_fences, in complete_signaling() argument
1331 for (i = 0; i < num_fences; i++) in complete_signaling()
1355 for (i = 0; i < num_fences; i++) { in complete_signaling()
1395 unsigned int i, j, num_fences; in drm_mode_atomic_ioctl() local
1452 num_fences = 0; in drm_mode_atomic_ioctl()
[all …]
/linux-6.15/include/drm/
H A Ddrm_exec.h144 unsigned int num_fences);
148 unsigned int num_fences);
H A Ddrm_gpuvm.h532 unsigned int num_fences; member
554 unsigned int num_fences);
558 unsigned int num_fences);
563 unsigned int num_fences);
/linux-6.15/drivers/gpu/drm/i915/gem/
H A Di915_gem_execbuffer.c314 unsigned long num_fences; member
2835 f += eb->num_fences; in add_timeline_fence_array()
2927 eb->num_fences++; in add_timeline_fence_array()
2943 if (!num_fences) in add_fence_array()
2948 if (num_fences > min_t(unsigned long, in add_fence_array()
2958 (eb->num_fences + num_fences) * sizeof(*f), in add_fence_array()
2964 f += eb->num_fences; in add_fence_array()
2965 while (num_fences--) { in add_fence_array()
3001 eb->num_fences++; in add_fence_array()
3020 for (n = 0; n < eb->num_fences; n++) { in await_fence_array()
[all …]
H A Di915_gem_busy.c64 unsigned int nchild = array->num_fences; in __busy_set_if_active()
H A Di915_gem_tiling.c351 if (!to_gt(i915)->ggtt->num_fences) in i915_gem_set_tiling_ioctl()
434 if (!to_gt(i915)->ggtt->num_fences) in i915_gem_get_tiling_ioctl()
/linux-6.15/include/uapi/linux/
H A Dsync_file.h73 __u32 num_fences; member
/linux-6.15/drivers/gpu/drm/i915/
H A Di915_getparam.c39 value = to_gt(i915)->ggtt->num_fences; in i915_getparam_ioctl()
/linux-6.15/drivers/gpu/drm/i915/selftests/
H A Di915_request.c285 atomic_long_t num_waits, num_fences; member
316 unsigned int num_waits = 0, num_fences = 0; in __igt_breadcrumbs_smoketest() local
439 num_fences += count; in __igt_breadcrumbs_smoketest()
445 atomic_long_add(num_fences, &t->num_fences); in __igt_breadcrumbs_smoketest()
527 atomic_long_read(&t.num_fences), in mock_breadcrumbs_smoketest()
1730 unsigned long num_waits, num_fences; in live_breadcrumbs_smoketest() local
1831 num_fences = 0; in live_breadcrumbs_smoketest()
1850 num_fences += atomic_long_read(&smoke[idx].num_fences); in live_breadcrumbs_smoketest()
1854 num_waits, num_fences, idx, ncpus); in live_breadcrumbs_smoketest()

12