Home | History | Annotate | Download | only in drm

Lines Matching refs:prime

60  * Similar to GEM global names, PRIME file descriptors are also used to share
66 * Drivers that support the PRIME API implement the
98 * Self-importing: If userspace is using PRIME as a replacement for flink then
399 * Generic release function for dma_bufs exported as PRIME buffers. GEM drivers
417 * drm_gem_prime_fd_to_handle - PRIME import function for GEM drivers
423 * This is the PRIME import function which must be used mandatorily by GEM
442 mutex_lock(&file_priv->prime.lock);
444 ret = drm_prime_lookup_buf_handle(&file_priv->prime,
473 ret = drm_prime_add_buf_handle(&file_priv->prime,
475 mutex_unlock(&file_priv->prime.lock);
494 mutex_unlock(&file_priv->prime.lock);
549 * drm_gem_prime_handle_to_fd - PRIME export function for GEM drivers
556 * This is the PRIME export function which must be used mandatorily by GEM
570 mutex_lock(&file_priv->prime.lock);
577 dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle);
614 ret = drm_prime_add_buf_handle(&file_priv->prime,
642 mutex_unlock(&file_priv->prime.lock);
665 * DOC: PRIME Helpers
838 * drm_gem_prime_mmap - PRIME mmap function for GEM drivers
842 * This function sets up a userspace mapping for PRIME exported buffers using
1011 * using the PRIME helpers. It is used as the default in
1117 * using the PRIME helpers. Drivers can use this as their
1280 * drm_prime_gem_destroy - helper to clean up a PRIME-imported GEM object