Home
last modified time | relevance | path

Searched refs:prime (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/gpu/drm/vmwgfx/
H A Dttm_object.c490 struct ttm_prime_object *prime; in ttm_prime_refcount_release() local
493 prime = container_of(base, struct ttm_prime_object, base); in ttm_prime_refcount_release()
494 BUG_ON(prime->dma_buf != NULL); in ttm_prime_refcount_release()
495 mutex_destroy(&prime->mutex); in ttm_prime_refcount_release()
496 if (prime->refcount_release) in ttm_prime_refcount_release()
497 prime->refcount_release(&base); in ttm_prime_refcount_release()
512 struct ttm_prime_object *prime = in ttm_prime_dmabuf_release() local
514 struct ttm_base_object *base = &prime->base; in ttm_prime_dmabuf_release()
519 mutex_lock(&prime->mutex); in ttm_prime_dmabuf_release()
520 if (prime->dma_buf == dma_buf) in ttm_prime_dmabuf_release()
[all …]
H A Dvmwgfx_surface.c49 struct ttm_prime_object prime; member
647 prime.base)->srf.res); in vmw_user_surface_base_to_res()
667 ttm_prime_object_kfree(user_srf, prime); in vmw_user_surface_free()
683 container_of(base, struct vmw_user_surface, prime.base); in vmw_user_surface_base_release()
879 &user_srf->prime, in vmw_surface_define_ioctl()
889 rep->sid = user_srf->prime.base.handle; in vmw_surface_define_ioctl()
898 ttm_prime_object_kfree(user_srf, prime); in vmw_surface_define_ioctl()
915 base = &user_srf->prime.base; in vmw_lookup_user_surface_for_buffer()
940 base = &user_srf->prime.base; in vmw_lookup_surface_for_buffer()
956 base = &user_srf->prime.base; in vmw_lookup_surface_handle_for_buffer()
[all …]
H A Dttm_object.h290 struct ttm_prime_object *prime,
/linux/include/linux/
H A Dprime_numbers.h21 #define for_each_prime_number(prime, max) \ argument
22 for_each_prime_number_from((prime), 2, (max))
35 #define for_each_prime_number_from(prime, from, max) \ argument
36 for (prime = (from); prime <= (max); prime = next_prime_number(prime))
/linux/drivers/gpu/drm/
H A Ddrm_prime.c307 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
309 ret = drm_prime_lookup_buf_handle(&file_priv->prime, in drm_gem_prime_fd_to_handle()
338 ret = drm_prime_add_buf_handle(&file_priv->prime, in drm_gem_prime_fd_to_handle()
340 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
359 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
442 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_handle_to_dmabuf()
449 dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle); in drm_gem_prime_handle_to_dmabuf()
485 ret = drm_prime_add_buf_handle(&file_priv->prime, in drm_gem_prime_handle_to_dmabuf()
495 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_handle_to_dmabuf()
H A Ddrm_file.c168 drm_prime_init_file_private(&file->prime); in drm_file_alloc()
179 drm_prime_destroy_file_private(&file->prime); in drm_file_alloc()
257 drm_prime_destroy_file_private(&file->prime); in drm_file_free()
/linux/lib/math/
H A DKconfig9 tristate "Simple prime number generator for testing"
11 This option provides a simple prime number generator for test
/linux/drivers/gpu/drm/ci/xfails/
H A Dpanfrost-rk3399-fails.txt1 panfrost/panfrost_prime@gem-prime-import,Fail
H A Dpanfrost-g12b-fails.txt1 panfrost/panfrost_prime@gem-prime-import,Fail
H A Dpanfrost-rk3288-fails.txt1 panfrost/panfrost_prime@gem-prime-import,Crash
H A Dpanfrost-mt8183-fails.txt1 panfrost/panfrost_prime@gem-prime-import,Fail
/linux/arch/arm/boot/dts/samsung/
H A Dexynos4412-odroidx2.dts12 #include "exynos4412-prime.dtsi"
H A Dexynos4412-odroidu3.dts14 #include "exynos4412-prime.dtsi"
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_gem_gtt.c419 unsigned long npages, prime, flags; in fill_hole() local
430 for_each_prime_number_from(prime, 2, max_step) { in fill_hole()
431 for (npages = 1; npages <= max_pages; npages *= prime) { in fill_hole()
474 __func__, p->name, err, npages, prime, offset); in fill_hole()
553 __func__, p->name, err, npages, prime, offset); in fill_hole()
616 __func__, npages, prime)) { in fill_hole()
983 unsigned long prime; in shrink_hole() local
989 for_each_prime_number_from(prime, 0, ULONG_MAX - 1) { in shrink_hole()
990 vm->fault_attr.interval = prime; in shrink_hole()
H A Di915_request.c581 unsigned long n, prime; in live_nop_request() local
590 for_each_prime_number_from(prime, 1, 8192) { in live_nop_request()
595 for (n = 0; n < prime; n++) { in live_nop_request()
622 if (prime == 1) in live_nop_request()
637 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_nop_request()
1054 unsigned long n, prime; in live_empty_request() local
1076 for_each_prime_number_from(prime, 1, 8192) { in live_empty_request()
1079 for (n = 0; n < prime; n++) { in live_empty_request()
1091 if (prime == 1) in live_empty_request()
1107 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_empty_request()
/linux/include/uapi/linux/
H A Dkeyctl.h82 __s32 prime; member
/linux/drivers/md/
H A Ddm-region-hash.c71 unsigned int prime; member
207 rh->prime = RH_HASH_MULT; in dm_region_hash_create()
271 return (unsigned int) ((region * rh->prime) >> rh->shift) & rh->mask; in rh_hash()
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_context.c75 unsigned long end_time, prime; in live_nop_switch() local
113 for_each_prime_number_from(prime, 2, 8192) { in live_nop_switch()
117 for (n = 0; n < prime; n++) { in live_nop_switch()
151 prime); in live_nop_switch()
159 if (prime == 2) in live_nop_switch()
173 prime - 1, div64_u64(ktime_to_ns(times[1]), prime - 1)); in live_nop_switch()
/linux/include/drm/
H A Ddrm_file.h390 struct drm_prime_file_private prime; member
/linux/arch/arm64/boot/dts/allwinner/
H A DMakefile31 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb
/linux/security/keys/
H A Ddh.c179 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
/linux/Documentation/i2c/
H A Ddma-considerations.rst6 transferred are small, it is not considered a prime user of DMA access. At this
/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_execlists.c3721 unsigned long n, prime, nc; in nop_virtual_engine() local
3748 for_each_prime_number_from(prime, 1, 8192) { in nop_virtual_engine()
3753 for (n = 0; n < prime; n++) { in nop_virtual_engine()
3769 for (n = 0; n < prime; n++) { in nop_virtual_engine()
3805 if (prime == 1) in nop_virtual_engine()
3823 prime, div64_u64(ktime_to_ns(times[1]), prime)); in nop_virtual_engine()
/linux/Documentation/dev-tools/
H A Dpropeller.rst116 event period. We suggest using a suitable prime number, like 500009,
/linux/Documentation/translations/it_IT/locking/
H A Dlockstat.rst159 Questo estratto mostra le statistiche delle prime due classi di

12