prime 150 drivers/gpu/drm/drm_file.c drm_prime_init_file_private(&file->prime); prime 161 drivers/gpu/drm/drm_file.c drm_prime_destroy_file_private(&file->prime); prime 254 drivers/gpu/drm/drm_file.c drm_prime_destroy_file_private(&file->prime); prime 177 drivers/gpu/drm/drm_gem.c mutex_lock(&filp->prime.lock); prime 179 drivers/gpu/drm/drm_gem.c drm_prime_remove_buf_handle_locked(&filp->prime, prime 182 drivers/gpu/drm/drm_gem.c mutex_unlock(&filp->prime.lock); prime 303 drivers/gpu/drm/drm_prime.c mutex_lock(&file_priv->prime.lock); prime 305 drivers/gpu/drm/drm_prime.c ret = drm_prime_lookup_buf_handle(&file_priv->prime, prime 334 drivers/gpu/drm/drm_prime.c ret = drm_prime_add_buf_handle(&file_priv->prime, prime 336 drivers/gpu/drm/drm_prime.c mutex_unlock(&file_priv->prime.lock); prime 355 drivers/gpu/drm/drm_prime.c mutex_unlock(&file_priv->prime.lock); prime 431 drivers/gpu/drm/drm_prime.c mutex_lock(&file_priv->prime.lock); prime 438 drivers/gpu/drm/drm_prime.c dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle); prime 475 drivers/gpu/drm/drm_prime.c ret = drm_prime_add_buf_handle(&file_priv->prime, prime 503 drivers/gpu/drm/drm_prime.c mutex_unlock(&file_priv->prime.lock); prime 73 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c unsigned long end_time, prime; prime 102 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c for_each_prime_number_from(prime, 2, 8192) { prime 105 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c for (n = 0; n < prime; n++) { prime 130 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c prime); prime 136 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c if (prime == 2) prime 150 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c prime - 1, div64_u64(ktime_to_ns(times[1]), prime - 1)); prime 1682 drivers/gpu/drm/i915/gt/selftest_lrc.c unsigned long n, prime, nc; prime 1719 drivers/gpu/drm/i915/gt/selftest_lrc.c for_each_prime_number_from(prime, 1, 8192) { prime 1724 drivers/gpu/drm/i915/gt/selftest_lrc.c for (n = 0; n < prime; n++) { prime 1736 drivers/gpu/drm/i915/gt/selftest_lrc.c for (n = 0; n < prime; n++) { prime 1768 drivers/gpu/drm/i915/gt/selftest_lrc.c if (prime == 1) prime 1781 drivers/gpu/drm/i915/gt/selftest_lrc.c prime, div64_u64(ktime_to_ns(times[1]), prime)); prime 352 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c unsigned long npages, prime, flags; prime 363 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c for_each_prime_number_from(prime, 2, max_step) { prime 364 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c for (npages = 1; npages <= max_pages; npages *= prime) { prime 404 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c __func__, p->name, err, npages, prime, offset); prime 477 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c __func__, p->name, err, npages, prime, offset); prime 537 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c __func__, npages, prime)) { prime 896 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c unsigned long prime; prime 902 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c for_each_prime_number_from(prime, 0, ULONG_MAX - 1) { prime 903 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c vm->fault_attr.interval = prime; prime 557 drivers/gpu/drm/i915/selftests/i915_request.c unsigned long n, prime; prime 565 drivers/gpu/drm/i915/selftests/i915_request.c for_each_prime_number_from(prime, 1, 8192) { prime 568 drivers/gpu/drm/i915/selftests/i915_request.c for (n = 0; n < prime; n++) { prime 593 drivers/gpu/drm/i915/selftests/i915_request.c if (prime == 1) prime 607 drivers/gpu/drm/i915/selftests/i915_request.c prime, div64_u64(ktime_to_ns(times[1]), prime)); prime 707 drivers/gpu/drm/i915/selftests/i915_request.c unsigned long n, prime; prime 722 drivers/gpu/drm/i915/selftests/i915_request.c for_each_prime_number_from(prime, 1, 8192) { prime 725 drivers/gpu/drm/i915/selftests/i915_request.c for (n = 0; n < prime; n++) { prime 735 drivers/gpu/drm/i915/selftests/i915_request.c if (prime == 1) prime 749 drivers/gpu/drm/i915/selftests/i915_request.c prime, div64_u64(ktime_to_ns(times[1]), prime)); prime 279 drivers/gpu/drm/i915/selftests/scatterlist.c unsigned long prime; prime 282 drivers/gpu/drm/i915/selftests/scatterlist.c for_each_prime_number(prime, max_order) { prime 283 drivers/gpu/drm/i915/selftests/scatterlist.c unsigned long size = BIT(prime); prime 326 drivers/gpu/drm/i915/selftests/scatterlist.c unsigned long prime; prime 329 drivers/gpu/drm/i915/selftests/scatterlist.c for_each_prime_number(prime, max) { prime 337 drivers/gpu/drm/i915/selftests/scatterlist.c err = alloc_table(&pt, prime, max, *npages, &prng, prime 345 drivers/gpu/drm/i915/selftests/scatterlist.c if (pt.st.orig_nents != prime || prime 346 drivers/gpu/drm/i915/selftests/scatterlist.c pt.st.nents != prime) { prime 348 drivers/gpu/drm/i915/selftests/scatterlist.c pt.st.nents, pt.st.orig_nents, prime); prime 365 drivers/gpu/drm/i915/selftests/scatterlist.c if (prime > SG_MAX_SINGLE_ALLOC) prime 1042 drivers/gpu/drm/selftests/test-drm_mm.c unsigned int prime; prime 1059 drivers/gpu/drm/selftests/test-drm_mm.c for_each_prime_number_from(prime, 1, max_count) { prime 1060 drivers/gpu/drm/selftests/test-drm_mm.c u64 size = next_prime_number(prime); prime 1063 drivers/gpu/drm/selftests/test-drm_mm.c size, prime, i, prime 1066 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, prime); prime 600 drivers/gpu/drm/vmwgfx/ttm_object.c struct ttm_prime_object *prime; prime 603 drivers/gpu/drm/vmwgfx/ttm_object.c prime = container_of(base, struct ttm_prime_object, base); prime 604 drivers/gpu/drm/vmwgfx/ttm_object.c BUG_ON(prime->dma_buf != NULL); prime 605 drivers/gpu/drm/vmwgfx/ttm_object.c mutex_destroy(&prime->mutex); prime 606 drivers/gpu/drm/vmwgfx/ttm_object.c if (prime->refcount_release) prime 607 drivers/gpu/drm/vmwgfx/ttm_object.c prime->refcount_release(&base); prime 622 drivers/gpu/drm/vmwgfx/ttm_object.c struct ttm_prime_object *prime = prime 624 drivers/gpu/drm/vmwgfx/ttm_object.c struct ttm_base_object *base = &prime->base; prime 629 drivers/gpu/drm/vmwgfx/ttm_object.c mutex_lock(&prime->mutex); prime 630 drivers/gpu/drm/vmwgfx/ttm_object.c if (prime->dma_buf == dma_buf) prime 631 drivers/gpu/drm/vmwgfx/ttm_object.c prime->dma_buf = NULL; prime 632 drivers/gpu/drm/vmwgfx/ttm_object.c mutex_unlock(&prime->mutex); prime 653 drivers/gpu/drm/vmwgfx/ttm_object.c struct ttm_prime_object *prime; prime 664 drivers/gpu/drm/vmwgfx/ttm_object.c prime = (struct ttm_prime_object *) dma_buf->priv; prime 665 drivers/gpu/drm/vmwgfx/ttm_object.c base = &prime->base; prime 690 drivers/gpu/drm/vmwgfx/ttm_object.c struct ttm_prime_object *prime; prime 700 drivers/gpu/drm/vmwgfx/ttm_object.c prime = container_of(base, struct ttm_prime_object, base); prime 706 drivers/gpu/drm/vmwgfx/ttm_object.c ret = mutex_lock_interruptible(&prime->mutex); prime 712 drivers/gpu/drm/vmwgfx/ttm_object.c dma_buf = prime->dma_buf; prime 720 drivers/gpu/drm/vmwgfx/ttm_object.c exp_info.size = prime->size; prime 722 drivers/gpu/drm/vmwgfx/ttm_object.c exp_info.priv = prime; prime 730 drivers/gpu/drm/vmwgfx/ttm_object.c mutex_unlock(&prime->mutex); prime 739 drivers/gpu/drm/vmwgfx/ttm_object.c mutex_unlock(&prime->mutex); prime 747 drivers/gpu/drm/vmwgfx/ttm_object.c prime->dma_buf = dma_buf; prime 749 drivers/gpu/drm/vmwgfx/ttm_object.c mutex_unlock(&prime->mutex); prime 779 drivers/gpu/drm/vmwgfx/ttm_object.c struct ttm_prime_object *prime, bool shareable, prime 785 drivers/gpu/drm/vmwgfx/ttm_object.c mutex_init(&prime->mutex); prime 786 drivers/gpu/drm/vmwgfx/ttm_object.c prime->size = PAGE_ALIGN(size); prime 787 drivers/gpu/drm/vmwgfx/ttm_object.c prime->real_type = type; prime 788 drivers/gpu/drm/vmwgfx/ttm_object.c prime->dma_buf = NULL; prime 789 drivers/gpu/drm/vmwgfx/ttm_object.c prime->refcount_release = refcount_release; prime 790 drivers/gpu/drm/vmwgfx/ttm_object.c return ttm_base_object_init(tfile, &prime->base, shareable, prime 330 drivers/gpu/drm/vmwgfx/ttm_object.h struct ttm_prime_object *prime, prime 42 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c struct ttm_prime_object prime; prime 480 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c ttm_prime_object_kfree(vmw_user_bo, prime); prime 545 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c prime.base); prime 565 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c user_bo = container_of(base, struct vmw_user_buffer_object, prime.base); prime 618 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c &user_bo->prime, prime 630 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c *p_base = &user_bo->prime.base; prime 633 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c *handle = user_bo->prime.base.handle; prime 658 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) prime 708 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c ret = ttm_ref_object_add(tfile, &user_bo->prime.base, prime 911 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c prime.base); prime 960 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c prime.base); prime 983 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c *handle = user_bo->prime.base.handle; prime 984 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c return ttm_ref_object_add(tfile, &user_bo->prime.base, prime 50 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c struct ttm_prime_object prime; prime 628 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c prime.base)->srf.res); prime 649 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c ttm_prime_object_kfree(user_srf, prime); prime 666 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c container_of(base, struct vmw_user_surface, prime.base); prime 837 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c user_srf->prime.base.shareable = false; prime 838 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c user_srf->prime.base.tfile = NULL; prime 871 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, prime 881 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c rep->sid = user_srf->prime.base.handle; prime 891 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c ttm_prime_object_kfree(user_srf, prime); prime 939 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c prime.base); prime 997 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c user_srf = container_of(base, struct vmw_user_surface, prime.base); prime 1433 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c user_srf->prime.base.shareable = false; prime 1434 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c user_srf->prime.base.tfile = NULL; prime 1654 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, prime 1666 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c rep->handle = user_srf->prime.base.handle; prime 1714 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c user_srf = container_of(base, struct vmw_user_surface, prime.base); prime 1742 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c rep->crep.handle = user_srf->prime.base.handle; prime 68 drivers/md/dm-region-hash.c unsigned prime; prime 204 drivers/md/dm-region-hash.c rh->prime = RH_HASH_MULT; prime 268 drivers/md/dm-region-hash.c return (unsigned) ((region * rh->prime) >> rh->shift) & rh->mask; prime 335 include/drm/drm_file.h struct drm_prime_file_private prime; prime 21 include/linux/prime_numbers.h #define for_each_prime_number(prime, max) \ prime 22 include/linux/prime_numbers.h for_each_prime_number_from((prime), 2, (max)) prime 35 include/linux/prime_numbers.h #define for_each_prime_number_from(prime, from, max) \ prime 36 include/linux/prime_numbers.h for (prime = (from); prime <= (max); prime = next_prime_number(prime)) prime 81 include/uapi/linux/keyctl.h __s32 prime; prime 284 security/keys/dh.c dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p);