/linux-4.4.14/drivers/gpu/drm/ttm/ |
H A D | ttm_object.c | 30 * While no substantial code is shared, the prime code is inspired by 559 * ttm_prime_refcount_release - refcount release method for a prime object. 564 * underlying object. At the same time it cleans up the prime object. 571 struct ttm_prime_object *prime; ttm_prime_refcount_release() local 574 prime = container_of(base, struct ttm_prime_object, base); ttm_prime_refcount_release() 575 BUG_ON(prime->dma_buf != NULL); ttm_prime_refcount_release() 576 mutex_destroy(&prime->mutex); ttm_prime_refcount_release() 577 if (prime->refcount_release) ttm_prime_refcount_release() 578 prime->refcount_release(&base); ttm_prime_refcount_release() 593 struct ttm_prime_object *prime = ttm_prime_dmabuf_release() local 595 struct ttm_base_object *base = &prime->base; ttm_prime_dmabuf_release() 600 mutex_lock(&prime->mutex); ttm_prime_dmabuf_release() 601 if (prime->dma_buf == dma_buf) ttm_prime_dmabuf_release() 602 prime->dma_buf = NULL; ttm_prime_dmabuf_release() 603 mutex_unlock(&prime->mutex); ttm_prime_dmabuf_release() 609 * ttm_prime_fd_to_handle - Get a base object handle from a prime fd 612 * @fd: The prime / dmabuf fd. 624 struct ttm_prime_object *prime; ttm_prime_fd_to_handle() local 635 prime = (struct ttm_prime_object *) dma_buf->priv; ttm_prime_fd_to_handle() 636 base = &prime->base; ttm_prime_fd_to_handle() 647 * ttm_prime_handle_to_fd - Return a dma_buf fd from a ttm prime object 662 struct ttm_prime_object *prime; ttm_prime_handle_to_fd() local 672 prime = container_of(base, struct ttm_prime_object, base); ttm_prime_handle_to_fd() 678 ret = mutex_lock_interruptible(&prime->mutex); ttm_prime_handle_to_fd() 684 dma_buf = prime->dma_buf; ttm_prime_handle_to_fd() 689 exp_info.size = prime->size; ttm_prime_handle_to_fd() 691 exp_info.priv = prime; ttm_prime_handle_to_fd() 699 mutex_unlock(&prime->mutex); ttm_prime_handle_to_fd() 708 mutex_unlock(&prime->mutex); ttm_prime_handle_to_fd() 716 prime->dma_buf = dma_buf; ttm_prime_handle_to_fd() 718 mutex_unlock(&prime->mutex); ttm_prime_handle_to_fd() 739 * @prime: The object to be initialized. 749 struct ttm_prime_object *prime, bool shareable, ttm_prime_object_init() 755 mutex_init(&prime->mutex); ttm_prime_object_init() 756 prime->size = PAGE_ALIGN(size); ttm_prime_object_init() 757 prime->real_type = type; ttm_prime_object_init() 758 prime->dma_buf = NULL; ttm_prime_object_init() 759 prime->refcount_release = refcount_release; ttm_prime_object_init() 760 return ttm_base_object_init(tfile, &prime->base, shareable, ttm_prime_object_init() 748 ttm_prime_object_init(struct ttm_object_file *tfile, size_t size, struct ttm_prime_object *prime, bool shareable, enum ttm_object_type type, void (*refcount_release) (struct ttm_base_object **), void (*ref_obj_release) (struct ttm_base_object *, enum ttm_ref_type ref_type)) ttm_prime_object_init() argument
|
/linux-4.4.14/include/crypto/ |
H A D | public_key.h | 73 MPI p; /* DSA prime */ 83 MPI p; /* RSA secret prime (if present) */ 84 MPI q; /* RSA secret prime (if present) */
|
/linux-4.4.14/drivers/gpu/drm/ |
H A D | drm_prime.c | 413 mutex_lock(&file_priv->prime.lock); drm_gem_prime_handle_to_fd() 420 dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle); drm_gem_prime_handle_to_fd() 457 ret = drm_prime_add_buf_handle(&file_priv->prime, drm_gem_prime_handle_to_fd() 485 mutex_unlock(&file_priv->prime.lock); drm_gem_prime_handle_to_fd() 578 mutex_lock(&file_priv->prime.lock); drm_gem_prime_fd_to_handle() 580 ret = drm_prime_lookup_buf_handle(&file_priv->prime, drm_gem_prime_fd_to_handle() 606 ret = drm_prime_add_buf_handle(&file_priv->prime, drm_gem_prime_fd_to_handle() 611 mutex_unlock(&file_priv->prime.lock); drm_gem_prime_fd_to_handle() 626 mutex_unlock(&file_priv->prime.lock); drm_gem_prime_fd_to_handle()
|
H A D | drm_fops.c | 233 drm_prime_init_file_private(&priv->prime); drm_open_helper() 287 drm_prime_destroy_file_private(&priv->prime); drm_open_helper() 485 drm_prime_destroy_file_private(&file_priv->prime); drm_release()
|
H A D | drm_gem.c | 182 mutex_lock(&filp->prime.lock); drm_gem_remove_prime_handles() 184 drm_prime_remove_buf_handle_locked(&filp->prime, drm_gem_remove_prime_handles() 187 mutex_unlock(&filp->prime.lock); drm_gem_remove_prime_handles()
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_surface.c | 45 struct ttm_prime_object prime; member in struct:vmw_user_surface 618 prime.base)->srf.res); vmw_user_surface_base_to_res() 639 ttm_prime_object_kfree(user_srf, prime); vmw_user_surface_free() 656 container_of(base, struct vmw_user_surface, prime.base); vmw_user_surface_base_release() 832 user_srf->prime.base.shareable = false; vmw_surface_define_ioctl() 833 user_srf->prime.base.tfile = NULL; vmw_surface_define_ioctl() 866 ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, vmw_surface_define_ioctl() 876 rep->sid = user_srf->prime.base.hash.key; vmw_surface_define_ioctl() 886 ttm_prime_object_kfree(user_srf, prime); vmw_surface_define_ioctl() 941 prime.base); vmw_surface_handle_reference() 1002 user_srf = container_of(base, struct vmw_user_surface, prime.base); vmw_surface_reference_ioctl() 1354 ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, vmw_gb_surface_define_ioctl() 1366 rep->handle = user_srf->prime.base.hash.key; vmw_gb_surface_define_ioctl() 1414 user_srf = container_of(base, struct vmw_user_surface, prime.base); vmw_gb_surface_reference_ioctl() 1443 rep->crep.handle = user_srf->prime.base.hash.key; vmw_gb_surface_reference_ioctl() 1537 user_srf->prime.base.shareable = false; vmw_surface_gb_priv_define() 1538 user_srf->prime.base.tfile = NULL; vmw_surface_gb_priv_define()
|
H A D | vmwgfx_resource.c | 39 struct ttm_prime_object prime; member in struct:vmw_user_dma_buffer 407 ttm_prime_object_kfree(vmw_user_bo, prime); vmw_user_dmabuf_destroy() 447 prime.base); vmw_user_dmabuf_release() 456 user_bo = container_of(base, struct vmw_user_dma_buffer, prime.base); vmw_user_dmabuf_ref_obj_release() 508 &user_bo->prime, vmw_user_dmabuf_alloc() 520 *p_base = &user_bo->prime.base; vmw_user_dmabuf_alloc() 523 *handle = user_bo->prime.base.hash.key; vmw_user_dmabuf_alloc() 547 if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) vmw_user_dmabuf_verify_access() 593 ret = ttm_ref_object_add(tfile, &user_bo->prime.base, vmw_user_dmabuf_synccpu_grab() 754 prime.base); vmw_user_dmabuf_lookup() 776 *handle = user_bo->prime.base.hash.key; vmw_user_dmabuf_reference() 777 return ttm_ref_object_add(tfile, &user_bo->prime.base, vmw_user_dmabuf_reference()
|
/linux-4.4.14/include/linux/ |
H A D | zutil.h | 53 #define BASE 65521L /* largest prime smaller than 65536 */
|
H A D | hash.h | 38 * real problems. Besides, the "prime" part is pointless for the
|
/linux-4.4.14/include/drm/ttm/ |
H A D | ttm_object.h | 139 * struct ttm_prime_object - Modified base object that is prime-aware 297 * @ops: DMA buf ops for prime objects of this device. 326 struct ttm_prime_object *prime,
|
/linux-4.4.14/arch/powerpc/include/asm/ |
H A D | mmu-hash64.h | 397 * VSID_MULTIPLIER is prime, so in particular it is 398 * co-prime to VSID_MODULUS, making this a 1:1 scrambling function. 431 * doesn't overflow 64 bits. It should also be co-prime to vsid_modulus 433 #define VSID_MULTIPLIER_256M ASM_CONST(12538073) /* 24-bit prime */ 437 #define VSID_MULTIPLIER_1T ASM_CONST(12538073) /* 24-bit prime */
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/ |
H A D | prng.c | 61 * and k*2^15-1 are prime) */
|
/linux-4.4.14/kernel/ |
H A D | kcmp.c | 27 * relative prime to 2^n).
|
H A D | torture.c | 241 #define TORTURE_RANDOM_MULT 39916801 /* prime */ 242 #define TORTURE_RANDOM_ADD 479001701 /* prime */
|
/linux-4.4.14/drivers/usb/misc/ |
H A D | adutux.c | 718 /* debug code prime the buffer */ adu_probe() 731 /* debug code prime the buffer */ adu_probe() 743 /* debug code prime the buffer */ adu_probe()
|
/linux-4.4.14/drivers/md/ |
H A D | dm-region-hash.c | 69 unsigned prime; member in struct:dm_region_hash 202 rh->prime = RH_HASH_MULT; dm_region_hash_create() 266 return (unsigned) ((region * rh->prime) >> rh->shift) & rh->mask; rh_hash()
|
/linux-4.4.14/drivers/s390/char/ |
H A D | hmcdrv_ftp.c | 60 * 1. Array size should be a prime number. hmcdrv_ftp_cmd_getid()
|
/linux-4.4.14/drivers/soc/tegra/fuse/ |
H A D | fuse-tegra.c | 40 [TEGRA_REVISION_A03p] = "A03 prime",
|
/linux-4.4.14/drivers/net/fddi/skfp/h/ |
H A D | fplustm.h | 121 #define RX_FIFO_OFF 0x21 /* to get a prime number for */
|
/linux-4.4.14/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gem.h | 158 /* low-level interface prime helpers */
|
H A D | exynos_drm_gem.c | 548 /* low-level interface prime helpers */ exynos_drm_gem_prime_get_sg_table()
|
/linux-4.4.14/arch/x86/kernel/ |
H A D | espfix_64.c | 112 /* The constant is an arbitrary large prime */ init_espfix_random()
|
/linux-4.4.14/include/drm/ |
H A D | drm_gem.h | 116 * Note that the drm gem/prime core does not depend upon drivers setting
|
H A D | drmP.h | 104 * PRIME: used in the prime code. 352 struct drm_prime_file_private prime; member in struct:drm_file 588 /* prime: */
|
/linux-4.4.14/arch/ia64/lib/ |
H A D | memcpy.S | 252 (p6) ld8 val[1]=[src2],8 // prime the pump...
|
H A D | memcpy_mck.S | 505 EX(.ex_handler, (p6) ld8 r22=[src1]); /* common, prime for tail section */ \
|
/linux-4.4.14/drivers/staging/comedi/drivers/ |
H A D | quatech_daqp_cs.c | 542 * computer could look at the prime decomposition of the daqp_ai_cmd() 545 * = 3^3 * 2). Hmmm... a one-line while loop or prime daqp_ai_cmd()
|
H A D | cb_pcidas64.c | 2502 /* prime queue holding register */ setup_channel_queue()
|
H A D | ni_mio_common.c | 1921 /* prime the channel/gain list */ ni_load_channelgain_list()
|
/linux-4.4.14/fs/logfs/ |
H A D | dir.c | 93 * space. A prime >256 ensures short names quickly spread the 32bit 95 * of each character and pick a prime nearby, preferably a bit-sparse
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
H A D | radeon_ib.c | 115 * prime the caches while the DE is updating register state so that
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ib.c | 116 * prime the caches while the DE is updating register state so that
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
H A D | mv_udc_core.c | 1488 /* prime the data phase */ udc_prime_status() 1493 "Failed to queue dtd when prime status\n"); udc_prime_status() 1499 "Failed to dma_pool_alloc when prime status\n"); udc_prime_status() 1729 /* complete DATA or STATUS phase of ep0 prime status phase if needed */ ep0_req_complete()
|
H A D | fsl_udc_core.c | 747 /* Read prime bit, if 1 goto done */ fsl_queue_td() 972 /* prime with dTD of next request */ fsl_ep_dequeue() 1376 /* prime the data phase */ ch9getstatus() 1498 * If the data stage is IN, send status prime immediately. 1518 * prime status phase if needed */ ep0_req_complete()
|
/linux-4.4.14/drivers/net/wan/ |
H A D | farsync.h | 327 * FST_DEBUG can be set to prime the debug selection.
|
H A D | z85230.h | 42 #define RPRIME 16 /* Indicate a prime register access on 230 */
|
H A D | z85230.c | 1379 * indicate the "prime" registers. The value 255 terminates the
|
/linux-4.4.14/arch/ia64/sn/kernel/ |
H A D | io_common.c | 472 * prime sn_pci_provider[]. Individual provider init routines will sn_io_early_init()
|
/linux-4.4.14/crypto/ |
H A D | jitterentropy.c | 550 /* prime the FIPS test */ jent_fips_test() 743 * only after the first loop is executed as we need to prime jent_entropy_init()
|
H A D | vmac.c | 41 static const u64 p64 = UINT64_C(0xfffffffffffffeff); /* 2^64 - 257 prime */
|
/linux-4.4.14/drivers/staging/lustre/include/linux/lnet/ |
H A D | lib-types.h | 399 #define LNET_PEER_HASHSIZE 503 /* prime! */
|
/linux-4.4.14/net/ceph/crush/ |
H A D | mapper.c | 67 * We used to use some prime number arithmetic to do this, but it
|
/linux-4.4.14/drivers/usb/chipidea/ |
H A D | udc.c | 502 wmb(); /* synchronize before ep prime */ _hardware_enqueue() 530 /* Synchronize before ep prime */ reprime_dtd()
|
/linux-4.4.14/drivers/tty/serial/ |
H A D | pmac_zilog.c | 161 /* now set R7 "prime" on ESCC */ pmz_load_zsregs() 165 /* make sure we use R7 "non-prime" on ESCC */ pmz_load_zsregs()
|
/linux-4.4.14/drivers/spi/ |
H A D | spi-ep93xx.c | 413 * Now everything is set up for the current transfer. We prime the TX ep93xx_spi_pio_transfer()
|
/linux-4.4.14/drivers/scsi/esas2r/ |
H A D | esas2r_init.c | 972 /* prime parts of the inbound list */ esas2r_init_adapter_struct()
|
/linux-4.4.14/drivers/gpu/drm/msm/ |
H A D | msm_drv.c | 387 * and (for example) use dmabuf/prime to share buffers with msm_load()
|
/linux-4.4.14/net/rxrpc/ |
H A D | ar-internal.h | 116 /* prime a connection's packet security */
|
H A D | rxkad.c | 110 * prime the encryption state with the invariant parts of a connection's
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
H A D | i915_gem.c | 716 /* prime objects have no backing filp to GEM pread/pwrite i915_gem_pread_ioctl() 1069 /* prime objects have no backing filp to GEM pread/pwrite i915_gem_pwrite_ioctl() 1740 /* prime objects have no backing filp to GEM mmap i915_gem_mmap_ioctl()
|
H A D | i915_drv.h | 2125 /* prime dma-buf support */
|
/linux-4.4.14/drivers/media/usb/gspca/ |
H A D | ov519.c | 516 * choose a prime number, we are guaranteed that the last read of a 523 * The constant (13 * 4096) is the largest "prime enough" number less than 64KB.
|
/linux-4.4.14/drivers/block/drbd/ |
H A D | drbd_main.c | 3757 #define FAULT_RANDOM_MULT 39916801 /* prime */ 3758 #define FAULT_RANDOM_ADD 479001701 /* prime */
|
H A D | drbd_nl.c | 3239 /* prime iterators, and set "filter" mode mark: drbd_adm_get_status_all()
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
H A D | lustre_net.h | 1102 * - In objects that act as prime-level scheduling entities in different NRS
|
/linux-4.4.14/drivers/staging/lustre/lustre/osc/ |
H A D | osc_request.c | 2211 * lock cannot be used, because it would prime inode state with osc_enqueue_base()
|
/linux-4.4.14/mm/ |
H A D | percpu.c | 1482 * chunk and prime the dynamic percpu allocator.
|
/linux-4.4.14/fs/ |
H A D | dcache.c | 99 * information, yet avoid using a prime hash-size or similar.
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
H A D | chip.c | 9937 * A prime example of this is SiPh. For now, set all pins high. init_chip()
|