/external/drm_gralloc/ |
D | gralloc_drm_rockchip.c | 79 if (handle->prime_fd >= 0) { in drm_gem_rockchip_alloc() 80 ret = drmPrimeFDToHandle(info->fd, handle->prime_fd, in drm_gem_rockchip_alloc() 85 handle->prime_fd, ret); in drm_gem_rockchip_alloc() 89 ALOGV("Got handle %d for fd %d\n", gem_handle, handle->prime_fd); in drm_gem_rockchip_alloc() 112 &handle->prime_fd); in drm_gem_rockchip_alloc() 113 ALOGV("Got fd %d for handle %d\n", handle->prime_fd, gem_handle); in drm_gem_rockchip_alloc() 142 if (bo->handle && bo->handle->prime_fd) in drm_gem_rockchip_free() 143 close(bo->handle->prime_fd); in drm_gem_rockchip_free()
|
D | gralloc_drm.cpp | 172 handle->prime_fd); in validate_handle() 174 if (handle->name || handle->prime_fd >= 0) in validate_handle() 238 handle->prime_fd = -1; in create_bo_handle()
|
D | gralloc_drm_handle.h | 40 int prime_fd; member
|
/external/autotest/client/site_tests/graphics_Gbm/src/ |
D | gbmtest.c | 423 int prime_fd; in test_export() local 428 prime_fd = gbm_bo_get_fd(bo); in test_export() 429 CHECK(prime_fd > 0); in test_export() 430 close(prime_fd); in test_export()
|
/external/drm_hwcomposer/ |
D | platformdrmgeneric.cpp | 100 int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->prime_fd, &gem_handle); in ImportBuffer() 102 ALOGE("failed to import prime fd %d ret=%d", gr_handle->prime_fd, ret); in ImportBuffer()
|
/external/libdrm/freedreno/ |
D | freedreno_bo.c | 384 int ret, prime_fd; in fd_bo_dmabuf() local 387 &prime_fd); in fd_bo_dmabuf() 395 return prime_fd; in fd_bo_dmabuf()
|
/external/libdrm/nouveau/ |
D | nouveau.h | 150 int nouveau_bo_prime_handle_ref(struct nouveau_device *, int prime_fd, 152 int nouveau_bo_set_prime(struct nouveau_bo *, int *prime_fd);
|
D | nouveau.c | 794 nouveau_bo_prime_handle_ref(struct nouveau_device *dev, int prime_fd, in nouveau_bo_prime_handle_ref() argument 805 ret = drmPrimeFDToHandle(drm->fd, prime_fd, &handle); in nouveau_bo_prime_handle_ref() 814 nouveau_bo_set_prime(struct nouveau_bo *bo, int *prime_fd) in nouveau_bo_set_prime() argument 820 ret = drmPrimeHandleToFD(drm->fd, nvbo->base.handle, DRM_CLOEXEC, prime_fd); in nouveau_bo_set_prime()
|
/external/libdrm/intel/ |
D | intel_bufmgr.h | 215 int drm_intel_bo_gem_export_to_prime(drm_intel_bo *bo, int *prime_fd); 217 int prime_fd, int size);
|
D | intel_bufmgr_gem.c | 2587 drm_intel_bo_gem_create_from_prime(drm_intel_bufmgr *bufmgr, int prime_fd, int size) in drm_intel_bo_gem_create_from_prime() argument 2597 ret = drmPrimeFDToHandle(bufmgr_gem->fd, prime_fd, &handle); in drm_intel_bo_gem_create_from_prime() 2630 ret = lseek(prime_fd, 0, SEEK_END); in drm_intel_bo_gem_create_from_prime() 2674 drm_intel_bo_gem_export_to_prime(drm_intel_bo *bo, int *prime_fd) in drm_intel_bo_gem_export_to_prime() argument 2685 DRM_CLOEXEC, prime_fd) != 0) in drm_intel_bo_gem_export_to_prime()
|
/external/libdrm/ |
D | xf86drm.h | 758 extern int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd); 759 extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);
|
D | xf86drm.c | 2731 int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd) in drmPrimeHandleToFD() argument 2744 *prime_fd = args.fd; in drmPrimeHandleToFD() 2748 int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle) in drmPrimeFDToHandle() argument 2754 args.fd = prime_fd; in drmPrimeFDToHandle()
|