Searched refs:prime (Results 1 - 59 of 59) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/ttm/
H A Dttm_object.c30 * 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 Dpublic_key.h73 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 Ddrm_prime.c413 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 Ddrm_fops.c233 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 Ddrm_gem.c182 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 Dvmwgfx_surface.c45 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 Dvmwgfx_resource.c39 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 Dzutil.h53 #define BASE 65521L /* largest prime smaller than 65536 */
H A Dhash.h38 * real problems. Besides, the "prime" part is pointless for the
/linux-4.4.14/include/drm/ttm/
H A Dttm_object.h139 * 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 Dmmu-hash64.h397 * 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 Dprng.c61 * and k*2^15-1 are prime) */
/linux-4.4.14/kernel/
H A Dkcmp.c27 * relative prime to 2^n).
H A Dtorture.c241 #define TORTURE_RANDOM_MULT 39916801 /* prime */
242 #define TORTURE_RANDOM_ADD 479001701 /* prime */
/linux-4.4.14/drivers/usb/misc/
H A Dadutux.c718 /* 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 Ddm-region-hash.c69 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 Dhmcdrv_ftp.c60 * 1. Array size should be a prime number. hmcdrv_ftp_cmd_getid()
/linux-4.4.14/drivers/soc/tegra/fuse/
H A Dfuse-tegra.c40 [TEGRA_REVISION_A03p] = "A03 prime",
/linux-4.4.14/drivers/net/fddi/skfp/h/
H A Dfplustm.h121 #define RX_FIFO_OFF 0x21 /* to get a prime number for */
/linux-4.4.14/drivers/gpu/drm/exynos/
H A Dexynos_drm_gem.h158 /* low-level interface prime helpers */
H A Dexynos_drm_gem.c548 /* low-level interface prime helpers */ exynos_drm_gem_prime_get_sg_table()
/linux-4.4.14/arch/x86/kernel/
H A Despfix_64.c112 /* The constant is an arbitrary large prime */ init_espfix_random()
/linux-4.4.14/include/drm/
H A Ddrm_gem.h116 * Note that the drm gem/prime core does not depend upon drivers setting
H A DdrmP.h104 * 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 Dmemcpy.S252 (p6) ld8 val[1]=[src2],8 // prime the pump...
H A Dmemcpy_mck.S505 EX(.ex_handler, (p6) ld8 r22=[src1]); /* common, prime for tail section */ \
/linux-4.4.14/drivers/staging/comedi/drivers/
H A Dquatech_daqp_cs.c542 * 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 Dcb_pcidas64.c2502 /* prime queue holding register */ setup_channel_queue()
H A Dni_mio_common.c1921 /* prime the channel/gain list */ ni_load_channelgain_list()
/linux-4.4.14/fs/logfs/
H A Ddir.c93 * 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 Dradeon_ib.c115 * prime the caches while the DE is updating register state so that
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ib.c116 * prime the caches while the DE is updating register state so that
/linux-4.4.14/drivers/usb/gadget/udc/
H A Dmv_udc_core.c1488 /* 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 Dfsl_udc_core.c747 /* 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 Dfarsync.h327 * FST_DEBUG can be set to prime the debug selection.
H A Dz85230.h42 #define RPRIME 16 /* Indicate a prime register access on 230 */
H A Dz85230.c1379 * indicate the "prime" registers. The value 255 terminates the
/linux-4.4.14/arch/ia64/sn/kernel/
H A Dio_common.c472 * prime sn_pci_provider[]. Individual provider init routines will sn_io_early_init()
/linux-4.4.14/crypto/
H A Djitterentropy.c550 /* 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 Dvmac.c41 static const u64 p64 = UINT64_C(0xfffffffffffffeff); /* 2^64 - 257 prime */
/linux-4.4.14/drivers/staging/lustre/include/linux/lnet/
H A Dlib-types.h399 #define LNET_PEER_HASHSIZE 503 /* prime! */
/linux-4.4.14/net/ceph/crush/
H A Dmapper.c67 * We used to use some prime number arithmetic to do this, but it
/linux-4.4.14/drivers/usb/chipidea/
H A Dudc.c502 wmb(); /* synchronize before ep prime */ _hardware_enqueue()
530 /* Synchronize before ep prime */ reprime_dtd()
/linux-4.4.14/drivers/tty/serial/
H A Dpmac_zilog.c161 /* 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 Dspi-ep93xx.c413 * 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 Desas2r_init.c972 /* prime parts of the inbound list */ esas2r_init_adapter_struct()
/linux-4.4.14/drivers/gpu/drm/msm/
H A Dmsm_drv.c387 * and (for example) use dmabuf/prime to share buffers with msm_load()
/linux-4.4.14/net/rxrpc/
H A Dar-internal.h116 /* prime a connection's packet security */
H A Drxkad.c110 * prime the encryption state with the invariant parts of a connection's
/linux-4.4.14/drivers/gpu/drm/i915/
H A Di915_gem.c716 /* 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 Di915_drv.h2125 /* prime dma-buf support */
/linux-4.4.14/drivers/media/usb/gspca/
H A Dov519.c516 * 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 Ddrbd_main.c3757 #define FAULT_RANDOM_MULT 39916801 /* prime */
3758 #define FAULT_RANDOM_ADD 479001701 /* prime */
H A Ddrbd_nl.c3239 /* prime iterators, and set "filter" mode mark: drbd_adm_get_status_all()
/linux-4.4.14/drivers/staging/lustre/lustre/include/
H A Dlustre_net.h1102 * - In objects that act as prime-level scheduling entities in different NRS
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
H A Dosc_request.c2211 * lock cannot be used, because it would prime inode state with osc_enqueue_base()
/linux-4.4.14/mm/
H A Dpercpu.c1482 * chunk and prime the dynamic percpu allocator.
/linux-4.4.14/fs/
H A Ddcache.c99 * information, yet avoid using a prime hash-size or similar.
/linux-4.4.14/drivers/staging/rdma/hfi1/
H A Dchip.c9937 * A prime example of this is SiPh. For now, set all pins high. init_chip()

Completed in 2425 milliseconds