Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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))
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dttm_object.c600 struct ttm_prime_object *prime; in ttm_prime_refcount_release() local
603 prime = container_of(base, struct ttm_prime_object, base); in ttm_prime_refcount_release()
604 BUG_ON(prime->dma_buf != NULL); in ttm_prime_refcount_release()
605 mutex_destroy(&prime->mutex); in ttm_prime_refcount_release()
606 if (prime->refcount_release) in ttm_prime_refcount_release()
607 prime->refcount_release(&base); in ttm_prime_refcount_release()
622 struct ttm_prime_object *prime = in ttm_prime_dmabuf_release() local
624 struct ttm_base_object *base = &prime->base; in ttm_prime_dmabuf_release()
629 mutex_lock(&prime->mutex); in ttm_prime_dmabuf_release()
630 if (prime->dma_buf == dma_buf) in ttm_prime_dmabuf_release()
[all …]
Dvmwgfx_bo.c42 struct ttm_prime_object prime; member
487 ttm_prime_object_kfree(vmw_user_bo, prime); in vmw_user_bo_destroy()
551 prime.base); in vmw_user_bo_release()
571 user_bo = container_of(base, struct vmw_user_buffer_object, prime.base); in vmw_user_bo_ref_obj_release()
624 &user_bo->prime, in vmw_user_bo_alloc()
636 *p_base = &user_bo->prime.base; in vmw_user_bo_alloc()
639 *handle = user_bo->prime.base.handle; in vmw_user_bo_alloc()
664 if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) in vmw_user_bo_verify_access()
721 ret = ttm_ref_object_add(tfile, &user_bo->prime.base, in vmw_user_bo_synccpu_grab()
924 prime.base); in vmw_user_bo_lookup()
[all …]
Dvmwgfx_surface.c50 struct ttm_prime_object prime; member
653 prime.base)->srf.res); in vmw_user_surface_base_to_res()
675 ttm_prime_object_kfree(user_srf, prime); in vmw_user_surface_free()
692 container_of(base, struct vmw_user_surface, prime.base); in vmw_user_surface_base_release()
866 user_srf->prime.base.shareable = false; in vmw_surface_define_ioctl()
867 user_srf->prime.base.tfile = NULL; in vmw_surface_define_ioctl()
900 ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, in vmw_surface_define_ioctl()
910 rep->sid = user_srf->prime.base.handle; in vmw_surface_define_ioctl()
920 ttm_prime_object_kfree(user_srf, prime); in vmw_surface_define_ioctl()
966 prime.base); in vmw_surface_handle_reference()
[all …]
Dttm_object.h330 struct ttm_prime_object *prime,
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Dscatterlist.c279 unsigned long prime; in igt_sg_alloc() local
282 for_each_prime_number(prime, max_order) { in igt_sg_alloc()
283 unsigned long size = BIT(prime); in igt_sg_alloc()
326 unsigned long prime; in igt_sg_trim() local
329 for_each_prime_number(prime, max) { in igt_sg_trim()
337 err = alloc_table(&pt, prime, max, *npages, &prng, in igt_sg_trim()
345 if (pt.st.orig_nents != prime || in igt_sg_trim()
346 pt.st.nents != prime) { in igt_sg_trim()
348 pt.st.nents, pt.st.orig_nents, prime); in igt_sg_trim()
365 if (prime > SG_MAX_SINGLE_ALLOC) in igt_sg_trim()
Di915_request.c549 unsigned long n, prime; in live_nop_request() local
558 for_each_prime_number_from(prime, 1, 8192) { in live_nop_request()
563 for (n = 0; n < prime; n++) { in live_nop_request()
590 if (prime == 1) in live_nop_request()
605 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_nop_request()
704 unsigned long n, prime; in live_empty_request() local
722 for_each_prime_number_from(prime, 1, 8192) { in live_empty_request()
725 for (n = 0; n < prime; n++) { in live_empty_request()
737 if (prime == 1) in live_empty_request()
753 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_empty_request()
Di915_gem_gtt.c374 unsigned long npages, prime, flags; in fill_hole() local
385 for_each_prime_number_from(prime, 2, max_step) { in fill_hole()
386 for (npages = 1; npages <= max_pages; npages *= prime) { in fill_hole()
426 __func__, p->name, err, npages, prime, offset); in fill_hole()
499 __func__, p->name, err, npages, prime, offset); in fill_hole()
559 __func__, npages, prime)) { in fill_hole()
913 unsigned long prime; in shrink_hole() local
919 for_each_prime_number_from(prime, 0, ULONG_MAX - 1) { in shrink_hole()
920 vm->fault_attr.interval = prime; in shrink_hole()
/kernel/linux/linux-5.10/lib/math/
DKconfig9 tristate "Simple prime number generator for testing"
11 This option provides a simple prime number generator for test
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_prime.c309 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
311 ret = drm_prime_lookup_buf_handle(&file_priv->prime, in drm_gem_prime_fd_to_handle()
340 ret = drm_prime_add_buf_handle(&file_priv->prime, in drm_gem_prime_fd_to_handle()
342 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
361 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_fd_to_handle()
437 mutex_lock(&file_priv->prime.lock); in drm_gem_prime_handle_to_fd()
444 dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle); in drm_gem_prime_handle_to_fd()
481 ret = drm_prime_add_buf_handle(&file_priv->prime, in drm_gem_prime_handle_to_fd()
509 mutex_unlock(&file_priv->prime.lock); in drm_gem_prime_handle_to_fd()
Ddrm_file.c189 drm_prime_init_file_private(&file->prime); in drm_file_alloc()
200 drm_prime_destroy_file_private(&file->prime); in drm_file_alloc()
293 drm_prime_destroy_file_private(&file->prime); in drm_file_free()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dkeyctl.h58 __s32 prime; member
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dexynos4412-odroidx2.dts12 #include "exynos4412-prime.dtsi"
Dexynos4412-odroidu3.dts13 #include "exynos4412-prime.dtsi"
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dkeyctl.h79 __s32 prime; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dkeyctl.h82 __s32 prime; member
/kernel/linux/linux-5.10/include/drm/
Ddrm_file.h359 struct drm_prime_file_private prime; member
/kernel/linux/linux-5.10/drivers/md/
Ddm-region-hash.c68 unsigned prime; member
204 rh->prime = RH_HASH_MULT; in dm_region_hash_create()
268 return (unsigned) ((region * rh->prime) >> rh->shift) & rh->mask; in rh_hash()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_context.c78 unsigned long end_time, prime; in live_nop_switch() local
116 for_each_prime_number_from(prime, 2, 8192) { in live_nop_switch()
120 for (n = 0; n < prime; n++) { in live_nop_switch()
154 prime); in live_nop_switch()
162 if (prime == 2) in live_nop_switch()
176 prime - 1, div64_u64(ktime_to_ns(times[1]), prime - 1)); in live_nop_switch()
/kernel/linux/linux-5.10/arch/arm64/boot/dts/allwinner/
DMakefile28 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb
Dsun50i-h5-orangepi-prime.dts14 compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5";
/kernel/linux/linux-5.10/Documentation/gpu/
Dvkms.rst89 - Variable refresh rate/freesync support. This probably needs prime buffer
/kernel/linux/linux-5.10/security/keys/
Ddh.c284 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
/kernel/linux/linux-5.10/Documentation/i2c/
Ddma-considerations.rst6 transferred are small, it is not considered a prime user of DMA access. At this
/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/
Dtest-drm_mm.c1159 unsigned int prime; in igt_align() local
1176 for_each_prime_number_from(prime, 1, max_count) { in igt_align()
1177 u64 size = next_prime_number(prime); in igt_align()
1180 size, prime, i, in igt_align()
1183 mode->name, prime); in igt_align()

12