Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/dma-buf/
Dsync_file.c149 struct dma_fence **fences, int num_fences) in sync_file_set_fence() argument
159 if (num_fences == 1) { in sync_file_set_fence()
163 array = dma_fence_array_create(num_fences, fences, in sync_file_set_fence()
176 int *num_fences) in get_fences() argument
181 *num_fences = array->num_fences; in get_fences()
185 *num_fences = 1; in get_fences()
215 int i = 0, i_a, i_b, num_fences, a_num_fences, b_num_fences; in sync_file_merge() local
226 num_fences = a_num_fences + b_num_fences; in sync_file_merge()
228 fences = kcalloc(num_fences, sizeof(*fences), GFP_KERNEL); in sync_file_merge()
272 if (num_fences > i) { in sync_file_merge()
[all …]
Ddma-fence-array.c76 for (i = 0; i < array->num_fences; ++i) { in dma_fence_array_enable_signaling()
119 for (i = 0; i < array->num_fences; ++i) in dma_fence_array_release()
154 struct dma_fence_array *dma_fence_array_create(int num_fences, in dma_fence_array_create() argument
163 size += num_fences * sizeof(struct dma_fence_array_cb); in dma_fence_array_create()
173 array->num_fences = num_fences; in dma_fence_array_create()
174 atomic_set(&array->num_pending, signal_on_any ? 1 : num_fences); in dma_fence_array_create()
200 for (i = 0; i < array->num_fences; i++) { in dma_fence_match_context()
Ddma-resv.c187 int dma_resv_reserve_shared(struct dma_resv *obj, unsigned int num_fences) in dma_resv_reserve_shared() argument
197 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared()
200 max = max(old->shared_count + num_fences, in dma_resv_reserve_shared()
203 max = max(4ul, roundup_pow_of_two(num_fences)); in dma_resv_reserve_shared()
Dsync_debug.c134 for (i = 0; i < array->num_fences; ++i) in sync_print_sync_file()
/kernel/linux/linux-5.10/tools/testing/selftests/sync/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_ggtt_fencing.c506 for (i = 0; i < ggtt->num_fences; i++) in intel_ggtt_restore_fences()
833 int num_fences; in intel_ggtt_init_fences() local
843 num_fences = 0; in intel_ggtt_init_fences()
846 num_fences = 32; in intel_ggtt_init_fences()
850 num_fences = 16; in intel_ggtt_init_fences()
852 num_fences = 8; in intel_ggtt_init_fences()
855 num_fences = intel_uncore_read(uncore, in intel_ggtt_init_fences()
857 ggtt->fence_regs = kcalloc(num_fences, in intel_ggtt_init_fences()
861 num_fences = 0; in intel_ggtt_init_fences()
864 for (i = 0; i < num_fences; i++) { in intel_ggtt_init_fences()
[all …]
Dintel_gtt.h323 unsigned int num_fences; member
/kernel/linux/linux-5.10/include/linux/
Ddma-fence-array.h41 unsigned num_fences; member
77 struct dma_fence_array *dma_fence_array_create(int num_fences,
Ddma-resv.h276 int dma_resv_reserve_shared(struct dma_resv *obj, unsigned int num_fences);
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_atomic_uapi.c1115 unsigned int *num_fences) in prepare_signaling() argument
1161 (*num_fences + 1), GFP_KERNEL); in prepare_signaling()
1165 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling()
1167 f[*num_fences].out_fence_ptr = fence_ptr; in prepare_signaling()
1174 ret = setup_out_fence(&f[(*num_fences)++], fence); in prepare_signaling()
1200 (*num_fences + 1), GFP_KERNEL); in prepare_signaling()
1204 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling()
1206 f[*num_fences].out_fence_ptr = fence_ptr; in prepare_signaling()
1214 ret = setup_out_fence(&f[(*num_fences)++], fence); in prepare_signaling()
1236 unsigned int num_fences, in complete_signaling() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_execbuffer.c303 unsigned long num_fences; member
2698 SIZE_MAX / sizeof(*f)) - eb->num_fences) in add_timeline_fence_array()
2710 (eb->num_fences + nfences) * sizeof(*f), in add_timeline_fence_array()
2716 f += eb->num_fences; in add_timeline_fence_array()
2805 eb->num_fences++; in add_timeline_fence_array()
2815 unsigned long num_fences = args->num_cliprects; in add_fence_array() local
2821 if (!num_fences) in add_fence_array()
2826 if (num_fences > min_t(unsigned long, in add_fence_array()
2828 SIZE_MAX / sizeof(*f) - eb->num_fences)) in add_fence_array()
2832 if (!access_ok(user, num_fences * sizeof(*user))) in add_fence_array()
[all …]
Di915_gem_tiling.c341 if (!dev_priv->ggtt.num_fences) in i915_gem_set_tiling_ioctl()
424 if (!dev_priv->ggtt.num_fences) in i915_gem_get_tiling_ioctl()
Di915_gem_wait.c124 for (i = 0; i < array->num_fences; i++) in fence_set_priority()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dsync_file.h41 __u32 num_fences; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dsync_file.h64 __u32 num_fences; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dsync_file.h28 __u32 num_fences; member
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_request.c273 atomic_long_t num_waits, num_fences; member
295 unsigned int num_waits = 0, num_fences = 0; in __igt_breadcrumbs_smoketest() local
416 num_fences += count; in __igt_breadcrumbs_smoketest()
422 atomic_long_add(num_fences, &t->num_fences); in __igt_breadcrumbs_smoketest()
495 atomic_long_read(&t.num_fences), in mock_breadcrumbs_smoketest()
1344 unsigned long num_waits, num_fences; in live_breadcrumbs_smoketest() local
1442 num_fences = 0; in live_breadcrumbs_smoketest()
1459 num_fences += atomic_long_read(&smoke[idx].num_fences); in live_breadcrumbs_smoketest()
1463 num_waits, num_fences, idx, ncpus); in live_breadcrumbs_smoketest()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_getparam.c33 value = i915->ggtt.num_fences; in i915_getparam_ioctl()
Di915_request.c1275 nchild = array->num_fences; in i915_request_await_execution()
1374 nchild = array->num_fences; in i915_request_await_dma_fence()
Di915_gpu_error.c1102 for (i = 0; i < ggtt->num_fences; i++) in gt_record_fences()
1107 for (i = 0; i < ggtt->num_fences; i++) in gt_record_fences()
1112 for (i = 0; i < ggtt->num_fences; i++) in gt_record_fences()
Di915_debugfs.c663 seq_printf(m, "Total fences = %d\n", i915->ggtt.num_fences); in i915_gem_fence_regs_info()
666 for (i = 0; i < i915->ggtt.num_fences; i++) { in i915_gem_fence_regs_info()
Di915_gem.c909 for (i = 0; i < i915->ggtt.num_fences; i++) { in i915_gem_runtime_suspend()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_coherency.c269 return gt->ggtt->num_fences; in needs_fence_registers()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
Dgvt.h386 #define gvt_fence_sz(gvt) (gvt_to_ggtt(gvt)->num_fences)
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fence.c702 for (i = 0; i < fence_array->num_fences; i++) { in vmw_wait_dma_fence()

12