Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/gpu/drm/vmwgfx/
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 …]
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 …]
Dttm_object.h290 struct ttm_prime_object *prime,
/linux-6.12.1/include/linux/
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-6.12.1/drivers/gpu/drm/i915/selftests/
Dscatterlist.c283 unsigned long prime; in igt_sg_alloc() local
286 for_each_prime_number(prime, max_order) { in igt_sg_alloc()
287 unsigned long size = BIT(prime); in igt_sg_alloc()
330 unsigned long prime; in igt_sg_trim() local
333 for_each_prime_number(prime, max) { in igt_sg_trim()
341 err = alloc_table(&pt, prime, max, *npages, &prng, in igt_sg_trim()
349 if (pt.st.orig_nents != prime || in igt_sg_trim()
350 pt.st.nents != prime) { in igt_sg_trim()
352 pt.st.nents, pt.st.orig_nents, prime); in igt_sg_trim()
369 if (prime > SG_MAX_SINGLE_ALLOC) in igt_sg_trim()
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()
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-6.12.1/lib/math/
DKconfig9 tristate "Simple prime number generator for testing"
11 This option provides a simple prime number generator for test
/linux-6.12.1/drivers/gpu/drm/
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()
Ddrm_file.c167 drm_prime_init_file_private(&file->prime); in drm_file_alloc()
178 drm_prime_destroy_file_private(&file->prime); in drm_file_alloc()
256 drm_prime_destroy_file_private(&file->prime); in drm_file_free()
/linux-6.12.1/drivers/gpu/drm/ci/xfails/
Dpanfrost-mt8183-fails.txt1 panfrost/panfrost_prime@gem-prime-import,Fail
Dpanfrost-g12b-fails.txt1 panfrost/panfrost_prime@gem-prime-import,Fail
Dpanfrost-rk3399-fails.txt1 panfrost/panfrost_prime@gem-prime-import,Fail
Dpanfrost-rk3288-fails.txt1 panfrost/panfrost_prime@gem-prime-import,Crash
/linux-6.12.1/arch/arm/boot/dts/samsung/
Dexynos4412-odroidx2.dts12 #include "exynos4412-prime.dtsi"
Dexynos4412-odroidu3.dts14 #include "exynos4412-prime.dtsi"
/linux-6.12.1/include/uapi/linux/
Dkeyctl.h82 __s32 prime; member
/linux-6.12.1/drivers/md/
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-6.12.1/drivers/gpu/drm/i915/gem/selftests/
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-6.12.1/include/drm/
Ddrm_file.h390 struct drm_prime_file_private prime; member
/linux-6.12.1/arch/arm64/boot/dts/allwinner/
Dsun50i-h5-orangepi-prime.dts14 compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5";
DMakefile31 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb
/linux-6.12.1/security/keys/
Ddh.c179 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
/linux-6.12.1/Documentation/i2c/
Ddma-considerations.rst6 transferred are small, it is not considered a prime user of DMA access. At this
/linux-6.12.1/drivers/gpu/drm/i915/gt/
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()

12