/linux/drivers/dma-buf/ |
A D | sync_file.c | 159 if (num_fences == 1) { 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() 226 num_fences = a_num_fences + b_num_fences; in sync_file_merge() 272 if (num_fences > i) { in sync_file_merge() 405 int num_fences, ret, i; in sync_file_ioctl_fence_info() local 421 if (!info.num_fences) { in sync_file_ioctl_fence_info() 428 if (info.num_fences < num_fences) in sync_file_ioctl_fence_info() 436 for (i = 0; i < num_fences; i++) { in sync_file_ioctl_fence_info() [all …]
|
A D | dma-fence-array.c | 76 for (i = 0; i < array->num_fences; ++i) { in dma_fence_array_enable_signaling() 115 for (i = 0; i < array->num_fences; ++i) in dma_fence_array_release() 150 struct dma_fence_array *dma_fence_array_create(int num_fences, in dma_fence_array_create() argument 159 size += num_fences * sizeof(struct dma_fence_array_cb); in dma_fence_array_create() 169 array->num_fences = num_fences; in dma_fence_array_create() 170 atomic_set(&array->num_pending, signal_on_any ? 1 : num_fences); in dma_fence_array_create() 196 for (i = 0; i < array->num_fences; i++) { in dma_fence_match_context()
|
A D | dma-resv.c | 151 int dma_resv_reserve_shared(struct dma_resv *obj, unsigned int num_fences) in dma_resv_reserve_shared() argument 160 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared() 162 max = max(old->shared_count + num_fences, old->shared_max * 2); in dma_resv_reserve_shared() 164 max = max(4ul, roundup_pow_of_two(num_fences)); in dma_resv_reserve_shared()
|
A D | sync_debug.c | 134 for (i = 0; i < array->num_fences; ++i) in sync_print_sync_file()
|
/linux/tools/testing/selftests/sync/ |
A D | sync.c | 88 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/drivers/gpu/drm/i915/gt/ |
A D | intel_ggtt_fencing.c | 506 for (i = 0; i < ggtt->num_fences; i++) in intel_ggtt_restore_fences() 836 int num_fences; in intel_ggtt_init_fences() local 846 num_fences = 0; in intel_ggtt_init_fences() 849 num_fences = 32; in intel_ggtt_init_fences() 853 num_fences = 16; in intel_ggtt_init_fences() 855 num_fences = 8; in intel_ggtt_init_fences() 858 num_fences = intel_uncore_read(uncore, in intel_ggtt_init_fences() 860 ggtt->fence_regs = kcalloc(num_fences, in intel_ggtt_init_fences() 864 num_fences = 0; in intel_ggtt_init_fences() 867 for (i = 0; i < num_fences; i++) { in intel_ggtt_init_fences() [all …]
|
A D | intel_gtt.h | 337 unsigned int num_fences; member
|
A D | intel_reset.c | 751 for (i = 0; i < gt->ggtt->num_fences; i++) { in revoke_mmaps()
|
/linux/drivers/gpu/drm/ |
A D | drm_atomic_uapi.c | 1143 unsigned int *num_fences) in prepare_signaling() argument 1189 (*num_fences + 1), GFP_KERNEL); in prepare_signaling() 1193 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling() 1228 (*num_fences + 1), GFP_KERNEL); in prepare_signaling() 1232 memset(&f[*num_fences], 0, sizeof(*f)); in prepare_signaling() 1264 unsigned int num_fences, in complete_signaling() argument 1272 for (i = 0; i < num_fences; i++) in complete_signaling() 1296 for (i = 0; i < num_fences; i++) { in complete_signaling() 1324 unsigned int i, j, num_fences; in drm_mode_atomic_ioctl() local 1377 num_fences = 0; in drm_mode_atomic_ioctl() [all …]
|
/linux/include/linux/ |
A D | dma-fence-array.h | 41 unsigned num_fences; member 77 struct dma_fence_array *dma_fence_array_create(int num_fences,
|
A D | dma-resv.h | 484 int dma_resv_reserve_shared(struct dma_resv *obj, unsigned int num_fences);
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_execbuffer.c | 309 unsigned long num_fences; member 2637 f += eb->num_fences; in add_timeline_fence_array() 2724 eb->num_fences++; in add_timeline_fence_array() 2740 if (!num_fences) in add_fence_array() 2745 if (num_fences > min_t(unsigned long, in add_fence_array() 2755 (eb->num_fences + num_fences) * sizeof(*f), in add_fence_array() 2761 f += eb->num_fences; in add_fence_array() 2762 while (num_fences--) { in add_fence_array() 2796 eb->num_fences++; in add_fence_array() 2815 for (n = 0; n < eb->num_fences; n++) { in await_fence_array() [all …]
|
A D | i915_gem_tiling.c | 339 if (!dev_priv->ggtt.num_fences) in i915_gem_set_tiling_ioctl() 422 if (!dev_priv->ggtt.num_fences) in i915_gem_get_tiling_ioctl()
|
A D | i915_gem_busy.c | 64 unsigned int nchild = array->num_fences; in __busy_set_if_active()
|
A D | i915_gem_wait.c | 130 for (i = 0; i < array->num_fences; i++) in i915_gem_fence_wait_priority()
|
/linux/include/uapi/linux/ |
A D | sync_file.h | 64 __u32 num_fences; member
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_request.c | 274 atomic_long_t num_waits, num_fences; member 296 unsigned int num_waits = 0, num_fences = 0; in __igt_breadcrumbs_smoketest() local 417 num_fences += count; in __igt_breadcrumbs_smoketest() 423 atomic_long_add(num_fences, &t->num_fences); in __igt_breadcrumbs_smoketest() 496 atomic_long_read(&t.num_fences), in mock_breadcrumbs_smoketest() 1545 unsigned long num_waits, num_fences; in live_breadcrumbs_smoketest() local 1643 num_fences = 0; in live_breadcrumbs_smoketest() 1660 num_fences += atomic_long_read(&smoke[idx].num_fences); in live_breadcrumbs_smoketest() 1664 num_waits, num_fences, idx, ncpus); in live_breadcrumbs_smoketest()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_getparam.c | 34 value = i915->ggtt.num_fences; in i915_getparam_ioctl()
|
A D | i915_gpu_error.c | 1126 for (i = 0; i < ggtt->num_fences; i++) in gt_record_fences() 1131 for (i = 0; i < ggtt->num_fences; i++) in gt_record_fences() 1136 for (i = 0; i < ggtt->num_fences; i++) in gt_record_fences()
|
A D | i915_request.c | 1372 nchild = array->num_fences; in i915_request_await_execution() 1474 nchild = array->num_fences; in i915_request_await_dma_fence()
|
A D | i915_gem.c | 834 for (i = 0; i < i915->ggtt.num_fences; i++) { in i915_gem_runtime_suspend()
|
/linux/drivers/gpu/drm/i915/gem/selftests/ |
A D | i915_gem_coherency.c | 268 return gt->ggtt->num_fences; in needs_fence_registers()
|
/linux/drivers/gpu/drm/i915/gvt/ |
A D | gvt.h | 400 #define gvt_fence_sz(gvt) (gvt_to_ggtt(gvt)->num_fences)
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_fence.c | 686 for (i = 0; i < fence_array->num_fences; i++) { in vmw_wait_dma_fence()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_fbc.c | 398 } else if (dev_priv->ggtt.num_fences) { in gen7_fbc_activate()
|